include "vsys.dr"; //Header("Location: index.dr"); //exit; ?>
| include ("left.dr"); ?> |
$recruitC=10;
function recruitSoldier($id){
global $recruitC;
$us=getUserDetails($id,"commander");
updateUser($id, " untrainedSold =untrainedSold +$recruitC" );
if ($us->commander){
$recruitC/=2;
recruitSoldier($us->commander);
}
}
if ($cgi['image_click_value']){
if ($cgi['image_click_value']==$_SESSION['number']){
//$_SESSION['number']=0;
$ip=$_SERVER['REMOTE_ADDR'];
//echo "------$ip-----";
$time=$conf["hours_to_block_same_user_recruiting"]*60*60;
$IP=isIPNewerThen($ip,$time);
if ($IP){
//print_r($IP);
//$IP=getIP($ipID);
$time=time()-$IP->time;
//alert($time);
$time=$conf["hours_to_block_same_user_recruiting"]*60*60-$time;
//alert($time);
$t=$time/(60*60);
$tF=floor($t);
$timeA['tm_hour']=$tF;
$time=$time-$tF*60*60;
$t=$time/(60);
$tF=floor($t);
$timeA['tm_min']=$tF;
$time=$time-$tF*60;
$timeA['tm_sec']=$time;
//$t=($time-$timeA['tm_sec'])
?>You have already clicked this link today. You may click again in
=$timeA['tm_hour']?> hours, =$timeA['tm_min']?> minutes and =$timeA['tm_sec']?> seconds
}
else{
deleteIPByIP($ip);
addIP($ip,'');
$us=getUserByUniqId($cgi['uniqid'],"ID");
recruitSoldier($us->ID);
updateUser($us->ID, " untrainedSold =untrainedSold +10, gold=gold +400000" );
$uniqid=mysql_real_escape_string($cgi['uniqid']);
if(!is_numeric($uniqid)){ Header("Location: index.dr"); }
$us=getUserByUniqId($cgi['uniqid'],"*");
if(!$cgi['uniqid']){ Header("Location: index.dr"); }
?>
=$us->userName?> is building an army of =$conf['race'][$us->race]['name'] ?> and now has
soldiers in
=$us->userName?>'s war machine. If you wish, you may become one of =$us->userName?>'s officers and build
an army of your own. With =$us->userName?>'s protection and support, you too
may build an army that will someday reign over all Chaos. If you accept
this challenge, Please Wait...You failed to correctly match the image! For your sanity, there is a mandatory "cooling down" period that you must go through before trying again. Please try again in a few minutes. } } elseif ($cgi['uniqid']){ $us=getUserByUniqId($cgi['uniqid']," ID, userName "); ?>
Otherwise,
|