diff options
author | alexichi <alexbankai96@gmail.com> | 2016-04-25 10:43:56 +0200 |
---|---|---|
committer | alexichi <alexbankai96@gmail.com> | 2016-04-25 10:43:56 +0200 |
commit | 1ffba62faae83e18597270b68580a90ac3032a31 (patch) | |
tree | 603d33ed48a9dd3690aeef379eeb7fd8ce3a257f /craftmine.php | |
parent | 3ece645cc83e36aaa36c0258afa0f1b36eb13ca2 (diff) | |
parent | dc28807625b9f53e621ec0d7063d99c2527cfa02 (diff) | |
download | candybox-1ffba62faae83e18597270b68580a90ac3032a31.tar.gz candybox-1ffba62faae83e18597270b68580a90ac3032a31.tar.bz2 candybox-1ffba62faae83e18597270b68580a90ac3032a31.tar.xz candybox-1ffba62faae83e18597270b68580a90ac3032a31.zip |
Merge remote-tracking branch 'origin/piernov' into alexichi
Conflicts:
craftmine.php
index.xhtml
Diffstat (limited to 'craftmine.php')
-rw-r--r-- | craftmine.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/craftmine.php b/craftmine.php index c6bebdb..78c5e37 100644 --- a/craftmine.php +++ b/craftmine.php @@ -1,8 +1,12 @@ <?php -session_start(); require_once("inc/mine.inc"); require_once("inc/guild.inc"); +require_once("inc/shop.inc"); +require_once("inc/craftmine.inc"); + +session_start(); // Must be placed *BEFORE* $_SESSION is actually used and *AFTER* all classes are imported + /** * Indique au client une message requete. */ @@ -33,9 +37,11 @@ if (!isset($_POST["op"])) { $op = $_POST["op"]; switch($op) { case "withdrawMine": withdrawMine(); break; - case "getCraftMine": sendMine(); break; case "createGuild": createGuild(); break; case "hireMiner": hireMiner(); break; + case "getCraftMine": sendCraftMine(); break; + case "buildShop": buildShop(); break; + case "buyItem": buyItem(); break; default: reportBadRequest(); } |