aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.php b/index.php
index 8a456357..bac5b7d2 100644
--- a/index.php
+++ b/index.php
@@ -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}