//////////////////////////////////////////////////////////////////////////////////////////// case "closeaccount": if (isSessionIDValid($config, $xsid)) { if ($_GET['user'] != "" && $_GET['pass'] != "") { $session = base64_decode($xsid); list($uniq, $player_id) = preg_split("/\\|/", $session); //Instantiate theCR3DCQuery Class $oR3DCQuery = new CR3DCQuery($config); $bAuth = $oR3DCQuery->CheckLoginCredentialsForMobile($ConfigFile, $_GET['user'], $_GET['pass']); $oR3DCQuery->Close(); unset($oR3DCQuery); if ($bAuth) { // Instantiate the CAdmin Class $oAdmin = new CAdmin($config); $oAdmin->DisablePlayer($player_id); $oAdmin->Close(); unset($oAdmin); //Instantiate the CChess Class $oChess = new CChess($config); $sid = $oChess->delete_session($config, $xsid); unset($oChess); echo "<RESPONSE>\n"; echo "<CLOSED>true</CLOSED>\n"; echo "</RESPONSE>\n"; } else { echo "<RESPONSE>\n"; echo "<ERROR>IDS_INVALID_PASS_OR_USER</ERROR>\n"; echo "</RESPONSE>\n"; } } else { echo "<RESPONSE>\n";