diff --git a/public/maxlogin.php b/public/maxlogin.php index 265d50ef..f23c00fa 100644 --- a/public/maxlogin.php +++ b/public/maxlogin.php @@ -25,7 +25,6 @@ function safe_query ($query,$id,$where = '') { } function searchform () { ?> -

Search IP

@@ -51,15 +50,18 @@ elseif ($order == 'status') else $orderby = "attempts"; -$perpage = 5; +$perpage = 50; list($pagertop, $pagerbottom, $limit) = pager($perpage, $countrows, "maxlogin.php?order=$order&"); $msg = ''; +if ($update) { + $msg = "

".htmlspecialchars($update)." Successful!

"; +} if ($action == 'showlist') { stdhead ("Max. Login Attemps - Show List"); print("

Failed Login Attempts

"); +print($msg); print("\n"); -if ($update) - $msg = "\n"; + $res = sql_query("SELECT * FROM loginattempts ORDER BY $orderby DESC $limit") or sqlerr(__FILE__,__LINE__); if (mysql_num_rows($res) == 0) print("\n"); @@ -76,10 +78,10 @@ else } } -print($msg); -print("
".htmlspecialchars($update)." Successful!
Nothing found
\n"); -if ($countrows > $perpage) - echo ''.$pagerbottom.''; +print(""); +if ($countrows > $perpage) { + echo $pagerbottom; +} searchform(); stdfoot(); }elseif ($action == 'ban') {