当前位置: 首页>>代码示例>>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;未经允许,请勿转载。