startheaders();
include "mysql.php";
global $c;
$is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error());
$ir=mysql_fetch_array($is);
check_level();
$fm=money_formatter($ir['money']);
$cm=money_formatter($ir['crystals'],'');
$lv=date('F j, Y, g:i a',$ir['laston']);
$h->userdata($ir,$lv,$fm,$cm);
$h->menuarea();
print "Tournament Registration";
$tq=mysql_query("SELECT * FROM `users` WHERE `registered_tournament` = '1'",$c);
if(mysql_num_rows($tq) > 500)
{
print "I'm sorry the tournament is not accepted anymore people
There is already ".mysql_num_rows($tq)." Competitors, You need to wait for the next competition for more details.
Home";
}
if($ir['money'] < 250000)
{
print "You do not have enough money to join the tournament
You need \$250,000 to join the tournament
Home";
} else if($ir['registered_tournament'] == 1)
{
print "I'm sorry, You have already registered in this tournament.";
} else {
if($_GET['confirmed'] = =1)
{
mysql_query("UPDATE `users` SET `registered_tournament` = '1', `money` = `money` - '250000' WHERE `userid` = '{$userid}'");
print "You have successfully entered the tournament
If anytime you would like to view your current tournament status you can always
go in your menu and click 'Tournament Status' and then you can view who you are fighting.
If you want to forfeit the competition a fee of \$250,000 will be charged and 30 minutes in hospital. Click 'Forfeit Tournament'.
Home
";
} else {
print "
| Rules of the Tournament |
|---|