aboutsummaryrefslogtreecommitdiffstats
path: root/craftmine.php
diff options
context:
space:
mode:
authoralexichi <alexbankai96@gmail.com>2016-04-21 08:52:22 +0200
committeralexichi <alexbankai96@gmail.com>2016-04-21 08:52:22 +0200
commitfc3801d39ad1cb936c421a3edff3089bc7a08a17 (patch)
treec15220ced6f8fc2724b98c053767bd830443fc89 /craftmine.php
parente8e156d27b3036fb6309459fe2524b4a10f030f5 (diff)
downloadcandybox-fc3801d39ad1cb936c421a3edff3089bc7a08a17.tar.gz
candybox-fc3801d39ad1cb936c421a3edff3089bc7a08a17.tar.bz2
candybox-fc3801d39ad1cb936c421a3edff3089bc7a08a17.tar.xz
candybox-fc3801d39ad1cb936c421a3edff3089bc7a08a17.zip
suppression d'un case du switch
Diffstat (limited to 'craftmine.php')
-rw-r--r--craftmine.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/craftmine.php b/craftmine.php
index 41f9580..5df926f 100644
--- a/craftmine.php
+++ b/craftmine.php
@@ -1,6 +1,7 @@
<?php
session_start();
+require_once("inc/mine.inc");
/**
* Indique au client une message requete.
*/
@@ -25,5 +26,14 @@ if (!isset($_POST["op"])) {
}
+/**
+* On récupère l'opération à exécuter et on le fait.
+*/
+$op = $_POST["op"];
+switch($op) {
+ case "withdrawMine": withdrawMine(); break;
+ case "getCraftMine": sendMine(); break;
+ default: reportBadRequest();
+}
?>