X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=access%2Fpassword_reset.php;h=e9af83f7f8f8239b817ec684df1e1ba0d8abcfd4;hb=df660a601cabb0afe7f3246884f16207b9a0c314;hp=8ad67026e4c58237e3597e608d2a33f397a0ec07;hpb=fc24ee893402902fc58632dabb5d7c2594e191d0;p=fa-stable.git diff --git a/access/password_reset.php b/access/password_reset.php index 8ad67026..e9af83f7 100644 --- a/access/password_reset.php +++ b/access/password_reset.php @@ -17,7 +17,7 @@ $js = ""; add_js_file('login.js'); @@ -28,7 +28,7 @@ function defaultCompany() $login_timeout = $_SESSION["wa_current_user"]->last_act; - $title = $app_title." ".$version." - "._("Password reset"); + $title = $SysPrefs->app_title." ".$version." - "._("Password reset"); $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()'" : ""; @@ -53,32 +53,30 @@ function defaultCompany() start_table(false, "class='login'"); start_row(); echo ""; - echo "FrontAccounting"; + echo "FrontAccounting"; echo "\n"; end_row(); - echo "\n"; - table_section_title(_("Version")." $version Build $build_version - "._("Password reset")); + echo "\n"; + table_section_title(_("Version")." $version Build ".$SysPrefs->build_version." - "._("Password reset")); text_row(_("Email"), "email_entry_field", "", 20, 30); - if (isset($_SESSION['wa_current_user']->company)) - $coy = $_SESSION['wa_current_user']->company; - else - $coy = $def_coy; - if (!@$text_company_selection) { - echo ""._("Company")."\n"; - echo ""; - } else { -// $coy = $def_coy; - text_row(_("Company"), "company_login_nickname", "", 20, 50); - } - start_row(); - label_cell("Please enter your e-mail", "colspan=2 align='center' id='log_msg'"); - end_row(); + $coy = user_company(); + if (!isset($coy)) + $coy = $def_coy; + if (!@$SysPrefs->text_company_selection) { + echo ""._("Company")."\n"; + echo ""; + } else { + text_row(_("Company"), "company_login_nickname", "", 20, 50); + } + start_row(); + label_cell("Please enter your e-mail", "colspan=2 align='center' id='log_msg'"); + end_row(); end_table(1); echo "
\n"; @@ -105,12 +103,11 @@ function defaultCompany() echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "

\n"; echo "\n"; -?>