modified: app/Http/Controllers/GameController.php

This commit is contained in:
Malibu 2015-03-20 18:37:42 +01:00
parent caea21566d
commit ead9c26d4d
26 changed files with 27 additions and 0 deletions

27
SRC/app/Http/Controllers/GameController.php Normal file → Executable file
View File

@ -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));
}
}

0
SRC/app/Http/Controllers/ImageController.php Normal file → Executable file
View File

0
SRC/public/css/bootstrap-sandstone.min.css vendored Normal file → Executable file
View File

0
SRC/public/css/frontend.css Normal file → Executable file
View File

0
SRC/public/fonts/glyphicons-halflings-regular.eot Normal file → Executable file
View File

0
SRC/public/fonts/glyphicons-halflings-regular.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 106 KiB

After

Width:  |  Height:  |  Size: 106 KiB

0
SRC/public/fonts/glyphicons-halflings-regular.ttf Normal file → Executable file
View File

0
SRC/public/fonts/glyphicons-halflings-regular.woff Normal file → Executable file
View File

0
SRC/public/fonts/glyphicons-halflings-regular.woff2 Normal file → Executable file
View File

0
SRC/public/imgs/Search.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

0
SRC/public/imgs/adminbg.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 219 KiB

After

Width:  |  Height:  |  Size: 219 KiB

0
SRC/public/imgs/adminbgOrgi.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 429 KiB

After

Width:  |  Height:  |  Size: 429 KiB

0
SRC/public/imgs/avatar/7.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB

0
SRC/public/imgs/bg.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 116 KiB

After

Width:  |  Height:  |  Size: 116 KiB

0
SRC/public/imgs/favicon.ico Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 318 B

After

Width:  |  Height:  |  Size: 318 B

0
SRC/public/imgs/games.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 9.6 KiB

0
SRC/public/imgs/home.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

0
SRC/public/imgs/memo/memo.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

0
SRC/public/imgs/memo/memo2.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 37 KiB

0
SRC/public/imgs/previouspage.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

0
SRC/public/imgs/puzzle.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

0
SRC/public/imgs/puzzle/puzzle.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 88 KiB

0
SRC/public/imgs/trophees/argent.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 142 KiB

After

Width:  |  Height:  |  Size: 142 KiB

0
SRC/public/imgs/trophees/or.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 236 KiB

After

Width:  |  Height:  |  Size: 236 KiB

0
SRC/public/js/firework.js Normal file → Executable file
View File

0
SRC/resources/views/auth/reset.blade.php Normal file → Executable file
View File