// Params: action, sid, user, pass //////////////////////////////////////////////////////////////////////////////////////////// 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 {
} else { $_SESSION['PageRef'] = ""; $oR3DCQuery->UpdateSIDTimeout($ConfigFile, $_SESSION['sid']); $oR3DCQuery->SetPlayerCreditsInit($_SESSION['id']); } if (!$bCronEnabled) { if ($oR3DCQuery->ELOIsActive()) { $oR3DCQuery->ELOCreateRatings(); } $oR3DCQuery->MangeGameTimeOuts(); } } /////////////////////////////////////////////////////////////////////// $cmdCloseAccount = $_POST['cmdCloseAccount']; if ($cmdCloseAccount != "") { $oAdmin->DisablePlayer($_SESSION['id']); header('Location: ./chess_logout.php'); } ?> <html> <head> <title><?php echo GetStringFromStringTable("IDS_PAGETITLES_33", $config); ?> </title> <META NAME="keywords" CONTENT=""> <META NAME="DESCRIPTION" CONTENT=""> <META NAME="OWNER" CONTENT="Christian"> <META NAME="RATING" CONTENT="General">
if (!$bCronEnabled) { if ($oR3DCQuery->ELOIsActive()) { $oR3DCQuery->ELOCreateRatings(); } $oR3DCQuery->MangeGameTimeOuts(); } $txtUser = $_POST['txtUser']; $txtPass = $_POST['txtPass']; $cmdCloseAccount = $_POST['cmdCloseAccount']; $txtMessage = ""; if ($cmdCloseAccount != "" && $txtUser != "" && $txtPass != "") { $UID = $oR3DCQuery->LoginTemp($txtUser, $txtPass); if ($UID != "") { //Instantiate the CAdmin Class $oAdmin = new CAdmin($config); $oAdmin->DisablePlayer($UID); $oAdmin->Close(); unset($oAdmin); $txtMessage = GetStringFromStringTable("IDS_CHESS_CLOSE_TXT_1", $config); } } ?> <html> <head> <title><?php echo GetStringFromStringTable("IDS_PAGETITLES_33", $config); ?> </title> <META NAME="keywords" CONTENT="">
} } //////////////////////////////////////////////// $action = trim($_GET['action']); $index = trim($_GET['index']); if ($action == "") { $action = trim($_POST['action']); } if ($index == "") { $index = trim($_POST['index']); } $cmdDisable = $_POST['cmdDisable']; $cmdEnable = $_POST['cmdEnable']; $rdodlt = $_POST['rdodlt']; if ($cmdDisable != "" && $rdodlt != "") { $oAdmin->DisablePlayer($rdodlt); } $bLimit = false; if ($cmdEnable != "" && $rdodlt != "") { $bLimit = $oR3DCQuery->IsUserLimitReached(); if ($bLimit == false) { $oAdmin->EnablePlayer($rdodlt); } else { $bLimit = true; } } if (!$bCronEnabled) { if ($oR3DCQuery->ELOIsActive()) { $oR3DCQuery->ELOCreateRatings(); } $oR3DCQuery->MangeGameTimeOuts();