<?php
/*
*----------------------------phpMyBitTorrent V 2.0-beta4-----------------------*
*--- The Ultimate BitTorrent Tracker and BMS (Bittorrent Management System) ---*
*--------------   Created By Antonio Anzivino (aka DJ Echelon)   --------------*
*-------------               http://www.p2pmania.it               -------------*
*------------ Based on the Bit Torrent Protocol made by Bram Cohen ------------*
*-------------              http://www.bittorrent.com             -------------*
*------------------------------------------------------------------------------*
*------------------------------------------------------------------------------*
*--   This program is free software; you can redistribute it and/or modify   --*
*--   it under the terms of the GNU General Public License as published by   --*
*--   the Free Software Foundation; either version 2 of the License, or      --*
*--   (at your option) any later version.                                    --*
*--                                                                          --*
*--   This program is distributed in the hope that it will be useful,        --*
*--   but WITHOUT ANY WARRANTY; without even the implied warranty of         --*
*--   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          --*
*--   GNU General Public License for more details.                           --*
*--                                                                          --*
*--   You should have received a copy of the GNU General Public License      --*
*--   along with this program; if not, write to the Free Software            --*
*-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA --*
*--                                                                          --*
*------------------------------------------------------------------------------*
*------              ©2005 phpMyBitTorrent Development Team              ------*
*-----------               http://phpmybittorrent.com               -----------*
*------------------------------------------------------------------------------*
*-----------------   Sunday, September 14, 2008 9:05 PM   ---------------------*
*/

include("header.php");

OpenTable("ARCADE");

//delete this line if you have casino installed
////////////////////NOUVELLE VERIF DES CLASSES/////////////////////////////
$res = "SELECT * FROM ".$db_prefix."_casino_config;";
$res_arcade = $db->sql_query($res);
$arr = $db->sql_fetchrow($res);
$db->sql_freeresult($res);
while ($arr = $db->sql_fetchrow($res_arcade))
$arr_config[$arr['name']] = $arr['value'];
if (!$arr_config["enable"])btderr("Sorry", "Lottery is disabled.");
///////////////////////////////////////////////////////////////////
$access_level = $arr_config["class_allowed"];
switch ($access_level) {
        case "user": {
                if (!$user->user) loginrequired("user");
                break;
        }
        case "premium": {
                if (!$user->premium) loginrequired("premium");
                break;
        }
        case "moderator": {
                if (!$user->moderator) loginrequired("moderator");
                break;
        }
        case "admin": {
                if (!$user->admin) loginrequired("admin");
                break;
        }
}

?>
<table align=center width=60% border=2 cellspacing=0 cellpadding=10>
<div align=center>
<p><h3><b><?php echo $sitename?> Flash Arcade</b></h3></p>
<hr>
<tr>
<td align=center><b><a href=flash.php?gameURI=asteroids.swf&gamename=Asteroids&gameid=1><img src="flash/asteroids.gif"></img></b><p><b>Play Asteroids</b></p></a></td>
<td align=center><b><a href=flash.php?gameURI=breakout.swf&gamename=Breakout&gameid=2><img src="flash/breakout.gif"></img></b><p><b>Play Breakout</b></p></a></td>
<td align=center><b><a href=flash.php?gameURI=hexxagon.swf&gamename=Hexxagon&gameid=3><img src="flash/hexxagon.gif"></img></b><p><b>Play Hexxagon</b></p></a></td>
</tr>
<tr>
<td align=center><b><a href=flash.php?gameURI=DAbuddy_latest.swf&gamename=Buddy><img src="flash/Buddy.jpg"></img></b><p><b>Play Interactive Buddy</b></p></a></td>
<td align=center><b><a href=flash.php?gameURI=invaders.swf&gamename=Invaders&gameid=4><img src="flash/space.gif"></img></b><p><b>Play Invaders</b></p></a></td>
<td align=center><b><a href=flash.php?gameURI=moonlander.swf&gamename=Moonlander&gameid=5><img src="flash/moonlander.gif"></img></b><p><b>Play Moonlander</b></p></a></td>
</tr>
<tr>
<td align=center><b><a href=flash.php?gameURI=pacman.swf&gamename=Pac-Man&gameid=6><img src="flash/pacman.gif"></img></b><p><b>Play Pac-Man</b></p></a></td>
<td align=center><b><a href=flash.php?gameURI=psol.swf&gamename=Solitaire&gameid=7><img src="flash/psol.gif"></img></b><p><b>Play Solitaire</b></p></a></td>
<td align=center><b><a href=flash.php?gameURI=simon.swf&gamename=Simon&gameid=8><img src="flash/simon.gif"></img></b><p><b>Play Simon</b></p></a></td>
</tr>
<tr>
<td align=center><b><a href=flash.php?gameURI=snake.swf&gamename=Snake&gameid=9><img src="flash/snake.gif"></img></b><p><b>Play Snake</b></p></a></td>
<td align=center><b><a href=flash.php?gameURI=stanjames.swf&gamename=Freekick><img src="flash/stanjames.gif"></img></b><p><b>Play James Original Free-kick Challenge</b></p></a></td>
<td align=center><b><a href=flash.php?gameURI=starcraftfa3.swf&gamename=Starcraft><img src="flash/starcraft.gif"></img></b><p><b>Play Starcraft Flash Action 3</b></p></a></td>
</tr>
<tr>
<td align=center><b><a href=flash.php?gameURI=tetris.swf&gamename=tetris&gameid=10><img src="flash/tetris.gif"></img></b><p><b>Play Tetris</b></p></a></td>
<td align=center>&nbsp;</td>
<td align=center>&nbsp;</td>
</tr>
</form>
</div>
</table>
<p><h2><center>Modded for <span class="style1">phpMyBitTorrent&copy; 2005-2006</span> By <span class="style1"><a href="http://www.moviegamesmore.net">Joeroberts&copy;</a></span></center><br/><center></center></h2></p>
<p><center><b><a href=flashscores.php><h3><b>View Highscores</b></h3></a></center></p>
<p><center><b><a href=flashscores2.php><h3><b>View Highscores stats </b></h3></a></center></p>
<?php
CloseTable();
include ("footer.php");
?>
