Added js global js collecting arrays, moved check_page_security call
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 16 Mar 2008 17:30:50 +0000 (17:30 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 16 Mar 2008 17:30:50 +0000 (17:30 +0000)
includes/session.inc

index d3ddf6009ed36bbe5645a12e49fe00611659b9c7..c5d417f710d2b0d0dac559939b9573935c3bd27a 100644 (file)
@@ -76,7 +76,6 @@
        }
 
        //----------------------------------------------------------------------------------------
-
        if (!isset($_SESSION["wa_current_user"]) ||
                (isset($_SESSION["wa_current_user"]) && !$_SESSION["wa_current_user"]->logged_in())) 
        {
                }
        }
 
-       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"]])) {
     }*/
 
        //----------------------------------------------------------------------------------------
+       check_page_security($page_security);
 ?>
\ No newline at end of file