Daily News'; echo '
'; $hits = 10; $query = "SELECT * FROM news_rss WHERE headline<>'' AND description<>'' AND category<>107 ORDER BY datum DESC, id DESC "; $res = mysqli_query($msql, $query); $num = mysqli_num_rows($res); $start = ($page-1)*$hits; $query .= " LIMIT ".$start.",".$hits; $res = mysqli_query($msql, $query) or die("ERROR ".__LINE__.": ".mysqli_error($msql)); while($ar = mysqli_fetch_array($res)) { $zs++; if($zs == 4) { echo '
'; ShowBanner300x250(); echo '
'; } $ar[headline] = preg_replace("/<\!\[CDATA\[/i","",$ar[headline]); $ar[headline] = preg_replace("/\]\]>/i","",$ar[headline]); $ar[description] = preg_replace("/</i","<",$ar[description]); $ar[description] = preg_replace("/>/i",">",$ar[description]); $ar[description] = preg_replace("/"/i","\"",$ar[description]); $ar[description] = preg_replace("/</i","<",$ar[description]); $ar[description] = preg_replace("/</i","<",$ar[description]); $ar[description] = preg_replace("/\[More\]/i","",$ar[description]); //$slika = getSlika($ar[description]); $nid = (int)($ar[id]/100); if(file_exists('/opt/www/virtual/www.coolwallpapers.org/files/wallpapers/'.$nid.'/'.$ar[id].'.jpg')) $slika = '/files/pictures/'.$nid.'/'.$ar[id].'.jpg'; else $slika = '/gfx/noPic.png'; //print_r($slika); $ar[description] = trim(strip_tags($ar[description],"
")); $ar[description] = iconv("utf-8","windows-1250",$ar[description]); // Display News echo '
'; echo ''."\n"; echo ''; echo ''; echo ''; echo '

'.$ar[description].' >> Read

'."\n"; echo '
'; } echo '
'; echo '
'; echo ''."\n"; $startx = rand(1,20000); $pixQuery = "SELECT wallpapers.*,categories.*, wallpapers.id AS id, wallpapers.name AS name, categories.name AS cname FROM wallpapers INNER JOIN categories ON (wallpapers.category=categories.id) WHERE active=1 ORDER BY datum DESC LIMIT ".$startx.",7"; echo '
'; $resg = mysqli_query($msql, $pixQuery) or die("ERROR ".__LINE__.": ".mysqli_error($msql)); while($arg = mysqli_fetch_array($resg)) { if(empty($arg[picture_name])) { $arg[picture_name] = preg_replace("/_/"," ",$arg[name]); $arg[picture_name] = preg_replace("/-/"," ",$arg[picture_name]); $arg[picture_name] = preg_replace("/\.jpg/i","",$arg[picture_name]); $arg[picture_name] = ucwords($arg[picture_name]); } if(empty($arg[picture_alt])) $arg[picture_alt] = $arg[picture_name]; if(!empty($arg[picture_alt])) $pictureAlt = $arg[picture_alt]; else $pictureAlt = $arg[name].' Wallpaper'; $filename = $arg[folder].'thumb/320_'.$arg[name]; $nid = (int)($arg[category]/100); $filename = '/wallpapers/'.$nid.'/'.$arg[category].'/thumb/200_'.$arg[name]; $filename_full = '/photo/'.$arg[id].'/'.$arg[name]; $webURL = 'http://im01.coolwallpapers.org'; echo '
'; // *** Tiny Navigation **** echo '
'; echo 'Zoom'; echo ''; echo 'View'; echo '
'; // *** Display Wallpaper *** echo ''; echo ''.$pictureAlt.''; echo ''; // *** Name of the wallpaper *** echo '
'; echo ''.$arg[picture_name].''; echo '
'; echo '
'; } echo '
'; echo '
'; echo '
'; showPages2($num,$page); // *** Show Popular Tags echo '

'; echo '

Popular Tag Clouds

'; ShowPopularTagClouds(60); //echo '
'; ShowTodayPopular(); include("footer.php"); ?>