aboutsummaryrefslogtreecommitdiffstats
path: root/craftmine.php
diff options
context:
space:
mode:
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();
+}
?>