$queue_upload_timer = 30;?>$queue_upload_timer = 30;?>
$kwicks = TRUE;
$url_array = explode("/",$_SERVER['REQUEST_URI']);
$resolution = $url_array[2];
$page = (int)$url_array[3];
$GLOBALS['n'] = "/resolution/".$resolution;
//********************
//** Real Start ... **
//********************
$nid = (int)($arr[id]/100);
$page_titlek = $resolution." Desktop Wallpapers";
if($page>1)
$page_titlek .= ' | Page '.$page;
$resolutions = $resolution;
$headline = 'Wallpapers for resolution '.$resolutions;
if($resolution == "320x240")
{
$resolution = "320x240";
$resolutions = "iPod";
$headline = 'iPod Wallpapers';
}
if($resolution == "iPad")
{
$resolution = "1024x768";
$resolutions = "iPad";
$headline = 'iPad Wallpapers';
}
$page_desc = "Collection of Desktop Wallpapers with ".$resolutions." pixels resolution.";
$meta_description = "Free ".$resolutions." Desktop Wallpapers collection for your desktop";
$meta_keywords = $resolutions.", Wallpapers, Desktop, Vista, Windows, Mac, Apple, OS X";
require(ROOT . "/templates/header.inc.php");
// *** SETUP RESOLUTION ARRAY ***
unset($in_res);
if($resolution == "320x240")
$in_res = "'320x240', '800x600', '1024x768', '1152x864', '1280x1024', '1600x1200', '1920x1440', '2560x1920'";
else if($resolution == "800x600")
$in_res = "'800x600', '1024x768', '1152x864', '1280x1024', '1600x1200', '1920x1440', '2560x1920'";
else if($resolution == "1024x768")
$in_res = "'1024x768','1152x864','1280x1024','1600x1200','1920x1440','2560x1920'";
else if($resolution == "1152x864")
$in_res = "'1152x864','1280x1024','1600x1200','1920x1440','2560x1920'";
else if($resolution == "1280x1024")
$in_res = "'1280x1024','1600x1200','1920x1440','2560x1920'";
else if($resolution == "1600x1200")
$in_res = "'1600x1200','1920x1440','2560x1920'";
else if($resolution == "1920x1440")
$in_res = "'1920x1440','2560x1920'";
else if($resolution == "2560x1920")
$in_res = "'2560x1920'";
else if($resolution == "1280x800")
$in_res = "'1280x800','1440x900','1680x1050','1920x1200','2560x1600'";
else if($resolution == "1440x900")
$in_res = "''1440x900','1680x1050','1920x1200','2560x1600'";
else if($resolution == "1680x1050")
$in_res = "'1680x1050','1920x1200','2560x1600'";
else if($resolution == "1920x1200")
$in_res = "'1920x1200','2560x1600'";
else if($resolution == "2560x1600")
$in_res = "'2560x1600'";
else if($resolution == "1920x1080")
$in_res = "'1920x1080'";
else if($resolution == "1366x768")
$in_res = "'1366x768','1920x1080'";
else if($resolution == "1280x720")
$in_res = "'1280x720','1366x768','1920x1080'";
else if($resolution == "852x480")
$in_res = "'852x480','1280x720','1366x768','1920x1080'";
if(empty($in_res))
{
include("footer.php");
exit();
}
$query = "SELECT COUNT(*) AS num FROM wallpapers WHERE resolution IN (".$in_res.")";
#echo $query . "
";
$resg = mysql_query($query) or die("ERROR ".__LINE__.": ".mysql_error());
$arg = mysql_fetch_array($resg);
$num = $arg[num];
echo '
'; ShowBanner300x250_gallery_top(); echo ' | '; ShowBanner300x250(); echo ' |