aboutsummaryrefslogtreecommitdiffstats
path: root/craftmine.php
diff options
context:
space:
mode:
Diffstat (limited to 'craftmine.php')
-rw-r--r--craftmine.php10
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();
}