// Admin clear title require HIDDEN_FILES_PATH . 'lobg.php'; break; case 34: // Admin unclear title require HIDDEN_FILES_PATH . 'lobh.php'; break; default: die($unexpectederrormessage); } } } } else { require HIDDEN_FILES_PATH . 'lobi.php'; } require HIDDEN_FILES_PATH . 'gamegetdata_lobby.php'; $GAME = gamegetdata_lobby($EscapedGameID, $DoingWork); if ($GAME === false) { $mypage = page::standard(); $mypage->title_body('Cannot find game'); $mypage->leaf('p', 'Cannot find a game with that game ID number. Please click <a href="index.php">here</a> to return to the Main Page.'); $mypage->finish(); } else { if ($GAME === 'WRONG PAGE') { $mypage = page::standard(); $mypage->title_body('Game has started'); $mypage->leaf('p', 'This game has now started. Please click <a href="board.php?GameID=' . $EscapedGameID . '">here</a> to go to the board page, or <a href="index.php">here</a> to return to the Main Page.'); $mypage->finish(); } } DoTask();
<?php require '_std-include.php'; $mypage = page::standard(); if (!isset($_GET['GameID'])) { $mypage->title_body('Error'); $mypage->leaf('p', 'It looks like you have been sent to the wrong page. Please click <a href="index.php">here</a> to return to the Main Page.'); $mypage->finish(); } $EscapedGameID = (int) $_GET['GameID']; require HIDDEN_FILES_PATH . 'gamegetdata_lobby.php'; $GAME = gamegetdata_lobby($EscapedGameID, true); if ($GAME === false) { $mypage->title_body('Game doesn\'t exist'); $mypage->leaf('p', 'There is no game with that ID number. Perhaps the game was cancelled in the meantime. Please click <a href="index.php">here</a> to return to the Main Page.'); $mypage->finish(); } else { if ($GAME == 'WRONG PAGE') { $mypage->title_body('Game has started'); $mypage->leaf('p', 'That game has started already. Perhaps someone else started it in the meantime, or perhaps you inadvertently loaded this page twice. Click <a href="board.php?GameID=' . $EscapedGameID . '">here</a> to go to the board page, or <a href="index.php">here</a> to return to the Main Page.'); $mypage->finish(); } } if ($_GET['NumPlayers'] != $GAME['CurrentPlayers']) { $mypage->title_body('Number of players has changed'); $mypage->leaf('p', 'The number of players in the game has changed since you loaded the lobby page. As a precaution, you must review the lobby page to make sure you really do want to start the game with the current number of players.'); $mypage->leaf('p', 'Please click <a href="lobby.php?GameID=' . $GAME['GameID'] . '">here</a> to return to the lobby page.'); $mypage->finish(); } if ($Administrator) { if ($GAME['CurrentPlayers'] < $GAME['MinimumPlayersAllowed']) {