diff options
author | piernov <piernov@piernov.org> | 2016-04-25 22:36:33 +0200 |
---|---|---|
committer | piernov <piernov@piernov.org> | 2016-04-25 22:36:33 +0200 |
commit | 54635d17eef27eb2546d69599e4107b242509ced (patch) | |
tree | 86d18cbb6e021b78ba1ce87307447d71d1802ad3 /craftmine.php | |
parent | f98b06a25d71cc02bf29d7c525da0095688ea872 (diff) | |
parent | 8140617aeb2f32f7095a443ca743c6d6915739c6 (diff) | |
download | candybox-54635d17eef27eb2546d69599e4107b242509ced.tar.gz candybox-54635d17eef27eb2546d69599e4107b242509ced.tar.bz2 candybox-54635d17eef27eb2546d69599e4107b242509ced.tar.xz candybox-54635d17eef27eb2546d69599e4107b242509ced.zip |
Merge branch 'alexichi' of ssh://piernov.org/srv/git/candybox into alexichi
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(); } |