include_once "include/POG/configuration.php"; include_once "include/POG/objects/class.database.php"; include_once "include/POG/objects/class.user.php"; include_once "include/POG/objects/class.usertype.php"; include_once "include/POG/objects/class.gameusermap.php"; include_once "include/POG/objects/class.game.php"; session_start(); $gameID = $_GET['gameID']; $player = $_GET['player']; if($gameID && $player) { $game = new Game(); $game = $game->Get($gameID); $gamePlayers = $game->GetUserList(); //$joinInURL = new Array(); if(count($gamePlayers) < 2) { header('Location: http://www.ckoridor.com/'); } if($player == 1) { // print out the URL for Player 2 to join in... $joinInURL[0] = 'http://www.ckoridor.com/game/'.$gameID.'/player2'; if(count($gamePlayers) == 4) { // print out the URL for Player 3 to join in... $joinInURL[1] = 'http://www.ckoridor.com/game/'.$gameID.'/player3'; // print out the URL for Player 3 to join in... $joinInURL[2] = 'http://www.ckoridor.com/game/'.$gameID.'/player4'; } } echo ' '."\n"; echo ' '."\n"; echo '
'."\n"; echo '