X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fsession.inc;h=0354221d9baa2af4d303ef7b22ad7253a4305675;hb=3e2a432dd72688dbac39a07716201b2b00c16c8b;hp=ee1ac295e2714f1b8cffd99401b5c5d0af089b82;hpb=f6e1b649fc75750383b17c2ced6a5c1d6f19fe2e;p=fa-stable.git diff --git a/includes/session.inc b/includes/session.inc index ee1ac295..0354221d 100644 --- a/includes/session.inc +++ b/includes/session.inc @@ -9,7 +9,14 @@ | by Joe Hunt Consulting | \--------------------------------------------------*/ - if (!isset($path_to_root)) + function output_html($text) + { + global $before_box, $Ajax; + $Ajax->run(); + return in_ajax() ? fmt_errors() : ($before_box.fmt_errors().$text); + } + + if (!isset($path_to_root)) { $path_to_root = "."; } @@ -35,13 +42,14 @@ include_once($path_to_root . "/includes/lang/language.php"); include_once($path_to_root . "/config_db.php"); include_once($path_to_root . "/config.php"); + include_once($path_to_root . "/includes/ajax.inc"); + $Ajax =& new Ajax(); - - include_once($path_to_root . "/includes/main.inc"); + include_once($path_to_root . "/includes/main.inc"); //---------------------------------------------------------------------------------------- - function kill_login() + function kill_login() { session_unset(); session_destroy(); @@ -49,7 +57,7 @@ //---------------------------------------------------------------------------------------- - function login_fail() + function login_fail() { echo "