本文整理汇总了PHP中CR3DCQuery::SetPlayerCreditsInit方法的典型用法代码示例。如果您正苦于以下问题:PHP CR3DCQuery::SetPlayerCreditsInit方法的具体用法?PHP CR3DCQuery::SetPlayerCreditsInit怎么用?PHP CR3DCQuery::SetPlayerCreditsInit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CR3DCQuery
的用法示例。
在下文中一共展示了CR3DCQuery::SetPlayerCreditsInit方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isSessionIDValid
function isSessionIDValid($config, $xsid)
{
$bValid = false;
//Instantiate the CR3DCQuery Class
$oR3DCQuery = new CR3DCQuery($config);
//$oR3DCQuery->CheckSIDTimeout();
CSession::initialise($config);
CSession::CheckSIDTimeout();
if ($xsid != "") {
//if($oR3DCQuery->CheckLogin($config, $xsid))
if (CSession::CheckLogin($xsid)) {
$session = base64_decode($xsid);
// list($uniq, $player_id) = preg_split("/\|/", $session);
list($uniq, $player_id) = explode("|", $session);
if ($uniq != "" && is_numeric($player_id)) {
$bValid = true;
//$oR3DCQuery->UpdateSIDTimeout($config, $xsid);
CSession::UpdateSIDTimeout($xsid);
$oR3DCQuery->SetPlayerCreditsInit($player_id);
}
}
}
if ($oR3DCQuery->ELOIsActive()) {
$oR3DCQuery->ELOCreateRatings();
}
$oR3DCQuery->MangeGameTimeOuts();
$oR3DCQuery->Close();
unset($oR3DCQuery);
return $bValid;
}
示例2: GetStringFromStringTable
$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
echo GetStringFromStringTable("IDS_PAGETITLES_19", $config);