<?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ütung</a> <a href="?content=/adscan_blacklist&tan=' . $kampagne['tan'] . '&loeschen=true">Löschen</a></td> </tr>'; } echo '</table>'; foot();