X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=access%2Flogin.php;h=a390006fbbe9284c876bee571450eea18e4710a3;hb=6bcd87642330092910f5d6977845a76ac59350ac;hp=fbabe47ef317ca7ce1c3efa48e6223fba2df687a;hpb=1571869d54be48452fdbe08f25130972ff0a7b5a;p=fa-stable.git
diff --git a/access/login.php b/access/login.php
index fbabe47e..a390006f 100644
--- a/access/login.php
+++ b/access/login.php
@@ -17,36 +17,40 @@
$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 (@$SysPrefs->allow_password_reset) {
+ $demo_text .= " "._("or")." "._("request new password")."";
+ }
}
if (check_faillog())
{
- $blocked_msg = ''._('Too many failed login attempts.
Please wait a while or try later.').'';
+ $blocked_msg = ''._('Too many failed login attempts.
Please wait a while or try later.').'';
$js .= "";
+ document.getElementById('log_msg').innerHTML='$demo_text'}, 1000*".$SysPrefs->login_delay.");";
$demo_text = $blocked_msg;
}
+ flush_dir(user_js_cache());
if (!isset($def_coy))
$def_coy = 0;
$def_theme = "default";
$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()'" : "";
@@ -54,7 +58,7 @@ function defaultCompany()
echo "\n";
echo "\n";
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 "