From 58d5c17827e9a782120f3bcfeae15bda5532de09 Mon Sep 17 00:00:00 2001 From: heuzef Date: Wed, 3 Sep 2014 15:26:42 +0200 Subject: [PATCH] compteur gift pou DDR --- medias/c0f08ae603e364cb554fe71c9fc94ffd/Derpy.xml | 9 ++++---- .../Meganomtrolo.xml | 27 ---------------------- .../c0f08ae603e364cb554fe71c9fc94ffd/zycheron.xml | 20 ---------------- medias/default/player.xml | 1 + play/action.php | 8 +++++++ play/gamers.php | 6 ++++- play/index.php | 4 ++++ 7 files changed, 23 insertions(+), 52 deletions(-) delete mode 100644 medias/c0f08ae603e364cb554fe71c9fc94ffd/Meganomtrolo.xml delete mode 100644 medias/c0f08ae603e364cb554fe71c9fc94ffd/zycheron.xml diff --git a/medias/c0f08ae603e364cb554fe71c9fc94ffd/Derpy.xml b/medias/c0f08ae603e364cb554fe71c9fc94ffd/Derpy.xml index 8a66f79..0fc75dd 100644 --- a/medias/c0f08ae603e364cb554fe71c9fc94ffd/Derpy.xml +++ b/medias/c0f08ae603e364cb554fe71c9fc94ffd/Derpy.xml @@ -2,19 +2,20 @@ Derpy - 2 + 0 10 - 50 - 999 + 0 + 0 0 0 0 0 - 5 + 0 0 default ... + 0 diff --git a/medias/c0f08ae603e364cb554fe71c9fc94ffd/Meganomtrolo.xml b/medias/c0f08ae603e364cb554fe71c9fc94ffd/Meganomtrolo.xml deleted file mode 100644 index 87e3b49..0000000 --- a/medias/c0f08ae603e364cb554fe71c9fc94ffd/Meganomtrolo.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - Meganomtrolo - 3 - 10 - 99999 - 99999 - - 1 - 1 - 1 - 1 - 0 - 0 - - default - Ceci est une descrition bien trop longue ! - -Avec des saut de lignes et tous. - -<br /> -<br /> - -Lorem ipsum dolor sit amet... - - diff --git a/medias/c0f08ae603e364cb554fe71c9fc94ffd/zycheron.xml b/medias/c0f08ae603e364cb554fe71c9fc94ffd/zycheron.xml deleted file mode 100644 index f2c3d62..0000000 --- a/medias/c0f08ae603e364cb554fe71c9fc94ffd/zycheron.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - zycheron - 0 - 10 - 0 - 0 - - 0 - 0 - 0 - 0 - 0 - 5 - - default - ... - - diff --git a/medias/default/player.xml b/medias/default/player.xml index aa363fb..d3184cc 100755 --- a/medias/default/player.xml +++ b/medias/default/player.xml @@ -16,5 +16,6 @@ default ... + 0 diff --git a/play/action.php b/play/action.php index b8d3aa2..0768406 100755 --- a/play/action.php +++ b/play/action.php @@ -110,6 +110,14 @@ if (isset($_GET['edit_notes'])) { $xml->entry->notes = $_POST["notes"]; } +if (isset($_GET['gift_plus']) && $xml->entry->ecos->noire<5) { + $xml->entry->gift++; +} + +if (isset($_GET['gift_moins']) && $xml->entry->ecos->noire>0) { + $xml->entry->gift--; +} + $xml->asXml('../medias/'.$hash.'/'.$nom_modif.'.xml'); header("location: index.php"); ?> \ No newline at end of file diff --git a/play/gamers.php b/play/gamers.php index ecb7687..502164d 100755 --- a/play/gamers.php +++ b/play/gamers.php @@ -155,13 +155,17 @@ foreach($xml->entry as $entry) {
-
+ +
+

 gift; ?>

+ nom, "-"); ?>nom, "+"); ?> +