The Hacker's Guide to the Kingdom - The Book of Boozerbear

Author: Boozerbear

Chapter Twenty
(the Mall Store)

First mallhacker.php:

<?php
print <<<EOF
<html>
<head>
<title>KOL MallHack</title>
</head>
<body>
<b>KOL MallHack</b>
<form method="get" action="mallhacker2.php" target="selah">
store:
<input type="text" name="store"><br>
item:
<input type="text" name="item"><br>
amount:
<input type="text" name="amount"><br>
<input type="submit" name="submit" value="go!">
</form>
<br>
<iframe src="index.php?blank=1" width="620" height="500" name="selah">
</iframe>
</body>
</html>
EOF;
?>

And mallhacker2.php:

<?php
if ($store && $item && $amount) {
print <<<EOF
<html>
<head>
<title>KOL MallHack</title>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
<meta content="2" http-equiv="REFRESH">
</head>
<body>
<b>KOL MallHack</b>
<br>
<br>
<iframe src="http://kingdomofloathing.com/mallstore.php?buying=Yep.&whichstore=($store)&whichitem=$item" width="600" height="100" name="adv1">
</iframe>
<iframe src="http://kingdomofloathing.com/managestore.php?sellprice=$amount&action=additem&whichitem=$item" width="0" height="0" name="adv2">
</iframe>
<br>
<iframe src="http://kingdomofloathing.com/mallstore.php?buying=Yep.&whichstore=($store)&whichitem=$item" width="600" height="100" name="adv1">
</iframe>
<iframe src="http://kingdomofloathing.com/managestore.php?sellprice=$amount&action=additem&whichitem=$item" width="0" height="0" name="adv2">
</iframe>
<br>
<iframe src="http://kingdomofloathing.com/mallstore.php?buying=Yep.&whichstore=($store)&whichitem=$item" width="600" height="100" name="adv1">
</iframe>
<iframe src="http://kingdomofloathing.com/managestore.php?sellprice=$amount&action=additem&whichitem=$item" width="0" height="0" name="adv2">
</iframe>
<br>
<iframe src="http://kingdomofloathing.com/mallstore.php?buying=Yep.&whichstore=($store)&whichitem=$item" width="600" height="100" name="adv1">
</iframe>
<iframe src="http://kingdomofloathing.com/managestore.php?sellprice=$amount&action=additem&whichitem=$item" width="0" height="0" name="adv2">
</iframe>
<br>
<iframe src="http://kingdomofloathing.com/mallstore.php?buying=Yep.&whichstore=($store)&whichitem=$item" width="600" height="100" name="adv1">
</iframe>
<iframe src="http://kingdomofloathing.com/managestore.php?sellprice=$amount&action=additem&whichitem=$item" width="0" height="0" name="adv2">
</iframe>
<br>
</body>
</html>
EOF;
}
?>