From: Janusz Dobrowolski Date: Sun, 16 Mar 2008 17:30:50 +0000 (+0000) Subject: Added js global js collecting arrays, moved check_page_security call X-Git-Tag: v2.4.2~19^2~2177 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=8a3cbfb85641b8949c5b4ce504f2a74e2c03eaf3;p=fa-stable.git Added js global js collecting arrays, moved check_page_security call --- diff --git a/includes/session.inc b/includes/session.inc index d3ddf600..c5d417f7 100644 --- a/includes/session.inc +++ b/includes/session.inc @@ -76,7 +76,6 @@ } //---------------------------------------------------------------------------------------- - if (!isset($_SESSION["wa_current_user"]) || (isset($_SESSION["wa_current_user"]) && !$_SESSION["wa_current_user"]->logged_in())) { @@ -104,7 +103,14 @@ } } - check_page_security($page_security); + 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"]])) { @@ -114,4 +120,5 @@ }*/ //---------------------------------------------------------------------------------------- + check_page_security($page_security); ?> \ No newline at end of file