コード例 #1
0
    $turn = 'black';
}
//explode the board info into rows
$board = explode("/", $fen[0]);
$initiator = "";
$w_player_id = "";
$b_player_id = "";
$status = "";
$completion_status = "";
$start_time = "";
$next_move = "";
$oR3DCQuery->GetGameInfoByRef($config, $gid, $initiator, $w_player_id, $b_player_id, $status, $completion_status, $start_time, $next_move);
if ($completion_status == 'B' || $completion_status == 'W' || $completion_status == 'D') {
    $turn = "''";
}
LanguageFile::load_language_file($Root_Path . 'includes/languages/' . preg_replace('/\\.txt/', '.php', $_SESSION['language']));
?>

<html>
<head>
<title><?php 
echo __l('Game') . ': ' . substr($gid, 0, 4);
?>
</title>

<META NAME="keywords" CONTENT="">
<META NAME="DESCRIPTION" CONTENT="">
<META NAME="OWNER" CONTENT="Christian">
<META NAME="RATING" CONTENT="General">
<META NAME="ROBOTS" CONTENT="index,follow">
<META HTTP-EQUIV="CONTENT-LANGUAGE" CONTENT="English">
コード例 #2
0
 public static function load_language_file2($conf)
 {
     $host = $conf['database_host'];
     $dbnm = $conf['database_name'];
     $user = $conf['database_login'];
     $pass = $conf['database_pass'];
     $link = mysql_connect($host, $user, $pass);
     mysql_select_db($dbnm);
     $query = "SELECT * FROM server_language WHERE o_id=1";
     $return = mysql_query($query, $link) or die(mysql_error());
     $num = mysql_numrows($return);
     if ($num != 0) {
         $LanguageFile = $conf['absolute_directory_location'] . "includes/languages/" . mysql_result($return, 0, "o_languagefile");
     }
     LanguageFile::load_language_file(preg_replace('/\\.txt/', '.php', $LanguageFile));
 }
コード例 #3
0
if ($cmdChange != "" && $txtCSnail != "" && $txtCSlow != "" && $txtCNormal != "" && $txtCShort != "" && $txtCBlitz != "") {
    $mode = 0;
    if ($timing_mode == 'time_game') {
        $tmode = 0;
    } elseif ($timing_mode == 'time_players') {
        $mode = 1;
    }
    $oR3DCQuery->SetServerGameOptions($txtCSnail, $txtCSlow, $txtCNormal, $txtCShort, $txtCBlitz, $mode);
}
if (!$bCronEnabled) {
    if ($oR3DCQuery->ELOIsActive()) {
        $oR3DCQuery->ELOCreateRatings();
    }
    $oR3DCQuery->MangeGameTimeOuts();
}
LanguageFile::load_language_file2($conf);
?>

<html>
<head>
<title><?php 
echo GetStringFromStringTable("IDS_PAGETITLES_27", $config);
?>
</title>

<META NAME="keywords" CONTENT="">
<META NAME="DESCRIPTION" CONTENT="">
<META NAME="OWNER" CONTENT="Christian">
<META NAME="RATING" CONTENT="General">
<META NAME="ROBOTS" CONTENT="index,follow">
<META HTTP-EQUIV="CONTENT-LANGUAGE" CONTENT="English">
コード例 #4
0
 public function getFile()
 {
     $langFilesModel = new LanguageFile();
     return $langFilesModel->getLanguageFile($this->getApplication(), $this->getLanguage());
 }