Lieber Besucher, herzlich willkommen bei: cms2day Forum - Community & Support rund ums cms2day. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 |
<?php //***************************************************************************\\ // \\ // Verwaltung von Werbepartner \\ // ==========================================================================\\ // Copyright (C) 2001 - 2007 RB Media Group, Alle Rechte vorbehalten \\ // \\ // \\ // INHALT: Funktionen zum Ausgeben der Links/Banner und der Kurzstatistik \\ // \\ // \\ // > Support ----------------------------------------------------------------\\ // \\ // Kostenloser Support ist über Emailkontakt zum Autor verfügbar. \\ // \\ //***************************************************************************\\ if (!@include_once("einstellungen.inc.php")) exit; if ((!$verbindung__ = @mysql_connect(SPONSOREN_SQL_HOST, SPONSOREN_SQL_BENUTZER, SPONSOREN_SQL_PASSWORT)) || !@mysql_select_db(SPONSOREN_SQL_DATENBANK)) exit; //---------------------------------------------------------------------------\\ // Welche Aktion soll durchgeführt werden? \\ if (isset($_GET['id']) && !isset($show_sponsor)) { //-------------------------------------------------------------------------\\ // Link aufrufen \\ if (sprintf("%u", $_GET['id']) == $_GET['id']) { //-----------------------------------------------------------------------\\ // URL und Status holen \\ $query__ = "SELECT `link_url` FROM `".TABLE_SPONSOREN."` WHERE (`id` = '".$_GET['id']."') AND `status`"; $result__ = mysql_query($query__); list($link_url__) = @mysql_fetch_row($result__); //-----------------------------------------------------------------------\\ // Existiert ein aktiver Sponsor mit der angegebenen ID? \\ if (!$link_url__) { //---------------------------------------------------------------------\\ // Wenn der Link nicht existiert, dann zur aktuellen Domain \\ // weiterleiten \\ $link_url__ = "http://".$_SERVER['HTTP_HOST']; } else { //---------------------------------------------------------------------\\ // Alle IP-Adressen löschen, welche die Sperrzeit überschritten haben \\ $sperrzeit__ = time() - (SPONSOREN_SYSTEM_IPSPERRE_STD*60*60 + SPONSOREN_SYSTEM_IPSPERRE_MIN*60); $query__ = "DELETE FROM ".TABLE_SPONSOREN_IPS." ". "WHERE (zeit <= '".$sperrzeit__."')"; mysql_query($query__); //---------------------------------------------------------------------\\ // IP-Adresse gesperrt? \\ $query__ = "SELECT count(id) FROM ".TABLE_SPONSOREN_IPS." ". "WHERE (ip = '".$_SERVER['REMOTE_ADDR']."') AND (link_id = '".$_GET['id']."')"; $result__ = mysql_query($query__); list($anzahl__) = @mysql_fetch_row($result__); if (!$anzahl__) { //-------------------------------------------------------------------\\ // Die IP-Adresse ist nicht gesperrt \\ // freie ID ermitteln \\ $query__ = "SELECT id FROM ".TABLE_SPONSOREN_IPS." ORDER BY id"; $result__ = mysql_query($query__); $ip_id__ = 1; while (list($id__) = @mysql_fetch_row($result__)) { if ($id__ != $ip_id__) break; ++$ip_id__; } //-------------------------------------------------------------------\\ // IP-Adresse eintragen \\ $query__ = "INSERT INTO ".TABLE_SPONSOREN_IPS. " (id, ip, link_id, zeit) ". "VALUES". " ('".$ip_id__."', '".$_SERVER['REMOTE_ADDR']."', '".$_GET['id']."', '".time()."')"; mysql_query($query__); //-------------------------------------------------------------------\\ // Den Klick-Counter erhöhen \\ $query__ = "UPDATE `".TABLE_SPONSOREN."` ". "SET `klicks` = (`klicks` + '1') ". "WHERE (`id` = '".$_GET['id']."')"; mysql_query($query__); } // IP-Adresse gesperrt? } // Existiert ein Link mit der angegebenen ID? header("Expires: -1"); header("Cache-Control: post-check=0, pre-check=0"); header("Pragma: no-cache"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); //-----------------------------------------------------------------------\\ // Link aufrufen \\ header("Location: ".stripslashes($link_url__)); } exit; } elseif (isset($show_sponsor)) { //-------------------------------------------------------------------------\\ // HTML-Code eines Links ausgeben [PHP] \\ // Zunächst alle Sponsoren, deren Werbemittel nicht mehr angezeigt werden \\ // darf aussortieren \\ $query__ = "SELECT `id`, `name`, `email` FROM `".TABLE_SPONSOREN."` ". "WHERE `status`". " AND (( (`typ` = '0') && (`klicks` >= `anzahl`) ) || ". " ( (`typ` = '1') && (`views` >= `anzahl`) ) || ". " ( (`typ` = '2') && ('".time()."' >= (`start` + ('".(60*60*24*30)."' * `anzahl`)) ) ))"; $result__ = mysql_query($query__); if ($result__) { $header__ = "From: ".EMAIL_ABSENDER."\n". "Content-Type: text/plain"; while (list($id__, $name__, $email__) = @mysql_fetch_row($result__)) { $nachricht__ = sprintf(stripslashes(EMAILINHALT_SPONSOR_DEAKTIVIERT), $id__, $name__, $email__, "gebuchte Klicks/Views/Monate wurden erreicht"); @mail("webmaster@rb-media-group.de", EMAILBETREFF_SPONSOR_DEAKTIVIERT, $nachricht__, $header__); $query__ = "UPDATE `".TABLE_SPONSOREN."` ". "SET `status` = '0' ". "WHERE (`id` = '".$id__."')"; mysql_query($query__); } } mt_srand((double)microtime()*1000000); $query__ = "SELECT `id`, `banner_url` FROM `".TABLE_SPONSOREN."` ". "WHERE `status` AND (`kategorie` = '".$show_sponsor."')"; $result__ = mysql_query($query__); $banner__ = array(); while (list($sponsor_id__, $banner_url__) = @mysql_fetch_row($result__)) { array_push($banner__, array($sponsor_id__, $banner_url__)); } if (count($banner__)) { //-------------------------------------------------------------------------\\ // Zufälliges Banner auswählen \\ $index__ = array_rand($banner__); $sponsor_id__ = $banner__[$index__][0]; $banner_url__ = $banner__[$index__][1]; if (!$sponsor_id__ || !$banner_url__) { echo ' '; } else { //-----------------------------------------------------------------------\\ // Views erhöhen \\ $query__ = "UPDATE `".TABLE_SPONSOREN."` ". "SET `views` = (`views` + '1') ". "WHERE (`id` = '".$sponsor_id__."')"; mysql_query($query__); $banner_url__ = stripslashes($banner_url__); echo '<a href="partner/klick.php?id='.$sponsor_id__.'" target="_blank">'. '<img src="'.$banner_url__.'" border="0" alt="Partner und Sponsoren Werbung"></a>'; } } unset($show_sponsor); } elseif (isset($show_stat) || isset($_GET['show_stat'])) { //-------------------------------------------------------------------------\\ // Gibt eine kleine Statistik aus \\ $query__ = "SELECT count(`id`), sum(`klicks`), sum(`views`) ". "FROM `".TABLE_SPONSOREN."`"; $result__ = mysql_query($query__); list($anzahl__, $klicks__, $views__) = @mysql_fetch_row($result__); if ($klicks__) $klickrate__ = number_format(100/($views__/$klicks__), 1, '.', '.')."%"; else $klickrate__ = "0.0%"; if ($anzahl__) $anzahl__ = sprintf("%02d", $anzahl__); if ($klicks__) $klicks__ = sprintf("%02d", $klicks__); if ($views__) $views__ = sprintf("%02d", $views__); echo "Anzahl der Werbepartner: [".$anzahl__."]<br>\n". "Anzahl der Klicks: [".$klicks__."]<br>\n". "Anzahl der Views: [".$views__."]<br>\n". "Durchschnittliche Klickrate: [".$klickrate__."]\n"; } @mysql_close($verbindung__); ?> |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"><head> <?php page_header(); ?><!-- || Template powered by cms2day - www.cms2day.de || --> <style type="text/css"> <!-- .style1 { font-size: 12px; font-family: Arial, Helvetica, sans-serif; color: #FFFFFF; } body { margin-top: 0px; } --> </style> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>index</title> </head> <body id="top"> <a id="top" name="top"></a> <a name="#" id="#"></a> <table border="0" cellpadding="0" cellspacing="0" width="1200"> <tbody> <tr> <td colspan="2" rowspan="4"> </td> <td height="100" colspan="9" valign="bottom" background="/images/321-auktionen_03.jpg"><img src="/images/321-auktionen_03.jpg" alt="" width="235" height="100" border="0" align="absbottom" /></td> <td colspan="17"> </td> <td> <img src="/images/spacer.gif" alt="" height="100" width="1" /></td> </tr> <tr> <td height="13" colspan="24"> <img src="/images/321-auktionen_06.jpg" alt="" height="13" width="915" /></td> <td height="0" rowspan="6" valign="top">SKYBANNER </td> <td rowspan="18"> </td> <td> <img src="/images/spacer.gif" alt="" height="13" width="1" /></td> </tr> <tr> <td height="42" colspan="9" background="/images/321-auktionen_10.jpg"> </td> <td colspan="2"> <a href="http://321-auktionen.de/"><img src="/images/321-auktionen_11.jpg" alt="" border="0" height="42" width="103" /></a></td> <td colspan="2"> <a href="http://321-auktionen.de/index.php?seite=2.321auktionen"><img src="/images/321-auktionen_12.jpg" alt="" border="0" height="42" width="137" /></a></td> <td colspan="3"> <a href="http://321-auktionen.de/index.php?seite=3.wiefunktionierts"><img src="/images/321-auktionen_13.jpg" alt="" border="0" height="42" width="151" /></a></td> <td colspan="3"> <a href="http://321-auktionen.de/index.php?seite=4.gestaltedeineauktion"><img src="/images/321-auktionen_14.jpg" alt="" border="0" height="42" width="178" /></a></td> <td colspan="4"> <a href="http://321-auktionen.de/index.php?seite=5.faq"><img src="/images/321-auktionen_15.jpg" alt="" border="0" height="42" width="81" /></a></td> <td background="/images/321-auktionen_16.jpg"> </td> <td> <img src="/images/spacer.gif" alt="" height="42" width="1" /></td> </tr> <tr> <td height="142" colspan="24" background="/images/321-auktionen_18.jpg"> </td> <td> <img src="/images/spacer.gif" alt="" height="141" width="1" /></td> </tr> <tr> <td colspan="4" background="/images/321-auktionen_19.jpg"> </td> <td colspan="20" background="/images/green.jpg" bgcolor="F3FCE9"> <div align="left"><span><?php page_claim(); ?></span></div> </td> <td colspan="2" background="/images/321-auktionen_21.jpg"> </td> <td> <img src="/images/spacer.gif" alt="" height="44" width="1" /></td> </tr> <tr> <td colspan="26" background="/images/321-auktionen_22.jpg"> </td> <td> <img src="/images/spacer.gif" alt="" height="22" width="1" /></td> </tr> <tr> <td colspan="3" rowspan="13"> </td> <td colspan="2" rowspan="2" background="/images/321-auktionen_24.jpg"> </td> <td colspan="18" rowspan="2" background="/images/white.jpg" bgcolor="#ffffff" valign="top"><?php page_content(); ?> </td> <td colspan="3" rowspan="2" images/321-auktionen_26.jpg="" background="/images/321-auktionen_26.jpg"> </td> <td> <img src="/images/spacer.gif" alt="" height="338" width="1" /></td> </tr> <tr> <td rowspan="12"> </td> <td> <img src="/images/spacer.gif" alt="" height="38" width="1" /></td> </tr> <tr> <td colspan="18" background="/images/321-auktionen_28.jpg"> </td> <td colspan="3" rowspan="9"> <a href="http://321-auktionen.de/index.php?seite=9.newsletter"><img src="/images/321-auktionen_29.jpg" alt="" border="0" height="179" width="73" /></a></td> <td colspan="2" rowspan="2" background="/images/321-auktionen_30.jpg"> </td> <td> <img src="/images/spacer.gif" alt="" height="20" width="1" /></td> </tr> <tr> <td colspan="17"> <img src="/images/321-auktionen_31.jpg" alt="" height="12" width="680" /></td> <td rowspan="5"> <a href="http://321-auktionen.de/index.php?seite=9.newsletter"><img src="/images/321-auktionen_32.jpg" alt="" border="0" height="102" width="80" /></a></td> <td> <img src="/images/spacer.gif" alt="" height="12" width="1" /></td> </tr> <tr> <td colspan="3" rowspan="5" background="/images/321-auktionen_33.jpg"> </td> <td colspan="6"> <img src="/images/321-auktionen_34.jpg" alt="" height="15" width="223" /></td> <td colspan="8" rowspan="2" background="/images/white.jpg"> </td> <td colspan="2" rowspan="8" background="/images/321-auktionen_36.jpg"> </td> <td> <img src="/images/spacer.gif" alt="" height="15" width="1" /></td> </tr> <tr> <td colspan="6"> <img src="/images/321-auktionen_37.jpg" alt="" height="8" width="223" /></td> <td> <img src="/images/spacer.gif" alt="" height="8" width="1" /></td> </tr> <tr> <td rowspan="3"> <img src="/images/321-auktionen_38.jpg" alt="" height="85" width="1" /></td> <td colspan="10" align="left" valign="top"><span style="color: rgb(0, 0, 0);"><?php $show_sponsor=0; include("partner/klick.php"); ?> <td colspan="3" rowspan="3" background="/images/321-auktionen_40.jpg"> </td> <td> <img src="/images/spacer.gif" alt="" height="60" width="1" /></td> </tr> <tr> <td colspan="10" rowspan="2"> <img src="/images/321-auktionen_41.jpg" alt="" height="25" width="468" /></td> <td> <img src="/images/spacer.gif" alt="" height="7" width="1" /></td> </tr> <tr> <td rowspan="4" background="/images/321-auktionen_42.jpg"> </td> <td> <img src="/images/spacer.gif" alt="" height="18" width="1" /></td> </tr> <tr> <td rowspan="3" background="/images/321-auktionen_43.jpg"> </td> <td colspan="6"> <a href="#top"><img src="/images/321-auktionen_44.jpg" alt="" border="0" height="22" width="147" /></a></td> <td colspan="4"> <a href="javascript:window.external.addPanel('321 Auktionen', 'http://321-auktionen.de/', '')"><img src="/images/321-auktionen_45.jpg" alt="" border="0" height="22" width="205" /></a></td> <td colspan="2"> <a href="http://321-auktionen.de/index.php?seite=6.unserepartner"><img src="/images/321-auktionen_46.jpg" alt="" border="0" height="22" width="120" /></a></td> <td colspan="3"> <a href="http://321-auktionen.de/index.php?seite=11.impressum"><img src="/images/321-auktionen_47.jpg" alt="" border="0" height="22" width="99" /></a></td> <td> <a href="http://321-auktionen.de/index.php?seite=8.kontakt"><img src="/images/321-auktionen_48.jpg" alt="" border="0" height="22" width="81" /></a></td> <td> <img src="/images/spacer.gif" alt="" height="22" width="1" /></td> </tr> <tr> <td colspan="4" rowspan="2" background="/images/321-auktionen_49.jpg"> </td> <td colspan="12" rowspan="2" background="/images/darkgreen.jpg" bgcolor="7DDC1E"> <p class="style1">Copyright 2009 by 321-Auktionen.de - Alle Rechte vorbehalten / cms powerd by <a href="http://cms2day.de">cms2day</a></p> </td> <td> <img src="/images/spacer.gif" alt="" height="17" width="1" /></td> </tr> <tr> <td colspan="3"> <img src="/images/321-auktionen_51.jpg" alt="" height="10" width="73" /></td> <td> <img src="/images/spacer.gif" alt="" height="10" width="1" /></td> </tr> <tr> <td colspan="6" background="/images/321-auktionen_52.jpg"> </td> <td colspan="13" background="/images/321-auktionen_53.jpg"> </td> <td colspan="4" background="/images/321-auktionen_54.jpg"> </td> <td> <img src="/images/spacer.gif" alt="" height="26" width="1" /></td> </tr> <tr> <td> <img src="/images/spacer.gif" alt="" height="1" width="12" /></td> <td> <img src="/images/spacer.gif" alt="" height="1" width="61" /></td> <td> <img src="/images/spacer.gif" alt="" height="1" width="44" /></td> <td> <img src="/images/spacer.gif" alt="" height="1" width="28" /></td> <td> <img src="/images/spacer.gif" alt="" height="1" width="8" /></td> <td> <img src="/images/spacer.gif" alt="" height="1" width="10" /></td> <td> <img src="/images/spacer.gif" alt="" height="1" width="1" /></td> <td> <img src="/images/spacer.gif" alt="" height="1" width="10" /></td> <td> <img src="/images/spacer.gif" alt="" height="1" width="31" /></td> <td> <img src="/images/spacer.gif" alt="" height="1" width="87" /></td> <td> <img src="/images/spacer.gif" alt="" height="1" width="16" /></td> <td> <img src="/images/spacer.gif" alt="" height="1" width="78" /></td> <td> <img src="/images/spacer.gif" alt="" height="1" width="25" /></td> <td> <img src="/images/spacer.gif" alt="" height="1" width="86" /></td> <td> <img src="/images/spacer.gif" alt="" height="1" width="51" /></td> <td> <img src="/images/spacer.gif" alt="" height="1" width="69" /></td> <td> <img src="/images/spacer.gif" alt="" height="1" width="15" /></td> <td> <img src="/images/spacer.gif" alt="" height="1" width="67" /></td> <td> <img src="/images/spacer.gif" alt="" height="1" width="17" /></td> <td> <img src="/images/spacer.gif" alt="" height="1" width="81" /></td> <td> <img src="/images/spacer.gif" alt="" height="1" width="80" /></td> <td> <img src="/images/spacer.gif" alt="" height="1" width="25" /></td> <td> <img src="/images/spacer.gif" alt="" height="1" width="40" /></td> <td> <img src="/images/spacer.gif" alt="" height="1" width="8" /></td> <td> <img src="/images/spacer.gif" alt="" height="1" width="8" /></td> <td> <img src="/images/spacer.gif" alt="" height="1" width="30" /></td> <td> <img src="/images/spacer.gif" alt="" height="1" width="120" /></td> <td> <img src="/images/spacer.gif" alt="" height="1" width="92" /></td> <td></td> </tr> </tbody> </table> <br /> <!-- End ImageReady Slices --> <strong></strong> </body></html> |
PHP-Quelltext |
|
1 2 |
if ((!$verbindung__ = @mysql_connect(SPONSOREN_SQL_HOST, SPONSOREN_SQL_BENUTZER, SPONSOREN_SQL_PASSWORT)) || !@mysql_select_db(SPONSOREN_SQL_DATENBANK))
exit;
|
PHP-Quelltext |
|
1 |
@mysql_close($verbindung__);
|
Wenn ich die Zeilen rauslösche funzt der Bannerbereich gar nicht mehr!
Also wird kein Banner mehr angezeigt, in der gleichen Datenbank ist das Script nicht installiert denke nur auf dem gleichen server.