<?php
# Display a list of blacklisted items
define('TSADMINDIR', dirname(__FILE__) . '/');
define('WWWROOT', substr(TSADMINDIR, 0, -14));
define('BASEDIR', substr(WWWROOT, 0, ##BASEDIR##));
require(BASEDIR . 'funcs.inc');
require(BASEDIR . 'config.php');
require(WWWROOT . 'topsites/common.php');
echo '<span>';
$type = mysql_escape_string($_GET['Type']);
$result = dbcom("SELECT * FROM topsites_Blacklist where Type='$type';");
if(mysql_num_rows($result) < 1 )
{
echo 'There are no blacklisted items of this type';
}
else
{
while($item = mysql_fetch_assoc($result))
{
$stripped = $item['Value'];
StripHTML($stripped);
echo "$stripped <a href='admin.php?Run=DeleteBlacklist&View={$_GET['Type']}&Type={$_GET['Type']}&Items=" . urlencode($item['Value']) . "' target='_parent'>[Delete]</a><br />\n";
}
}
mysql_free_result($result);
echo '</span>';
?>