zeg1jeux/select_game.php

15 lines
240 B
PHP
Raw Permalink Normal View History

2022-10-21 21:26:41 +02:00
<?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');
}