<?php
if(!isset($_GET['page'])) {
require_once('rss.php');
}
require_once ('includes/MXIncludes/mxincludes.php');
?>
<?php
//Connection statement
require_once('Connections/wallpaper.php');
session_start();
$id_user = $_SESSION['kt_login_user'];
mysql_query("UPDATE tbl_user SET killtime = now() WHERE username = '$id_user'") or die(mysql_error());
mysql_query("UPDATE tbl_user SET online = 1 WHERE username = '$id_user'") or die(mysql_error());
//löschen der alten Sessions
mysql_query("UPDATE tbl_user SET online = 0 WHERE killtime < date_sub(now(), interval 20 minute)") or die(mysql_error());
//mysql_query("UPDATE tbl_user SET killtime = 0 WHERE killtime < date_sub(now(), interval 20 minute)") or die(mysql_error());
if($_GET['KT_logout_now'] == 1) {
mysql_query("UPDATE tbl_user SET online = 0 WHERE username = '$id_user'") or die(mysql_error());
}
// begin Recordset
$query_useronline = "SELECT id_user FROM tbl_user WHERE online = 1";
$useronline = $wallpaper->SelectLimit($query_useronline) or die($wallpaper->ErrorMsg());
$totalRows_useronline = $useronline->RecordCount();
// end Recordset
//Aditional Functions
require_once('includes/functions.inc.php');
// Load the common classes
require_once('includes/common/KT_common.php');
// Load the rating classes
require_once('includes/jaxon/widgets/rating/rating.php');
$rating1 = new Rating("rating1");
$rating1->setConnection("wallpaper");
$rating1->setTable("tbl_uploads");
$rating1->setPrimaryKey("id_uploads");
$rating1->setRatingField("bewertung");
$rating1->setNumberOfRatesField("bewertung_nr");
$rating1->setRelPath("");
$ajax_service = new AjaxService();
$ajax_service->exportMethod('rating1', 'saveRating');
$ajax_service->handleAjaxRequest();
// define parameters
$paramName='page';
$includes = array();
$includes['test']=Array('test.php','Wallpaper Area :: Testseite');
$includes['register']=Array('register.php','Wallpaper Area :: Registrierung');
$includes['login']=Array('login.php','Wallpaper Area :: Login');
$includes['upload']=Array('upload.php','Wallpaper Area :: Upload-Formulare');
$includes['fail']=Array('fail.php','Wallpaper Area :: Warnung');
$includes['preview']=Array('preview.php','Wallpaper Area :: Vorschau');
$includes['preview2']=Array('preview2.php','Wallpaper Area :: Gesamt Klicks');
$includes['wallpaper']=Array('wallpaper.php','Wallpaper Area :: Wallpaper Download');
$includes['upload_ok']=Array('upload_ok.php','Wallpaper Area :: Hochgeladen');
$includes['uploader']=Array('uploader.php','Wallpaper Area :: Mitgliederliste');
$includes['preview_uploader']=Array('preview_uploader.php','Wallpaper Area :: Persönliche Seite');
$includes['mehrfachupload']=Array('mehrfachupload.php','Wallpaper Area :: Mehrfach-Upload');
$includes['forgot_password']=Array('forgot_password.php','Wallpaper Area :: Passwort vergessen');
$includes['kommentar_hinzu']=Array('kommentar_hinzu.php','Wallpaper Area :: Kommentare');
$includes['uploader_kontaktieren']=Array('uploader_kontaktieren.php','Wallpaper Area :: Kontakt');
$includes['gaestebuch']=Array('gaestebuch.php','Wallpaper Area :: Gästebuch');
$includes['kontakt']=Array('kontakt.php','Wallpaper Area :: Kontakt-Formular');
$includes['danke']=Array('danke.php','Wallpaper Area :: Kontakt Danke');
$includes['link-us']=Array('link-us.php','Wallpaper Area :: Link us');
$includes['partner-liste']=Array('partner-liste.php','Wallpaper Area :: Partner');
$includes['werben-danke']=Array('werben-danke.php','Wallpaper Area :: Werben Danke');
$includes['werben']=Array('werben.php','Wallpaper Area :: Werben');
$includes['nutzungsbedingungen']=Array('nutzungsbedingungen.php','Wallpaper Area :: Nutzungsbedingungen');
$includes['datenschutz']=Array('datenschutz.php','Wallpaper Area :: Datenschutz');
$includes['impressum']=Array('impressum.php','Wallpaper Area :: Impressum');
$includes['vorregister']=Array('vorregister.php','Wallpaper Area :: Akzeptieren oder Ablehnen');
$includes['video']=Array('video.php','Wallpaper Area :: Video');
$includes['news']=Array('news.php','Wallpaper Area :: Aktuelle News');
$includes['news-2008']=Array('news-2008.php','Wallpaper Area :: News 2008');
$includes['empfehlungen']=Array('empfehlungen.php','Wallpaper Area :: Empfehlungen');
$includes['monatsuploads']=Array('monatsuploads.php','Wallpaper Area :: Monatsuploads');
$includes['wettbewerb']=Array('wettbewerb.php','Wallpaper Area :: Wettbewerb');
$includes['unterkategorien']=Array('unterkategorien.php','Wallpaper Area :: Alle Unterkategorien');
$includes['klicks-wps']=Array('klicks-wps.php','Wallpaper Area :: WPs nach Klicks');
$includes['bereits-vorhanden']=Array('bereits-vorhanden.php','Wallpaper Area :: Wallpaper bereits vorhanden');
$includes['statistiken']=Array('statistiken.php','Wallpaper Area :: Statistiken');
$includes['werbengratis']=Array('werbengratis.php','Wallpaper Area :: Gratis Werben');
$includes['werbengratis-danke']=Array('werbengratis-danke.php','Wallpaper Area :: Dank-Seite');
$includes['klicks-wps-monat']=Array('klicks-wps-monat.php','Wallpaper Area :: Wallpapers des Monats');
$includes['klicks-wps-woche']=Array('klicks-wps-woche.php','Wallpaper Area :: Wallpapers der Woche');
$includes['klicks-wps-tag']=Array('klicks-wps-tag.php','Wallpaper Area :: Wallpapers des Tages');
//end define parameters
// Load the tNG classes
require_once('includes/tng/tNG.inc.php');
// Make a transaction dispatcher instance
$tNGs = new tNG_dispatcher("");
// begin Recordset
$query_q_kat_navi = "SELECT * FROM tbl_kategorie ORDER BY kategorie ASC";
$q_kat_navi = $wallpaper->SelectLimit($query_q_kat_navi) or die($wallpaper->ErrorMsg());
$totalRows_q_kat_navi = $q_kat_navi->RecordCount();
// end Recordset
// Make a logout transaction instance
$logoutTransaction = new tNG_logoutTransaction($wallpaper);
$tNGs->addTransaction($logoutTransaction);
// Register triggers
$logoutTransaction->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "GET", "KT_logout_now");
$logoutTransaction->registerTrigger("END", "Trigger_Default_Redirect", 99, "index.php");
// Add columns
// End of logout transaction instance
// Execute all the registered transactions
$tNGs->executeTransactions();
// Get the transaction recordset
$rscustom = $tNGs->getRecordset("custom");
$totalRows_rscustom = $rscustom->RecordCount();
if($_GET['page'] == "wallpaper") {
// begin Recordset
$KTColParam1__querywallpaper = '0';
if (isset($_GET["id"])) {
$KTColParam1__querywallpaper = $_GET["id"];
}
$query_querywallpaper = sprintf("SELECT tbl_unterkategorie.kategorie AS kategorie_1, tbl_user.id_user, tbl_kategorie.id_kategorie, tbl_user.username, tbl_uploads.bewertung_nr AS bewertung_nr_1, tbl_user.bewertung, tbl_user.website, tbl_uploads.bewertung AS bewertung_1, tbl_kategorie.kategorie, tbl_user.bewertung_nr, tbl_unterkategorie.id_unterkategorie, tbl_uploads.id_user AS id_user_1, tbl_uploads.id_kategorie AS id_kategorie_1, tbl_uploads.id_uploads, tbl_uploads.bildpfad, tbl_uploads.keywords, tbl_uploads.timestamp, tbl_uploads.name, tbl_uploads.aktiv, tbl_uploads.klicks, tbl_uploads.tagesklicks FROM (((tbl_uploads LEFT JOIN tbl_unterkategorie ON tbl_unterkategorie.id_unterkategorie=tbl_uploads.id_unterkategorie) LEFT JOIN tbl_kategorie ON tbl_kategorie.id_kategorie=tbl_uploads.id_kategorie) LEFT JOIN tbl_user ON tbl_user.id_user=tbl_uploads.id_user) WHERE tbl_uploads.id_uploads=%s AND tbl_uploads.aktiv=1 ", GetSQLValueString($KTColParam1__querywallpaper, "int"));
$querywallpaper = $wallpaper->SelectLimit($query_querywallpaper) or die($wallpaper->ErrorMsg());
$totalRows_querywallpaper = $querywallpaper->RecordCount();
// end Recordset
}
@include("countmegood.php");
//PHP ADODB document - made with PHAkt 3.7.1
?>
<?php
include('Scripts/fontsize.inc.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php //PHP ADODB document - made with PHAkt 3.7.1?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<?php include_once("meta.php"); ?>
<?php if (isset($_GET['d']) && $_GET['d'] == 'druckvorschau') { ?>
<link rel="stylesheet" type="text/css" media="screen" href="print.css" />
<?php } else { ?>
<link rel="stylesheet" type="text/css" media="screen" href="style.css" />
<?php } ?>
<link rel="stylesheet" type="text/css" media="print" href="print.css" />
<link href="includes/skins/mxkollection3.css" rel="stylesheet" type="text/css" media="all" />
<link rel="stylesheet" type="text/css" href="Scripts/fontsize.css.php" />
<script type="text/javascript" src="script/prototype.js"></script>
<script type="text/javascript" src="script/function.js"></script>
<script type="text/javascript" src="includes/common/js/base.js"></script>
<script type="text/javascript" src="includes/common/js/utility.js"></script>
<script type="text/javascript" src="includes/skins/style.js"></script>
<script type="text/javascript" src="Scripts/AC_RunActiveContent.js"></script>
<script type="text/javascript" src="includes/common/js/sigslot_core.js"></script>
<script type="text/javascript" src="includes/wdg/classes/MXWidgets.js"></script>
<script type="text/javascript" src="includes/wdg/classes/MXWidgets.js.php"></script>
<script type="text/javascript" src="includes/wdg/classes/JSRecordset.js"></script>
<script type="text/javascript" src="includes/wdg/classes/DependentDropdown.js"></script>
<script type="text/javascript" src="Scripts/dropinslideshow.js"></script>
<script type="text/javascript" language="javascript">
<!--
function favoris() {
if ( navigator.appName != 'Microsoft Internet Explorer' )
{ window.sidebar.addPanel("Wallpaper Area","http://www.wallpaper-area.ch/",""); }
else { window.external.AddFavorite("http://www.wallpaper-area.ch/","Wallpaper Area"); } }
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function popup(url) {
fenster=window.open(url, "Popupfenster", "width=1000,height=570,resizable=yes,scrollbars=yes,toolbar=no,locationbar=no,menubar=no,statusbar=no");
fenster.focus();
return false;
}
//-->
</script>
<!-- TradeDoubler site verification 1626174 -->
</head>
<body onload="UhrzeitAnzeigen();">
<script type="text/javascript" src="tooltip/wz_tooltip.js"></script>
<div id="header"><span class="zeichen">.:</span><span class="titel"> Wallpaper Area & Wallpaper Community </span><span class="zeichen">:. </span></div>
<div id="banner">
//um code zu verkürzen habe ich hier die flashmovies noch entfernt
</div>
<div id="navilinks">
<div id="headerinhalt"><span class="zeichen">.:</span> <span class="titel">Site Menu</span> <span class="zeichen">:. </span></div>
<div style="padding:10px;">
<span class="loz">◊ </span><a href="index.php" class="linkkategorie"<?php if(!isset($_GET['page'])) { ?> style="color:#FF0000;"<?php } ?>>Home</a><br />
<span class="loz">◊ </span><a href="index.php?page=news" class="linkkategorie"<?php if($_GET['page'] == "news") { ?> style="color:#FF0000;"<?php } ?> title="Aktualisiert am 14.05.2009">News</a><!-- <span class="updatenews">Aktualisiert!</span>--><br />
<span class="loz">◊ </span><a href="forum/index.php" id="linkkategorie" target="_blank" class="externsitenavi">Forum</a><br />
<br />
<?php
//Show If User Is Logged In (region1)
$isLoggedIn = new tNG_UserLoggedIn($wallpaper);
//Grand Levels: Any
if ($isLoggedIn->Execute()) {
?>
<span class="loz">◊ </span>Benutzer: <strong><a href="?page=preview_uploader&id_user=<?php echo $_SESSION['kt_login_id'] ?>" title="Deine persönliche Seite..."><?php echo $_SESSION['kt_login_user']; ?></a></strong><br />
<span class="loz">◊ </span><a href="?page=upload" class="linkkategorie"<?php if($_GET['page'] == "upload") { ?> style="color:#FF0000;"<?php } ?> >Wallpaper uploaden</a><br />
<span class="loz">◊ </span><a href="<?php echo $logoutTransaction->getLogoutLink(); ?>" class="linkkategorie">Logout</a>
<br />
<?php
// else Show If User Is Logged In (region1)
} else { ?>
<span class="loz">◊ </span><a href="?page=vorregister" class="linkkategorie"<?php if($_GET['page'] == "vorregister") { ?> style="color:#FF0000;"<?php } ?> >Registrieren</a><br />
<span class="loz">◊ </span><a href="?page=login" class="linkkategorie"<?php if($_GET['page'] == "login") { ?> style="color:#FF0000;"<?php } ?> >Login</a> <br />
<?php
}
//End Show If User Is Logged In (region1)
?>
<br />
<span class="loz">◊ </span><a href="?page=uploader" class="linkkategorie"<?php if($_GET['page'] == "uploader") { ?> style="color:#FF0000;"<?php } ?> title="Achtung, lange Ladezeit da alle Mitglieder ermittelt werden!">Aktive Mitglieder</a><br />
<span class="loz">◊ </span><?php echo $totalRows_useronline ?> Mitglieder online<br />
<span class="loz">◊ </span><?php echo $count=$count-4 ." Besucher online<br />"; ?>
<br />
<span class="loz">◊ </span><a href="index.php?page=kontakt" class="linkkategorie"<?php if($_GET['page'] == "kontakt") { ?> style="color:#FF0000;"<?php } ?> >Kontakt</a><br />
<span class="loz">◊ </span><a href="index.php?page=gaestebuch" class="linkkategorie"<?php if($_GET['page'] == "gaestebuch") { ?> style="color:#FF0000;"<?php } ?> >Gästebuch</a><br />
<span class="loz">◊ </span><a href="index.php?page=werbengratis" class="linkkategorie"<?php if($_GET['page'] == "werbengratis") { ?> style="color:#FF0000;"<?php } ?> >Gratis Werben</a><br />
<br />
<span class="loz">◊ </span><a href="index.php?page=link-us" class="linkkategorie"<?php if($_GET['page'] == "link-us") { ?> style="color:#FF0000;"<?php } ?> >Link us</a><br />
<span class="loz">◊ </span><a href="index.php?page=partner-liste" class="linkkategorie"<?php if($_GET['page'] == "partner-liste") { ?> style="color:#FF0000;"<?php } ?> >Partner</a><br />
<span class="loz">◊ </span><a href="index.php?page=empfehlungen" class="linkkategorie"<?php if($_GET['page'] == "empfehlungen") { ?> style="color:#FF0000;"<?php } ?> >Web-Tipps</a><br />
<br />
<span class="loz">◊ </span><a href="index.php?page=statistiken" class="linkkategorie"<?php if($_GET['page'] == "statistiken") { ?> style="color:#FF0000;"<?php } ?> >Statistiken & Qualität</a><br />
<span class="loz">◊ </span><a href="javascript:void(favoris());" class="linkkategorie" title="Die Wallpaper Area zu Ihren Favoriten hinzufügen...">Zu Ihren Favoriten</a><br />
<span class="loz">◊ </span><a href="empfehlen/empfehlen.php" target="blank" title="Empfehlen Sie die aktuelle Seite..." onclick="window.open('', 'blank', 'width=450,height=380,resizeable=no,scrollbars=yes,toolbar=no,locationbar=no,menubar=no,statusbar=no')" class="linkkategorie">Empfehlen Sie uns</a> <img src="images/layout/icon_info.png" width="12" height="12" border="0" onmouseover="Tip('Die Startseite der Wallpaper Area ist bereits in Ihrer Empfehlung vorhanden!<br />Idee: Empfehlen Sie doch Ihre persönliche Seite mit Ihren Wallpaper-Kreationen.<br />Wie? Klicken Sie auf diesen Link wenn Sie sich auf Ihre persönliche Seite befinden.<br />Natürlich können Sie so auch jede andere Seite empfehlen mit diesem System.')" alt="none" /><br />
<br />
<span class="loz">◊ </span><a href="index.php?page=nutzungsbedingungen" class="linkkategorie"<?php if($_GET['page'] == "nutzungsbedingungen") { ?> style="color:#FF0000;"<?php } ?> >Nutzungsbedingungen</a><br />
<span class="loz">◊ </span><a href="index.php?page=datenschutz" class="linkkategorie"<?php if($_GET['page'] == "datenschutz") { ?> style="color:#FF0000;"<?php } ?> >Datenschutz</a><br />
<span class="loz">◊ </span><a href="index.php?page=impressum" class="linkkategorie"<?php if($_GET['page'] == "impressum") { ?> style="color:#FF0000;"<?php } ?> >Impressum</a><br />
<br />
<span class="loz">◊ </span><span style="font-size:80%"><?php print(get_fontsize_link('dec', 'A')); ?></span> <span style="font-size:100%"><?php print(get_fontsize_link('base', 'A')); ?></span> <span style="font-size:125%"><?php print(get_fontsize_link('inc', 'A')); ?></span> <img src="images/layout/icon_info.png" width="12" height="12" border="0" onmouseover="Tip('⇒ Linkes "A" Schriftverkleinerung...<br />⇒ Mittleres "A" Normalansicht...<br />⇒ Rechtes "A" Schriftvergrösserung...<br /><br />Ihre bevorzugte Einstellung wird gespeichert,<br />mehrfach Vergrössern oder Verkleiner ist möglich.')" alt="none" /><br />
<br />
<span class="loz">◊ </span>
<?php
if($_GET['page'] == 'home')
{
$html = '<a onclick="return popup(this.href);" href="http://www.wallpaper-area.ch/index.php?page=home&d=druckvorschau" target="_blank"><img src="images/layout/print-preview.png" width="16" height="16" border="0" alt="" /></a>';
}
else
{
$html = '<a onclick="return popup(this.href);" href="http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].'&d=druckvorschau" target="_blank"><img src="images/layout/print-preview.png" width="16" height="16" border="0" alt="" /></a>';
} ?>
<?php echo $html ?>
<a href="javascript:window.print()" title="Diese Seite wie die Druckvorschau-Version ausdrucken..."><img src="images/layout/drucker.png" width="16" height="16" border="0" alt="Diese Seite wie die Druckvorschau-Version ausdrucken..." /></a> <img src="images/layout/icon_info.png" width="12" height="12" border="0" onmouseover="Tip('⇒ Linkes Symbol ruft die Hauptseite Druckvorschau auf...<br />⇒ Mittleres Symbol ruft die aufgerufte Seite als Druckvorschau...<br />⇒ Rechtes Symbol um Ihr Druckermenü aufzurufen...<br /><br />Tipp: Als erstes die Druckvorschau aufrufen und im Popup dann<br />auf das Drucksymbol klicken.')" alt="none" /><br />
<br />
<div id="tools-left">
<span class="loz">◊ </span><a href="http://www.wallpaper-area.ch/wallpaper/wallpaper.xml" class="linkkategorie" target="_blank" title="Abonnieren Sie unsere RSS Feeds mit den neusten Wallpaper-Uploads..."><img src="images/layout/rss.gif" width="28" height="10" border="0" alt="Abonnieren Sie unsere RSS Feeds mit den neusten Wallpaper-Uploads..." /></a><br />
<br />
<!-- anfang zwischenlinie -->
<hr size="1" noshade="noshade" />
<!-- ende zwischenlinie -->
<div class="titel" align="center"><span class="zeichen">.:</span> Besucherzahlen <span class="zeichen">:. </span></div>
<br />
<span class="loz">◊ </span><?php echo $heute." Besucher heute<br />"; ?>
<span class="loz">◊ </span><?php echo $gestern." Besucher gestern<br />"; ?>
<span class="loz">◊ </span><?php echo $gesamt." Besucher gesamt<br />"; ?>
<span class="loz">◊ </span>Best 1212 Besucher <img src="images/layout/icon_info.png" width="12" height="12" border="0" onmouseover="Tip('Bisheriger Besucher-Rekord war am 22.05.2009')" alt="" /><br />
<span class="loz">◊ </span>Start am 23.04.2009<br />
<br />
<!-- anfang zwischenlinie -->
<hr size="1" noshade="noshade" />
<!-- ende zwischenlinie -->
<?php include("bookmarken.php"); ?>
<br />
<!-- anfang zwischenlinie -->
<hr size="1" noshade="noshade" />
<!-- ende zwischenlinie -->
<?php include("partner.php"); ?>
<br />
<!-- anfang zwischenlinie -->
<hr size="1" noshade="noshade" />
<!-- ende zwischenlinie -->
<?php include("suche-ch.php"); ?>
<br />
<!-- anfang zwischenlinie -->
<hr size="1" noshade="noshade" />
<!-- ende zwischenlinie -->
<?php include("quality.php"); ?>
<!-- anfang zwischenlinie -->
<hr size="1" noshade="noshade" />
<!-- ende zwischenlinie -->
<?php include("sidebar-werbung.php"); ?>
</div>
</div>
</div>
<div id="navirechts">
<div class="titel" id="headerinhalt2"><span class="zeichen">.:</span> Wallpaper Menu <span class="zeichen">:. </span></div>
<div style="padding:10px;">
<?php
// begin Recordset
$query_uploadsalle = "SELECT id_uploads FROM tbl_uploads WHERE aktiv = 1";
$uploadsalle = $wallpaper->SelectLimit($query_uploadsalle) or die($wallpaper->ErrorMsg());
$totalRows_uploadsalle = $uploadsalle->RecordCount();
// end Recordset
?>
<span class="loz">◊ </span><a href="index.php?page=unterkategorien" class="linkkategorie" <?php if($_GET['page'] == "unterkategorien") { ?> style="color:#FF0000;"<?php } ?> >Alle Unterkategorien</a> <img src="images/layout/icon_tip.png" width="12" height="12" border="0" onmouseover="Tip('Hier werden Ihnen alle Unterkategorien der Wallpaper Area<br />mit der Anzahl an vorhandenen Wallpapers angezeigt...')" alt="" /><br />
<br />
<?php
while (!$q_kat_navi->EOF) {
?>
<?php
$id_kategorie = $q_kat_navi->Fields('id_kategorie');
// begin Recordset
$query_uploads = "SELECT id_uploads FROM tbl_uploads WHERE id_kategorie ='$id_kategorie' AND aktiv = 1";
$uploads = $wallpaper->SelectLimit($query_uploads) or die($wallpaper->ErrorMsg());
$totalRows_uploads = $uploads->RecordCount();
// end Recordset
?>
<span class="loz">◊ </span><a href="?page=preview&id_kategorie=<?php echo $q_kat_navi->Fields('id_kategorie'); ?>" <?php if($_GET['id_kategorie'] == $q_kat_navi->Fields('id_kategorie')) { ?>class="linkkategorieaktiv" <?php } else { ?>class="linkkategorie"<?php } ?>><?php echo $q_kat_navi->Fields('kategorie'). " (".$totalRows_uploads.")"; ?></a><br />
<?php if($_GET['id_kategorie'] == $q_kat_navi->Fields('id_kategorie')) { ?>
<?php
$id_kategorie = $q_kat_navi->Fields('id_kategorie');
// begin Recordset
$query_q_kat_unternavi = "SELECT * FROM tbl_unterkategorie WHERE id_kategorie ='$id_kategorie' ORDER BY kategorie ASC";
$q_kat_unternavi = $wallpaper->SelectLimit($query_q_kat_unternavi) or die($wallpaper->ErrorMsg());
$totalRows_q_kat_unternavi = $q_kat_unternavi->RecordCount();
// end Recordset
?> <?php
while (!$q_kat_unternavi->EOF) {
?>
<?php
$id_unterkategorie = $q_kat_unternavi->Fields('id_unterkategorie');
// begin Recordset
$query_uploadsunter = "SELECT id_uploads FROM tbl_uploads WHERE id_unterkategorie ='$id_unterkategorie' AND aktiv = 1";
$uploadsunter = $wallpaper->SelectLimit($query_uploadsunter) or die($wallpaper->ErrorMsg());
$totalRows_uploadsunter = $uploadsunter->RecordCount();
// end Recordset
?>
<span class="loz">◊ </span><a href="?page=preview&id_kategorie=<?php echo $q_kat_navi->Fields('id_kategorie'); ?>&id_unterkategorie=<?php echo $q_kat_unternavi->Fields('id_unterkategorie'); ?>" <?php if($_GET['id_unterkategorie'] == $q_kat_unternavi->Fields('id_unterkategorie')) { ?>class="linkkategorieaktiv" <?php } else { ?>class="linkkategorie"<?php } ?>><?php echo $q_kat_unternavi->Fields('kategorie'). " (".$totalRows_uploadsunter.")"; ?></a><br />
<?php
$q_kat_unternavi->MoveNext();
}
?><?php } ?>
<?php
$q_kat_navi->MoveNext();
}
?>
<br />
<span class="loz">◊ </span><a href="index.php?page=klicks-wps" class="linkkategorie"<?php if($_GET['page'] == "klicks-wps") { ?> style="color:#FF0000;"<?php } ?> >Top WPs nach Klicks</a><br />
<span class="loz">◊ </span><a href="http://www.sexy-wallpaper-area.ch/" id="linkkategorie1" target="_blank" class="externsitenavi" title="Zur Sexy Wallpaper Area...">Sexy Wallpaper Area</a><br /><br />
<div id="tools-right">
<!-- anfang zwischenlinie -->
<hr size="1" noshade="noshade" />
<!-- ende zwischenlinie -->
<div class="titel" align="center"><span class="zeichen">.:</span> Wallpaper suche <span class="zeichen">:. </span></div>
<br />
<form id="form2" name="form2" method="get" action="">
<input name="keyword" type="text" id="keyword" onclick="this.value=''" value="Suchwort..." size="13" />
<label>
<input type="submit" name="" value="suchen" />
</label>
<input name="page" type="hidden" value="preview" />
</form>
<br />
<!-- anfang zwischenlinie -->
<hr size="1" noshade="noshade" />
<!-- ende zwischenlinie -->
<?php include("zufallwp.php"); ?>
<br />
<!-- anfang zwischenlinie -->
<hr size="1" noshade="noshade" />
<!-- ende zwischenlinie -->
<?php include("zufallwp.php"); ?>
</div>
</div>
</div>
<div id="inhalt">
<div class="titel" id="headerinhalt3"><span class="zeichen">.:</span> <?php if($includes[''.@$HTTP_GET_VARS[$paramName]][1] != '') { echo $includes[''.@$HTTP_GET_VARS[$paramName]][1]; } else { echo "Wallpaper Area :: Home"; }?> <span class="zeichen">:. </span></div>
<div style="padding:10px;">
<?php
// begin dynamic include file
if (isset($includes[''.@$HTTP_GET_VARS[$paramName]])) {
$fName = $includes[''.@$HTTP_GET_VARS[$paramName]][0];
mxincludes_start($fName);
require_once($fName);
mxincludes_end();
} else {
include("home.php");
}
// end dynamic include file
?>
<?php
include_once("footer.php") ?>
</div></div>
<script type="text/javascript">
var hoehe = document.getElementById("inhalt").offsetHeight;
document.getElementById("navilinks").style.height = hoehe;
document.getElementById("navirechts").style.height = hoehe;
</script>
</body>
</html>
<?php
$q_kat_navi->Close();
?>