[add] print service
This commit is contained in:
parent
889a69962e
commit
5d82adf3e4
14
index.php
14
index.php
|
@ -53,7 +53,7 @@ if (!$multiplebans) {
|
|||
|
||||
// Find the IPs currently banned
|
||||
|
||||
$currentbans = mysql_query("SELECT ip,ban_date,ban_time,country FROM bans WHERE bans.id NOT IN ( SELECT unbans.id FROM unbans WHERE bans.id=unbans.id)");
|
||||
$currentbans = mysql_query("SELECT service,ip,ban_date,ban_time,country FROM bans WHERE bans.id NOT IN ( SELECT unbans.id FROM unbans WHERE bans.id=unbans.id)");
|
||||
if (!$currentbans) {
|
||||
die("Query failed.");
|
||||
}
|
||||
|
@ -89,35 +89,35 @@ if (!$countrybans) {
|
|||
|
||||
// Order by ID
|
||||
|
||||
$allbans = mysql_query("SELECT id,ip,ban_date,ban_time,country FROM bans ORDER BY id");
|
||||
$allbans = mysql_query("SELECT id,service,ip,ban_date,ban_time,country FROM bans ORDER BY id");
|
||||
if (!$multiplebans) {
|
||||
die("Query failed.");
|
||||
}
|
||||
|
||||
// Order by IP
|
||||
|
||||
$allbans_ip = mysql_query("SELECT id,ip,ban_date,ban_time,country FROM bans ORDER BY ip");
|
||||
$allbans_ip = mysql_query("SELECT id,service,ip,ban_date,ban_time,country FROM bans ORDER BY ip");
|
||||
if (!$multiplebans) {
|
||||
die("Query failed.");
|
||||
}
|
||||
|
||||
// Order by Date
|
||||
|
||||
$allbans_date = mysql_query("SELECT id,ip,ban_date,ban_time,country FROM bans ORDER BY ban_date");
|
||||
$allbans_date = mysql_query("SELECT id,service,ip,ban_date,ban_time,country FROM bans ORDER BY ban_date");
|
||||
if (!$multiplebans) {
|
||||
die("Query failed.");
|
||||
}
|
||||
|
||||
// Order by Time
|
||||
|
||||
$allbans_time = mysql_query("SELECT id,ip,ban_date,ban_time,country FROM bans ORDER BY ban_time");
|
||||
$allbans_time = mysql_query("SELECT id,service,ip,ban_date,ban_time,country FROM bans ORDER BY ban_time");
|
||||
if (!$multiplebans) {
|
||||
die("Query failed.");
|
||||
}
|
||||
|
||||
// Order by Country
|
||||
|
||||
$allbans_country = mysql_query("SELECT id,ip,ban_date,ban_time,country FROM bans ORDER BY country");
|
||||
$allbans_country = mysql_query("SELECT id,service,ip,ban_date,ban_time,country FROM bans ORDER BY country");
|
||||
if (!$multiplebans) {
|
||||
die("Query failed.");
|
||||
}
|
||||
|
@ -200,6 +200,7 @@ echo "\t<h2>Currently Banned</h2>\n";
|
|||
|
||||
echo "\t<div class='table'>\n";
|
||||
echo "\t\t<div class='row'>\n";
|
||||
echo "\t\t\t<div class='cell-header'>\n\t\t\t\tService\n\t\t\t</div>\n";
|
||||
echo "\t\t\t<div class='cell-header'>\n\t\t\t\tIP\n\t\t\t</div>\n";
|
||||
echo "\t\t\t<div class='cell-header'>\n\t\t\t\tDate\n\t\t\t</div>\n";
|
||||
echo "\t\t\t<div class='cell-header'>\n\t\t\t\tTime\n\t\t\t</div>\n";
|
||||
|
@ -255,6 +256,7 @@ case "allbans":
|
|||
echo "\t<div class='table'>\n";
|
||||
echo "\t\t<div class='row'>\n";
|
||||
echo "\t\t\t<a href='?page=allbans&orderby=id' class='cell-header'>\n\t\t\t\t\n\t\t\t</a>\n";
|
||||
echo "\t\t\t<a href='?page=allbans&orderby=ip' class='cell-header'>\n\t\t\t\t<u>Service</u>\n\t\t\t</a>\n";
|
||||
echo "\t\t\t<a href='?page=allbans&orderby=ip' class='cell-header'>\n\t\t\t\t<u>IP</u>\n\t\t\t</a>\n";
|
||||
echo "\t\t\t<a href='?page=allbans&orderby=date' class='cell-header'>\n\t\t\t\t<u>Ban Date</u>\n\t\t\t</a>\n";
|
||||
echo "\t\t\t<a href='?page=allbans&orderby=time' class='cell-header'>\n\t\t\t\t<u>Ban Time</u>\n\t\t\t</a>\n";
|
||||
|
|
Loading…
Reference in New Issue