zeg1jeux/select_game.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');
}