Skip to content

Commit 7599d8c

Browse files
author
Ian
committed
added test.php to stop file not found errors while testing the debug menu
1 parent bb85af8 commit 7599d8c

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

test.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
require_once "root.php";
3+
require_once "resources/require.php";
4+
require_once "resources/check_auth.php";
5+
require_once "resources/header.php";
6+
require_once "resources/paging.php";
7+
8+
if (!$_SESSION['user']['extension']) {
9+
echo "no extensions assigned to user";
10+
include_once "footer.php";
11+
die();
12+
}
13+
14+
if (sizeof($_SESSION['user']['extension']) == 1) {
15+
echo "<script type='text/javascript'>window.location.href = 'threadlist.php?extension_uuid=" . $_SESSION['user']['extension'][0]['extension_uuid'] . "'; </script>";
16+
} else {
17+
echo "<script type='text/javascript'>window.location.href = 'index.php'; </script>";
18+
19+
}

0 commit comments

Comments
 (0)