<html><head><meta name="keywords" content="flash games,free flash games,games,arcade games¸sonic,nintendo,online" /><meta name="description" content="Take a break play some free games,facebook games" /><link href="<?=$domain?>/templates/default/styles.css" rel="stylesheet" type="text/css"><?phpinclude ("js/rating_update.php");?></head><body><table width="900" border="0" align="center" class="maintable" cellpadding="0" cellspacing="0"> <tr> <td colspan="3"> <img src="<?=$domain?>/templates/default/images/banner.png" width="900"></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 class=\'floatr\'><!-- 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 --></li>'; if(!isset($suserid)){ echo ' <li class=\'floatr\'><a href=\''.$domain.'/login/\'>Login</a></li> <li class=\'floatr\'><a href=\''.$domain.'/signup/\'>Signup</a></li>'; }else{ echo ' <li class=\'floatr\'>Hey '.$usrdata['username'].'</li> <li class=\'floatr\'><a href=\''.$domain.'/myaccount/\'>My Account</a></li> <li class=\'floatr\'><a href=\''.$domain.'/logout/\'>Logout</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.'/memberslist/" title="Member List">Member List</a></li> <li><a href=\''.$domain.'/index.php?action=search\' title=\'Search\'>Search</a></li>\'> <li class=\'floatr\'><!-- 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 --></li>'; if(!isset($suserid)){ echo ' <li class=\'floatr\'><a href=\''.$domain.'/index.php?action=login\'>Login</a></li> <li class=\'floatr\'><a href=\''.$domain.'/index.php?action=signup\'>Signup</a></li>'; }else{ echo ' <li class=\'floatr\'>Hey '.$usrdata['username'].'</li> <li class=\'floatr\'><a href=\''.$domain.'/index.php?action=myaccount\'>My Account</a></li> <li class=\'floatr\'><a href=\''.$domain.'/index.php?action=logout\'>Logout</a></li>'; } echo ' </ul>'; } echo ' </div>'; ?> <br /> <br /> <br /> </td> </tr> <tr> <td valign="top" width="170"> <table width="100%"> <tr> <td class="header2">Banner Exchanges</td> </tr> <tr> <td class="content2"><?php echo $bannersleft; ?></td> </tr> <tr> <td class="header2">Game Categories</td> </tr> <tr> <td class="content2"> <?php echo '<ul class=\'catmenu\'>'; $rci = $db->query('SELECT * FROM dd_categories'); while($row = $db->Fetch_row($rci)){ $numrws =$db->query(sprintf('SELECT ID FROM dd_games WHERE category=\'%u\'', $row['ID'])); $cnumrws = $db->num_rows($numrws); $categoryname = ereg_replace('[^A-Za-z0-9]', '', $row['name']); if($seo_on == 1){ $categoryurl = ''.$domain.'/browse/'.$row['ID'].'-'.$categoryname.'.html'; }else{ $categoryurl = ''.$domain.'/index.php?action=browse&ID='.$row['ID'].''; } echo '<li><a href=\''.$categoryurl.'\'>'.$row['name'].' ('.$cnumrws.')</a></li>'; } echo '</ul>'; ?> </td> </tr> </table> <table width="100%"> <tr> <td class="header2">Top Game</td> </tr> <tr> <td class="content2"><?php;if(empty($show)){ $show = 1;}$limits = ($show - 1) * $max; $r = $db->query(sprintf('SELECT * FROM dd_games ORDER BY views DESC LIMIT 0,1'));$totalres = mysql_result($db->query('SELECT COUNT(ID) AS total FROM dd_games'),0); $totalpages = ceil($totalres / $max); echo '<table width=\'100%\' border=\'0\' align=\'center\'> <tr> </tr>';$count = 0;while($in = $db->fetch_row($r)){$gamename = ereg_replace('[^A-Za-z0-9]', '', $in['name']); if($seo_on == 1){ $playlink = ''.$domain.'/play/'.$in['ID'].'-'.$gamename.'.html'; }else{ $playlink = ''.$domain.'/index.php?action=play&ID='.$in['ID'].''; }if($count%2==0){ echo '<tr> <td width=\'50%\' valign=\'top\'> <table width=\'100%\' border=\'0\'> <tr> <td valign=\'top\' colspan=\'2\' class=\'header5\'><b>'.$in['name'].'</b></td> </tr> <tr> <td width=\'55\' height=\'55\' valign=\'top\' class=\'content5\'> <a href=\''.$playlink.'\'> '; if($in['type'] == 1){ echo ' <img src=\''.$domain.'/'.$thumbsfolder.'/'.$in['thumb'].'\' width=\'55\' width=\'55\' border=\'0\'>'; }else{ echo ' <img src=\''.$in['thumburl'].'\' width=\'55\' width=\'55\' border=\'0\'>'; } echo ' </a> </td> <td> <a href=\''.$playlink.'\' class=\'playlink\'><b>Play</b></a></td> </tr> </table> </td> ';}else{ echo '';}$count++;}echo "</table>";?> </td> </tr> </table> <?php if($usrdata['user_level'] == 2){ ?> <table width="100%"> <tr> <td class="header2">Admin Panel</td> </tr> <tr> <td class="content2"> <?php echo '<ul class=\'catmenu\'> <li><a href=\''.$domain.'/index.php?action=admin&case=addgame\'>Add Game</a></li> <li><a href=\''.$domain.'/index.php?action=admin&case=managegames\'>Manage Games</a></li> <li><a href=\''.$domain.'/index.php?action=admin&case=addcategory\'>Add Category</a></li> <li><a href=\''.$domain.'/index.php?action=admin&case=managecategories\'>Manage Categories</a></li> <li><a href=\''.$domain.'/index.php?action=admin&case=addlink\'>Add Link</a></li> <li><a href=\''.$domain.'/index.php?action=admin&case=managelinks\'>Manage Links</a></li> <li><a href=\''.$domain.'/index.php?action=admin&case=approvecomments\'>Approve Comments</a></li> <li><a href=\''.$domain.'/index.php?action=admin&case=settings\'>Site Settings</a></li> </ul>'; ?> </td> </tr> </table> <? } ?> <table width="100%"> <tr> <td class="header2">Top Users</td> </tr> <tr> <td class="content2"> <?php echo '<ul class=\'catmenu\'>'; $tur = $db->query('SELECT username, userid, plays FROM dd_users ORDER BY plays DESC LIMIT 0,15'); while($r = $db->fetch_row($tur)){ echo ' <li>'.$r['username'].' - ('.$r['plays'].')</li>'; } echo ' </ul>'; ?><p> </td> </tr> <tr> <td class="header2">Ads</td> </tr> <tr> <td class="content2"> <?php echo $ads1; ?><p> </td> </tr> </table> </td> <td valign="top" width="660">
<table width="100%"> <tr> <td class="header2">Top Game</td> </tr> <tr> <td class="content2"><?php;if(empty($show)){ $show = 1;}$limits = ($show - 1) * $max; $r = $db->query(sprintf('SELECT * FROM dd_games ORDER BY views DESC LIMIT 0,1'));$totalres = mysql_result($db->query('SELECT COUNT(ID) AS total FROM dd_games'),0); $totalpages = ceil($totalres / $max); echo '<table width=\'100%\' border=\'0\' align=\'center\'> <tr> </tr>';$count = 0;while($in = $db->fetch_row($r)){$gamename = ereg_replace('[^A-Za-z0-9]', '', $in['name']); if($seo_on == 1){ $playlink = ''.$domain.'/play/'.$in['ID'].'-'.$gamename.'.html'; }else{ $playlink = ''.$domain.'/index.php?action=play&ID='.$in['ID'].''; }if($count%2==0){ echo '<tr> <td width=\'50%\' valign=\'top\'> <table width=\'100%\' border=\'0\'> <tr> <td valign=\'top\' colspan=\'2\' class=\'header5\'><b>'.$in['name'].'</b></td> </tr> <tr> <td width=\'55\' height=\'55\' valign=\'top\' class=\'content5\'> <a href=\''.$playlink.'\'> '; if($in['type'] == 1){ echo ' <img src=\''.$domain.'/'.$thumbsfolder.'/'.$in['thumb'].'\' width=\'55\' width=\'55\' border=\'0\'>'; }else{ echo ' <img src=\''.$in['thumburl'].'\' width=\'55\' width=\'55\' border=\'0\'>'; } echo ' </a> </td> <td> <a href=\''.$playlink.'\' class=\'playlink\'><b>Play</b></a></td> </tr> </table></td> ';}else{ echo '';}$count++;}echo "</table>";?> </td> </tr> </table>
<table width="100%"> <tr> <td class="header2">Top Game</td> </tr> <tr> <td class="content2"><?php$r = $db->query(sprintf('SELECT * FROM dd_games ORDER BY views DESC LIMIT 0,1'));echo '<table width=\'100%\' border=\'0\' align=\'center\'> <tr> </tr>';$count = 0;while($in = $db->fetch_row($r)){$gamename = ereg_replace('[^A-Za-z0-9]', '', $in['name']); if($seo_on == 1){ $playlink = ''.$domain.'/play/'.$in['ID'].'-'.$gamename.'.html'; }else{ $playlink = ''.$domain.'/index.php?action=play&ID='.$in['ID'].''; }if($count%2==0){ echo '<tr> <td width=\'50%\' valign=\'top\'> <table width=\'100%\' border=\'0\'> <tr> <td valign=\'top\' colspan=\'2\' class=\'header5\'><b>'.$in['name'].'</b></td> </tr> <tr> <td width=\'55\' height=\'55\' valign=\'top\' class=\'content5\'> <a href=\''.$playlink.'\'> '; if($in['type'] == 1){ echo ' <img src=\''.$domain.'/'.$thumbsfolder.'/'.$in['thumb'].'\' width=\'55\' width=\'55\' border=\'0\'>'; }else{ echo ' <img src=\''.$in['thumburl'].'\' width=\'55\' width=\'55\' border=\'0\'>'; } echo ' </a> </td> <td> <a href=\''.$playlink.'\' class=\'playlink\'><b>Play</b></a></td> </tr> </table></td> ';}else{ echo '';}$count++;}echo "</table>";?> </td> </tr> </table>
<table width="100%"> <tr> <td class="header2">Top Game</td> </tr> <tr> <td class="content2"><?php$r = mysql_query("SELECT * FROM dd_games ORDER BY views DESC LIMIT 0,1");echo '<table width="100%" border="0" align="center"> <tr> </tr>';while($in = mysql_fetch_array($r)){ $gamename = $in['name']; $description=substr($in['description'], 0, 17); if($seo_on == 1){ $playlink = ''.$domain.'/play/'.$in['ID'].'-'.$gamename.'.html'; }else{ $playlink = ''.$domain.'/index.php?action=play&ID='.$in['ID'].''; } echo '<tr> <td width="50%" valign="top"> <table width="100%" border="0"> <tr> <td valign="top" colspan="2" class="header5"><b>'.$in['name'].'</b></td> </tr> <tr> <td width="45" height="45" valign="top" class="content5"> <a href="'.$playlink.'">'; if($in['type'] == 1){ $image='<img src="'.$domain.'/'.$thumbsfolder.'/'.$in['thumb'].'" width="45" height="45" border="0">'; }else{ $image='<img src="'.$in['thumburl'].'" width="45" height="45" border="0">'; } echo ''.$image.'</a> </td> <td><small>'.$description.'...</small> <a href="'.$playlink.'" class="playlink"><b>Play</b></a></td> </tr> </table></td>'; }?> </table></table>
<table cellpadding="0" cellspacing="0" width="100%"> <tr> <td class="header2">Random Game</td> </tr> <tr> <td class="content2"><?php$r = $db->query(sprintf('SELECT * FROM dd_games ORDER BY RAND() DESC LIMIT 0,1'));echo '<table width=\'100%\' border=\'0\' align=\'center\'> <tr> </tr>';$count = 0;while($in = $db->fetch_row($r)){$gamename = ereg_replace('[^A-Za-z0-9]', '', $in['name']); if($seo_on == 1){ $playlink = ''.$domain.'/play/'.$in['ID'].'-'.$gamename.'.html'; }else{ $playlink = ''.$domain.'/index.php?action=play&ID='.$in['ID'].''; }if($count%2==0){ echo '<tr> <td width=\'50%\' valign=\'top\'> <table width=\'100%\' border=\'0\'> <tr> <td valign=\'top\' colspan=\'2\' class=\'header\' style="background-color:#F2F2F2;border-bottom:0px;"><center><b>'.$in['name'].'</b></center></td> </tr><tr><td></td></tr> <tr> <td width=\'55\' height=\'55\' valign=\'top\' class=\'content5\'> <a href=\''.$playlink.'\'> '; if($in['type'] == 1){ echo ' <img src=\''.$domain.'/'.$thumbsfolder.'/'.$in['thumb'].'\' width=\'55\' height=\'55\' border=\'1px solid #000000\'>'; }else{ echo ' <img src=\''.$in['thumburl'].'\' width=\'55\' height=\'55\' border=\'0\'>'; } echo ' </a> </td> <td> <a href=\''.$playlink.'\' class=\'playlink\'><b>Click to Play</b><br />Plays: 405</a></td> </tr> </table></td> ';}else{ echo '';}$count++;}echo "</table>";?> </td> </tr> </table>
<table cellpadding="0" cellspacing="0" width="100%"> <tr> <td class="header2">Random Game</td> </tr> <tr> <td class="content2"><?php$r = $db->query(sprintf('SELECT * FROM dd_games ORDER BY RAND() DESC LIMIT 0,1'));echo '<table width=\'100%\' border=\'0\' align=\'center\'> <tr> </tr>';$count = 0;while($in = $db->fetch_row($r)){$gamename = ereg_replace('[^A-Za-z0-9]', '', $in['name']); if($seo_on == 1){ $playlink = ''.$domain.'/play/'.$in['ID'].'-'.$gamename.'.html'; }else{ $playlink = ''.$domain.'/index.php?action=play&ID='.$in['ID'].''; }if($count%2==0){ echo '<tr> <td width=\'50%\' valign=\'top\'> <table width=\'100%\' border=\'0\'> <tr> <td valign=\'top\' colspan=\'2\' class=\'header\' style="background-color:#F2F2F2;border-bottom:0px;"><center><b>'.$in['name'].'</b></center></td> </tr><tr><td></td></tr> <tr> <td width=\'55\' height=\'55\' valign=\'top\' class=\'content5\'> <a href=\''.$playlink.'\'> '; if($in['type'] == 1){ echo ' <img src=\''.$domain.'/'.$thumbsfolder.'/'.$in['thumb'].'\' width=\'55\' height=\'55\' border=\'1px solid #000000\'>'; }else{ echo ' <img src=\''.$in['thumburl'].'\' width=\'55\' height=\'55\' border=\'0\'>'; } echo ' </a> </td> <td> <a href=\''.$playlink.'\' class=\'playlink\'><b>Click to Play</b><br />Plays: '.$in['views'].'</a></td> </tr> </table></td> ';}else{ echo '';}$count++;}echo "</table>";?> </td> </tr> </table>