zeg1jeux/index.php

55 lines
728 B
PHP
Raw Permalink Normal View History

2022-10-21 21:26:41 +02:00
<?php
require_once('config.php');
require_once('lib/Gchange.class.php');
require_once('lib/Location.class.php');
$bodyIds = 'startpage';
2022-10-21 21:26:41 +02:00
include_once('header.php');
$gchange = new Gchange();
echo '
<h1>Ze Ğ1 jeux</h1>
<p>
À quel jeu voulez-vous jouer ?
</p>
<ul id="games-list">';
2022-10-21 21:26:41 +02:00
foreach ($games as $gameId => $game) {
echo '
<li class="game">
<h2>
<a href="select_game.php?gameId='. $gameId .'">
<span>
'. $game['title'] .'
</span>
</a>
</h2>
<p>
<img
src="themes/'. $gameId . '/game-icon.png"
alt="'. $game['title'] .'"
/>
</p>
<p>
'. $game['description'] .'
</p>
</li>
2022-10-21 21:26:41 +02:00
';
}
echo '
</ul>';
2022-10-21 21:26:41 +02:00
include_once('footer.php');