本文整理汇总了PHP中CR3DCQuery::CheckSIDTimeout方法的典型用法代码示例。如果您正苦于以下问题:PHP CR3DCQuery::CheckSIDTimeout方法的具体用法?PHP CR3DCQuery::CheckSIDTimeout怎么用?PHP CR3DCQuery::CheckSIDTimeout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CR3DCQuery
的用法示例。
在下文中一共展示了CR3DCQuery::CheckSIDTimeout方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: trim
$cmdSearch = trim($_POST['cmdSearch']);
$txtAbove = trim($_POST['txtAbove']);
$txtBelow = trim($_POST['txtBelow']);
$cmdSearchPoints = trim($_POST['cmdSearchPoints']);
//////////////////////////////////////////////////////////////
//Instantiate the CR3DCQuery Class
$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();
}
}