Location: PHPKode > projects > EliteSquadrons Promisance (TM) > esprom2_3_1/ltest.php
<?
include("header.php");

if ($do_land)
{
	$users[land] += $land;
	$users[freeland] += $land
	print "You added ".commas($land)." acres to your empire!\n";
	saveUserDataNet($users,"networth land freeland");
}
if ($do_turns)
{
	$users[turns] += $turns;
	print "You added ".commas($turns)." turns to your empire!\n";
	saveUserDataNet($users,"turns");
}
if ($do_wiz)
{
	$users[wizards] += $wiz;
	print "You added ".commas($wiz)." wizards to your empire!\n";
	saveUserDataNet($users,"wizards");
}
if ($do_tused)
{
	$users[turnsused] = $tused;
	print "Turns used set to: ".commas($tused)."!\n";
	saveUserDataNet($users,"turnsused");
}

?>
<form method="post" action="<?=$config[main]?>?action=ltest">
<table class="inputtable">
<tr><th>Land</th></tr>
<tr><td><input type=text name=land size=4> <input type=submit name="do_land" value="Yum!"></td></tr>
<tr><th>Turns</th></tr>
<tr><td><input type=text name=turns size=2> <input type=submit name="do_turns" value="Yum!"></td></tr>
<tr><th>Wizards</th></tr>
<tr><td><input type=text name=wiz size=4> <input type=submit name="do_wiz" value="Yum!"></td></tr>
<tr><th>Turns Used</th></tr>
<tr><td><input type=text name=tused size=2> <input type=submit name="do_tused" value="Yum!"></td></tr>
<tr><th><a href="<?=$config[main]?>?action=market&show=market">Market</th></tr></table>
</form>
<?
TheEnd("");
?>
Return current item: EliteSquadrons Promisance (TM)