X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=access%2Flogin.php;h=efdd276dad79b6ac6e4620b5294f0b0b30adcbe7;hb=2cb57633d2f3e27b0c2b2e7448564f467e21e1fd;hp=5644151811e195cbd93c31dbdc909626cc5aa095;hpb=bf343dcf1df5d82c25ed8079bed766a54bd1b17c;p=fa-stable.git diff --git a/access/login.php b/access/login.php index 56441518..efdd276d 100644 --- a/access/login.php +++ b/access/login.php @@ -1,143 +1,141 @@ . +***********************************************************************/ if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_to_root'])) - die("Restricted access"); - include_once($path_to_root . "/includes/ui/ui_view.inc"); + die(_("Restricted access")); + include_once($path_to_root . "/includes/ui.inc"); + + $js = ""; + $js2 = ""; + // Display demo user name and password within login form if "$allow_demo_mode" is true - $demo_text = ""; - if ($allow_demo_mode == True) + if ($allow_demo_mode == true) { - $demo_text = "Login as user: demouser and password: cooldemo"; + $demo_text = _("Login as user: demouser and password: password"); } else { - $demo_text = "Please login here"; + $demo_text = _("Please login here"); } if (!isset($def_coy)) $def_coy = 0; - $def_theme = $path_to_root . '/themes/default'; -?> - - - - - <?php echo $app_title . " " . $version;?> - - - + $def_theme = "default"; - - - - - + $login_timeout = $_SESSION["wa_current_user"]->last_act; - - - - - - - - - - - - - - - - - - - - - -
FrontAccounting
+ $title = $login_timeout ? _('Authorization timeout') : $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()'" : ""; - - - - \n"; + end_row(); + echo "\n"; + if (!$login_timeout) + table_section_title(_("Version")." $version Build $build_version - "._("Login")); + $value = $login_timeout ? $_SESSION['wa_current_user']->loginname : ($allow_demo_mode ? "demouser":""); - + text_row(_("User name"), "user_name_entry_field", $value, 20, 30); - - - - - - - -


- - - - - - - + echo "\n"; + echo "\n"; + echo "$title\n"; + echo "\n"; + echo " \n"; + echo $js2; + if (!$login_timeout) + { + echo $js; + } + echo "\n"; - + echo "\n"; + echo "
$title
\n"; + + br();br(); + start_form(false, false, $_SESSION['timeout']['uri'], "loginform"); + start_table($table_style2); + start_row(); + echo "
"; + if (!$login_timeout) { // FA logo + echo "FrontAccounting"; + } else { + echo ""._('Authorization timeout').""; + } + echo "
-
 
+ if ($login_timeout) { + hidden('company_login_name', $_SESSION["wa_current_user"]->company); + } else { + if (isset($_SESSION['wa_current_user']->company)) + $coy = $_SESSION['wa_current_user']->company; + else + $coy = $def_coy; + echo ""._("Company")."\n"; + start_row(); + label_cell($demo_text, "colspan=2 align='center'"); + end_row(); + }; + end_table(1); + echo "
\n"; + end_form(1); - - - - - - + "; + echo "\n"; + echo ""; + if (isset($_SESSION['wa_current_user'])) + $date = Today() . " | " . Now(); + else + $date = date("m/d/Y") . " | " . date("h.i am"); + echo "\n"; + echo "
$date
\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "

\n"; + echo "\n"; + +?> \ No newline at end of file