Update Client Nav to use Absolute links and updated more of the inc_alls to use Document Server Root

This commit is contained in:
johnnyq
2025-10-07 13:44:08 -04:00
parent 3fcbe440d3
commit 16242be74e
14 changed files with 98 additions and 104 deletions

View File

@@ -16,18 +16,18 @@ if (!isset($_SESSION)) {
}
if (!isset($_SESSION['client_logged_in']) || !$_SESSION['client_logged_in']) {
header("Location: login.php");
header("Location: /client/login.php");
die;
}
// Check user type
if ($_SESSION['user_type'] !== 2) {
header("Location: login.php");
header("Location: /client/login.php");
exit();
}
// Set Timezone
require_once "../includes/inc_set_timezone.php";
require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/inc_set_timezone.php';
// User IP & UA
$session_ip = sanitizeInput(getIP());