blob: 5764568cefb7785295834645bf33b57da16189f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?php
/* make sure that we are not called from outside the scripts,
* use a variable defined in config.php to check this
*/
if(!isset($HOST))
exit;
output_status();
/* user needs to be logged in to do this */
if( isset($_SESSION["name"]) )
{
$names = DB_get_all_names();
echo "<div class=\"user\">\n";
output_form_for_new_game($names);
echo "</div>\n";
display_user_menu();
}
else
{
echo "<div class=\"message\">Please <a href=\"$INDEX\">log in</a>.</div>";
}
?>
|