\n"; echo "\n"; echo "\n"; echo "\t", $config['title'], "\n"; echo "\t\n"; echo "\t\n"; echo "\t\n"; echo "\t\n"; echo "\n"; echo "\n"; echo "\n"; echo "
\n"; echo "\t

$numbans IPs have been banned.

\n"; // Menu echo "\t
\n"; echo "\t\t
\n"; echo "\t\t\tHome\n"; echo "\t\t\tAll Bans\n"; echo "\t\t\tLast 24h ban\n"; echo "\t\t
\n"; echo "\t
\n"; switch ($page) { default : // Begin creating the first table of IPs that have been banned // more than once. echo "\t

Recidivist

\n"; echo "\t
\n"; echo "\t\t
\n"; echo "\t\t\t
\n\t\t\t\tIP\n\t\t\t
\n"; echo "\t\t\t
\n\t\t\t\tBans\n\t\t\t
\n"; echo "\t\t\t
\n\t\t\t\tCountry\n\t\t\t
\n"; echo "\t\t
\n"; // Print the data obtained from the MySQL database // Print the first table while ($row = mysqli_fetch_row($multiplebans)) { echo "\t\t
\n"; foreach ($row as $cell) echo "\t\t\t
\n\t\t\t\t$cell\n\t\t\t
\n"; echo "\t\t
\n"; } echo "\t
\n"; mysqli_free_result($multiplebans); // Use correct grammer if ($currentlybanned != 1) { $grammer = "IPs are"; } else { $grammer = "IP is"; } echo "\t

Currently $currentlybanned $grammer banned.

\n"; // Only print the second table if we have an IP // currently banned. if ($numbans > $numunbans) { // Print the data obtained from the MySQL database // Table title echo "\t

Currently Banned

\n"; // Create the second table, of currently banned IPs echo "\t
\n"; echo "\t\t
\n"; echo "\t\t\t
\n\t\t\t\tService\n\t\t\t
\n"; echo "\t\t\t
\n\t\t\t\tIP\n\t\t\t
\n"; echo "\t\t\t
\n\t\t\t\tDate\n\t\t\t
\n"; echo "\t\t\t
\n\t\t\t\tTime\n\t\t\t
\n"; echo "\t\t\t
\n\t\t\t\tCountry\n\t\t\t
\n"; echo "\t\t
\n"; // Print out the second table while ($row = mysqli_fetch_row($currentbans)) { echo "\t\t
\n"; foreach ($row as $cell) echo "\t\t\t
\n\t\t\t\t$cell\n\t\t\t
\n"; echo "\t\t
\n"; } echo "\t
\n"; mysqli_free_result($currentbans); } // Print more HTML echo "\t

Top 10 Countries

\n"; // Begin creating the second table of counrtys that have been banned // more than once. echo "\t
\n"; echo "\t\t
\n"; echo "\t\t\t
\n\t\t\t\tCountry\n\t\t\t
\n"; echo "\t\t\t
\n\t\t\t\tBans\n\t\t\t
\n"; echo "\t\t
\n"; // Print the first table while ($row = mysqli_fetch_row($countrybans)) { echo "\t\t
\n"; foreach ($row as $cell) echo "\t\t\t
\n\t\t\t\t$cell\n\t\t\t
\n"; echo "\t\t
\n"; } echo "\t
\n"; mysqli_free_result($countrybans); break; case "allbans" : echo "\t
\n"; echo "\t\t
\n"; echo "\t\t\t\n\t\t\t\t\n\t\t\t\n"; echo "\t\t\t\n\t\t\t\tService\n\t\t\t\n"; echo "\t\t\t\n\t\t\t\tIP\n\t\t\t\n"; echo "\t\t\t\n\t\t\t\tBan Date\n\t\t\t\n"; echo "\t\t\t\n\t\t\t\tBan Time\n\t\t\t\n"; echo "\t\t\t\n\t\t\t\tCountry\n\t\t\t\n"; echo "\t\t
\n"; switch ($orderby) { default : case "id" : while ($row = mysqli_fetch_row($allbans)) { echo "\t\t
\n"; foreach ($row as $cell) echo "\t\t\t
\n\t\t\t\t$cell\n\t\t\t
\n"; echo "\t\t
\n"; } case "ip" : while ($row = mysqli_fetch_row($allbans_ip)) { echo "\t\t
\n"; foreach ($row as $cell) echo "\t\t\t
\n\t\t\t\t$cell\n\t\t\t
\n"; echo "\t\t
\n"; } break; case "date" : while ($row = mysqli_fetch_row($allbans_date)) { echo "\t\t
\n"; foreach ($row as $cell) echo "\t\t\t
\n\t\t\t\t$cell\n\t\t\t
\n"; echo "\t\t
\n"; } break; case "time" : while ($row = mysqli_fetch_row($allbans_time)) { echo "\t\t
\n"; foreach ($row as $cell) echo "\t\t\t
\n\t\t\t\t$cell\n\t\t\t
\n"; echo "\t\t
\n"; } break; case "country" : while ($row = mysqli_fetch_row($allbans_country)) { echo "\t\t
\n"; foreach ($row as $cell) echo "\t\t\t
\n\t\t\t\t$cell\n\t\t\t
\n"; echo "\t\t
\n"; } break; case "service" : while ($row = mysqli_fetch_row($allbans_service)) { echo "\t\t
\n"; foreach ($row as $cell) echo "\t\t\t
\n\t\t\t\t$cell\n\t\t\t
\n"; echo "\t\t
\n"; } break; } echo "\t
\n"; break; case 'last' : //id,service,ip,ban_date,ban_time,country $getLast24hBan = getLast24hBan($db); echo "\t
\n"; echo "\t\t\t
\n\t\t\t\tService\n\t\t\t
\n"; echo "\t\t\t
\n\t\t\t\tIP\n\t\t\t
\n"; echo "\t\t\t
\n\t\t\t\tDate\n\t\t\t
\n"; echo "\t\t\t
\n\t\t\t\tTime\n\t\t\t
\n"; echo "\t\t\t
\n\t\t\t\tCountry\n\t\t\t
\n"; foreach ($getLast24hBan as $value) { echo '
', $value['service'], '
', $value['ip'], '
', $value['ban_date'], '
', $value['ban_time'], '
', $value['country'], '
'; } echo '
'; break; } echo "
\n"; echo '

Go top

'; $stop = microtime(true); $total = round($stop - $start, 4); echo 'Generate in ', $total, ' secondes
'; echo "\n"; echo "\n"; echo "\n"; ?>