function favorites(){global $domain, $db, $usrdata, $thumbsfolder, $gamesfolder, $seo_on;echo '<h2>My Favorites</h2>';$ro = $db->fetch_row($db->query(sprintf('SELECT * FROM dd_user_favorites WHERE userid=\''.$usrdata['userid'].'\'')));echo '<table width=\'100%\' border=\'0\'>';while($in = $db->fetch_row($ro)){$r = $db->query(sprintf('SELECT * FROM dd_games WHERE ID=\'%u\'', $in['gameid']));$gamename = ereg_replace('[^A-Za-z0-9]', '', $r['name']); if($seo_on == 1){ $playlink = ''.$domain.'/play/'.$r['ID'].'-'.$gamename.'.html'; }else{ $playlink = ''.$domain.'/index.php?action=play&ID='.$r['ID'].''; } echo ' <tr> <td valign=\'top\' colspan=\'2\' class=\'header\'><b>'.$r['name'].'</b></td> </tr> <tr> <td width=\'55\' height=\'55\' valign=\'top\' class=\'content\'> <a href=\''.$playlink.'\'> '; if($in['type'] == 1){ echo ' <img src=\''.$domain.'/'.$thumbsfolder.'/'.$r['thumb'].'\' width=\'55\' width=\'55\' border=\'0\'>'; }else{ echo ' <img src=\''.$r['thumburl'].'\' width=\'55\' width=\'55\' border=\'0\'>'; } echo ' </a> </td> <td valign=\'top\' class=\'content\'>'.browsedesclimit($r['description']).' <a href=\''.$playlink.'\' class=\'playlink\'><b>Play</b></a></td> </tr>';}echo '</table>';echo ' ';}
function favorites(){global $domain, $db, $usrdata, $thumbsfolder, $gamesfolder, $seo_on;echo '<h2>My Favorites</h2>';$ro = $db->query(sprintf('SELECT * FROM dd_user_favorites WHERE userid=\''.$usrdata['userid'].'\''));echo '<table width=\'100%\' border=\'0\'>';while($r = $db->fetch_row($ro)){$in1 = $db->query(sprintf('SELECT * FROM dd_games WHERE ID=\'%u\'', $r['gameid']));$in = $db->fetch_row($in1);$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'].''; } echo ' <tr> <td valign=\'top\' colspan=\'2\' class=\'header\'><b>'.$in['name'].'</b></td> </tr> <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=\'55\' width=\'55\' border=\'0\'>'; }else{ echo ' <img src=\''.$in['thumburl'].'\' width=\'55\' width=\'55\' border=\'0\'>'; } echo ' </a> </td> <td valign=\'top\' class=\'content\'>'.browsedesclimit($in['description']).' <a href=\''.$playlink.'\' class=\'playlink\'><b>Play</b></a></td> </tr>';}echo '</table>';echo ' ';}