host = $db_host; $db_connect->password = $db_password; $db_connect->user = $db_user; $db_connect->database = $db_name; $db_connect->connect(); ## Besucherstats include ('inc/statistik.xyz.php'); echo ' '.$config->Projektname.'
CouponGigant.de '; ############### $BannerCheck = mysql_query("select count(*) from news_werbebanner where Aktiv = '0' and Ort = '1'"); $BannerCheck = mysql_fetch_array($BannerCheck); if ($BannerCheck[0] == 0) $OK = 1; if ($OK == 1) echo "\"Momentan"; if ($OK != 1) { $Banner = mysql_query("select * from news_werbebanner where Aktiv = '0' and Ort = '1' order by rand() limit 1"); while ($result = mysql_fetch_array($Banner)) { if ($result[Art] == 1) echo "\"Werbung"; if ($result[Art] == 2) echo "$result[BannerCode]"; $Views = $result[Views] + 1; mysql_query("update news_werbebanner set Views = '$Views' where ID = '$result[ID]'"); } } ############### echo '
'; ########################## HEADER ENDE ######################################### echo '
Textlink-Ads: '; ############### $TextlinkCheck = mysql_query("select count(*) from news_werbetextlink where Aktiv = '0'"); $TextlinkCheck = mysql_fetch_array($TextlinkCheck); if ($TextlinkCheck[0] == 0) $OK = 1; if ($OK == 1) echo "Momentan kein Werbetextlink vorhanden!"; if ($OK != 1) { $Textlink = mysql_query("select * from news_werbetextlink where Aktiv = '0' order by rand() limit 3"); $c=0; while ($result = mysql_fetch_array($Textlink)) { $c++; if ($result[Art] == 1) echo "$result[Text]"; if ($result[Art] == 2) echo "$result[TextlinkCode]"; $Views = $result[Views] + 1; mysql_query("update news_werbetextlink set Views = '$Views' where ID = '$result[ID]'"); if ($c<3) echo " .:. "; } } ############### echo '
'; if (!$config->Wartung) { if ($section=="") include "home.php"; if ($section=="activate") include "unterseiten/activate.php"; if ($section=="impressum") include "unterseiten/impressum.php"; if ($section=="werbung_buchen") include "unterseiten/werbungbuchen.php"; if ($section=="redaktion") include "unterseiten/redaktion.php"; if ($section=="gewinnspiel") include "unterseiten/gewinnspiel.php"; if ($section=="agb") include "unterseiten/agb.php"; if ($section=="archiv") include "unterseiten/archiv.php"; if ($section=="abbestellen") include "unterseiten/abbestellen.php"; } if ($config->Wartung) { } echo '



'; ############### $BannerCheck = mysql_query("select count(*) from news_werbebanner where Aktiv = '0' and Ort = '2'"); $BannerCheck = mysql_fetch_array($BannerCheck); if ($BannerCheck[0] == 0) $OK = 1; if ($OK == 1) echo "\"Momentan"; if ($OK != 1) { $Banner = mysql_query("select * from news_werbebanner where Aktiv = '0' and Ort = '2' order by rand() limit 1"); while ($result = mysql_fetch_array($Banner)) { if ($result[Art] == 1) echo "\"Werbung"; if ($result[Art] == 2) echo "$result[BannerCode]"; $Views = $result[Views] + 1; mysql_query("update news_werbebanner set Views = '$Views' where ID = '$result[ID]'"); } } ############### echo '

Weitere Empfehlungen: '; $Patnerseiten = mysql_query("select * from news_partnerseiten where Aktiv = '1' order by rand() limit 10"); while ($result = mysql_fetch_array($Patnerseiten)) { echo " $result[Name]"; } $result = $db_connect->single_row("select sum(Besucher), sum(PageImpressions) from news_besucherstats"); $BesucherGesamt = $result[0]; $PIGesamt = $result[1]; $result = $db_connect->single_row("select sum(Besucher), sum(PageImpressions) from news_besucherstats where datum = curdate()"); $BesucherHeute = $result[0]; $PIHeute = $result[1]; echo << '.FormatZahl($BesucherGesamt,0).' Besucher gesamt | '.FormatZahl($BesucherHeute,0).' Besucher heute | '.FormatZahl($PIGesamt,0).' Hits gesamt | '.FormatZahl($PIHeute,0).' Hits heute
END; If ($gopbid) { $LINK = mysql_query("select * from news_partnerbuttons where ID = '$gopbid'"); $result = mysql_fetch_array($LINK); $HITS = $result[Hits]+1; mysql_query("update news_partnerbuttons set Hits = '$HITS' where ID = '$gopbid'"); } If ($goplid) { $LINK = mysql_query("select * from news_partnerseiten where ID = '$goplid'"); $result = mysql_fetch_array($LINK); $HITS = $result[Hits]+1; mysql_query("update news_partnerseiten set Hits = '$HITS' where ID = '$goplid'"); } ?>