diff options
-rw-r--r-- | index.php | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -410,7 +410,9 @@ if (isset($_POST['login'])) | |||
410 | else | 410 | else |
411 | { | 411 | { |
412 | ban_loginFailed(); | 412 | ban_loginFailed(); |
413 | echo '<script language="JavaScript">alert("Wrong login/password.");document.location=\'?do=login\';</script>'; // Redirect to login screen. | 413 | $redir = ''; |
414 | if (isset($_GET['post'])) { $redir = '&post='.urlencode($_GET['post']).(!empty($_GET['title'])?'&title='.urlencode($_GET['title']):'').(!empty($_GET['source'])?'&source='.urlencode($_GET['source']):''); } | ||
415 | echo '<script language="JavaScript">alert("Wrong login/password.");document.location=\'?do=login'.$redir.'\';</script>'; // Redirect to login screen. | ||
414 | exit; | 416 | exit; |
415 | } | 417 | } |
416 | } | 418 | } |