X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fsession.inc;h=e8361df82db0c3221dd5cdef62b194190d5e0956;hb=39919cfa6b7f8f725b63bc406b020fb4bdf12e2a;hp=c5d417f710d2b0d0dac559939b9573935c3bd27a;hpb=8a3cbfb85641b8949c5b4ce504f2a74e2c03eaf3;p=fa-stable.git diff --git a/includes/session.inc b/includes/session.inc index c5d417f7..e8361df8 100644 --- a/includes/session.inc +++ b/includes/session.inc @@ -16,6 +16,25 @@ include_once($path_to_root . "/includes/current_user.inc"); +/* + // Make sure this directory exists and is writable! + $session_save_path = dirname(__FILE__).'/tmp/'; +*/ + + $session_save_path = session_save_path(); + if (strpos($session_save_path, ";") !== false) + $session_save_path = substr($session_save_path, strpos($session_save_path, ";") + 1); + + if (isset($session_save_path)) + { + session_save_path($session_save_path); + unset($session_save_path); + } + if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_to_root'])) + die("Restricted access"); + include_once($path_to_root . "/config_db.php"); + include_once($path_to_root . "/includes/lang/language.php"); + include_once($path_to_root . "/config.php"); include_once($path_to_root . "/includes/main.inc"); @@ -103,15 +122,6 @@ } } - global $js_lib, $js_static, $js_path; - $js_path = $path_to_root.'/js/'; - // standard external js scripts included in all files - $js_static = array('behaviour.js'); - // additional js source included in header - $js_lib = array(); - - add_js_user_num(); // add user native numeric input functions - // Run with debugging messages for the system administrator(s) but not anyone else /*if (in_array(15, $security_groups[$_SESSION["AccessLevel"]])) { $debug = 1; @@ -121,4 +131,7 @@ //---------------------------------------------------------------------------------------- check_page_security($page_security); + + + ?> \ No newline at end of file