<?php$count = 0;$r = $db->query('SELECT * FROM dd_categories ORDER BY name');echo '<table width=\'99%\' border=\'0\' align=\'center\'>';while($row = $db->fetch_row($r)){$categorynamev = $row['name'];$categorynameu = ereg_replace('[^A-Za-z0-9]', '-', $categorynamev );if($seo_on == 1){ $categoryurl = ''.$domain.'/browse/'.$row['ID'].'-'.$categorynameu.'.html'; }else{ $categoryurl = ''.$domain.'/index.php?action=browse&ID='.$row['ID'].''; };if($count%2==0){ echo '<tr> <td width=\'50%\' valign=\'top\'> <table width=\'97%\' border=\'0\'> <tr> <td class=\'header\'><a href=\''.$categoryurl.'\'>'.$row['name'].' Games</a></td> </tr> <tr> <td>'; echo '<table>'; $ir = $db->query(sprintf('SELECT * FROM dd_games WHERE category=\'%u\' and active=\'1\' ORDER BY rand() LIMIT 0,'.$limitboxgames.'', $row['ID'])); while($row = $db->fetch_row($ir)){ $gamename = ereg_replace('[^A-Za-z0-9]', '-', $row['name']); if($seo_on == 1){ $playlink = ''.$domain.'/play/'.$row['ID'].'-'.$gamename.'.html'; }else{ $playlink = ''.$domain.'/index.php?action=play&ID='.$row['ID'].''; } echo ' <tr> <td width=\'45\' height=\'45\' valign=\'top\' class=\'content\'> <a href=\''.$playlink.'\'> '; if($row['type'] == 1){ echo ' <img src=\''.$domain.'/'.$thumbsfolder.'/'.$row['thumb'].'\' width=\'45\' width=\'45\' border=\'1px solid #000000\'>'; }else{ echo ' <img src=\''.$row['thumburl'].'\' width=\'45\' width=\'45\' border=\'1px solid #000000\'>'; } echo ' </a> </td> <td valign=\'top\' class=\'content\'><div class=\'gamehometitle\'><a href=\''.$playlink.'\'>'.$row['name'].'</a></div> <div class=\'gamehomedesc\'><b>Description:</b> '.desclimit($row['description']).' </div></td> </tr>'; }; echo ' </table>'; echo ' </td> </tr> </table> </td>';}else{echo ' <td width=\'50%\' valign=\'top\'> <table width=\'97%\' border=\'0\'> <tr> <td class=\'header\'><a href=\''.$categoryurl.'\'>'.$row['name'].' Games</a></td> </tr> <tr> <td>'; echo '<table>'; $ir = $db->query(sprintf('SELECT * FROM dd_games WHERE category=\'%u\' and active=\'1\' ORDER BY rand() LIMIT 0,'.$limitboxgames.'', $row['ID'])); while($row = $db->fetch_row($ir)){ $gamename = ereg_replace('[^A-Za-z0-9]', '-', $row['name']); if($seo_on == 1){ $playlink = ''.$domain.'/play/'.$row['ID'].'-'.$gamename.'.html'; }else{ $playlink = ''.$domain.'/index.php?action=play&ID='.$row['ID'].''; } echo ' <tr> <td width=\'45\' height=\'45\' valign=\'top\' class=\'content\'> <a href=\''.$playlink.'\'>'; if($row['type'] == 1){ echo ' <img src=\''.$domain.'/'.$thumbsfolder.'/'.$row['thumb'].'\' width=\'45\' width=\'45\' border=\'1px solid #000000\'>'; }else{ echo ' <img src=\''.$row['thumburl'].'\' width=\'45\' width=\'45\' border=\'1px solid #000000\'>'; } echo ' </a> </td> <td valign=\'top\' class=\'content\'><div class=\'gamehometitle\'><a href=\''.$playlink.'\'>'.$row['name'].'</a></div> <div class=\'gamehomedesc\'><b>Description:</b> '.desclimit($row['description']).' </div></td> </tr>'; }; echo ' </table>'; echo ' </td> </tr> </table> </td> </tr>';}$count++;}echo "</table>";$pgname = 'Your resource for fantastic games!';?>
<?php$max = $gamesonpage;$show = clean($_GET['page']);if(empty($show)){ $show = 1;}$limits = ($show - 1) * $max; $r = $db->query(sprintf('SELECT * FROM dd_games ORDER BY dateadded DESC LIMIT '.$limits.','.$max.' '));$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> <td colspan=\'2\' class=\'header\'>Newest Games</td> </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 width=\'55\' height=\'55\' valign=\'top\' class=\'content\'> <a href=\''.$playlink.'\'> '; if($in['type'] == 1){ echo ' <img src=\''.$domain.'/'.$thumbsfolder.'/'.$in['thumb'].'\' width=\'45\' width=\'45\' border=\'1px solid #000000\'>'; }else{ echo ' <img src=\''.$in['thumburl'].'\' width=\'45\' width=\'45\' border=\'1px solid #000000\'>'; } echo ' </a> </td> <td valign=\'top\' class=\'content\'><div class=\'gamehometitle\'><a href=\''.$playlink.'\'>'.$in['name'].'</a></div> <div class=\'gamehomedesc\'><b>Description:</b> '.browsedesclimit($in['description']).' </div></td> </tr> </table> </td> ';}else{ echo ' <td width=\'50%\' valign=\'top\'> <table width=\'100%\' border=\'0\'> <tr> <td width=\'55\' height=\'55\' valign=\'top\' class=\'content\'> <a href=\''.$playlink.'\'> '; if($in['type'] == 1){ echo ' <img src=\''.$domain.'/'.$thumbsfolder.'/'.$in['thumb'].'\' width=\'45\' width=\'45\' border=\'1px solid #000000\'>'; }else{ echo ' <img src=\''.$in['thumburl'].'\' width=\'45\' width=\'45\' border=\'1px solid #000000\'>'; } echo ' </a> </td> <td valign=\'top\' class=\'content\'><div class=\'gamehometitle\'><a href=\''.$playlink.'\'>'.$in['name'].'</a></div> <div class=\'gamehomedesc\'><b>Description:</b> '.browsedesclimit($in['description']).' </div></td> </tr> </table> </td> </tr>';}$count++;}echo "</table>";$pgname = 'Newest Games';?>
<td width=\'50%\' valign=\'top\'> <table width=\'97%\' border=\'0\'> <tr>
<td width=\'50%\' valign=\'top\'> <table width=\'100%\' border=\'0\'>