// If iPad, redirect to DesktopNexus.mobi
/*
if($_REQUEST['no_splash']) $_SESSION['no_splash'] = 1;
if(empty($_SESSION['no_splash']) && (
strpos($_SERVER['HTTP_USER_AGENT'], 'iPad') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== false
)){
/*
$ref = strtolower($_SERVER['HTTP_REFERER']);
if(!Empty($ref) && (
strpos($ref, 'google') !== false ||
strpos($ref, 'yahoo') !== false ||
strpos($ref, 'bing') !== false
))
browserRedirect('//itunes.apple.com/us/app/desktop-nexus-plus-wallpapers/id552697923?mt=8&uo=4');
else
//* /
browserRedirect('//www.desktopnexus.mobi/?redir=' . urlencode('//' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']));
}
*/
// Code that should be extrapolated into controllers later
dbSetShortCache();
$totalOnline = db()->fetchOne("SELECT COUNT(DISTINCT `ip`) AS `num` FROM `sessions`");
$totalOnline = $totalOnline['num'];
// Get number of unread PMs
if(!empty($_SESSION['id'])){
$userId = (int)$_SESSION['id'];
$row = db()->fetchOne("SELECT COUNT(*) as `num` FROM `pm_index` WHERE (`toAcct`=? AND `toRead`='0' AND `toDelete`='0') OR (`fromAcct`=? AND `fromRead`='0' AND `fromDelete`='0' AND `PostCount` != 1)", [$userId, $userId], 'ii');
$_SESSION['num_new_pms'] = $row['num']; // for footer javascript and home.3.php side navigation
}
/*
*/
?>
if($_SERVER['PHP_SELF'] == '/view-wallpaper.6.php'): ?>
endif; ?>
if($_SERVER['REQUEST_URI'] == '/upload/step2'): ?>
endif; ?>
// JQuery and JQuery UI ?>
if(!empty($_SESSION['id'])): // Member Logged In ?>
else: // Not Logged In ?>
/* */ ?>
endif; ?>
Desktop Nexus Wallpapers - Background Images, Wallpaper, Desktop Wallpapers, Computer Backgrounds
/* RED ANNOUNCEMENT * / ?>
Oops! We're currently experiencing some technical problems and are working to restore everything to 100%.
Thank you for your patience!
// */ ?>
/*
Explore Desktop Nexus Groups!
A new way to organize your wallpapers around any topic!
$lastAction = DNRedis::getInstance()->zRevRange('groups:activity', 0, 0, true);
$headerGroupSlug = key($lastAction);
$lastActivity = strtolower(secondsToFuzzyTimeAgo(time() - $lastAction[$headerGroupSlug]));
if($lastActivity == 'just now') $lastActivity = '1 second ago';
$headerGroupName = DNRedis::getInstance()->hGet('group:' . $headerGroupSlug, 'name');
?>
Group added an image !
*/ ?>
/* */ ?>
Hi everyone! We're hard at work trying to keep our community clean, so if you see any spam, please report it here and we'll review ASAP! Thanks a million!
/* */ ?>
/*
Notice: There was an issue uploading wallpapers this afternoon, but we believe we have everything resolved now. Sorry for the trouble! :(
Great news! After months of rebuilding/repair, we are extremely happy to announce that Desktop Nexus is back!
There were a few images that were unrecoverable, but over 99% of the missing photos are now fully restored!
Thank you so much for your patience, we really appreciate it! You guys are the best community on earth! [hide]
";
echo "";
// start relative div for banners
if($row['created'] > strtotime('-24 HOURS')){ // New Wallpaper
echo "
";
echo "";
echo "
";
}
// end banner relative div
echo "";
echo " ";
createThumbPopupDiv_new($row['id'], $row);
// For moderators, show if an image is filtered or not :)
if(array_key_exists('accesslevel', $_SESSION) && $_SESSION['accesslevel'] >= 3 && array_key_exists('contentFilter', $row) && $row['contentFilter'] == '1')
echo "
FILTERED
";
echo "
";
if($i % 3 == 2) echo "
";
$i++;
if($i >= 33)
break; // Query a few extras to skip blanks, but only show 33
}
// More Link
echo "
$tc = fetchTagCloud($dncat,$full_name);
if($tc)
echo $tc;
else
echo " We're in the process of automatically rebuilding this section's tag cloud. Please wait a few minutes and refresh this page to view it.