-
Notifications
You must be signed in to change notification settings - Fork 0
/
magic.php
26 lines (25 loc) · 927 Bytes
/
magic.php
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");
include("magicfun.php");
?>
<a href="<?=$config[main]?>?action=guide&section=magic&era=<?=$users[era]?>">Promisance Guide: Magic</a><br>
<form method="post" action="<?=$config[main]?>?action=magic">
<table class="inputtable">
<tr><td><select name="spell_num" size="1">
<option value="0">Select a Spell</option>
<?
for ($i = 1; $i <= 13; $i++)
if (($sptype[$i] == 'd') && ($spname[$i]))
printMRow($i);
?>
</select></td></tr>
<tr><td class="acenter"><input type="submit" name="do_spell" value="Cast Spell"></td></tr>
</table>
</form>
<?
if ($users[shield] > $time)
print "<i>We currently have a shield against magic which will last for ".round(($users[shield]-$time)/3600,1)." more hours.</i><br>\n";
if ($users[gate] > $time)
print "<i>We currently have an open time portal which will last for ".round(($users[gate]-$time)/3600,1)." more hours.</i><br>\n";
TheEnd("");
?>