<span>
<?php
define('TSTEMPLATEDIR', dirname(__FILE__));
define('WWWROOT', substr(TSTEMPLATEDIR, 0, -18));
define('BASEDIR', substr(WWWROOT, 0, ##BASEDIR##));
require(BASEDIR . 'funcs.inc');
require(BASEDIR . 'config.php');
$result = dbcom('SELECT IP_Address FROM topsites_BannedIPs ORDER BY IP_Address;');
while($ip = mysql_fetch_assoc($result))
{
echo '<span>' . "\n";
echo $ip['IP_Address'] . "\n";
echo "<a href=\"admin.php?Run=DeleteBannedIP&IP_Address={$ip['IP_Address']}\" target=\"_parent\">[Delete]</a><br />\n";
echo '</span>' . "\n";
}
mysql_free_result($result);
?>
</span>