diff options
author | alexichi <alexbankai96@gmail.com> | 2016-04-21 08:52:22 +0200 |
---|---|---|
committer | alexichi <alexbankai96@gmail.com> | 2016-04-21 08:52:22 +0200 |
commit | fc3801d39ad1cb936c421a3edff3089bc7a08a17 (patch) | |
tree | c15220ced6f8fc2724b98c053767bd830443fc89 | |
parent | e8e156d27b3036fb6309459fe2524b4a10f030f5 (diff) | |
download | candybox-fc3801d39ad1cb936c421a3edff3089bc7a08a17.tar.gz candybox-fc3801d39ad1cb936c421a3edff3089bc7a08a17.tar.bz2 candybox-fc3801d39ad1cb936c421a3edff3089bc7a08a17.tar.xz candybox-fc3801d39ad1cb936c421a3edff3089bc7a08a17.zip |
suppression d'un case du switch
-rw-r--r-- | craftmine.php | 10 |
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(); +} ?> |