diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/mine.inc | 20 | ||||
-rw-r--r-- | inc/mine.inc~ | 20 |
2 files changed, 40 insertions, 0 deletions
diff --git a/inc/mine.inc b/inc/mine.inc new file mode 100644 index 0000000..76c0055 --- /dev/null +++ b/inc/mine.inc @@ -0,0 +1,20 @@ +<?php + +function initCraftMine() { + $_SESSION["mine"] = array("mine" => 0, "gold" => 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"]; +} + + +?> 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"]; +} + + +?> |