zeg1jeux/index.php

55 lines
728 B
PHP
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
require_once('config.php');
require_once('lib/Gchange.class.php');
require_once('lib/Location.class.php');
$bodyIds = 'startpage';
include_once('header.php');
$gchange = new Gchange();
echo '
<h1>Ze Ğ1 jeux</h1>
<p>
À quel jeu voulez-vous jouer ?
</p>
<ul id="games-list">';
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>
';
}
echo '
</ul>';
include_once('footer.php');