<?php
if ($_GET['loeschen'] && $_GET['tan']) db_query('DELETE FROM ' . $db_prefix . '_adscan_userblacklist WHERE tan="' . mysqli_real_escape_string($_GET['tan']) . '"');

$blacklist = db_query('SELECT tan FROM ' . $db_prefix . '_adscan_userblacklist');
head('Eigene Blacklist');
echo '<table width="100%">
<tr>
<td>TAN</td>
</tr>';
while ($kampagne = mysqli_fetch_assoc($blacklist)) {
    echo '<tr>
	<td>' . $kampagne['tan'] . '</td>
	<td><a href="' . $domain . '/top_forcedbanner.php?tan=' . $kampagne['tan'] . '">Verg&uuml;tung</a> <a href="?content=/adscan_blacklist&tan=' . $kampagne['tan'] . '&loeschen=true">L&ouml;schen</a></td>
	</tr>';
}
echo '</table>';
foot();