From e8e156d27b3036fb6309459fe2524b4a10f030f5 Mon Sep 17 00:00:00 2001 From: alexichi Date: Thu, 21 Apr 2016 08:47:14 +0200 Subject: Mise à jour des mots en anglais MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit suppression de la méthode update mine --- inc/mine.inc | 20 ++++++++++++++++++++ inc/mine.inc~ | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 inc/mine.inc create mode 100644 inc/mine.inc~ (limited to 'inc') 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 @@ + 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 @@ + 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"]; +} + + +?> -- cgit v1.2.3-70-g09d2