diff options
Diffstat (limited to 'craftmine.php')
-rw-r--r-- | craftmine.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/craftmine.php b/craftmine.php index 5df926f..869c83a 100644 --- a/craftmine.php +++ b/craftmine.php @@ -1,7 +1,10 @@ <?php -session_start(); require_once("inc/mine.inc"); +require_once("inc/shop.inc"); + +session_start(); // Must be placed *BEFORE* $_SESSION is actually used and *AFTER* all classes are imported + /** * Indique au client une message requete. */ @@ -32,7 +35,9 @@ if (!isset($_POST["op"])) { $op = $_POST["op"]; switch($op) { case "withdrawMine": withdrawMine(); break; - case "getCraftMine": sendMine(); break; + case "getCraftMine": sendCraftMine(); break; + case "buildShop": buildShop(); break; + case "buyItem": buyItem(); break; default: reportBadRequest(); } |