diff options
author | alexichi <alexbankai96@gmail.com> | 2016-04-21 08:47:14 +0200 |
---|---|---|
committer | alexichi <alexbankai96@gmail.com> | 2016-04-21 08:47:14 +0200 |
commit | e8e156d27b3036fb6309459fe2524b4a10f030f5 (patch) | |
tree | 9ce403cda83712d753caf597b1303842a5c906a2 /inc/mine.inc~ | |
parent | ff2083ce2408f8cd01443ff06cb300031c529638 (diff) | |
download | candybox-e8e156d27b3036fb6309459fe2524b4a10f030f5.tar.gz candybox-e8e156d27b3036fb6309459fe2524b4a10f030f5.tar.bz2 candybox-e8e156d27b3036fb6309459fe2524b4a10f030f5.tar.xz candybox-e8e156d27b3036fb6309459fe2524b4a10f030f5.zip |
Mise à jour des mots en anglais
suppression de la méthode update mine
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"]; +} + + +?> |