Commit c559f498 authored by Joel Kuder's avatar Joel Kuder

INIT VMSone 2.5.0 Beta

parents
<?php
// neuen Rank eintragen, ändern oder löschen
if ($_POST['eintragen'] == 'Neue Position') {
db_query("INSERT INTO " . $db_prefix . "_rallyorte (id, name, welche_rallys) VALUES (NULL, '" . $_POST['name'] . "','" . implode(',', array_keys($_POST['rally'])) . "');");
Echo '<b><font size="+2" color="#087102">Eintragung erfolgreich!</font></b>';
} ;
if ($_POST['eintragen'] == 'Loeschen') {
db_query("DELETE FROM " . $db_prefix . "_rallyorte WHERE id = '" . $_POST['id'] . "';");
Echo '<b><font size="+2" color="#087102">Eintrag erfolgreich gel&ouml;scht!</font></b>';
} ;
if ($_POST['eintragen'] == 'Aendern') {
db_query("UPDATE " . $db_prefix . "_rallyorte SET welche_rallys='" . implode(',', array_keys($_POST['rally'])) . "' WHERE id='" . $_POST['id'] . "';");
Echo '<b><font size="+2" color="#087102">&Auml;nderung erfolgreich!</font></b>';
} ;
if ($_POST['rally'] == 'Eintragen') {
db_query("INSERT INTO `vms_rallydaten`
(`id`, `name`, `beschrieb`, `status`, `start`, `ende_art`, `ende_zeit`, `ende_punkte`, `ende_punkte_aktuell`, `ende_punkte_anzahl`, `ende_formulierung`, `ende_vortschritt`, `gewinn_art`, `gewinn_dyn_steigerung`, `gewinn_topf`, `gewinner_anzahl`, `mindestpunktzhl`, `sperruser`, `tagpotstart`, `einheit`)
VALUES (NULL, '" . $_POST['rallyname'] . "', ' ', 'deaktiviert', '0', 'zeit', '0', '0', '0.00', '0', ' ', 'datum', 'statisch', '0.00', '0.00', '0', '0', ' ', '0', ' ' )");
Echo '<b><font size="+2" color="#087102">Eintragung erfolgreich!</font></b>';
} ;
if ($_POST['rally'] == 'Loeschen') {
db_query("DELETE FROM " . $db_prefix . "_rallydaten WHERE id = '" . $_POST['id'] . "';");
Echo '<b><font size="+2" color="#087102">Eintrag erfolgreich gel&ouml;scht!</font></b>';
} ;
head("<b><center>Rallys im System </center></b>");
?>
<table align="center" border="0" cellpadding="3" cellspacing="1" width="100%" bgcolor="#000000">
<tr bgcolor="#c0c0c0">
<td align="center"><strong>Name</strong></td>
<td align="center"><strong>Bearbeiten der einzelnen Rallys</strong></td>
</tr>
<?php $rally = db_query("SELECT * FROM " . $db_prefix . "_rallydaten");
while ($rall = mysql_fetch_array($rally)) {?>
<form action="" method="post">
<tr bgcolor="#d0d0d0" >
<td align="center"><strong><?php echo $rall['name'];?></strong></td>
<td align="center" valign="top">
<input type="hidden" name="id" value="<?php echo $rall['id']?>">
<input type="submit" name="rally" value="Loeschen" style="width:100px;">
</td>
</tr>
</form>
<?php } ?>
</table>
<?php foot();?>
<?php head("<b><center>Neue Rally eintragen. </center></b>");?>
<table align="center" border="0" cellpadding="3" cellspacing="1" width="100%" bgcolor="#000000">
<tr bgcolor="#c0c0c0">
<td align="center"><strong>Name</strong></td>
<td align="center"><strong>Bearbeiten der einzelnen Rallys</strong></td>
</tr>
<form action="" method="post">
<tr bgcolor="#d0d0d0" >
<td align="center"><input type="text" name="rallyname"></td>
<td align="center" valign="top"><input type="submit" name="rally" value="Eintragen" style="width:100px;"></td>
</tr>
</form>
</table>
<?php foot();?>
<?php head("<b><center>Was in welcher Rally teil nehmen soll. </center></b>");?>
<table align="center" border="0" cellpadding="3" cellspacing="1" width="100%" bgcolor="#000000">
<tr bgcolor="#c0c0c0">
<td align="center"><strong>Diese ID<br>müssen Sie<br>in der <br>Funktion<br>eingeben</strong></td>
<td align="center"><strong>Beschrieb</strong></td>
<td align="center"><strong>Welche rallys</strong></td>
<td align="center"><strong>Bearbeiten<br>der <br>einzelnen <br>Positionen</strong></td>
</tr>
<?php $ap_anzeige = db_query("SELECT * FROM " . $db_prefix . "_rallyorte ORDER BY id ASC");
while ($ap = mysql_fetch_array($ap_anzeige)) {
$rallynamen = db_query("SELECT id, name FROM " . $db_prefix . "_rallydaten");
$rallys = '';
while ($rallyname = mysql_fetch_array($rallynamen)) {
$checked = '';
$arrays = explode (',', $ap['welche_rallys']);
if (in_array($rallyname['id'], $arrays)) $checked = 'checked="checked"';
$rallys .= '<input type="checkbox" ' . $checked . ' value="1" name="rally[' . $rallyname['id'] . ']"> ' . $rallyname['name'] . '<br>';
}
?>
<tr bgcolor="#d0d0d0" >
<form action="" method="post">
<td align="center" valign="top"><input type="hidden" name="id" value="<?php echo $ap['id']?>"><?php echo $ap['id'];?></td>
<td align="center" valign="top"><strong><?php echo $ap['name'];?></strong></td>
<td align="left" valign="top"><?php echo $rallys;?></td>
<td align="center" valign="top"><input type="submit" name="eintragen" value="Aendern" style="width:100px;"><br><input type="submit" name="eintragen" value="Loeschen" style="width:100px;"></td>
</form>
</tr>
<?php } ;?>
</table>
<?php foot();?>
<?php head("<b><center> Neue Position eintragen</center></b>");
$rallynamenneu = db_query("SELECT id, name FROM " . $db_prefix . "_rallydaten");
$rallysneu = '';
while ($rallynameneu = mysql_fetch_array($rallynamenneu)) {
$rallysneu .= '<input type="checkbox" value="1" name="rally[' . $rallynameneu['id'] . ']"> ' . $rallynameneu['name'] . '<br>';
}
?>
<form action="" method="post">
<table align="center" border="0" cellpadding="3" cellspacing="1" width="100%" bgcolor="#000000">
<tr bgcolor="#c0c0c0">
<td align="center"><b>Name</b></td>
<td align="center"><b>Rallys</b></td>
<td align="center"><b>Speichern</b></td>
</tr>
<tr bgcolor="#d0d0d0">
<td align="center">
Dieser Name ist nur für Sie gedacht.<br>
Er hat keinerlei Funktion.<br>
<input type="text" name="name" value="" style="width:200px;">
</td>
<td align="left"><?php echo $rallysneu;?></td>
<td align="center"><input type="submit" name="eintragen" value="Neue Position" style="width:100px;"></td>
</tr>
</table>
</form>
<?php foot(); ?>
\ No newline at end of file
This diff is collapsed.
<?php
$blockierte = db_query('SELECT * FROM ' . $db_prefix . '_gebuchte_werbung g LEFT JOIN ' . $db_prefix . '_fb_blacklist f ON f.kid=g.kid AND f.werbeart=g.werbeart WHERE g.werbeart="forcedbanner" AND LOCATE(f.sponsor, g.ziel) AND g.status=1 AND f.kid IS NOT NULL');
head('Von Adscan blockierte Kampagnen');
echo '<table width="100%" cellpadding="0" cellspacing="1" border="0" bgcolor="#c0c0c0">
<tr bgcolor="#f0f0f0">
<td align="center" width="100%"><B>Gesperrte Forcedbanner Kampangen<B></td>
</tr>
</table>';
while ($blockiert = mysql_fetch_assoc($blockierte)) {
echo '
<table width="100%" cellpadding="0" cellspacing="1" border="0" bgcolor="#c0c0c0">
<tr bgcolor="#f0f0f0">
<td align="center" width="50%">TAN:&nbsp;' . $blockiert ['tan'] . '<br>KID:&nbsp;' . $blockiert ['kid'] . ' (' . $blockiert ['sponsor'] . ')</td>
<td align="center" width="50%">Bet:&nbsp;' . number_format($blockiert ['preis'], 2, ",", ".") . ' / User:&nbsp;' . number_format($blockiert ['verdienst'], 2, ",", ".") . '</td>
</tr>
<tr bgcolor="#f0f0f0">
<td align="center" colspan="2"><a href="' . $blockiert ['ziel'] . '" target="_blank"><img alt="Sponsorenbanner" src="' . $blockiert ['banner'] . '" border="0" width="468" height="60"></a></td>
</tr>
<tr bgcolor="#f0f0f0">
<td align="center" width="50%">Reload:&nbsp;' . $blockiert ['reload'] / 3600 . ' Std. / Rest:&nbsp;' . number_format($blockiert ['menge'], 0, ",", ".") . '</td>
</tr>
</table>';
}
$blockierte = db_query('SELECT * FROM ' . $db_prefix . '_gebuchte_werbung g LEFT JOIN ' . $db_prefix . '_fb_blacklist f ON f.kid=g.kid AND f.werbeart=g.werbeart WHERE g.werbeart="paidmail" AND LOCATE(f.sponsor, g.ziel) AND g.status=1 AND f.kid IS NOT NULL');
echo '<table width="100%" cellpadding="0" cellspacing="1" border="0" bgcolor="#c0c0c0">
<tr bgcolor="#f0f0f0">
<td align="center" width="100%"><B>Gesperrte Paidmail Kampangen<B></td>
</tr>
</table>';
while ($blockiert = mysql_fetch_assoc($blockierte)) {
echo '<table width="100%" cellpadding="0" cellspacing="1" border="0" bgcolor="#c0c0c0">
<tr bgcolor="#f0f0f0">
<td align="center" width="50%">TAN:&nbsp;' . $blockiert ['tan'] . '<br>KID:&nbsp;' . $blockiert ['kid'] . ' (' . $blockiert ['sponsor'] . ')</td>
<td align="center" width="50%">Bet:&nbsp;' . number_format($blockiert ['preis'], 2, ",", ".") . ' / User:&nbsp;' . number_format($blockiert ['verdienst'], 2, ",", ".") . '</td>
</tr>
<tr bgcolor="#f0f0f0">
<td align="center" colspan="2"><a href="' . $blockiert ['ziel'] . '" target="_blank">' . $blockiert ['ziel'] . '</a></td>
</tr>
<tr bgcolor="#f0f0f0">
<td align="center" colspan="2"><textarea style="width:100%">' . $blockiert ['mailtext'] . '</textarea></td>
</tr>
<tr bgcolor="#f0f0f0">
<td align="center" width="50%">Reload:&nbsp;' . $blockiert ['reload'] / 3600 . ' Std. / Rest:&nbsp;' . number_format($blockiert ['menge'], 0, ",", ".") . '</td>
</tr>
</table>';
}
$blockierte = db_query('SELECT * FROM ' . $db_prefix . '_gebuchte_werbung g LEFT JOIN ' . $db_prefix . '_fb_blacklist f ON f.kid=g.kid AND f.werbeart=g.werbeart WHERE g.werbeart="paidlinks" AND LOCATE(f.sponsor, g.ziel) AND g.status=1 AND f.kid IS NOT NULL');
echo '<table width="100%" cellpadding="0" cellspacing="1" border="0" bgcolor="#c0c0c0">
<tr bgcolor="#f0f0f0">
<td align="center" width="100%"><B>Gesperrte Paidlink Kampangen<B></td>
</tr>
</table>';
while ($blockiert = mysql_fetch_assoc($blockierte)) {
echo '<table width="100%" cellpadding="0" cellspacing="1" border="0" bgcolor="#c0c0c0">
<tr bgcolor="#f0f0f0">
<td align="center" width="50%">TAN:&nbsp;' . $blockiert ['tan'] . '<br>KID:&nbsp;' . $blockiert ['kid'] . ' (' . $blockiert ['sponsor'] . ')</td>
<td align="center" width="50%">Bet:&nbsp;' . number_format($blockiert ['preis'], 2, ",", ".") . ' / User:&nbsp;' . number_format($blockiert ['verdienst'], 2, ",", ".") . '</td>
</tr>
<tr bgcolor="#f0f0f0">
<td align="center" colspan="2"><a href="' . $blockiert ['ziel'] . '" target="_blank">' . $blockiert ['ziel'] . '</a></td>
</tr>
<tr bgcolor="#f0f0f0">
<td align="center" width="50%">Reload:&nbsp;' . $blockiert ['reload'] / 3600 . ' Std. / Rest:&nbsp;' . number_format($blockiert ['menge'], 0, ",", ".") . '</td>
</tr>
</table>';
}
$blockierte = db_query('SELECT * FROM ' . $db_prefix . '_gebuchte_werbung g LEFT JOIN ' . $db_prefix . '_fb_blacklist f ON f.kid=g.kid AND f.werbeart=g.werbeart WHERE g.werbeart != "paidmail" AND g.werbeart != "forcedbanner" AND g.werbeart !="paidlinks" AND LOCATE(f.sponsor, g.ziel) AND g.status=1 AND f.kid IS NOT NULL');
echo '
<table width="100%" cellpadding="0" cellspacing="1" border="0" bgcolor="#c0c0c0">
<tr bgcolor="#f0f0f0">
<td align="center" width="100%"><B>Gesperrte Andere Kampangen<B></td>
</tr>
</table>';
while ($blockiert = mysql_fetch_assoc($blockierte)) {
echo '<table width="100%" cellpadding="0" cellspacing="1" border="0" bgcolor="#c0c0c0">
<tr bgcolor="#f0f0f0">
<td align="center" width="50%">TAN:&nbsp;' . $blockiert ['tan'] . '<br>KID:&nbsp;' . $blockiert ['kid'] . ' (' . $blockiert ['sponsor'] . ')</td>
<td align="center" width="50%">Bet:&nbsp;' . number_format($blockiert ['preis'], 2, ",", ".") . ' / User:&nbsp;' . number_format($blockiert ['verdienst'], 2, ",", ".") . '</td>
</tr>
<tr bgcolor="#f0f0f0">
<td align="center" colspan="2"><a href="' . $blockiert ['ziel'] . '" target="_blank">' . $blockiert ['ziel'] . '</a></td>
</tr>
<tr bgcolor="#f0f0f0">
<td align="center" width="50%">Reload:&nbsp;' . $blockiert ['reload'] / 3600 . ' Std. / Rest:&nbsp;' . number_format($blockiert ['menge'], 0, ",", ".") . '</td>
</tr>
</table>';
}
foot();
?>
\ No newline at end of file
<?php
if ($_POST['senden'] == 'Speichern') {
db_query('UPDATE ' . $db_prefix . '_adscan SET `updatesite`="' . $_POST['updatesite'] . '", `status`="' . $_POST['status'] . '", `pw`="' . $_POST['pw'] . '", `version`="' . $_POST['version'] . '", `update`="' . $_POST['update'] . '", `werbearten`="' . $_POST['werbearten'] . '", `maxframes`="' . $_POST['maxframes'] . '", `maxpopup`="' . $_POST['maxpopup'] . '"');
}
$einstellungen = mysql_fetch_assoc(db_query('SELECT * FROM ' . $db_prefix . '_adscan LIMIT 1'));
if (file_exists('../cron.php')) {
$cron = mysql_fetch_assoc(db_query('SELECT id FROM ' . $db_prefix . '_crons WHERE bezeichnung = "Adscan.de Cron"'));
}
if ($einstellungen['status'] == '1') {
$selected3 = 'selected';
} else {
$selected4 = 'selected';
}
if ($einstellungen['update'] == '1') {
$selected = 'selected';
} else {
$selected2 = 'selected';
}
head('Letzte Meldung');
echo $einstellungen['meldung'];
foot();
head('Downloadeinstellungen');
echo '<form action="" method="post">
<table width="100%">
<tr><td>Maximale Frames:</td><td><input type="text" name="maxframes" value="' . $einstellungen['maxframes'] . '"></td></tr>
<tr><td>Maximale Popups:</td><td><input type="text" name="maxpopup" value="' . $einstellungen['maxpopup'] . '"></td></tr>
<tr><td>Update (ausf&uuml;hren?):</td><td><select name="update">
<option value="1" ' . $selected . '>Ein</option>
<option value="0" ' . $selected2 . '>Aus</option>
</select></td></tr>
<tr><td>Cron (ausf&uuml;hren?):</td><td><select name="status">
<option value="1" ' . $selected3 . '>Ein</option>
<option value="0" ' . $selected4 . '>Aus</option>
</select></td></tr>
<tr><td>Interface-PW:</td><td><input type="text" name="pw" value="' . $einstellungen['pw'] . '"></td></tr>
<tr><td>Werbearten mit Framebrechern:</td><td><input type="text" name="werbearten" value="' . $einstellungen['werbearten'] . '"></td></tr>
<tr><td>Updatesite (nur bei Aufforderung &auml;ndern!):</td><td><input type="text" name="updatesite" value="' . $einstellungen['updatesite'] . '"></td></tr>
<tr><td>Versionsschl&uuml;ssel:</td><td><input type="text" name="version" value="' . $einstellungen['version'] . '"></td></tr></table>
<center><input type="submit" name="senden" value="Speichern"></center>
</form>';
?>
<?php if (!file_exists('cron.php')) {
echo '<form action="../cron.php?id=' . $cron['id'] . '&pw=' . $cron_pw . '" method="post">';
} else {
echo '<form action="cron.php?cron=crons/framebrecherdown.php" method="post">';
}
echo '<center><input type="submit" name="update" value="Updaten"></center>
</form>';
foot();
?>
\ No newline at end of file
<?php
if ($_GET['tan'] != '' && $_GET['url'] != '') {
db_query('DELETE FROM ' . $db_prefix . '_adscan_frameset WHERE url="' . $_GET['url'] . '"');
db_query('DELETE FROM ' . $db_prefix . '_adminblacklist WHERE tan="' . $_GET['tan'] . '"');
}
if ($_GET['blacklist'] != '') {
db_query('DELETE FROM ' . $db_prefix . '_adminblacklist WHERE tan="' . $_GET['blacklist'] . '"');
db_query('UPDATE ' . $db_prefix . '_gebuchte_werbung SET status=2 WHERE tan="' . $_GET['blacklist'] . '"');
db_query('DELETE FROM ' . $db_prefix . '_adscan_userblacklist WHERE tan="' . $_GET['blacklist'] . '"');
}
$intern = db_query('SELECT a.time, a.tan, g.ziel FROM ' . $db_prefix . '_adminblacklist a LEFT JOIN ' . $db_prefix . '_gebuchte_werbung g ON a.tan=g.tan');
head('Gemeldete Kampagnen');
echo '<table width="100%">
<tr>
<td>Tan</td>
<td>KID</td>
<td>Sponsor</td>
<td>Zeit</td>
<td>Gepr&uuml;ft am/um</td>
<td>Aktionen</td>
</tr>';
while ($banner = mysql_fetch_array($intern)) {
$geprueft = mysql_fetch_assoc(db_query('SELECT time FROM ' . $db_prefix . '_adscan_frameset WHERE url = "' . $banner['ziel'] . '"'));
echo '<tr>
<td>' . $banner['tan'] . '</td>
<td>' . $banner['kid'] . '</td>
<td>' . $banner['sponsor'] . '</td>
<td>' . date('d.n.y G:i', $banner['time']) . '</td>
<td>' . date('d.n.y G:i', $geprueft['time']) . '</td>
<td><a href="frametest.php?url=' . urlencode($banner['ziel']) . '" target="_blank">Testen</a>
<a href="?content=/adscan/meldungen&tan=' . $banner['tan'] . '&url=' . $banner['ziel'] . '" target="_self">Löschen</a>
<a href="?content=/adscan/meldungen&blacklist=' . $banner['tan'] . '" target="_self">Blacklist</a></td>
</tr>';
}
echo '</table>';
foot();
?>
\ No newline at end of file
<?php
$einstellungen = mysql_fetch_assoc(db_query('SELECT updatesite FROM '.$db_prefix.'_adscan LIMIT 1'));
?>
<!--<script type="text/javascript">
var framefenster = document.getElementsByTagName("iframe");
var auto_resize_timer = window.setInterval("autoresize_frames()", 400);
function autoresize_frames() {
for (var i = 0; i < framefenster.length; ++i) {
if(framefenster[i].contentWindow.document.body){
var framefenster_size = framefenster[i].contentWindow.document.body.offsetHeight;
if(document.all && !window.opera) {
framefenster_size = framefenster[i].contentWindow.document.body.scrollHeight;
}
framefenster[i].style.height = framefenster_size + 'px';
}
}
}
</script>-->
<iframe src="<?php echo $einstellungen['updatesite'].'news.php'?>" style="width:600px; height:900px; border:none;" frameborder="0" scrolling="yes"></iframe>
\ No newline at end of file
<?php
head("Bilanzsystem");
echo 'Hier eine übersicht über die Einnahmen und Ausgaben der Seite';
foot();
head("Letzten 14 Tage");
echo '<table border="0" width="100%">
<tr>
<td align="center">Datum</td>
<td align="center">Einnahmen</td>
<td align="center">Ausgaben</td>
<td align="center">Bilanz</td>
</tr>';
$sql = db_query("SELECT ein,aus,date FROM ".$db_prefix."_bilanz ORDER BY date DESC");
while ($bilanz = mysql_fetch_assoc($sql)){
echo '
<tr>
<td align="center">'.date("d.m.Y",$bilanz['date']).'</td>
<td align="center">'.$bilanz['ein'].'</td>
<td align="center">'.$bilanz['aus'].'</td>
<td align="center">'.round($bilanz['ein']-$bilanz['aus'],2).'
</tr>
';
}
echo '</table>';
foot();
\ No newline at end of file
<?php head("Zutritt verweigert");?>
Der Zutritt zu diesem Bereich wurde Dir verweigert!<br>
Bevor Du dich an den Support wendest, prüfe bitte erst die unten aufgezählten Möglichkeiten
um so unnötige Supportanfragen zu vermeiden!<br>
<br>
<b>Mögliche Gründe</b><br>
<ul>
<li>Du bist nicht eingeloggt (bitte erst einloggen)</li>
<li>Die Kontonummer/Passwortkombination stimmt nicht (Loginfehler)</li>
<li>Du hast deinen Account noch nicht freigeschaltet (bitte Email prüfen)</li>
<li>Die Session ist abgelaufen (verwende doch den Autologin)</li>
</ul>
<?php foot();?>
<?php head("Seite nicht gefunden");?>
Die von Dir angeforderte Seite ist nicht erreichbar.<br>
Bitte wähle aus dem Menü einen gültigen Link, sollte weiterhin das Problem bestehen informiere
bitte den Webmaster darüber.<br>
<br>
<b>Mögliche Gründe</b><br>
<ul>
<li>Die Seite wurde aus Wartungsgründen entfernt</li>
<li>Ein Link im Menü wurde falsch gesetzt</li>
<li>Du hast eine falsche oder ungültige URL erhalten (extern)</li>
</ul>
<?php foot();?>
<?php head("Admin ForcedBanner");
if (!isset($_GET['tan'])) $_GET['tan'] = '';
if (!isset($_GET['loeschen'])) $_GET['loeschen'] = '';
if ($_GET['loeschen'] == 'true' && $_GET['tan']) {
db_query("DELETE FROM " . $db_prefix . "_gebuchte_werbung WHERE tan='" . $_GET['tan'] . "' and sponsor='administrator' LIMIT 1");
}
$forcedbanner = db_query("SELECT * FROM " . $db_prefix . "_gebuchte_werbung WHERE sponsor='administrator' and werbeart = 'forcedbanner' and status = '1' ORDER BY kid ASC");
while ($anzeigen = mysql_fetch_array($forcedbanner)) {
echo '
<table width="100%" cellpadding="0" cellspacing="1" border="0" bgcolor="#c0c0c0">
<tr bgcolor="#f0f0f0">
<td align="center" width="50%"><b>TAN:</b>&nbsp;' . $anzeigen['tan'] . '</td>
<td align="center" width="50%"><b>Vergütung:</b>&nbsp;' . number_format($anzeigen['verdienst'], 2, ",", ".") . '</td>
</tr>
<tr bgcolor="#f0f0f0">
<td align="left" colspan="2"><br><b>Ziel:</b> <a href="' . $anzeigen['ziel'] . '">' . $anzeigen['ziel'] . '</a> <br><b>Banner:</b> <a href="' . $anzeigen['banner'] . '">' . $anzeigen['banner'] . '</a><br><br></td>
</tr>
<tr bgcolor="#f0f0f0">
<td align="center" width="50%"><b>Reload:</b>&nbsp;' . $anzeigen['reload'] / 3600 . 'h <b>Rest:</b>&nbsp;' . number_format($anzeigen['menge'], 0, ",", ".") . ' Klicks</td>
<td align="center" width="50%"><a href="?content=/interfacebanner/admin&amp;loeschen=true&amp;tan=' . $anzeigen['tan'] . '" target="_self">Löschen</a></td>
</tr>
</table>
<br>
';
}
foot();
?>
<?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']) {
db_query("DELETE FROM " . $db_prefix . "_gebuchte_werbung WHERE kid='" . $_GET['kid'] . "' and status = '2' and sponsor='" . $_GET['sponsor'] . "' LIMIT 1");
}
if ($_GET['blacklist'] == 'true' && $_GET['kid']) {
db_query("UPDATE " . $db_prefix . "_gebuchte_werbung SET status = '1' WHERE kid='" . $_GET['kid'] . "' and sponsor='" . $_GET['sponsor'] . "' LIMIT 1");
}
$forcedbanner = db_query("SELECT * FROM " . $db_prefix . "_gebuchte_werbung WHERE werbeart = 'forcedbanner' and status = '2' ORDER BY kid ASC");
while ($anzeigen = mysql_fetch_array($forcedbanner)) {
echo '
<table width="100%" cellpadding="0" cellspacing="1" border="0" bgcolor="#c0c0c0">
<tr bgcolor="#f0f0f0">
<td align="center" width="50%">TAN:&nbsp;' . $anzeigen['tan'] . '<br>KID:&nbsp;' . $anzeigen['kid'] . ' (' . $anzeigen['sponsor'] . ')</td>
<td align="center" width="50%">Bet:&nbsp;' . number_format($anzeigen['preis'], 2, ",", ".") . ' / User:&nbsp;' . 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:&nbsp;' . $anzeigen['reload'] / 3600 . ' Std. / Rest:&nbsp;' . number_format($anzeigen['menge'], 0, ",", ".") . '</td>
<td align="center" width="50%"><a href="?content=/interfacebanner/blacklist&amp;sponsor=' . $anzeigen['sponsor'] . '&amp;loeschen=true&amp;kid=' . $anzeigen['kid'] . '" target="_self">Löschen</a> <a href="?content=/interfacebanner/blacklist&amp;sponsor=' . $anzeigen['sponsor'] . '&amp;blacklist=true&amp;kid=' . $anzeigen['kid'] . '" target="_self">Löschen-Blacklist</a></td>
</tr>
</table>
<br>
';
}
foot();
?>
This diff is collapsed.
<?php head("Crons (Übersicht und manuell Start)");?>
<table class="tabellen">
<tr class="tabellenhead">
<td align="center"><b>Cron</b></td>
<td align="center"><b>Laufzeit</b></td>
<td align="center">URL</td>
</tr>
<?php
$crons = db_query("SELECT * FROM " . $db_prefix . "_crons");
while ($crontabelle = mysql_fetch_array($crons)) {
$i++;
$row = ($i % 2 == 0) ? 0 : 1;
echo '
<tr class="tabellenbody_' . $row . '">
<td valign="middle"><b>' . $crontabelle['bezeichnung'] . '</b><br>
<i>ID: ' . $crontabelle['id'] . '</i>
</td>
<td align="center" valign="middle">
<font color="#000080">' . date("d.m.Y - H:i:s", $crontabelle['laufzeit']) . '</font>
</td>
<td align="center" valign="middle">
<a href="../cron.php?id=' . $crontabelle['id'] . '&amp;pw=' . $cron_pw . '" target="_blank"><img src="images/gruen.gif" width="15" height="15" border="0" alt="Ausführen"></a>
</td>
</tr>
';
}
?>
</table>
<?php foot(); ?>
<?php
if (!isset($_POST['updaten'])) $_POST['updaten'] = '';
if ($_POST['updaten'] == 'Updaten !') {
db_query("UPDATE ".$db_prefix."_seitenkonfig SET
denied_domains='".$_POST['denied_domains']."',
wartung='".$_POST['wartung']."',
einzahlgrenze='".$_POST['einzahlgrenze']."',
re1='".$_POST['re1']."',
re2='".$_POST['re2']."',
re3='".$_POST['re3']."',
min_betteln = '".$_POST['min_betteln']."',
max_betteln = '".$_POST['max_betteln']."',
reload_betteln = '".$_POST['reload_betteln']."',
admin_name='".$_POST['admin_name']."',
admin_pass='".$_POST['admin_pass']."'
LIMIT 1") or die(mysql_error());
}
$interface = mysql_fetch_array(db_query("SELECT * FROM ".$db_prefix."_seitenkonfig LIMIT 1"));
head("Webseiteneinstellungen"); ?>
<form action="" method="post">
<table width="100%" align="center" border="0" cellpadding="1" cellspacing="1" bgcolor="#c0c0c0">
<tr bgcolor="#f0f0f0">
<td align="left"><b>Wartungsmodus</b><br><i>Wartungstext muss bearbeitet werden!</i></td>
<td align="left">&nbsp;<select name="wartung">
<option value="0" <?if ($interface['wartung'] == 0) echo 'SELECTED';?>>Deaktiviert&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>
<option value="1" <?if ($interface['wartung'] == 1) echo 'SELECTED';?>>Aktiviert</option>
</select>
</td>
</tr>
<tr bgcolor="#f5f5f5">
<td align="left"><b>Einzahlgrenze</b><br><i>Max. Guthaben pro User!</i></td>
<td align="left">&nbsp;<input type="Text" name="einzahlgrenze" value="<?php echo $interface['einzahlgrenze'];?>"> Nur Ganzzahlen</td>
</tr>
<tr bgcolor="#f0f0f0">
<td align="left"><b>Refebene 1</b><br><i>Angaben in Prozent!</i></td>
<td align="left">&nbsp;<input type="Text" name="re1" value="<?php echo $interface['re1'];?>"> Punkt statt Komma</td>
</tr>
<tr bgcolor="#f5f5f5">
<td align="left"><b>Refebene 2</b><br><i>Angaben in Prozent!</i></td>
<td align="left">&nbsp;<input type="Text" name="re2" value="<?php echo $interface['re2'];?>"> Punkt statt Komma</td>
</tr>
<tr bgcolor="#f0f0f0">
<td align="left"><b>Refebene 3</b><br><i>Angaben in Prozent!</i></td>
<td align="left">&nbsp;<input type="Text" name="re3" value="<?php echo $interface['re3'];?>"> Punkt statt Komma</td>
</tr>
<tr bgcolor="#f0f0f0">
<td align="left"><b>min. Verdienst (Bettelaufruf)</b></td>
<td align="left">&nbsp;<input type="Text" name="min_betteln" value="<?php echo $interface['min_betteln'];?>"> Punkt statt Komma</td>
</tr>
<tr bgcolor="#f0f0f0">
<td align="left"><b>max. Verdienst (Bettelaufruf)</b></td>
<td align="left">&nbsp;<input type="Text" name="max_betteln" value="<?php echo $interface['max_betteln'];?>"> Punkt statt Komma</td>
</tr>
<tr bgcolor="#f0f0f0">
<td align="left"><b>Reloadzeit (Bettelaufruf)</b><br><i>Angaben in Sekunden (3600 = 1 Stunde) (0 = Bettellink deaktiviert)</i></td>
<td align="left">&nbsp;<input type="Text" name="reload_betteln" value="<?php echo $interface['reload_betteln'];?>"> Nur Ganzzahlen</td>
</tr>
<tr bgcolor="#f0f0f0">
<td align="left"><b>Nicht erlaubte eMail-Domains</b><br><i>(Durch ; getrennt)</i></td>
<td align="left">&nbsp;<input type="Text" name="denied_domains" value="<?php echo $interface['denied_domains'];?>"></td>
</tr>
<tr bgcolor="#f0f0f0">
<td align="left"><b>Loginname (Adminforce)</b></td>
<td align="left">&nbsp;<input type="Text" name="admin_name" value="<?php echo $interface['admin_name'];?>"></td>
</tr>
<tr bgcolor="#f0f0f0">
<td align="left"><b>Passwort (Adminforce)</b></td>
<td align="left">&nbsp;<input type="Text" name="admin_pass" value="<?php echo $interface['admin_pass'];?>"></td>
</tr>
<tr>
<td align="center" colspan="2"><input type="Submit" name="updaten" value="Updaten !"></td>
</tr>
</table>
</form>
<?php foot(); ?>
\ No newline at end of file
<?php
if (!isset($titel)) $titel = '';
if (!isset($news)) $news = '';
if (!isset($id)) $id = '0';
if (!isset($_POST['auffuehren'])) $_POST['auffuehren'] = '0';
if (!isset($_POST['load'])) $_POST['load'] = '0';
if (!isset($_POST['loader'])) $_POST['loader'] = '0';
if ($_POST['news4'] == 'seite') {
db_query("UPDATE " . $db_prefix . "_kontodaten SET news='1' WHERE 1");
if ($_POST['id'] == 0) db_query("INSERT INTO " . $db_prefix . "_news (zeit,titel,news) VALUES ('" . time() . "','" . $_POST['titel'] . "','" . $_POST['news'] . "')");
if ($_POST['id'] >= 1) db_query("UPDATE " . $db_prefix . "_news SET titel='" . $_POST['titel'] . "',news='" . $_POST['news'] . "' WHERE id='" . $_POST['id'] . "'");
}
if ($_POST['news2'] == 'Newsletter und seite') {
db_query("UPDATE " . $db_prefix . "_kontodaten SET news='1' WHERE 1");
if ($_POST['id'] == 0) db_query("INSERT INTO " . $db_prefix . "_news (zeit,titel,news) VALUES ('" . time() . "','" . $_POST['titel'] . "','" . $_POST['news'] . "')");
if ($_POST['id'] >= 1) db_query("UPDATE " . $db_prefix . "_news SET titel='" . $_POST['titel'] . "',news='" . $_POST['news'] . "' WHERE id='" . $_POST['id'] . "'");
$empfaenger = db_query('SELECT emailadresse FROM ' . $db_prefix . '_emaildaten WHERE freigabe_fuer = 1 OR freigabe_fuer = 3 GROUP BY emailadresse');
while ($user = mysql_fetch_assoc($empfaenger)) usermail ($user['emailadresse'], $_POST['titel'], $_POST['news'], '"' . $seitenname . '" <' . $betreibermail . '>');
}
if ($_POST['news3'] == 'Newsletter') {
db_query("UPDATE " . $db_prefix . "_kontodaten SET news='1' WHERE 1");
$empfaenger = db_query('SELECT emailadresse FROM ' . $db_prefix . '_emaildaten WHERE freigabe_fuer = 1 OR freigabe_fuer = 3 GROUP BY emailadresse');