aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/mine.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/inc/mine.inc b/inc/mine.inc
index 7a68237..a2ecd09 100644
--- a/inc/mine.inc
+++ b/inc/mine.inc
@@ -5,9 +5,10 @@ function initCraftMine() {
}
function withdrawMine() {
- $mine = $_SESSION["mine"];
- $_SESSION["mine"]["gold"] += $mine["mine"];
- $_SESSION["mine"]["mine"] = 0;
+ $amount = intval($_POST["amount"]);
+ if($amount == 0) return;
+ $_SESSION["mine"]["gold"] += $amount;
+ echo $_SESSION["mine"]["gold"];
}
function sendMine() {