projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improved error handling.
[fa-stable.git]
/
includes
/
session.inc
diff --git
a/includes/session.inc
b/includes/session.inc
index 5620c78d1af384e68f1e966683808ddc09e616c5..4a50596f14a2f8e2dadea608408990d40c9852bc 100644
(file)
--- 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");
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");
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);
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();
if (!isset($_SESSION["wa_current_user"]))
$_SESSION["wa_current_user"] = new current_user();