From ead9c26d4d25792f0ae3f8e60fc459daaaaebe48 Mon Sep 17 00:00:00 2001 From: Malibu Date: Fri, 20 Mar 2015 18:37:42 +0100 Subject: [PATCH] modified: app/Http/Controllers/GameController.php --- SRC/app/Http/Controllers/GameController.php | 27 ++++++++++++++++++ SRC/app/Http/Controllers/ImageController.php | 0 SRC/public/css/bootstrap-sandstone.min.css | 0 SRC/public/css/frontend.css | 0 .../fonts/glyphicons-halflings-regular.eot | Bin .../fonts/glyphicons-halflings-regular.svg | 0 .../fonts/glyphicons-halflings-regular.ttf | Bin .../fonts/glyphicons-halflings-regular.woff | Bin .../fonts/glyphicons-halflings-regular.woff2 | Bin SRC/public/imgs/Search.png | Bin SRC/public/imgs/adminbg.jpg | Bin SRC/public/imgs/adminbgOrgi.jpg | Bin SRC/public/imgs/avatar/7.png | Bin SRC/public/imgs/bg.jpg | Bin SRC/public/imgs/favicon.ico | Bin SRC/public/imgs/games.png | Bin SRC/public/imgs/home.png | Bin SRC/public/imgs/memo/memo.png | Bin SRC/public/imgs/memo/memo2.png | Bin SRC/public/imgs/previouspage.png | Bin SRC/public/imgs/puzzle.jpg | Bin SRC/public/imgs/puzzle/puzzle.png | Bin SRC/public/imgs/trophees/argent.png | Bin SRC/public/imgs/trophees/or.png | Bin SRC/public/js/firework.js | 0 SRC/resources/views/auth/reset.blade.php | 0 26 files changed, 27 insertions(+) mode change 100644 => 100755 SRC/app/Http/Controllers/GameController.php mode change 100644 => 100755 SRC/app/Http/Controllers/ImageController.php mode change 100644 => 100755 SRC/public/css/bootstrap-sandstone.min.css mode change 100644 => 100755 SRC/public/css/frontend.css mode change 100644 => 100755 SRC/public/fonts/glyphicons-halflings-regular.eot mode change 100644 => 100755 SRC/public/fonts/glyphicons-halflings-regular.svg mode change 100644 => 100755 SRC/public/fonts/glyphicons-halflings-regular.ttf mode change 100644 => 100755 SRC/public/fonts/glyphicons-halflings-regular.woff mode change 100644 => 100755 SRC/public/fonts/glyphicons-halflings-regular.woff2 mode change 100644 => 100755 SRC/public/imgs/Search.png mode change 100644 => 100755 SRC/public/imgs/adminbg.jpg mode change 100644 => 100755 SRC/public/imgs/adminbgOrgi.jpg mode change 100644 => 100755 SRC/public/imgs/avatar/7.png mode change 100644 => 100755 SRC/public/imgs/bg.jpg mode change 100644 => 100755 SRC/public/imgs/favicon.ico mode change 100644 => 100755 SRC/public/imgs/games.png mode change 100644 => 100755 SRC/public/imgs/home.png mode change 100644 => 100755 SRC/public/imgs/memo/memo.png mode change 100644 => 100755 SRC/public/imgs/memo/memo2.png mode change 100644 => 100755 SRC/public/imgs/previouspage.png mode change 100644 => 100755 SRC/public/imgs/puzzle.jpg mode change 100644 => 100755 SRC/public/imgs/puzzle/puzzle.png mode change 100644 => 100755 SRC/public/imgs/trophees/argent.png mode change 100644 => 100755 SRC/public/imgs/trophees/or.png mode change 100644 => 100755 SRC/public/js/firework.js mode change 100644 => 100755 SRC/resources/views/auth/reset.blade.php diff --git a/SRC/app/Http/Controllers/GameController.php b/SRC/app/Http/Controllers/GameController.php old mode 100644 new mode 100755 index 4489551..d1eb1a6 --- a/SRC/app/Http/Controllers/GameController.php +++ b/SRC/app/Http/Controllers/GameController.php @@ -110,4 +110,31 @@ class GameController extends Controller { return view('one_referent_game', ['referent' => $id, 'game' => $idGame]); } + public function setRecords($idTrophee) { + + $values = Cookie::get('trophee'); + + if ($values === false) + $values = [0, 0, 0]; + + switch ($idTrophee) { + + case '1': + $values[0]++; + break; + + case '2': + $values[1]++; + break; + + case '3': + $values[2]++; + break; + + default: + break; + } + $response->withCookie(Cookie::forever('trophee', $values)); + } + } diff --git a/SRC/app/Http/Controllers/ImageController.php b/SRC/app/Http/Controllers/ImageController.php old mode 100644 new mode 100755 diff --git a/SRC/public/css/bootstrap-sandstone.min.css b/SRC/public/css/bootstrap-sandstone.min.css old mode 100644 new mode 100755 diff --git a/SRC/public/css/frontend.css b/SRC/public/css/frontend.css old mode 100644 new mode 100755 diff --git a/SRC/public/fonts/glyphicons-halflings-regular.eot b/SRC/public/fonts/glyphicons-halflings-regular.eot old mode 100644 new mode 100755 diff --git a/SRC/public/fonts/glyphicons-halflings-regular.svg b/SRC/public/fonts/glyphicons-halflings-regular.svg old mode 100644 new mode 100755 diff --git a/SRC/public/fonts/glyphicons-halflings-regular.ttf b/SRC/public/fonts/glyphicons-halflings-regular.ttf old mode 100644 new mode 100755 diff --git a/SRC/public/fonts/glyphicons-halflings-regular.woff b/SRC/public/fonts/glyphicons-halflings-regular.woff old mode 100644 new mode 100755 diff --git a/SRC/public/fonts/glyphicons-halflings-regular.woff2 b/SRC/public/fonts/glyphicons-halflings-regular.woff2 old mode 100644 new mode 100755 diff --git a/SRC/public/imgs/Search.png b/SRC/public/imgs/Search.png old mode 100644 new mode 100755 diff --git a/SRC/public/imgs/adminbg.jpg b/SRC/public/imgs/adminbg.jpg old mode 100644 new mode 100755 diff --git a/SRC/public/imgs/adminbgOrgi.jpg b/SRC/public/imgs/adminbgOrgi.jpg old mode 100644 new mode 100755 diff --git a/SRC/public/imgs/avatar/7.png b/SRC/public/imgs/avatar/7.png old mode 100644 new mode 100755 diff --git a/SRC/public/imgs/bg.jpg b/SRC/public/imgs/bg.jpg old mode 100644 new mode 100755 diff --git a/SRC/public/imgs/favicon.ico b/SRC/public/imgs/favicon.ico old mode 100644 new mode 100755 diff --git a/SRC/public/imgs/games.png b/SRC/public/imgs/games.png old mode 100644 new mode 100755 diff --git a/SRC/public/imgs/home.png b/SRC/public/imgs/home.png old mode 100644 new mode 100755 diff --git a/SRC/public/imgs/memo/memo.png b/SRC/public/imgs/memo/memo.png old mode 100644 new mode 100755 diff --git a/SRC/public/imgs/memo/memo2.png b/SRC/public/imgs/memo/memo2.png old mode 100644 new mode 100755 diff --git a/SRC/public/imgs/previouspage.png b/SRC/public/imgs/previouspage.png old mode 100644 new mode 100755 diff --git a/SRC/public/imgs/puzzle.jpg b/SRC/public/imgs/puzzle.jpg old mode 100644 new mode 100755 diff --git a/SRC/public/imgs/puzzle/puzzle.png b/SRC/public/imgs/puzzle/puzzle.png old mode 100644 new mode 100755 diff --git a/SRC/public/imgs/trophees/argent.png b/SRC/public/imgs/trophees/argent.png old mode 100644 new mode 100755 diff --git a/SRC/public/imgs/trophees/or.png b/SRC/public/imgs/trophees/or.png old mode 100644 new mode 100755 diff --git a/SRC/public/js/firework.js b/SRC/public/js/firework.js old mode 100644 new mode 100755 diff --git a/SRC/resources/views/auth/reset.blade.php b/SRC/resources/views/auth/reset.blade.php old mode 100644 new mode 100755