X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=inline;f=includes%2Fsession.inc;h=4a50596f14a2f8e2dadea608408990d40c9852bc;hb=1d8ca637beb25da5f36084fdecb6c24dc5d61eab;hp=5620c78d1af384e68f1e966683808ddc09e616c5;hpb=80252de2e88e9c1584d05bee1e7befa3a5be17f2;p=fa-stable.git diff --git a/includes/session.inc b/includes/session.inc index 5620c78d..4a50596f 100644 --- a/includes/session.inc +++ b/includes/session.inc @@ -168,6 +168,10 @@ if (!isset($path_to_root)) if (isset($_GET['path_to_root']) || isset($_POST['path_to_root'])) die("Restricted access"); +include_once($path_to_root . "/includes/errors.inc"); +// colect all error msgs +set_error_handler('error_handler' /*, errtypes */); + include_once($path_to_root . "/includes/current_user.inc"); include_once($path_to_root . "/frontaccounting.php"); include_once($path_to_root . "/admin/db/security_db.inc"); @@ -229,9 +233,6 @@ $Refs = new references(); register_shutdown_function('end_flush'); ob_start('output_html',0); -// colect all error msgs -set_error_handler('error_handler' /*, errtypes */); - if (!isset($_SESSION["wa_current_user"])) $_SESSION["wa_current_user"] = new current_user();