-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfarm.php
More file actions
26 lines (26 loc) · 741 Bytes
/
Copy pathfarm.php
File metadata and controls
26 lines (26 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?
include("header.php");
if ($do_farm)
{
fixInputNum($farm_turns);
if ($farm_turns < 0)
TheEnd("Cannot farm for a negative number of turns!");
if ($farm_turns > $users[turns])
TheEnd("You don't have enough turns!");
$turns = takeTurns($farm_turns,farm);
?>
You gained a total of <?=commas($foodgained)?> <?=$uera[food]?> in <?=$turns?> turns.<hr>
<?
}
?>
<form method="post" action="<?=$config[main]?>?action=farm">
<table class="inputtable">
<tr><td>Spend how many turns farming?</td>
<td><input type="text" name="farm_turns" size="5" value="0">
<input type="hidden" name="do_farm" value="1"></td></tr>
<tr><td colspan="2" class="acenter"><input type="submit" value="Farm"></td></tr>
</table>
</form>
<?
TheEnd("");
?>