$SSIfile = "./skins/" . $SkinName . "/standard_cfg.php"; if (file_exists($SSIfile)) { include $SSIfile; } ////////////////////////////////////////////////////////////// require $Root_Path . "bin/CR3DCQuery.php"; require $Root_Path . "bin/CTipOfTheDay.php"; require $Root_Path . "bin/CBuddyList.php"; require $Root_Path . "includes/siteconfig.php"; require $Root_Path . "includes/language.php"; $clrl = $_SESSION['lcolor']; $clrd = $_SESSION['dcolor']; ////////////////////////////////////////////////////////////// //Instantiate the Classes $oR3DCQuery = new CR3DCQuery($config); $oBuddyList = new CBuddyList($config); $bCronEnabled = $oR3DCQuery->IsCronManagementEnabled(); ////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////// //Check if the logged in user has access if (!isset($_SESSION['sid']) && !isset($_SESSION['user']) && !isset($_SESSION['id'])) { $_SESSION['PageRef'] = $url; header('Location: ./chess_login.php'); } else { $oR3DCQuery->CheckSIDTimeout(); if ($oR3DCQuery->CheckLogin($config, $_SESSION['sid']) == false) { $_SESSION['PageRef'] = $url; header('Location: ./chess_login.php'); } else { $_SESSION['PageRef'] = ""; $oR3DCQuery->UpdateSIDTimeout($ConfigFile, $_SESSION['sid']);
break; //////////////////////////////////////////////////////////////////////////////////////////// // deletefrombuddylist // Params: action, sid, buddyid //////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////// // deletefrombuddylist // Params: action, sid, buddyid //////////////////////////////////////////////////////////////////////////////////////////// case "deletefrombuddylist": if (isSessionIDValid($config, $xsid)) { $session = base64_decode($xsid); list($uniq, $player_id) = preg_split("/\\|/", $session); if (is_numeric($_GET['buddyid'])) { //Instantiate the CBuddyList Class $oBuddyList = new CBuddyList($config); $oBuddyList->DeleteBuddyFromBuddyList($config, $player_id, (int) $_GET['buddyid']); $oBuddyList->Close(); unset($oBuddyList); echo "<RESPONSE>\n"; echo "<BUDDYLIST>true</BUDDYLIST>\n"; echo "<BUDDYID>" . (int) $_GET['buddyid'] . "</BUDDYID>\n"; echo "</RESPONSE>\n"; } else { echo "<RESPONSE>\n"; echo "<ERROR>ID_INVALID_BUDDYID</ERROR>\n"; echo "<BUDDYID>" . $_GET['buddyid'] . "</BUDDYID>\n"; echo "</RESPONSE>\n"; } } else { echo "<RESPONSE>\n";
//Skin - standard includes ////////////////////////////////////////////////////////////// $SSIfile = "./skins/" . $SkinName . "/standard_cfg.php"; if (file_exists($SSIfile)) { include $SSIfile; } ////////////////////////////////////////////////////////////// require $Root_Path . "bin/CR3DCQuery.php"; require $Root_Path . "bin/CTipOfTheDay.php"; require $Root_Path . "bin/CBuddyList.php"; require $Root_Path . "includes/siteconfig.php"; require $Root_Path . "includes/language.php"; ////////////////////////////////////////////////////////////// //Instantiate the Classes $oR3DCQuery = new CR3DCQuery($config); $oBuddyList = new CBuddyList($config); $bCronEnabled = $oR3DCQuery->IsCronManagementEnabled(); ////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////// // Check For the nonempty SID var $sid = trim($_GET['sid']); // Log the user on or manage the session if a SID is passed to the page if ($sid != "") { $user = ""; $id = ""; $oR3DCQuery->ConfirmSID($sid, $user, $id); if ($user != "" && $id != "") { $_SESSION['sid'] = $sid; $_SESSION['user'] = $user; $_SESSION['id'] = $id; $oR3DCQuery->GetChessBoardColors($config, $_SESSION['id'], $l, $d);