Hate to say it, but I'm not going to be able to even look at it right now. Sorry. Got a sick kid waiting for a call back from the doctor. And that's on top of everything else that normally goes on here. If nobody responds, might want to try a freelanceer type site.
Anyone there who could do it?
<body class="Copyright"><div align="left"><table style="width:100%;" cellpadding="0" cellspacing="0"><tr><td class="" valign="top" style="width:150px; text-align: center;"> ?> </td> </tr> <td class="header2">Ads</td> </tr> <tr> <td class="content2"> <?php echo $ads1; ?><p> </td> </tr> </table> </td><td class="" valign="top" style="width:100%;">
</td><td class="" valign="top" style="width:150px; text-align: center;"> </td> </tr> <tr> </td> </tr> <tr> <td class="header2">Ads</td> </tr> <tr> <td class="content2"> <?php echo $ads2; ?> </td> </tr> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr></td></tr></table></div>
<body class="Copyright"><div align="left"><table style="width:100%;" cellpadding="0" cellspacing="0"><tr><td class="" valign="top" style="width:150px; text-align: center;"> ?> </td> </tr><tr> <td class="header2">Ads</td> </tr> <tr> <td class="content2"> <?php echo $ads1; ?><p> </td> </tr> </table> </td><td class="" valign="top" style="width:100%;">
</td><td class="" valign="top" style="width:150px; text-align: center;"> </td> </tr> <tr> <td class="header2">Ads</td> </tr> <tr> <td class="content2"> <?php echo $ads2; ?> </td> </tr> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr><td></td></tr></table></div>
<?php $starttime = explode(' ', microtime()); $starttime = $starttime[1] + $starttime[0]; ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><title><?php echo $pagetitle; ?></title><style type="text/css"><!--table tr { color: #333;}Links { color: #00F;}--></style><link href="Link.css" rel="stylesheet" type="text/css" /><style type="text/css"><!--a:link { text-decoration: none;}a:visited { text-decoration: none;}a:hover { text-decoration: none;}a:active { text-decoration: none;}--></style><script src="../../SpryAssets/SpryMenuBar.js" type="text/javascript"></script><link href="../../SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" /><head><meta name="keywords" content="<?php echo $metatags; ?>" /><meta name="description" content="<?php echo $metadescription ; ?>" /><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link href="<?=$domain?>/templates/<?php echo $template ; ?>/styles.css" rel="stylesheet" type="text/css"><?phpinclude ("js/rating_update.php");?></head><body class="Copyright"><div align="left"><table style="width:100%;" cellpadding="0" cellspacing="0"><tr><td class="" valign="top" style="width:150px; text-align: center;"> ?> </td> </tr><tr> <td class="header2">Ads</td> </tr> <tr> <td class="content2"> <?php echo $ads1; ?><p> </td> </tr> </table> </td><td class="" valign="top" style="width:100%;"><table width="900" border="0" align="center" class="maintable" cellpadding="0" cellspacing="0"> <tr> <td colspan="3"> <img src="<?=$domain?>/templates/<?php echo $template ; ?>/images/banner.png" width="100%"></img> <?php if (!$headerspace == "") { echo '<br><div align="center">'.$headerspace.'</div>'; };echo "<div align='right'>$show_fb_login</div><br>"; echo ' <div class=\'menutop\'>'; if($seo_on == 1){ echo ' <ul> <li><a href=\''.$domain.'\' title=\'Home\'>Home</a></li> <li><a href=\''.$domain.'/mostplayed/\' title=\'Most Played\'>Top Games</a></li> <li><a href=\''.$domain.'/newest/\' title=\'Newest\'>New Games</a></li> <li><a href="'.$domain.'/memberslist/" title="Member List">Member List</a></li> <li><a href=\''.$domain.'/search/\' title=\'Search\'>Search</a></li> <li><a href=\''.$domain.'/links/\' title=\'Links\'>Links</a></li> <li><a href=\''.$domain.'/fineprint/\' title=\'Fine Print\'>Fine Print</a></li> '; if(!isset($suserid)){ $mymenu1 = ' <li ><a href=\''.$domain.'/login/\'>Login</a></li> <li><a href=\''.$domain.'/forgotpassword/\'>Forgot password?</a></li> <li ><a href=\''.$domain.'/signup/\'>Signup</a></li>'; }else{ $mymenu1 = ' <li ><a href=\''.$domain.'/myaccount/\'>My Account</a></li> <li ><a href=\''.$domain.'/logout/\'>Logout</a></li>'; } if ($showpages == 1) { echo '<li><a href=\''.$domain.'/pages/\' title=\'pages\'>Pages</a></li>'; }; if ($showblog == 1) { echo '<li><a href=\''.$domain.'/blog/\' title=\'blog\'>Blog</a></li>'; }; echo ' </ul>'; }else{ echo ' <ul> <li><a href=\''.$domain.'\' title=\'Home\'>Home</a></li> <li><a href=\''.$domain.'/index.php?action=mostplayed\' title=\'Most Played\'>Top Games</a></li> <li><a href=\''.$domain.'/index.php?action=newest\' title=\'Newest\'>New Games</a></li> <li><a href=\''.$domain.'/Multiplayer.php\' title=\'Multiplayer\'>Multiplayer</a></li> <li><a href="'.$domain.'/index.php?action=memberslist" title="Member List">Member List</a></li> <li><a href=\''.$domain.'/index.php?action=search\' title=\'Search\'>Search</a></li> <li><a href=\''.$domain.'/index.php?action=signup\' title=\'Register\'>Register</a></li> '; if(!isset($suserid)){ $mymenu1 = ' <li ><a href=\''.$domain.'/index.php?action=login\'>Login</a></li> <li><a href=\''.$domain.'/index.php?action=forgotpassword\'>Forgot password?</a></li> <li ><a href=\''.$domain.'/index.php?action=signup\'>Signup</a></li>'; }else{ $mymenu1 = ' <li ><a href=\''.$domain.'/index.php?action=myaccount\'>My Account</a></li> <li ><a href=\''.$domain.'/index.php?action=logout\'>Logout</a></li>'; } if ($showpages == 1) { echo '<li ><a href=\''.$domain.'/index.php?action=pages\'>Pages</a></li>'; }; if ($showblog == 1) { echo '<li ><a href=\''.$domain.'/index.php?action=blog\'>Blog</a></li>'; }; echo ' </ul>'; } echo ' </div>'; ?> <br /> <br /> <br /> </td> </tr> <tr> <td valign="top" width="170" > <table width="170" > <table width="100%"> <?php submenu2 (); ?> <td class="header2">Top 10 Games</td> </tr> <tr> <td class="content2"> <?php $minViews = 5; $queryt = "SELECT Name, Views, ID FROM dd_games WHERE Views>$minViews ORDER BY Views DESC"; $resultt = mysql_query($queryt); if (!$resultt) { //do something if nothing is returned from the db echo'An error occured'; }else{ if ($seo_on == 1){ echo '<ul class=\'catmenu\'>'; for ($i=0; $i<10; $i++){ echo "<li><a href='".$domain."/play/".mysql_result($resultt, $i, "ID")."-".mysql_result($resultt, $i, "Name").".html'>" . mysql_result($resultt, $i, "Name") . " - (" . mysql_result($resultt, $i, "Views") . ")</a></li>";} echo '</ul>'; echo '<br />'; echo '<a href=\''.$domain.'/mostplayed/\' title=\'Most Played\'>View more >>></a>'; }else{ echo '<ul class=\'catmenu\'>'; for ($i=0; $i<10; $i++){ echo "<li><a href='".$domain."/index.php?action=play&ID=" . mysql_result($resultt, $i, "ID") . "'>" . mysql_result($resultt, $i, "Name") . " - (" . mysql_result($resultt, $i, "Views") . ")</a></li>";} echo '</ul>'; echo '<br />'; echo '<a href=\''.$domain.'/index.php?action=mostplayed\' title=\'Most Played\'>View more >>></a>';}} ?> </td> <tr> <td class="header2">New Games</td> </tr> <tr> <td class="content2"> <?php $queryl = "SELECT Name, dateadded, ID FROM dd_games ORDER BY dateadded DESC"; $resultl = mysql_query($queryl); if (!$resultl) { //do something if nothing is returned from the db echo'An error occured'; }else{ if ($seo_on == 1){ echo '<ul class=\'catmenu\'>'; for ($i=0; $i<5; $i++){ echo "<li><a href='".$domain."/play/".mysql_result($resultl, $i, "ID")."-".mysql_result($resultl, $i, "Name").".html'>" . mysql_result($resultl, $i, "Name") . "</a></li>";} echo '</ul>'; echo '<br />'; echo ' <a href=\''.$domain.'/newest/\' title=\'Most Played\'>View more >>></a>'; }else{ echo '<ul class=\'catmenu\'>'; for ($i=0; $i<5; $i++){ echo "<li><a href='".$domain."/index.php?action=play&ID=" . mysql_result($resultl, $i, "ID") . "'>" . mysql_result($resultl, $i, "Name") . "</a></li>";} echo '</ul>'; echo '<br />'; echo ' <a href=\''.$domain.'/index.php?action=newest\' title=\'Newest\'>View more >>></a>';}} writebody();?></td> <td valign="top" width="170"> <table width="170"> <td class="header2">My Menu</td> </tr> <tr> <td class="content2"> <?php echo '<ul class=\'catmenu\'>'; echo $mymenu1; if($usrdata['user_level'] == 2){echo '<li><a href=\''.$domain.'/index.php?action=admin\'>Admin</a></li>'; }; if($usrdata['gamelevel'] >= 2) {echo '<li><a href=\''.$domain.'/index.php?action=gameadmin\'>Game Admin</a></li>';}; if($usrdata['bloglevel'] >= 2) {echo '<li><a href=\''.$domain.'/index.php?action=blogadmin\'>Blog Admin</a></li>';}; echo '<p>'; submenu1(); echo '</ul>'; ?> <td class="header2">New Members</td> </tr> <tr> <td class="content2"><?php $tur1 = 'SELECT username, userid FROM dd_users WHERE userid!="1" ORDER BY userid DESC LIMIT 0,6'; $resultt = mysql_query($tur1); if (!$resultt) { echo 'Cannot connect to the databese'; } else { $tur = sqlcache('newmembers', $cachelife, $tur1); foreach($tur as $r){ echo ' <span style="color:'.get_random_color().'">'.$r['username'].'</span><br />'; }}?> </td> </tr> </table> <table width="100%"> <tr> </tr> </table> <?php $totalgames = $db->num_rows($db->query(sprintf('SELECT ID FROM dd_games WHERE active="1"'))); $totalusers = $db->num_rows($db->query(sprintf('SELECT userid FROM dd_users WHERE activation_key="0"'))); $totalcats = $db->num_rows($db->query(sprintf('SELECT ID FROM dd_categories'))); $totalcomments = $db->num_rows($db->query(sprintf('SELECT ID FROM dd_comments'))); $time=time()-15*60; $onlineusers = $db->num_rows($db->query("SELECT userid FROM dd_users WHERE status >= $time")); $year = date('Y'); ?> <table width="100%"> <tr> <td class="header2">Stats</td> </tr> <tr> <td class="content2" style="padding:5px"> Total Games: <?php echo $totalgames; ?><br /> Total Users: <?php echo $totalusers; ?><br /> Total Categories: <?php echo $totalcats; ?><br /> Total Comments: <? echo $totalcomments; ?><br /> Total Hits: <?php include ("$directorypath/includes/counter.php"); ?><br /> Users Online: <? echo $onlineusers; ?><br /><?php $timeoutseconds = 600; // Timeout Value in Seconds - 300 equals 5 minutes. $timestamp=time(); $timeout=$timestamp-$timeoutseconds; $ip = $_SERVER['REMOTE_ADDR']; //Insert all users online $query_add = "INSERT INTO onlineuser VALUES ('$timestamp','$ip')"; $resultt = mysql_query($query_add); if (!$resultt) { echo 'Cannot connect to the database'; } //Delete guest users after timeout - Does not affect members count $query_time = "DELETE FROM onlineuser WHERE timestamp < $timeout"; $resultt = mysql_query($query_time); if (!$resultt) { echo 'Cannot connect to the database'; } //Count all members and guests IP's to make a grand total. //Then subtract the number of members online from the grand total - leaving the Guests. $query_resultt = "SELECT DISTINCT ip FROM onlineuser"; $resultt = mysql_query($query_resultt); if (!$resultt) { echo 'Cannot connect to the database'; } $totalusers = (mysql_num_rows($resultt)); $a="$totalusers"; $b="$onlineusers";?> Guests Online: <?php echo $a - $b; ?></span><br /> </tr> </td> </tr> <tr> <td class="content2" stlye="padding:5px'"> <!-- AddThis Button BEGIN --><a href="http://www.addthis.com/bookmark.php" onclick="addthis_url = location.href; addthis_title = document.title; return addthis_click(this);" target="_blank"><img src="http://s7.addthis.com/static/btn/lg-share-en.gif" width="125" height="16" border="0" alt="Bookmark and Share" /></a><script type="text/javascript">var addthis_pub = "sssox";</script><script type="text/javascript" src="http://s7.addthis.com/js/widget.php?v=10"></script> <!-- AddThis Button END --> </td> </table></table> </tr><div align="center"> </table><ul id="Bottomlinks" class="MenuBarVertical"> <li><a class="MenuBarItemSubmenu" href="#">LooseGame</a> <ul> <li><a href="/index.php?action=fineprint">Privacy Policy</a></li> <li><a href="/Pictures">Free Wallpapers</a></li> </ul> </li> <li><a class="MenuBarItemSubmenu" href="#">Other Links</a> <ul> <li><a href="http://www.freearcadescript.net/">Free Arcade Scripts</a></li> <li><a href="#">Coming Soon</a></li> </ul> </li></ul> </li></ul><p><div align="center"> <?php echo "Copyright ".$sitename." © 2010-".date('Y'); ?> All Rights Reserved </p><?php echo $footerspace; ?><script type="text/javascript"><!--var MenuBar1 = new Spry.Widget.MenuBar("Bottomlinks", {imgRight:"../../SpryAssets/SpryMenuBarRightHover.gif"});//--></script></body></html></td><td class="" valign="top" style="width:150px; text-align: center;"> </td> </tr> <tr> <td class="header2">Ads</td> </tr> <tr> <td class="content2"> <?php echo $ads2; ?> </td> </tr> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr><td></td></tr></table></div><div style="font-size: 10px; color: #FFFFFF; text-align: center;"><?php $mtime = explode(' ', microtime()); $totaltime = $mtime[0] + $mtime[1] - $starttime; printf('Page loaded in %.3f seconds.', $totaltime); ?></div>
<?php $starttime = explode(' ', microtime()); $starttime = $starttime[1] + $starttime[0]; ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><title><?php echo $pagetitle; ?></title><style type="text/css"><!--table tr { color: #333;}Links { color: #00F;}--></style><link href="Link.css" rel="stylesheet" type="text/css" /><style type="text/css"><!--a:link { text-decoration: none;}a:visited { text-decoration: none;}a:hover { text-decoration: none;}a:active { text-decoration: none;}--></style><script src="../../SpryAssets/SpryMenuBar.js" type="text/javascript"></script><link href="../../SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" /><head><meta name="keywords" content="<?php echo $metatags; ?>" /><meta name="description" content="<?php echo $metadescription ; ?>" /><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link href="<?=$domain?>/templates/<?php echo $template ; ?>/styles.css" rel="stylesheet" type="text/css"><?phpinclude ("js/rating_update.php");?></head><body class="Copyright"><div align="left"><table style="width:20%;" cellpadding="0" cellspacing="0"> <tr> <td> <table style="width:20%;" cellpadding="0" cellspacing="0"> <tr> <td class="" valign="top" style="width:150px; text-align: center;"></td> </tr> <tr> <td class="header2">Ads</td> </tr> <tr> <td class="content2"> <?php echo $ads1; ?> <p> </td> </tr> </table> </td> <td class="" valign="top" style="width:80%;"><table width="900" border="0" align="center" class="maintable" cellpadding="0" cellspacing="0"> <tr> <td colspan="3"> <img src="<?=$domain?>/templates/<?php echo $template ; ?>/images/banner.png" width="100%"></img> <?php if (!$headerspace == "") { echo '<br><div align="center">'.$headerspace.'</div>'; };echo "<div align='right'>$show_fb_login</div><br>"; echo ' <div class=\'menutop\'>'; if($seo_on == 1){ echo ' <ul> <li><a href=\''.$domain.'\' title=\'Home\'>Home</a></li> <li><a href=\''.$domain.'/mostplayed/\' title=\'Most Played\'>Top Games</a></li> <li><a href=\''.$domain.'/newest/\' title=\'Newest\'>New Games</a></li> <li><a href="'.$domain.'/memberslist/" title="Member List">Member List</a></li> <li><a href=\''.$domain.'/search/\' title=\'Search\'>Search</a></li> <li><a href=\''.$domain.'/links/\' title=\'Links\'>Links</a></li> <li><a href=\''.$domain.'/fineprint/\' title=\'Fine Print\'>Fine Print</a></li> '; if(!isset($suserid)){ $mymenu1 = ' <li ><a href=\''.$domain.'/login/\'>Login</a></li> <li><a href=\''.$domain.'/forgotpassword/\'>Forgot password?</a></li> <li ><a href=\''.$domain.'/signup/\'>Signup</a></li>'; }else{ $mymenu1 = ' <li ><a href=\''.$domain.'/myaccount/\'>My Account</a></li> <li ><a href=\''.$domain.'/logout/\'>Logout</a></li>'; } if ($showpages == 1) { echo '<li><a href=\''.$domain.'/pages/\' title=\'pages\'>Pages</a></li>'; }; if ($showblog == 1) { echo '<li><a href=\''.$domain.'/blog/\' title=\'blog\'>Blog</a></li>'; }; echo ' </ul>'; }else{ echo ' <ul> <li><a href=\''.$domain.'\' title=\'Home\'>Home</a></li> <li><a href=\''.$domain.'/index.php?action=mostplayed\' title=\'Most Played\'>Top Games</a></li> <li><a href=\''.$domain.'/index.php?action=newest\' title=\'Newest\'>New Games</a></li> <li><a href=\''.$domain.'/Multiplayer.php\' title=\'Multiplayer\'>Multiplayer</a></li> <li><a href="'.$domain.'/index.php?action=memberslist" title="Member List">Member List</a></li> <li><a href=\''.$domain.'/index.php?action=search\' title=\'Search\'>Search</a></li> <li><a href=\''.$domain.'/index.php?action=signup\' title=\'Register\'>Register</a></li> '; if(!isset($suserid)){ $mymenu1 = ' <li ><a href=\''.$domain.'/index.php?action=login\'>Login</a></li> <li><a href=\''.$domain.'/index.php?action=forgotpassword\'>Forgot password?</a></li> <li ><a href=\''.$domain.'/index.php?action=signup\'>Signup</a></li>'; }else{ $mymenu1 = ' <li ><a href=\''.$domain.'/index.php?action=myaccount\'>My Account</a></li> <li ><a href=\''.$domain.'/index.php?action=logout\'>Logout</a></li>'; } if ($showpages == 1) { echo '<li ><a href=\''.$domain.'/index.php?action=pages\'>Pages</a></li>'; }; if ($showblog == 1) { echo '<li ><a href=\''.$domain.'/index.php?action=blog\'>Blog</a></li>'; }; echo ' </ul>'; } echo ' </div>'; ?> <br /> <br /> <br /> </td> </tr> <tr> <td valign="top" width="170" > <table width="170" > <table width="100%"> <?php submenu2 (); ?> <td class="header2">Top 10 Games</td> </tr> <tr> <td class="content2"> <?php $minViews = 5; $queryt = "SELECT Name, Views, ID FROM dd_games WHERE Views>$minViews ORDER BY Views DESC"; $resultt = mysql_query($queryt); if (!$resultt) { //do something if nothing is returned from the db echo'An error occured'; }else{ if ($seo_on == 1){ echo '<ul class=\'catmenu\'>'; for ($i=0; $i<10; $i++){ echo "<li><a href='".$domain."/play/".mysql_result($resultt, $i, "ID")."-".mysql_result($resultt, $i, "Name").".html'>" . mysql_result($resultt, $i, "Name") . " - (" . mysql_result($resultt, $i, "Views") . ")</a></li>";} echo '</ul>'; echo '<br />'; echo '<a href=\''.$domain.'/mostplayed/\' title=\'Most Played\'>View more >>></a>'; }else{ echo '<ul class=\'catmenu\'>'; for ($i=0; $i<10; $i++){ echo "<li><a href='".$domain."/index.php?action=play&ID=" . mysql_result($resultt, $i, "ID") . "'>" . mysql_result($resultt, $i, "Name") . " - (" . mysql_result($resultt, $i, "Views") . ")</a></li>";} echo '</ul>'; echo '<br />'; echo '<a href=\''.$domain.'/index.php?action=mostplayed\' title=\'Most Played\'>View more >>></a>';}} ?> </td> <tr> <td class="header2">New Games</td> </tr> <tr> <td class="content2"> <?php $queryl = "SELECT Name, dateadded, ID FROM dd_games ORDER BY dateadded DESC"; $resultl = mysql_query($queryl); if (!$resultl) { //do something if nothing is returned from the db echo'An error occured'; }else{ if ($seo_on == 1){ echo '<ul class=\'catmenu\'>'; for ($i=0; $i<5; $i++){ echo "<li><a href='".$domain."/play/".mysql_result($resultl, $i, "ID")."-".mysql_result($resultl, $i, "Name").".html'>" . mysql_result($resultl, $i, "Name") . "</a></li>";} echo '</ul>'; echo '<br />'; echo ' <a href=\''.$domain.'/newest/\' title=\'Most Played\'>View more >>></a>'; }else{ echo '<ul class=\'catmenu\'>'; for ($i=0; $i<5; $i++){ echo "<li><a href='".$domain."/index.php?action=play&ID=" . mysql_result($resultl, $i, "ID") . "'>" . mysql_result($resultl, $i, "Name") . "</a></li>";} echo '</ul>'; echo '<br />'; echo ' <a href=\''.$domain.'/index.php?action=newest\' title=\'Newest\'>View more >>></a>';}} writebody();?></td> <td valign="top" width="170"> <table width="170"> <td class="header2">My Menu</td> </tr> <tr> <td class="content2"> <?php echo '<ul class=\'catmenu\'>'; echo $mymenu1; if($usrdata['user_level'] == 2){echo '<li><a href=\''.$domain.'/index.php?action=admin\'>Admin</a></li>'; }; if($usrdata['gamelevel'] >= 2) {echo '<li><a href=\''.$domain.'/index.php?action=gameadmin\'>Game Admin</a></li>';}; if($usrdata['bloglevel'] >= 2) {echo '<li><a href=\''.$domain.'/index.php?action=blogadmin\'>Blog Admin</a></li>';}; echo '<p>'; submenu1(); echo '</ul>'; ?> <td class="header2">New Members</td> </tr> <tr> <td class="content2"><?php $tur1 = 'SELECT username, userid FROM dd_users WHERE userid!="1" ORDER BY userid DESC LIMIT 0,6'; $resultt = mysql_query($tur1); if (!$resultt) { echo 'Cannot connect to the databese'; } else { $tur = sqlcache('newmembers', $cachelife, $tur1); foreach($tur as $r){ echo ' <span style="color:'.get_random_color().'">'.$r['username'].'</span><br />'; }}?> </td> </tr> </table> <table width="100%"> <tr> </tr> </table> <?php $totalgames = $db->num_rows($db->query(sprintf('SELECT ID FROM dd_games WHERE active="1"'))); $totalusers = $db->num_rows($db->query(sprintf('SELECT userid FROM dd_users WHERE activation_key="0"'))); $totalcats = $db->num_rows($db->query(sprintf('SELECT ID FROM dd_categories'))); $totalcomments = $db->num_rows($db->query(sprintf('SELECT ID FROM dd_comments'))); $time=time()-15*60; $onlineusers = $db->num_rows($db->query("SELECT userid FROM dd_users WHERE status >= $time")); $year = date('Y'); ?> <table width="100%"> <tr> <td class="header2">Stats</td> </tr> <tr> <td class="content2" style="padding:5px"> Total Games: <?php echo $totalgames; ?><br /> Total Users: <?php echo $totalusers; ?><br /> Total Categories: <?php echo $totalcats; ?><br /> Total Comments: <? echo $totalcomments; ?><br /> Total Hits: <?php include ("$directorypath/includes/counter.php"); ?><br /> Users Online: <? echo $onlineusers; ?><br /><?php $timeoutseconds = 600; // Timeout Value in Seconds - 300 equals 5 minutes. $timestamp=time(); $timeout=$timestamp-$timeoutseconds; $ip = $_SERVER['REMOTE_ADDR']; //Insert all users online $query_add = "INSERT INTO onlineuser VALUES ('$timestamp','$ip')"; $resultt = mysql_query($query_add); if (!$resultt) { echo 'Cannot connect to the database'; } //Delete guest users after timeout - Does not affect members count $query_time = "DELETE FROM onlineuser WHERE timestamp < $timeout"; $resultt = mysql_query($query_time); if (!$resultt) { echo 'Cannot connect to the database'; } //Count all members and guests IP's to make a grand total. //Then subtract the number of members online from the grand total - leaving the Guests. $query_resultt = "SELECT DISTINCT ip FROM onlineuser"; $resultt = mysql_query($query_resultt); if (!$resultt) { echo 'Cannot connect to the database'; } $totalusers = (mysql_num_rows($resultt)); $a="$totalusers"; $b="$onlineusers";?> Guests Online: <?php echo $a - $b; ?></span><br /> </tr> </td> </tr> <tr> <td class="content2" stlye="padding:5px'"> <!-- AddThis Button BEGIN --><a href="http://www.addthis.com/bookmark.php" onclick="addthis_url = location.href; addthis_title = document.title; return addthis_click(this);" target="_blank"><img src="http://s7.addthis.com/static/btn/lg-share-en.gif" width="125" height="16" border="0" alt="Bookmark and Share" /></a><script type="text/javascript">var addthis_pub = "sssox";</script><script type="text/javascript" src="http://s7.addthis.com/js/widget.php?v=10"></script> <!-- AddThis Button END --> </td> </table></table></td><td class="" valign="top" style="width:150px; text-align: center;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td class="header2">Ads</td> </tr> <tr> <td class="content2"> <?php echo $ads2; ?> </td> </tr> </table></td></tr></table></div> </tr><div align="center"> </table><ul id="Bottomlinks" class="MenuBarVertical"> <li><a class="MenuBarItemSubmenu" href="#">LooseGame</a> <ul> <li><a href="/index.php?action=fineprint">Privacy Policy</a></li> <li><a href="/Pictures">Free Wallpapers</a></li> </ul> </li> <li><a class="MenuBarItemSubmenu" href="#">Other Links</a> <ul> <li><a href="http://www.freearcadescript.net/">Free Arcade Scripts</a></li> <li><a href="#">Coming Soon</a></li> </ul> </li></ul> </li></ul><p><div align="center"> <?php echo "Copyright ".$sitename." © 2010-".date('Y'); ?> All Rights Reserved </p><?php echo $footerspace; ?><script type="text/javascript"><!--var MenuBar1 = new Spry.Widget.MenuBar("Bottomlinks", {imgRight:"../../SpryAssets/SpryMenuBarRightHover.gif"});//--></script><div style="font-size: 10px; color: #FFFFFF; text-align: center;"><?php $mtime = explode(' ', microtime()); $totaltime = $mtime[0] + $mtime[1] - $starttime; printf('Page loaded in %.3f seconds.', $totaltime); ?></div></body></html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-gb" xml:lang="en-gb"><?php $starttime = explode(' ', microtime()); $starttime = $starttime[1] + $starttime[0]; ?><head> <!-- DO NOT ADD ANYTHING ABOVE THIS UNLESS IT'S PHP --><title><?php echo $pagetitle; ?></title><meta name="keywords" content="<?php echo $metatags; ?>" /><meta name="description" content="<?php echo $metadescription ; ?>" /><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><link href="<?php echo $domain;?>/templates/<?php echo $template ; ?>/styles.css" rel="stylesheet" type="text/css" /><?phpinclude ("js/rating_update.php");?></head><!-- DO NOT ADD ANYTHING HERE --><body><!-- CANNOT BE SOME OTHER CLASS - YOU HAVE "body" IN THE .CSS IF YOU WANT TO CHANGE SOMETHING HERE --><div align="center"><table style="width:1100px;" cellpadding="0" cellspacing="0"><tr><td class="" valign="top" style="width:150px; text-align: center;"><!-- THIS IS THE LEFT PANEL SCRIPT --> <img src="http://www.arcadebannerclicks.com/userbanners/175-1-2-1324852107.png" /></td><td class="" valign="top" style="width:100%;"><!-- Start the original FAS mark-up --><table width="900" border="0" align="center" class="maintable" cellpadding="0" cellspacing="0"> <tr> <td colspan="3"> <img src="<?php echo $domain;?>/templates/<?php echo $template ; ?>/images/banner.png" width="100%"></img> <?php if (!$headerspace == "") { echo '<br /><div align="center">'.$headerspace.'</div><br />'; }; echo ' <div class=\'menutop\'>'; if($seo_on == 1){ echo ' <ul> <li><a href=\''.$domain.'\' title=\'Home\'>Home</a></li> <li><a href=\''.$domain.'/mostplayed/\' title=\'Most Played\'>Most Played</a></li> <li><a href=\''.$domain.'/newest/\' title=\'Newest\'>Newest</a></li><li><a href="'.$domain.'/memberslist/" title="Member List">Member List</a></li> <li><a href=\''.$domain.'/search/\' title=\'Search\'>Search</a></li> <li><a href=\''.$domain.'/links/\' title=\'Links\'>Links</a></li> <li><a href=\''.$domain.'/fineprint/\' title=\'Fine Print\'>Fine Print</a></li> '; if(!isset($suserid)){ $mymenu1 = ' <li ><a href=\''.$domain.'/login/\'>Login</a></li> <li><a href=\''.$domain.'/forgotpassword/\'>Forgot password?</a></li> <li ><a href=\''.$domain.'/signup/\'>Signup</a></li>'; }else{ $mymenu1 = ' <li ><a href=\''.$domain.'/myaccount/\'>My Account</a></li> <li ><a href=\''.$domain.'/logout/\'>Logout</a></li>'; } if ($showpages == 1) { echo '<li><a href=\''.$domain.'/pages/\' title=\'pages\'>Pages</a></li>'; }; if ($showblog == 1) { echo '<li><a href=\''.$domain.'/blog/\' title=\'blog\'>Blog</a></li>'; }; echo ' </ul>'; }else{ echo ' <ul> <li><a href=\''.$domain.'\' title=\'Home\'>Home</a></li> <li><a href=\''.$domain.'/index.php?action=mostplayed\' title=\'Most Played\'>Most Played</a></li> <li><a href=\''.$domain.'/index.php?action=newest\' title=\'Newest\'>Newest</a></li> <li><a href="'.$domain.'/index.php?action=memberslist" title="Member List">Member List</a></li> <li><a href=\''.$domain.'/index.php?action=search\' title=\'Search\'>Search</a></li> <li><a href=\''.$domain.'/index.php?action=links\' title=\'Links\'>Links</a></li> <li><a href=\''.$domain.'/index.php?action=fineprint\' title=\'Fine Print\'>Fine Print</a></li> '; if(!isset($suserid)){ $mymenu1 = ' <li ><a href=\''.$domain.'/index.php?action=login\'>Login</a></li> <li><a href=\''.$domain.'/index.php?action=forgotpassword\'>Forgot password?</a></li> <li ><a href=\''.$domain.'/index.php?action=signup\'>Signup</a></li>'; }else{ $mymenu1 = ' <li ><a href=\''.$domain.'/index.php?action=myaccount\'>My Account</a></li> <li ><a href=\''.$domain.'/index.php?action=logout\'>Logout</a></li>'; } if ($showpages == 1) { echo '<li ><a href=\''.$domain.'/index.php?action=pages\'>Pages</a></li>'; }; if ($showblog == 1) { echo '<li ><a href=\''.$domain.'/index.php?action=blog\'>Blog</a></li>'; }; echo ' </ul>'; } echo ' </div>'; ?> <br /> <br /> <br /> </td> </tr> <tr> <td valign="top" width="170" > <table width="170" > <tr> <td class="header2">Banner Exchanges</td> </tr> <tr> <td class="content2"><?php echo $bannersleft; ?></td> </tr> <tr> <td class="header2">My Menu</td> </tr> <tr> <td class="content2"> <?php echo '<ul class=\'catmenu\'>'; echo $mymenu1; if($usrdata['user_level'] == 2){echo '<li><a href=\''.$domain.'/index.php?action=admin\'>Admin</a></li>'; }; if($usrdata['gamelevel'] >= 2) {echo '<li><a href=\''.$domain.'/index.php?action=gameadmin\'>Game Admin</a></li>';}; if($usrdata['bloglevel'] >= 2) {echo '<li><a href=\''.$domain.'/index.php?action=blogadmin\'>Blog Admin</a></li>';}; echo '<p>'; submenu1(); echo '</ul>'; ?> </td> </tr> </table> <table width="100%"> <?php submenu2 (); ?> <tr> <td class="header2">Ads</td> </tr> <tr> <td class="content2"> <?php echo $ads1; ?><p> </td> </tr> </table> </td> <td valign="top" width="560"><?phpwritebody();?></td> <td valign="top" width="170"> <table width="170"> <tr> <td class="header2">Banner Exchanges</td> </tr> <tr> <td class="content2"> <?php echo $bannersright; ?> </td> </tr> <tr> <td class="header2">Ads</td> </tr> <tr> <td class="content2"> <?php echo $ads2; ?> </td> </tr> </table> <table width="100%"> <tr> <td class="header2">Links</td> </tr> <tr> <td class="content2" stlye="padding:5px'"> <?php $rlinkx2 = "SELECT * FROM dd_links where activate = '2' " ; $rlinkx1 = sqlcache('sitewidelinks', $cachelife, $rlinkx2); echo '<ul class=\'catmenu\'>'; foreach($rlinkx1 as $rlinkx){ echo '<li><a href=\''.$rlinkx['url'].'\'>'.$rlinkx['title'].'</a></li>'; } echo '</ul>'; ?> </td> </tr> <tr> <td class="content2" stlye="padding:5px'"> <!-- AddThis Button BEGIN --><a href="http://www.addthis.com/bookmark.php" onclick="addthis_url = location.href; addthis_title = document.title; return addthis_click(this);" target="_blank"><img src="http://s7.addthis.com/static/btn/lg-share-en.gif" width="125" height="16" border="0" alt="Bookmark and Share" /></a><script type="text/javascript">var addthis_pub = "sssox";</script><script type="text/javascript" src="http://s7.addthis.com/js/widget.php?v=10"></script> <!-- AddThis Button END --> </td> </tr> </table> <?php $totalgames = $db->num_rows($db->query(sprintf('SELECT ID FROM dd_games WHERE active="1"'))); $totalusers = $db->num_rows($db->query(sprintf('SELECT userid FROM dd_users WHERE activation_key="0"'))); $totalcats = $db->num_rows($db->query(sprintf('SELECT ID FROM dd_categories'))); $totalcomments = $db->num_rows($db->query(sprintf('SELECT ID FROM dd_comments'))); $time=time()-15*60; $onlineusers = $db->num_rows($db->query("SELECT userid FROM dd_users WHERE status >= $time")); $year = date('Y'); ?> <table width="100%"> <tr> <td class="header2">Stats</td> </tr> <tr> <td class="content2" style="padding:5px"> Total Games: <?php echo $totalgames; ?><br /> Total Users: <?php echo $totalusers; ?><br /> Total Categories: <?php echo $totalcats; ?><br /> Total Comments: <? echo $totalcomments; ?><br /> Total Hits: <?php include ("$directorypath/includes/counter.php"); ?><br /> Users Online: <? echo $onlineusers; ?><p> <a href="<?php echo $domain; ?>/rss-arcade.php"><img src="<? echo $domain; ?>/templates/default/images/rss.gif" border="0" ></img> RSS-Games</a><br /> <?php if ($showblog == 1) { echo '<a href="'.$domain.'/rss-blog.php"><img src="'.$domain.'/templates/default/images/rss.gif" border="0" ></img> RSS-Blog</a><br />' ; }; ?> </td> </tr> </table> <br /> </td> </tr></table><br /><div align="center"> <! -- Please do not remove the "powered by" link unless, you've purchased the removal. -- > <div align="center"> <?php echo "Copyright ".$sitename." © 2008-".date('Y'); ?> All Rights Reserved - Powered By <a href="http://www.freearcadescript.net" target="_blank">Free Arcade Script</a>.</div> <br /><?php echo $footerspace; ?><!-- End the original FAS mark-up --></td><td class="" valign="top" style="width:150px; text-align: center;"><!-- THIS IS THE RIGHT PANEL SCRIPT --> <img src="http://www.arcadebannerclicks.com/userbanners/175-1-2-1324852107.png" /></td></tr></table></div></body></html>