X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=inline;f=access%2Flogin.php;h=dbf90ab9b7af2bfb37236ec1f2b7c8c88070aac5;hb=927ebef2443b6dda544056e33ec84b71d2bdb6c2;hp=b2bad446a0ae408754c1c3f1005c6836b3bb596e;hpb=13367be8aaf5175295f7aab7160370458dad1824;p=fa-stable.git diff --git a/access/login.php b/access/login.php index b2bad446..dbf90ab9 100644 --- a/access/login.php +++ b/access/login.php @@ -17,19 +17,19 @@ $js = ""; add_js_file('login.js'); - // Display demo user name and password within login form if "$allow_demo_mode" is true - if ($allow_demo_mode == true) + // Display demo user name and password within login form if allow_demo_mode option is true + if ($SysPrefs->allow_demo_mode == true) { $demo_text = _("Login as user: demouser and password: password"); } else { $demo_text = _("Please login here"); - if (@$allow_password_reset) { + if (@$SysPrefs->allow_password_reset) { $demo_text .= " "._("or")." "._("request new password").""; } } @@ -40,7 +40,7 @@ function defaultCompany() $js .= ""; + document.getElementById('log_msg').innerHTML='$demo_text'}, 1000*".$SysPrefs->login_delay.");"; $demo_text = $blocked_msg; } flush_dir(user_js_cache()); @@ -50,7 +50,7 @@ function defaultCompany() $login_timeout = $_SESSION["wa_current_user"]->last_act; - $title = $login_timeout ? _('Authorization timeout') : $app_title." ".$version." - "._("Login"); + $title = $login_timeout ? _('Authorization timeout') : $SysPrefs->app_title." ".$version." - "._("Login"); $encoding = isset($_SESSION['language']->encoding) ? $_SESSION['language']->encoding : "iso-8859-1"; $rtl = isset($_SESSION['language']->dir) ? $_SESSION['language']->dir : "ltr"; $onload = !$login_timeout ? "onload='defaultCompany()'" : ""; @@ -79,32 +79,31 @@ function defaultCompany() start_row(); echo "
$app_title $version - " . _("Theme:") . " " . $def_theme . " | \n"; + echo "".$SysPrefs->app_title." $version - " . _("Theme:") . " " . $def_theme . " | \n"; echo "
$power_by | \n"; + echo "".$SysPrefs->power_by." | \n"; echo "