Location: PHPKode > projects > EliteSquadrons Promisance (TM) > esprom2_3_1/bonus.php
<?
include('const.php');
include('header.php');
include('funcs.php');
if ($action == "ad")
{
	if (!$lockdb)
	{
		$giveturns = ceil(60 / $perminutes) * $turnsper;
		$free = $time+86400;
		mysql_query("UPDATE $playerdb SET free=$free,turns=turns+$giveturns WHERE free<$time AND username='$cookie[usernamecookie]' AND password='$cookie[passwordcookie]';");
	}
	 print "You have have been granted $freeturns turns and $free free sectors.  Thank you for visiting our sponsors!\n";

	exit;
}



?>
Return current item: EliteSquadrons Promisance (TM)