<?php head("ForcedBanner Blacklist"); if (!isset($_GET['kid'])) $_GET['kid'] = ''; if (!isset($_GET['loeschen'])) $_GET['loeschen'] = ''; if (!isset($_GET['blacklist'])) $_GET['blacklist'] = ''; if ($_GET['loeschen'] == 'true' && $_GET['kid']) { $sql = sql::$db->prepare("DELETE FROM " . _VMS_ . "_gebuchte_werbung WHERE kid=? AND status = '2' AND sponsor=? LIMIT 1"); $sql->execute(array($_GET['kid'], $_GET['sponsor'])); } if ($_GET['blacklist'] == 'true' && $_GET['kid']) { $sql = sql::$db->prepare("UPDATE " . _VMS_ . "_gebuchte_werbung SET status = '1' WHERE kid=? and sponsor=? LIMIT 1"); $sql->execute(array($_GET['kid'], $_GET['sponsor'])); } $forcedbanner = sql::$db->query("SELECT * FROM " . _VMS_ . "_gebuchte_werbung WHERE werbeart = 'forcedbanner' and status = '2' ORDER BY kid ASC"); if ($forcedbanner->rowCount() == 0) { echo 'Die Blacklist ist leer.'; } while ($anzeigen = $forcedbanner->fetch() ) { echo ' <table width="100%" cellpadding="0" cellspacing="1" border="0" bgcolor="#c0c0c0"> <tr bgcolor="#f0f0f0"> <td align="center" width="50%">TAN: ' . $anzeigen['tan'] . '<br>KID: ' . $anzeigen['kid'] . ' (' . $anzeigen['sponsor'] . ')</td> <td align="center" width="50%">Bet: ' . number_format($anzeigen['preis'], 2, ",", ".") . ' / User: ' . number_format($anzeigen['verdienst'], 2, ",", ".") . '</td> </tr> <tr bgcolor="#f0f0f0"> <td align="center" colspan="2"><a href="' . $anzeigen['ziel'] . '" target="_blank"><img alt="Sponsorenbanner" src="' . $anzeigen['banner'] . '" border="0" width="468" height="60"></a></td> </tr> <tr bgcolor="#f0f0f0"> <td align="center" width="50%">Reload: ' . $anzeigen['reload'] / 3600 . ' Std. / Rest: ' . number_format($anzeigen['menge'], 0, ",", ".") . '</td> <td align="center" width="50%"><a href="?content=/interfacebanner/blacklist&sponsor=' . $anzeigen['sponsor'] . '&loeschen=true&kid=' . $anzeigen['kid'] . '" target="_self">Löschen</a> <a href="?content=/interfacebanner/blacklist&sponsor=' . $anzeigen['sponsor'] . '&blacklist=true&kid=' . $anzeigen['kid'] . '" target="_self">Löschen-Blacklist</a></td> </tr> </table> <br> '; } foot(); ?>