forked from La_Bureautique/zeg1jeux
15 lines
240 B
PHP
15 lines
240 B
PHP
|
<?php
|
||
|
|
||
|
require_once('config.php');
|
||
|
|
||
|
if ( !isset($_GET['gameId']) or !in_array($_GET['gameId'], array_keys($games)) ) {
|
||
|
|
||
|
header('Location: index.php');
|
||
|
|
||
|
} else {
|
||
|
|
||
|
$_SESSION['gameId'] = $_GET['gameId'];
|
||
|
|
||
|
header('Location: login.php');
|
||
|
}
|