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