當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CR3DCQuery類代碼示例

本文整理匯總了PHP中CR3DCQuery的典型用法代碼示例。如果您正苦於以下問題:PHP CR3DCQuery類的具體用法?PHP CR3DCQuery怎麽用?PHP CR3DCQuery使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了CR3DCQuery類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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;
}
開發者ID:robertohernando,項目名稱:phpchess,代碼行數:25,代碼來源:getlastmove.php

示例2: str_replace

    } else {
        if ($oR3DCQuery->TGameStatus($GID)) {
            $oR3DCQuery->GetTGameBoard($config, $GID, $_SESSION['sid'], $_SESSION['id'], $clrl, $clrd);
            if ($oR3DCQuery->IsPlayersTurn($config, $_SESSION['id'], $GID)) {
                //echo "Its, ".$_SESSION['user']." turn to play.";
                echo str_replace("['user']", $_SESSION['user'], GetStringFromStringTable("IDS_TGAME_TXT_3", $config));
            }
        } else {
            echo "<br>" . GetStringFromStringTable("IDS_TGAME_TXT_3", $config) . "";
        }
    }
    $oR3DCQuery->Close();
    unset($oR3DCQuery);
} else {
    //Instantiate theCR3DCQuery Class
    $oR3DCQuery = new CR3DCQuery($config);
    if ($oR3DCQuery->TimeForTGame($config, $GID) == false) {
        echo "<br>" . GetStringFromStringTable("IDS_TGAME_TXT_1", $config) . "";
    } else {
        if ($oR3DCQuery->TGameStatus($GID)) {
            $oR3DCQuery->GetTGameBoard($config, $GID, "", 0, $clrl, $clrd);
        } else {
            echo "<br>" . GetStringFromStringTable("IDS_TGAME_TXT_2", $config) . "";
        }
    }
    $oR3DCQuery->Close();
    unset($oR3DCQuery);
}
?>

</body>
開發者ID:robertohernando,項目名稱:phpchess,代碼行數:31,代碼來源:t_game.php

示例3: CR3DCQuery

