• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP CR3DCQuery类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中CR3DCQuery的典型用法代码示例。如果您正苦于以下问题:PHP CR3DCQuery类的具体用法?PHP CR3DCQuery怎么用?PHP CR3DCQuery使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了CR3DCQuery类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: trim

$my_color = trim($_GET['my_color']);
$fen = trim($_GET['fen']);
$otherplayerid = trim($_GET['otherplayerid']);
$cmdCreateGame = trim($_GET['cmdCreateGame']);
$chkrealtime = 1;
$chkrealtimeposs = "";
$move1 = trim($_GET['txtmoves1']);
$time1 = trim($_GET['txtmins1']);
$move2 = trim($_GET['txtmoves2']);
$time2 = trim($_GET['txtmins2']);
$precreate = trim($_GET['slc_precreate']);
$slctGameRating = trim($_GET['slctGameRating']);
$slctGameTime = trim($_GET['slctGameTime']);
//////////////////////////////////////////////////////////////
//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_create_game_oc.php


示例17: CR3DCQuery

//Instantiate theCR3DCQuery Class
$oR3DCQuery = new CR3DCQuery($config);
if ($oR3DCQuery->IsPlayersTurn($config, $_SESSION['id'], $GID) && $oR3DCQuery->TimeForTGame($config, $GID)) {
    echo "parent.frames['chessboard'].location.reload();";
} elseif ($oR3DCQuery->IsPlayersTurn($config, $_SESSION['id'], $GID) == false && $oR3DCQuery->TimeForTGame($config, $GID) == false) {
    echo "parent.frames['chessboard'].location.reload();";
} elseif ($oR3DCQuery->TGameStatus($GID) == false) {
    echo "parent.frames['chessboard'].location.reload();";
}
$oR3DCQuery->Close();
unset($oR3DCQuery);
///////////
?>

</script>
<body>

<textarea cols='32' rows='24' class='post'>

<?php 
//Instantiate theCR3DCQuery Class
$oR3DCQuery = new CR3DCQuery($config);
$oR3DCQuery->GetTChat($config, $GID);
$oR3DCQuery->Close();
unset($oR3DCQuery);
?>

</textarea>

</body>
</html>
开发者ID:robertohernando,项目名称:phpchess,代码行数:31,代码来源:t_chat.php


示例18: create_game

 function create_game($ConfigFile, $requestor, $other, $req_color, $FEN)
 {
     if ($other !== "") {
         if ($requestor == $other) {
             return "";
         }
         // verify the validity of both players
         $w_player_id = "";
         $b_player_id = "";
         if ($req_color != "" && $req_color == "w") {
             $w_player_id = $requestor;
             $b_player_id = $other;
         } else {
             $w_player_id = $other;
             $b_player_id = $requestor;
         }
         //include config file
         include $ConfigFile;
         // create a new game in the db
         $game_id = $this->gen_unique();
         // connect to mysql and open database
         $db_my = mysql_connect($conf['database_host'], $conf['database_login'], $conf['database_pass']) or die("Couldn't connect to the database.");
         @mysql_select_db($conf['database_name']) or die("Unable to select database");
         $st = "INSERT INTO game(game_id, initiator, w_player_id, b_player_id, start_time) VALUES('" . $game_id . "'," . $requestor . "," . $w_player_id . "," . $b_player_id . "," . time() . ")";
         mysql_query($st) or die(mysql_error());
         //if fen is included insert it
         if (trim($FEN) != "") {
             $st = "INSERT INTO c4m_newgameotherfen VALUES('" . $game_id . "', '" . trim($FEN) . "')";
             mysql_query($st) or die(mysql_error());
         }
         // immediately update the status of the requestor
         $st = "UPDATE player SET status='E' WHERE player_id=" . $requestor . "";
         mysql_query($st) or die(mysql_error());
         //////////////////////////////////////////////
         // notify the challenged
         $st = "INSERT INTO message_queue(player_id, message, posted) VALUES(" . $other . ",'" . $this->add_header("G", $game_id . $this->zero_pad($requestor, 8), "C") . "'," . time() . ")";
         mysql_query($st) or die(mysql_error());
         //Instantiate theCR3DCQuery Class
         $oR3DCQuery = new CR3DCQuery($this->ChessCFGFileLocation);
         if ($oR3DCQuery->ChallangeNotification($other) == true) {
             $requestorname = $oR3DCQuery->GetUserIDByPlayerID($this->ChessCFGFileLocation, $requestor);
             $otherguysname = $oR3DCQuery->GetUserIDByPlayerID($this->ChessCFGFileLocation, $other);
             $otheremail = $oR3DCQuery->GetEmailByPlayerID($this->ChessCFGFileLocation, $other);
             $subject = $this->GetStringFromStringTable("IDS_CR3DCQUERY_EMAIL_TVST_19", $ConfigFile);
             $aTags1 = array("['otherguysname']", "['requestorname']", "['game_id']", "['siteurl']", "['sitename']");
             $aReplaceTags = array($otherguysname, $requestorname, $game_id, $this->TrimRSlash($conf['site_url']), $conf['site_name']);
             $bodyp1 = str_replace($aTags1, $aReplaceTags, $this->GetStringFromStringTable("IDS_CR3DCQUERY_EMAIL_TVST_20", $ConfigFile));
             $this->SendEmail($otheremail, $conf['registration_email'], $conf['site_name'], $subject, $bodyp1);
         }
         unset($oR3DCQuery);
         //////////////////////////////////////////////
         return $game_id . $this->zero_pad($w_player_id, 8) . $this->zero_pad($b_player_id, 8);
     } else {
         return "";
     }
 }
开发者ID:robertohernando,项目名称:phpchess,代码行数:56,代码来源:CChess.php


示例19: 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);
$jtime = $_GET['jtime'];
if (isset($_SESSION['sid'])) {
    $oR3DCQuery->UpdateSIDTimeout($ConfigFile, $_SESSION['sid']);
    $oR3DCQuery->PlayerChatJoinAndMaintainChatStatus($_SESSION['id']);
}
?>

<html>
<head>
<title></title>
<link rel="stylesheet" href="<?php 
echo $Root_Path . "skins/" . $SkinName . "/";
?>
layout.css" type="text/css">
</head>
开发者ID:robertohernando,项目名称:phpchess,代码行数:31,代码来源:pc_handler.php


示例20: 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 . "includes/siteconfig.php";
require $Root_Path . "includes/language.php";
require $Root_Path . "bin/CAdmin.php";
//////////////////////////////////////////////////////////////
//Instantiate the CR3DCQuery Class
$oR3DCQuery = new CR3DCQuery($config);
$bCronEnabled = $oR3DCQuery->IsCronManagementEnabled();
//////////////////////////////////////////////////////////////
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 = $oR3DCQuery->GetIDByUserID($config, $user);
        if ($sid != "") {
            $_SESSION['sid'] = $sid;
            $_SESSION['user'] = $user;
            $_SESSION['id'] = $id;
            //Get Chessboard colors
            $d = "";
            $l = "";
开发者ID:robertohernando,项目名称:phpchess,代码行数:31,代码来源:chess_close.php



注:本文中的CR3DCQuery类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP CRMEntity类代码示例发布时间:2022-05-23
下一篇:
PHP CQuery类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap