Ejemplo n.º 1
0
			$cgi['mercs_attacks'] = 1;
		}
		$cgi['mercs_attacks'] = round($cgi['mercs_attacks'], 0);
		if ($cgi['mercs_attacks'] > $user->samercs) $cgi['mercs_attacks'] = $merc->samercs;
		$gold = $cgi['mercs_attacks'] * 5000;
		updateMercenary(" attackSpecCount=attackSpecCount+{$cgi['mercs_attacks']} ");
		updateUser($_SESSION['isLogined'], " samercs=samercs-{$cgi['mercs_attacks']} , gold=gold+$gold ");
	}
	if ($cgi['mercs_defends']) {
		if ($cgi['mercs_defends'] < 1.0) {
			$cgi['mercs_defends'] = 1;
		}
		$cgi['mercs_defends'] = round($cgi['mercs_defends'], 0);
		if ($cgi['mercs_defends'] > $user->damercs) $cgi['mercs_defends'] = $user->damercs;
		$gold = $cgi['mercs_defends'] * 5000;
		updateMercenary(" defSpecCount =defSpecCount +{$cgi['mercs_defends']} ");
		updateUser($_SESSION['isLogined'], " damercs=damercs-{$cgi['mercs_defends']}  , gold=gold+$gold ");
	}
	updateUserStats($user);
	header("Location: mercs.php?strErr=$strErr");
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML><HEAD><TITLE><? echo $conf["sitename"]; ?> :: Neutral Portuguese Mercenaries  </TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1"><!-- ZoneLabs Privacy Insertion -->
<SCRIPT language=javascript src="js/js"></SCRIPT>
<LINK href="css/common.css" type=text/css rel=stylesheet>
<META  
content="ww2 , rpg, mmorpg, role playing, game, online game, text based game, armory, mercenaries, spy, attack, army, battle, recruit, spies, spy skill, weapons, messaging, sabotage, recon, intelligence, pnp, mud, games, stockade, free, browser game" 
name=keywords>
Ejemplo n.º 2
0
function setLastTurnTime($date) {
	updateMercenary(" lastturntime = '$date' ");
}