//////////////////////////////////////////////////////////////
//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/CBilling.php";
require $Root_Path . "includes/siteconfig.php";
require $Root_Path . "bin/config.php";
//////////////////////////////////////////////////////////////
//Instantiate the Classes
$oR3DCQuery = new CR3DCQuery($config);
$oBilling = new CBilling($config);
$bCronEnabled = $oR3DCQuery->IsCronManagementEnabled();
//////////////////////////////////////////////////////////////
$RequiresPayment = $oBilling->IsPaymentEnabled();
if (!$bCronEnabled) {
    if ($oR3DCQuery->ELOIsActive()) {
        $oR3DCQuery->ELOCreateRatings();
    }
    $oR3DCQuery->MangeGameTimeOuts();
}
if (!isset($_SESSION['sid']) && !isset($_SESSION['user']) && !isset($_SESSION['id'])) {
    $user = trim($_POST['txtName']);
    $pass = trim($_POST['txtPassword']);
    if ($user != "" && $pass != "") {
        $sid = $oR3DCQuery->Login($user, $pass);
開發者ID:robertohernando,項目名稱:phpchess,代碼行數:31,代碼來源:verifyorderpaypal.php

示例4: CAdmin

require $Root_Path . "bin/CR3DCQuery.php";
require $Root_Path . "bin/CAdmin.php";
require $Root_Path . "bin/config.php";
require $Root_Path . "includes/siteconfig.php";
require $Root_Path . "includes/language.php";
$config = $Root_Path . "bin/config.php";
$oAdmin = new CAdmin($config);
$db_host = $conf['database_host'];
$db_dbnm = $conf['database_name'];
$db_user = $conf['database_login'];
$db_pass = $conf['database_pass'];
$db_link = mysql_connect($db_host, $db_user, $db_pass);
mysql_select_db($db_dbnm);
//////////////////////////////////////////////////////////////
//Instantiate the CR3DCQuery Class
$oR3DCQuery = new CR3DCQuery($config);
//  $bCronEnabled = $oR3DCQuery->IsCronManagementEnabled();
//////////////////////////////////////////////////////////////
////////////////////////////////////////////////
//Login Processing
////////////////////////////////////////////////
//Check if admin is logged in already
if (!isset($_SESSION['LOGIN'])) {
    $login = "no";
    header('Location: ./index.php');
} else {
    if ($_SESSION['LOGIN'] != true) {
        if (isset($_SESSION['UNAME'])) {
            unset($_SESSION['UNAME']);
        }
        if (isset($_SESSION['LOGIN'])) {
開發者ID:robertohernando,項目名稱:phpchess,代碼行數:31,代碼來源:manage_db_run.php

示例5: unset

unset($oSkins);
//////////////////////////////////////////////////////////////
//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 . "includes/siteconfig.php";
require $Root_Path . "includes/language.php";
//////////////////////////////////////////////////////////////
//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']);
開發者ID:robertohernando,項目名稱:phpchess,代碼行數:31,代碼來源:chess_cfg_clubs.php

示例6: CR3DCQuery

//////////////////////////////////////////////////////////////
//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/CAdmin.php";
require $Root_Path . "bin/config.php";
require $Root_Path . "includes/siteconfig.php";
require $Root_Path . "includes/language.php";
//////////////////////////////////////////////////////////////
//Instantiate the CR3DCQuery Class
$oR3DCQuery = new CR3DCQuery($config);
$bCronEnabled = $oR3DCQuery->IsCronManagementEnabled();
//////////////////////////////////////////////////////////////
////////////////////////////////////////////////
//Login Processing
////////////////////////////////////////////////
//Check if admin is logged in already
if (!isset($_SESSION['LOGIN'])) {
    $login = "no";
    header('Location: ./index.php');
} else {
    if ($_SESSION['LOGIN'] != true) {
        if (isset($_SESSION['UNAME'])) {
            unset($_SESSION['UNAME']);
        }
        if (isset($_SESSION['LOGIN'])) {
開發者ID:robertohernando,項目名稱:phpchess,代碼行數:31,代碼來源:manage_multiredemption.php

示例7: CR3DCQuery

//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/CAdmin.php";
require $Root_Path . "bin/config.php";
require $Root_Path . "includes/siteconfig.php";
require $Root_Path . "includes/language.php";
require $Root_Path . "includes/xml.php";
//////////////////////////////////////////////////////////////
//Instantiate the CR3DCQuery Class
$oR3DCQuery = new CR3DCQuery($config);
$bCronEnabled = $oR3DCQuery->IsCronManagementEnabled();
//////////////////////////////////////////////////////////////
if (!$bCronEnabled) {
    if ($oR3DCQuery->ELOIsActive()) {
        $oR3DCQuery->ELOCreateRatings();
    }
    $oR3DCQuery->MangeGameTimeOuts();
}
// GET and POST variables
$tid = $_GET['tid'];
$type = $_GET['type'];
?>

<html>
<head>
開發者ID:robertohernando,項目名稱:phpchess,代碼行數:31,代碼來源:chess_tournament_info_v2.php

示例8: CR3DCQuery

if (file_exists($SSIfile)) {
    include $SSIfile;
}
//////////////////////////////////////////////////////////////
include $Root_Path . "includes/support_chess.inc";
include $Root_Path . "includes/chess.inc";
require $Root_Path . "bin/CR3DCQuery.php";
require $Root_Path . "bin/CTipOfTheDay.php";
require $Root_Path . "includes/siteconfig.php";
require $Root_Path . "includes/language.php";
require $Root_Path . "bin/LanguageParser.php";
include $config;
// To access config options in this file.
//////////////////////////////////////////////////////////////
//Instantiate the CR3DCQuery Class
$oR3DCQuery = new CR3DCQuery($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);
開發者ID:robertohernando,項目名稱:phpchess,代碼行數:31,代碼來源:chess_game_rt.php

示例9: unset

$SkinName = $oSkins->getskinname();
$oSkins->Close();
unset($oSkins);
//////////////////////////////////////////////////////////////
//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/config.php";
require $Root_Path . "includes/language.php";
//Instantiate theCR3DCQuery Class
$oR3DCQuery = new CR3DCQuery($config);
$tid = $_GET['tid'];
$type = $_GET['type'];
?>

<html>
<head>
<title></title>
<link rel="stylesheet" href="<?php 
echo $Root_Path . "skins/" . $SkinName . "/";
?>
layout.css" type="text/css">
</head>
<body>

<?php 
開發者ID:robertohernando,項目名稱:phpchess,代碼行數:31,代碼來源:tv2_console_main_closet.php

示例10: unset

$SkinName = $oSkins->getskinname();
$oSkins->Close();
unset($oSkins);
//////////////////////////////////////////////////////////////
//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/config.php";
require $Root_Path . "includes/language.php";
//Instantiate theCR3DCQuery Class
$oR3DCQuery = new CR3DCQuery($config);
$tgc = $_GET['tgc'];
$tid = $_GET['tid'];
$type = $_GET['type'];
$tzn = $_GET['tzn'];
?>

<html>
<head>
<title></title>
<link rel="stylesheet" href="<?php 
echo $Root_Path . "skins/" . $SkinName . "/";
?>
layout.css" type="text/css">
</head>
<body>
開發者ID:robertohernando,項目名稱:phpchess,代碼行數:31,代碼來源:tv2p_gameList.php

示例11: unset

$SkinName = $oSkins->getskinname();
$oSkins->Close();
unset($oSkins);
//////////////////////////////////////////////////////////////
//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/config.php";
require $Root_Path . "includes/language.php";
//Instantiate theCR3DCQuery Class
$oR3DCQuery = new CR3DCQuery($config);
$tgc = $_GET['tgc'];
$tid = $_GET['tid'];
$type = $_GET['type'];
$tzn = $_GET['tzn'];
if (isset($_SESSION['sid'])) {
    $oR3DCQuery->UpdateSIDTimeout($ConfigFile, $_SESSION['sid']);
    $oR3DCQuery->v2OTMJoinAndMaintainChatStatus($type, $tid, $_SESSION['id']);
}
?>

<html>
<head>
<title></title>
<link rel="stylesheet" href="<?php 
echo $Root_Path . "skins/" . $SkinName . "/";
開發者ID:robertohernando,項目名稱:phpchess,代碼行數:31,代碼來源:tv2p_handler.php

示例12: CR3DCQuery

    include $SSIfile;
}
//////////////////////////////////////////////////////////////
require $Root_Path . "bin/CR3DCQuery.php";
require $Root_Path . "includes/language.php";
$bLogedin = false;
$bUsernameChanged = false;
$strErrorMsg = "";
$strNewUserName = "";
$cmdViewUsername = $_POST['cmdViewUsername'];
$txtOldUsername = $_POST['txtOldUsername'];
$txtPassword = $_POST['txtPassword'];
$cmdChangeUsername = $_POST['cmdChangeUsername'];
$txtNewUsername = $_POST['txtNewUsername'];
//Instantiate the CR3DCQuery Class
$oR3DCQuery = new CR3DCQuery($config);
// Log the user in
if (($cmdViewUsername != "" || $cmdChangeUsername) && $txtOldUsername != "" && $txtPassword != "") {
    $strNewUserName = $oR3DCQuery->CheckUserNameLogin($txtOldUsername, $txtPassword);
    if ($strNewUserName != "") {
        $bLogedin = true;
    }
}
// Change the users old username
if ($cmdChangeUsername != "" && $txtNewUsername != "" && $txtPassword != "" && $txtOldUsername != "" && $bLogedin) {
    if ($oR3DCQuery->IsUserNameLegal($txtNewUsername)) {
        if (!$oR3DCQuery->UserNameExists($txtNewUsername)) {
            if ($oR3DCQuery->ChangeUserNameByOldName($strNewUserName, $txtNewUsername)) {
                $bUsernameChanged = true;
            }
        } else {
開發者ID:robertohernando,項目名稱:phpchess,代碼行數:31,代碼來源:x_username.php

示例13: unset

$SkinName = $oSkins->getskinname();
$oSkins->Close();
unset($oSkins);
//////////////////////////////////////////////////////////////
//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/config.php";
require $Root_Path . "includes/language.php";
//Instantiate theCR3DCQuery Class
$oR3DCQuery = new CR3DCQuery($config);
$tgc = $_GET['tgc'];
$tid = $_GET['tid'];
$type = $_GET['type'];
$tzn = $_GET['tzn'];
$clrl = $_SESSION['lcolor'];
$clrd = $_SESSION['dcolor'];
if ($clrl == "" && $clrd == "") {
    $clrl = "#957A01";
    $clrd = "#FFFFFF";
}
?>

<html>
<head>
<title></title>
開發者ID:robertohernando,項目名稱:phpchess,代碼行數:31,代碼來源:tv2_spectator_m2.php

示例14: CR3DCQuery

//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/CAdmin.php";
require $Root_Path . "bin/config.php";
require $Root_Path . "includes/siteconfig.php";
require $Root_Path . "includes/language.php";
require $Root_Path . "includes/xml.php";
//////////////////////////////////////////////////////////////
//Instantiate the CR3DCQuery Class
$oR3DCQuery = new CR3DCQuery($config);
$bCronEnabled = $oR3DCQuery->IsCronManagementEnabled();
//////////////////////////////////////////////////////////////
////////////////////////////////////////////////
//Login Processing
////////////////////////////////////////////////
//Check if admin is logged in already
if (!isset($_SESSION['LOGIN'])) {
    $login = "no";
    header('Location: ./index.php');
} else {
    if ($_SESSION['LOGIN'] != true) {
        if (isset($_SESSION['UNAME'])) {
            unset($_SESSION['UNAME']);
        }
        if (isset($_SESSION['LOGIN'])) {
開發者ID:robertohernando,項目名稱:phpchess,代碼行數:31,代碼來源:tournament_game_edit.php

示例15: CR3DCQuery

if (file_exists($SSIfile)) {
    include $SSIfile;
}
//////////////////////////////////////////////////////////////
require $Root_Path . "bin/CR3DCQuery.php";
require $Root_Path . "bin/CTipOfTheDay.php";
require $Root_Path . "bin/CBilling.php";
require $Root_Path . "bin/CServMsg.php";
require $Root_Path . "includes/language.php";
require $Root_Path . "includes/siteconfig.php";
include_once $Root_Path . "bin/CAvatars.php";
require $Root_Path . "bin/LanguageParser.php";
include $config;
//////////////////////////////////////////////////////////////
//Instantiate the Classes
$oR3DCQuery = new CR3DCQuery($config);
$oAvatars = new CAvatars($config);
$oBilling = new CBilling($config);
$oServMsg = new CServMsg($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;
開發者ID:robertohernando,項目名稱:phpchess,代碼行數:31,代碼來源:chess_members.php


注:本文中的CR3DCQuery類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。