// Manage the online players list var aPlayerList = new Array(); <?php if (isset($_SESSION['sid'])) { $oR3DCQuery->v2OTMTimeOutOfflinePlayers($type, $tid); echo $oR3DCQuery->v2OTMGetOnlinePlayerListJAVA($type, $tid, $_SESSION['id']); } ?> try{ <?php // Manage the move processing $strxmove = $oR3DCQuery->v2MakeTournamentGameMove_Vote($tgc, $type, $tid); if ($strxmove != "" && $oR3DCQuery->v2IsUserPrimaryPlayer($_SESSION['id'], $type, $tid) == false) { list($from, $to, $xgameid) = explode(",", $strxmove, 3); echo "var browserVer=parseInt(navigator.appVersion);\n"; echo "if(navigator.appName == \"Microsoft Internet Explorer\"){\n"; /////////////////// // IE echo "top.frGameList.document." . $xgameid . ".document.frmMoveVote.txtmovefrom.value = '" . trim($from) . "';\n"; echo "top.frGameList.document." . $xgameid . ".document.frmMoveVote.txtmoveto.value = '" . trim($to) . "';\n"; echo "top.frGameList.document." . $xgameid . ".document.frmMoveVote.cmdMovexx.value = 'cmdMovexx';\n"; echo "top.frGameList.document." . $xgameid . ".document.frmMoveVote.submit();\n"; echo "}else{\n"; /////////////////// // other echo "top.frGameList.document.getElementById(\"" . $xgameid . "\").contentDocument.frmMoveVote.txtmovefrom.value = '" . trim($from) . "';\n"; echo "top.frGameList.document.getElementById(\"" . $xgameid . "\").contentDocument.frmMoveVote.txtmoveto.value = '" . trim($to) . "';\n"; echo "top.frGameList.document.getElementById(\"" . $xgameid . "\").contentDocument.frmMoveVote.cmdMovexx.value = 'cmdMovexx';\n";
require $Root_Path . "includes/language.php"; //////////////////////////////////////////////////// //Instantiate the Classes $oR3DCQuery = new CR3DCQuery($config); //////////////////////////////////////////////////// $tgc = $_GET['tgc']; $tid = $_GET['tid']; $type = $_GET['type']; $tzn = $_GET['tzn']; $bPlayerHasAccess = false; $bPrimaryPlayerHasAccess = false; // Check if the user is logged in and has access to the man player tournament console if (isset($_SESSION['sid']) && isset($_SESSION['user']) && isset($_SESSION['id'])) { if (is_numeric($_SESSION['id'])) { if ($oR3DCQuery->v2IsUserPlayer($tgc, $_SESSION['id'], $type, $tid)) { if ($oR3DCQuery->v2IsUserPrimaryPlayer($_SESSION['id'], $type, $tid) == false) { $oR3DCQuery->v2ClearTournamentGameQueue($_SESSION['id'], $type, $tid); $bPlayerHasAccess = true; } elseif ($oR3DCQuery->v2IsUserPrimaryPlayer($_SESSION['id'], $type, $tid)) { $oR3DCQuery->v2ClearTournamentGameQueue($_SESSION['id'], $type, $tid); $bPrimaryPlayerHasAccess = true; } } } } $strStatus = $oR3DCQuery->v2GetTournamentGameTimeoutStatus($type, $tid, $tgc); ?> <html> <head> <title></title> <link rel="stylesheet" href="<?php