X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=access%2Flogin.php;h=fa91f35252fb730667c92b82e6e96cc1867afeca;hb=ed91f1df617ffa9554810bf2f54b130f08f54c70;hp=9984e0a6cf72894d90a6e0c06207d092a3bdd450;hpb=5a631581a2612b0f429a88b725697d6970a6c9a3;p=fa-stable.git
diff --git a/access/login.php b/access/login.php
index 9984e0a6..fa91f352 100644
--- a/access/login.php
+++ b/access/login.php
@@ -17,45 +17,50 @@
$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()'" : "";
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 "