mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
rename get_settings.php to load_global_settings.php and update all requires
This commit is contained in:
@@ -6,5 +6,5 @@ require_once "auth_check.php";
|
||||
require_once "inc_set_timezone.php";
|
||||
require_once "load_user_session.php";
|
||||
require_once "load_company_settings.php";
|
||||
require_once "get_settings.php";
|
||||
require_once "load_global_settings.php";
|
||||
require_once "detect_device_type.php";
|
||||
|
||||
@@ -29,7 +29,7 @@ $user_config_theme_dark = intval($row['user_config_theme_dark']);
|
||||
if ($session_user_type !== 1) {
|
||||
session_unset();
|
||||
session_destroy();
|
||||
header("Location: login.php");
|
||||
header("Location: ../login.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,9 +3,12 @@
|
||||
if (!isset($_SESSION)) {
|
||||
// HTTP Only cookies
|
||||
ini_set("session.cookie_httponly", true);
|
||||
|
||||
if ($config_https_only) {
|
||||
// Tell client to only send cookie(s) over HTTPS
|
||||
ini_set("session.cookie_secure", true);
|
||||
}
|
||||
|
||||
session_start();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user