[chg] rename bancount.php to index.php
This commit is contained in:
parent
63197e78d5
commit
37cb092a24
|
@ -120,8 +120,8 @@ if (!$multiplebans) {
|
|||
}
|
||||
|
||||
|
||||
// Find the number of currently banned IP's using subtraction.
|
||||
// I'm sure I can do this with a single MySQL query and get
|
||||
// Find the number of currently banned IP's using subtraction.
|
||||
// I'm sure I can do this with a single MySQL query and get
|
||||
// rid of the above 2 queries all together.
|
||||
|
||||
$currentlybanned = $numbans - $numunbans;
|
||||
|
@ -138,8 +138,8 @@ echo "\t<h3>$numbans IPs have been banned.</h3>\n";
|
|||
|
||||
echo "\t<div class='table'>\n";
|
||||
echo "\t\t<div class='row'>\n";
|
||||
echo "\t\t\t<a href='/bancount.php?page=home' class='menu'>Home</a>\n";
|
||||
echo "\t\t\t<a href='/bancount.php?page=allbans' class='menu'>All Bans</a>\n";
|
||||
echo "\t\t\t<a href='?page=home' class='menu'>Home</a>\n";
|
||||
echo "\t\t\t<a href='?page=allbans' class='menu'>All Bans</a>\n";
|
||||
echo "\t\t</div>\n";
|
||||
echo "\t</div>\n";
|
||||
|
||||
|
@ -203,7 +203,7 @@ echo "\t\t\t<div class='cell-header'>\n\t\t\t\tTime\n\t\t\t</div>\n";
|
|||
echo "\t\t\t<div class='cell-header'>\n\t\t\t\tCountry\n\t\t\t</div>\n";
|
||||
echo "\t\t</div>\n";
|
||||
|
||||
// Print out the second table
|
||||
// Print out the second table
|
||||
|
||||
while($row = mysql_fetch_row($currentbans)) {
|
||||
echo "\t\t<div class='row'>\n";
|
||||
|
@ -251,11 +251,11 @@ case "allbans":
|
|||
|
||||
echo "\t<div class='table'>\n";
|
||||
echo "\t\t<div class='row'>\n";
|
||||
echo "\t\t\t<a href='/bancount.php?page=allbans&orderby=id' class='cell-header'>\n\t\t\t\t\n\t\t\t</a>\n";
|
||||
echo "\t\t\t<a href='/bancount.php?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='/bancount.php?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='/bancount.php?page=allbans&orderby=time' class='cell-header'>\n\t\t\t\t<u>Ban Time</u>\n\t\t\t</a>\n";
|
||||
echo "\t\t\t<a href='/bancount.php?page=allbans&orderby=country' class='cell-header'>\n\t\t\t\t<u>Country</u>\n\t\t\t</a>\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>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";
|
||||
echo "\t\t\t<a href='?page=allbans&orderby=country' class='cell-header'>\n\t\t\t\t<u>Country</u>\n\t\t\t</a>\n";
|
||||
echo "\t\t</div>\n";
|
||||
|
||||
switch ($orderby) {
|
Loading…
Reference in New Issue