Fixed warning about non-existing HTTP_USER_AGENT session variable on some Plesk confi...
[fa-stable.git] / access / login.php
index fbabe47ef317ca7ce1c3efa48e6223fba2df687a..45294376db2c38bfc262a99fac70dd554ab62cf2 100644 (file)
@@ -29,6 +29,9 @@ function defaultCompany()
        else
        {
                $demo_text = _("Please login here");
+    if (@$allow_password_reset) {
+      $demo_text .= " "._("or")." <a href='$path_to_root/index.php?reset=1'>"._("request new password")."</a>";
+    }
        }
 
        if (check_faillog())
@@ -122,7 +125,11 @@ function defaultCompany()
                // add all request variables to be resend together with login data
                if (!in_array($p, array('ui_mode', 'user_name_entry_field', 
                        'password', 'SubmitUser', 'company_login_name'))) 
-                       echo "<input type='hidden' name='$p' value='$val'>";
+                       if (!is_array($val))
+                               echo "<input type='hidden' name='$p' value='$val'>";
+                       else
+                               foreach($val as $i => $v)
+                                       echo "<input type='hidden' name='{$p}[$i]' value='$v'>";
        }
        end_form(1);
        $Ajax->addScript(true, "document.forms[0].password.focus();");
@@ -154,4 +161,4 @@ function defaultCompany()
        echo "</table><br><br>\n";
        echo "</body></html>\n";
 
-?>
\ No newline at end of file
+?>