0) { $db->query("UPDATE mp_games SET views=views+1 WHERE id='$id'"); $query2 = $db->query("SELECT name,file_name FROM mp_games WHERE id='$id' LIMIT 1"); while($myrow=$db->fetch_array($query2)) { eval("\$center .= \"".template("games_play")."\";"); } }else { $query2 = $db->query("SELECT * FROM $table_games ORDER BY id DESC"); while($myrow=$db->fetch_array($query2)) { eval("\$games_row .= \"".template("games_row")."\";"); } eval("\$center .= \"".template("games")."\";"); } $mtime2 = explode(" ", microtime()); $endtime = $mtime2[1] + $mtime2[0]; $totaltime = ($endtime - $starttime); $totaltime = number_format($totaltime, 7); eval("\$out .= \"".template("footer")."\";"); finish(); ?>