X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fsession.inc;h=0354221d9baa2af4d303ef7b22ad7253a4305675;hb=3e2a432dd72688dbac39a07716201b2b00c16c8b;hp=026ad125a321fcd3ecf40392aa8b4c3cb4803038;hpb=463ab9029b1efa51c96aca12aa8537d262fe6f82;p=fa-stable.git diff --git a/includes/session.inc b/includes/session.inc index 026ad125..0354221d 100644 --- a/includes/session.inc +++ b/includes/session.inc @@ -9,13 +9,14 @@ | by Joe Hunt Consulting | \--------------------------------------------------*/ - function output_html($text) + function output_html($text) { - global $before_box; + global $before_box, $Ajax; + $Ajax->run(); return in_ajax() ? fmt_errors() : ($before_box.fmt_errors().$text); } - if (!isset($path_to_root)) + if (!isset($path_to_root)) { $path_to_root = "."; } @@ -48,7 +49,7 @@ //---------------------------------------------------------------------------------------- - function kill_login() + function kill_login() { session_unset(); session_destroy(); @@ -56,7 +57,7 @@ //---------------------------------------------------------------------------------------- - function login_fail() + function login_fail() { echo "


" . _("Incorrect Password") . "

"; echo "" . _("The user and password combination is not valid for the system.") . "

"; @@ -71,9 +72,9 @@ //---------------------------------------------------------------------------------------- - function check_page_security($page_security) + function check_page_security($page_security) { - if (!$_SESSION["wa_current_user"]->check_user_access()) + if (!$_SESSION["wa_current_user"]->check_user_access()) { echo "


"; echo "" . _("Security settings have not been defined for your user account."); @@ -83,14 +84,13 @@ exit; } - if (!$_SESSION["wa_current_user"]->can_access_page($page_security)) + if (!$_SESSION["wa_current_user"]->can_access_page($page_security)) { page(_("Access denied")); echo "



"; echo _("The security settings on your account do not permit you to access this function"); echo ""; - echo "

" . _("Back") . ""; - echo "



"; + echo "



"; //echo '