Fixed 'bad password' info screen to be usable also in non-js mode.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 20 Sep 2009 16:32:42 +0000 (16:32 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 20 Sep 2009 16:32:42 +0000 (16:32 +0000)
includes/session.inc

index d6fc4a7fe0a616a4fee106e57aa5a8b6675c2368..c9e0becb80fc8103d2b5ed389fd7990ddf985144 100644 (file)
@@ -33,12 +33,14 @@ function kill_login()
 
 function login_fail()
 {
+       global $path_to_root;
+       
        header("HTTP/1.1 401 Authorization Required");
        echo "<center><br><br><font size='5' color='red'><b>" . _("Incorrect Password") . "<b></font><br><br>";
        echo "<b>" . _("The user and password combination is not valid for the system.") . "<b><br><br>";
 
        echo _("If you are not an authorized user, please contact your system administrator to obtain an account to enable you to use the system.");
-       echo "<br><a href='javascript:history.go(-1)'>" . _("Back") . "</a>";
+       echo "<br><a href='".$path_to_root.'/index.php'.">" . _("Try again") . "</a>";
        echo "</center>";
 
        kill_login();