本文整理匯總了PHP中CR3DCQuery::UpdateSIDTimeout方法的典型用法代碼示例。如果您正苦於以下問題:PHP CR3DCQuery::UpdateSIDTimeout方法的具體用法?PHP CR3DCQuery::UpdateSIDTimeout怎麽用?PHP CR3DCQuery::UpdateSIDTimeout使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CR3DCQuery
的用法示例。
在下文中一共展示了CR3DCQuery::UpdateSIDTimeout方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: isSessionIDValid
function isSessionIDValid($config, $xsid)
{
$bValid = false;
//Instantiate the CR3DCQuery Class
$oR3DCQuery = new CR3DCQuery($config);
$oR3DCQuery->CheckSIDTimeout();
if ($xsid != "") {
if ($oR3DCQuery->CheckLogin($config, $xsid)) {
$session = base64_decode($xsid);
list($uniq, $player_id) = preg_split("/\\|/", $session);
if ($uniq != "" && is_numeric($player_id)) {
$bValid = true;
$oR3DCQuery->UpdateSIDTimeout($config, $xsid);
$oR3DCQuery->SetPlayerCreditsInit($player_id);
}
}
}
if ($oR3DCQuery->ELOIsActive()) {
$oR3DCQuery->ELOCreateRatings();
}
$oR3DCQuery->MangeGameTimeOuts();
$oR3DCQuery->Close();
unset($oR3DCQuery);
return $bValid;
}
示例2: header
$oR3DCQuery = new CR3DCQuery($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']);
$oR3DCQuery->SetPlayerCreditsInit($_SESSION['id']);
}
if (!$bCronEnabled) {
if ($oR3DCQuery->ELOIsActive()) {
$oR3DCQuery->ELOCreateRatings();
}
$oR3DCQuery->MangeGameTimeOuts();
}
}
///////////////////////////////////////////////////////////////////////
?>
<html>
<head>
<title><?php
示例3: header
}
}
///////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////
//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($config, $_SESSION['sid']);
$oR3DCQuery->SetPlayerCreditsInit($_SESSION['id']);
}
if (!$bCronEnabled) {
if ($oR3DCQuery->ELOIsActive()) {
$oR3DCQuery->ELOCreateRatings();
}
$oR3DCQuery->MangeGameTimeOuts();
}
}
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
// Handle game status and type redirections
///////////////////////////////////////////////////////////////////////
$IsAccepted = $oR3DCQuery->CheckGameAccepted($config, $_SESSION['id'], $gid);
$gametypecode = $oR3DCQuery->GetGameTypeCode($gid);