aboutsummaryrefslogtreecommitdiffstats
path: root/inc/mine.inc~
diff options
context:
space:
mode:
Diffstat (limited to 'inc/mine.inc~')
-rw-r--r--inc/mine.inc~20
1 files changed, 20 insertions, 0 deletions
diff --git a/inc/mine.inc~ b/inc/mine.inc~
new file mode 100644
index 0000000..a01d768
--- /dev/null
+++ b/inc/mine.inc~
@@ -0,0 +1,20 @@
+<?php
+
+function initCraftMine() {
+ $_SESSION["mine"] = array("mine" => 0, "or" => 0, "miners" => 1);
+}
+
+function withdrawMine() {
+ $mine = $_SESSION["mine"];
+ $_SESSION["mine"]["gold"] += $mine["mine"];
+ $_SESSION["mine"]["mine"] = 0;
+}
+
+function sendMine() {
+ if(empty($_SESSION["mine"])) initMine();
+ $mine = $_SESSION["mine"];
+ echo $mine["gold"];
+}
+
+
+?>