当前位置: 首页>>代码示例>>PHP>>正文


PHP load_languages函数代码示例

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


在下文中一共展示了load_languages函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: load_languages

     echo "<input type=hidden name=gop value={$gop}>";
     echo "<input type=hidden name=enp value={$enp}>";
     echo "<input type=hidden name=initscommod value={$initscommod}>";
     echo "<input type=hidden name=initbcommod value={$initbcommod}>";
     echo "<input type=hidden name=nump value={$nump}>";
     echo "<INPUT TYPE=HIDDEN NAME=fedsecs VALUE={$fedsecs}>";
     echo "<input type=hidden name=loops value={$loops}>";
     echo "<input type=hidden name=engage value=2>";
     echo "<input type=hidden name=swordfish value={$swordfish}>";
     echo "<p align='center'><input type=submit value=Confirm></p>";
     echo "</form>";
     include_once "footer.php";
     break;
 case "7":
     // New database driven language entries
     load_languages($db, $lang, array('create_universe', 'common', 'global_includes', 'global_funcs', 'footer', 'news'), $langvars, $db_logging);
     Table_Header("Configuring game scheduler --- Stage 7");
     Table_2Col("Update ticks will occur every {$sched_ticks} minutes.", "<p align='center'><font size=\"1\" color=\"Blue\">Already Set</font></p>");
     $db->Execute("INSERT INTO {$db->prefix}scheduler VALUES(NULL, 'Y', 0, {$sched_turns}, 0, 'sched_turns.php', NULL,unix_timestamp(now()))");
     Table_Row("Turns will occur every {$sched_turns} minutes", "Failed", "Inserted");
     $db->Execute("INSERT INTO {$db->prefix}scheduler VALUES(NULL, 'Y', 0, {$sched_turns}, 0, 'sched_defenses.php', NULL,unix_timestamp(now()))");
     Table_Row("Defenses will be checked every {$sched_turns} minutes", "Failed", "Inserted");
     $db->Execute("INSERT INTO {$db->prefix}scheduler VALUES(NULL, 'Y', 0, {$sched_turns}, 0, 'sched_xenobe.php', NULL,unix_timestamp(now()))");
     Table_Row("Xenobes will play every {$sched_turns} minutes.", "Failed", "Inserted");
     $db->Execute("INSERT INTO {$db->prefix}scheduler VALUES(NULL, 'Y', 0, {$sched_igb}, 0, 'sched_igb.php', NULL,unix_timestamp(now()))");
     Table_Row("Interests on IGB accounts will be accumulated every {$sched_igb} minutes.", "Failed", "Inserted");
     $db->Execute("INSERT INTO {$db->prefix}scheduler VALUES(NULL, 'Y', 0, {$sched_news}, 0, 'sched_news.php', NULL,unix_timestamp(now()))");
     Table_Row("News will be generated every {$sched_news} minutes.", "Failed", "Inserted");
     $db->Execute("INSERT INTO {$db->prefix}scheduler VALUES(NULL, 'Y', 0, {$sched_planets}, 0, 'sched_planets.php', NULL,unix_timestamp(now()))");
     Table_Row("Planets will generate production every {$sched_planets} minutes.", "Failed", "Inserted");
     $db->Execute("INSERT INTO {$db->prefix}scheduler VALUES(NULL, 'Y', 0, {$sched_ports}, 0, 'sched_ports.php', NULL,unix_timestamp(now()))");
开发者ID:kagetenshi,项目名称:xenoberage,代码行数:31,代码来源:create_universe.php

示例2: updatecookie

//  published by the Free Software Foundation, either version 3 of the
//  License, or (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU Affero General Public License for more details.
//
//  You should have received a copy of the GNU Affero General Public License
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
//
// File: modify_defences.php
include "config/config.php";
updatecookie();
// New database driven language entries
load_languages($db, $lang, array('modify_defences', 'common', 'global_includes', 'global_funcs', 'footer', 'news'), $langvars, $db_logging);
include_once "includes/explode_mines.php";
$title = $l_md_title;
include "header.php";
?>
<div class="tablecell content both-border">
	<div class="pad">
<?php 
if (checklogin()) {
    die;
}
if (!isset($defence_id)) {
    echo $l_md_invalid . "<br><br>";
    TEXT_GOTOMAIN();
    ?>
</div></div>
开发者ID:kagetenshi,项目名称:xenoberage,代码行数:31,代码来源:modify_defences.php

示例3: updatecookie

//  published by the Free Software Foundation, either version 3 of the
//  License, or (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU Affero General Public License for more details.
//
//  You should have received a copy of the GNU Affero General Public License
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
//
// File: scan.php
include "config/config.php";
updatecookie();
// New database driven language entries
load_languages($db, $lang, array('scan', 'common', 'bounty', 'report', 'main', 'global_includes', 'global_funcs', 'footer', 'news', 'planet'), $langvars, $db_logging);
$title = $l_scan_title;
include "header.php";
?>
<div class="tablecell content both-border">
	<div class="pad">
<?php 
if (checklogin()) {
    die;
}
$result = $db->Execute("SELECT * FROM {$db->prefix}ships WHERE ship_id=?", array($user_ship_id));
db_op_result($db, $result, __LINE__, __FILE__, $db_logging);
$playerinfo = $result->fields;
$result2 = $db->Execute("SELECT * FROM {$db->prefix}ships WHERE ship_id=?", array($ship_id));
db_op_result($db, $result2, __LINE__, __FILE__, $db_logging);
$targetinfo = $result2->fields;
开发者ID:kagetenshi,项目名称:xenoberage,代码行数:31,代码来源:scan.php

示例4: gethostbyaddr

    $ip_array = $shared_function->sortIP();
    $user_ip_address = $ip_array[0];
    $user_agent = $_SERVER['HTTP_USER_AGENT'];
    $user_host = gethostbyaddr($_SERVER['REMOTE_ADDR']);
    $cookie_session_id = md5($user_agent);
    $data = array('username' => $username, 'password' => $cookie_session_id, 'user_id' => $user_ship_id, 'user_ip' => $user_ip_address, 'user_host' => $user_host, 'user_agent' => $user_agent);
    $data = serialize($data);
    setcookie("userID", $data, time() + 3600 * 24 * 365, $gamepath, $gamedomain);
}
if (!preg_match("/^[\\w]+\$/", $newlang)) {
    $newlang = $default_lang;
} else {
    $lang = $_POST['newlang'];
}
// New database driven language entries
load_languages($db, $lang, array('option2', 'common', 'global_includes', 'global_funcs', 'combat', 'footer', 'news'), $langvars, $db_logging);
include "header.php";
?>
<div class="tablecell content both-border">
	<div class="pad">
<?php 
bigtitle();
if ($newpass1 == "" && $newpass2 == "") {
    echo $l_opt2_passunchanged . "<br><br>";
} elseif ($password != $oldpass) {
    echo $l_opt2_srcpassfalse . "<br><br>";
} elseif ($newpass1 != $newpass2) {
    echo $l_opt2_newpassnomatch . "<br><br>";
} else {
    $res = $db->Execute("SELECT ship_id,password FROM {$db->prefix}ships WHERE ship_id='{$user_ship_id}'");
    db_op_result($db, $res, __LINE__, __FILE__, $db_logging);
开发者ID:kagetenshi,项目名称:xenoberage,代码行数:31,代码来源:option2.php

示例5: updatecookie

//  published by the Free Software Foundation, either version 3 of the
//  License, or (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU Affero General Public License for more details.
//
//  You should have received a copy of the GNU Affero General Public License
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
//
// File: zoneinfo.php
include "config/config.php";
updatecookie();
// New database driven language entries
load_languages($db, $lang, array('port', 'main', 'attack', 'zoneinfo', 'report', 'common', 'global_includes', 'global_funcs', 'footer', 'modify_defences'), $langvars, $db_logging);
$body_class = 'zoneinfo';
$title = $l_zi_title;
include "header.php";
?>
<div class="tablecell content both-border">
	<div class="pad">
<?php 
if (checklogin()) {
    die;
}
bigtitle();
$res = $db->Execute("SELECT * FROM {$db->prefix}ships WHERE ship_id='{$user_ship_id}'");
db_op_result($db, $res, __LINE__, __FILE__, $db_logging);
$playerinfo = $res->fields;
$res = $db->Execute("SELECT * FROM {$db->prefix}zones WHERE zone_id='{$zone}'");
开发者ID:kagetenshi,项目名称:xenoberage,代码行数:31,代码来源:zoneinfo.php

示例6: updatecookie

//  published by the Free Software Foundation, either version 3 of the
//  License, or (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU Affero General Public License for more details.
//
//  You should have received a copy of the GNU Affero General Public License
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
//
// File: zoneedit.php
include "config/config.php";
updatecookie();
// New database driven language entries
load_languages($db, $lang, array('zoneedit', 'report', 'port', 'main', 'zoneinfo', 'common', 'global_includes', 'global_funcs', 'footer', 'news'), $langvars, $db_logging);
$title = $l_ze_title;
include "header.php";
?>
<div class="tablecell content both-border">
	<div class="pad">
<?php 
if (checklogin()) {
    die;
}
bigtitle();
$command = null;
if (array_key_exists('command', $_GET) == true) {
    $command = $_GET['command'];
}
$zone = null;
开发者ID:kagetenshi,项目名称:xenoberage,代码行数:31,代码来源:zoneedit.php

示例7: updatecookie

//  published by the Free Software Foundation, either version 3 of the
//  License, or (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU Affero General Public License for more details.
//
//  You should have received a copy of the GNU Affero General Public License
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
//
// File: readmail.php
include "config/config.php";
updatecookie();
// New database driven language entries
load_languages($db, $lang, array('readmail', 'common', 'global_includes', 'global_funcs', 'footer', 'planet_report'), $langvars, $db_logging);
$title = $l_readm_title;
include "header.php";
?>
<div class="tablecell content both-border">
	<div class="pad">
<?php 
bigtitle();
if (checklogin()) {
    die;
}
$res = $db->Execute("SELECT * FROM {$db->prefix}ships WHERE ship_id='" . $user_ship_id . "'");
db_op_result($db, $res, __LINE__, __FILE__, $db_logging);
$playerinfo = $res->fields;
if (!isset($_GET['action'])) {
    $_GET['action'] = '';
开发者ID:kagetenshi,项目名称:xenoberage,代码行数:31,代码来源:readmail.php

示例8: updatecookie

//  published by the Free Software Foundation, either version 3 of the
//  License, or (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU Affero General Public License for more details.
//
//  You should have received a copy of the GNU Affero General Public License
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
//
// File: galaxy_new.php
include "config/config.php";
updatecookie();
// New database driven language entries
load_languages($db, $lang, array('main', 'port', 'galaxy', 'common', 'global_includes', 'global_funcs', 'footer'), $langvars, $db_logging);
global $l_map_title;
$title = $l_map_title;
include "header.php";
?>
<div class="tablecell content both-border">
	<div class="pad">
<?php 
if (checklogin()) {
    die;
}
$res = $db->Execute("SELECT * FROM {$db->prefix}ships WHERE ship_id='{$user_ship_id}'");
db_op_result($db, $res, __LINE__, __FILE__, $db_logging);
$playerinfo = $res->fields;
$result3 = $db->Execute("SELECT distinct {$db->prefix}movement_log.sector_id, port_type, beacon FROM {$db->prefix}movement_log,{$db->prefix}universe WHERE ship_id = {$playerinfo['ship_id']} AND {$db->prefix}movement_log.sector_id={$db->prefix}universe.sector_id order by sector_id ASC;");
db_op_result($db, $result3, __LINE__, __FILE__, $db_logging);
开发者ID:kagetenshi,项目名称:xenoberage,代码行数:31,代码来源:galaxy.php

示例9: updatecookie

//  published by the Free Software Foundation, either version 3 of the
//  License, or (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU Affero General Public License for more details.
//
//  You should have received a copy of the GNU Affero General Public License
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
//
// File: self_destruct.php
include "config/config.php";
updatecookie();
// New database driven language entries
load_languages($db, $lang, array('self_destruct', 'ranking', 'common', 'global_includes', 'global_funcs', 'footer'), $langvars, $db_logging);
include_once "includes/cancel_bounty.php";
$title = $l_die_title;
include "header.php";
if (checklogin()) {
    die;
}
?>
<div class="tablecell content both-border">
	<div class="pad">
<?php 
bigtitle();
$result = $db->Execute("SELECT ship_id,character_name FROM {$db->prefix}ships WHERE  ship_id='{$user_ship_id}'");
db_op_result($db, $result, __LINE__, __FILE__, $db_logging);
$playerinfo = $result->fields;
if (isset($_GET['sure'])) {
开发者ID:kagetenshi,项目名称:xenoberage,代码行数:31,代码来源:self_destruct.php

示例10: updatecookie

//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU Affero General Public License for more details.
//
//  You should have received a copy of the GNU Affero General Public License
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
//
// File: teams.php
// Added a quick fix for creating a new team with the same name
// This file needs to be completely recoded from scratch :(
include "config/config.php";
updatecookie();
// New database driven language entries
load_languages($db, $lang, array('teams', 'common', 'global_includes', 'global_funcs', 'footer'), $langvars, $db_logging);
$title = $l_team_title;
include "header.php";
include_once "includes/defence_vs_defence.php";
include_once "includes/kick_off_planet.php";
if (checklogin()) {
    die;
}
?>
<div class="tablecell content both-border">
	<div class="pad">
<?php 
bigtitle();
$testing = false;
// set to false to get rid of password when creating new team
// Typecast into integers (this also removes all non numbers)
开发者ID:kagetenshi,项目名称:xenoberage,代码行数:31,代码来源:teams.php

示例11: updatecookie

//  published by the Free Software Foundation, either version 3 of the
//  License, or (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU Affero General Public License for more details.
//
//  You should have received a copy of the GNU Affero General Public License
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
//
// File: xenobe_control.php
include "config/config.php";
updatecookie();
// New database driven language entries
load_languages($db, $lang, array('xenobe_control', 'common', 'global_includes', 'global_funcs', 'footer', 'news'), $langvars, $db_logging);
$title = $l_ai_control;
include "header.php";
?>
<div class="tablecell content both-border">
	<div class="pad">
<?php 
connectdb();
bigtitle();
function CHECKED($yesno)
{
    return $yesno == "Y" ? "CHECKED" : "";
}
function YESNO($onoff)
{
    return $onoff == "ON" ? "Y" : "N";
开发者ID:kagetenshi,项目名称:xenoberage,代码行数:31,代码来源:xenobe_control.php

示例12: basename

<?php

include 'calendar/hooks.php';
# calendarMini
include 'calendar/inc/client_calendarMini.php';
# calendarEvents
include 'calendar/inc/client_calendarEvents.php';
$thisfile = basename(__FILE__, '.php');
register_plugin($thisfile, 'Calendar', '1.8', 'clq', '', 'Plugin to create camping calendar', 'calendar', 'calendar_main');
# language
# load i18n texts
load_languages();
# activate filter
add_action('header', 'calendar_header');
add_action('footer', 'calendar_footer');
add_action('nav-tab', 'createNavTab', array('calendar', $thisfile, i18n_r('calendar/calendar'), 'events'));
/*
# $_GET check
if (!isset($_GET['calendar']) and !isset($_GET['settings']) and !isset($_GET['edit'])) {
    $_GET['events'] = true;
}*/
开发者ID:Vin985,项目名称:clqweb,代码行数:21,代码来源:calendar.php

示例13: load_languages

//  it under the terms of the GNU Affero General Public License as
//  published by the Free Software Foundation, either version 3 of the
//  License, or (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU Affero General Public License for more details.
//
//  You should have received a copy of the GNU Affero General Public License
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
//
// File: main.php
include "config/config.php";
// New database driven language entries
load_languages($db, $lang, array('common', 'global_includes'), $langvars, $db_logging);
updatecookie();
if (checklogin()) {
    die;
}
$title = $l->get('l_main_title');
include "header.php";
$stylefontsize = "12Pt";
$picsperrow = 7;
$res = $db->Execute("SELECT * FROM {$db->prefix}ships WHERE ship_id='{$user_ship_id}'");
db_op_result($db, $res, __LINE__, __FILE__, $db_logging);
$playerinfo = $res->fields;
if ($playerinfo['cleared_defences'] > ' ') {
    echo $l->get('l_incompletemove') . " <br>";
    echo "<a href={$playerinfo['cleared_defences']}>" . $l->get('l_clicktocontinue') . "</a>";
    die;
开发者ID:kagetenshi,项目名称:xenoberage,代码行数:31,代码来源:main.php

示例14: load_languages

//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU Affero General Public License for more details.
//
//  You should have received a copy of the GNU Affero General Public License
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
//
// File: sector_fighters.php
if (preg_match("/sector_fighters.php/i", $_SERVER['PHP_SELF'])) {
    echo "You can not access this file directly!";
    die;
}
// New database driven language entries
load_languages($db, $lang, array('sector_fighters', 'common', 'global_includes', 'global_funcs', 'footer', 'news'), $langvars, $db_logging);
include_once "includes/destroy_fighters.php";
include_once "includes/cancel_bounty.php";
echo $l_sf_attacking . "<br>";
$targetfighters = $total_sector_fighters;
$playerbeams = NUM_BEAMS($playerinfo['beams']);
if ($calledfrom == 'rsmove.php') {
    $playerinfo['ship_energy'] += $energyscooped;
}
if ($playerbeams > $playerinfo['ship_energy']) {
    $playerbeams = $playerinfo['ship_energy'];
}
$playerinfo['ship_energy'] = $playerinfo['ship_energy'] - $playerbeams;
$playershields = NUM_SHIELDS($playerinfo['shields']);
if ($playershields > $playerinfo['ship_energy']) {
    $playershields = $playerinfo['ship_energy'];
开发者ID:kagetenshi,项目名称:xenoberage,代码行数:31,代码来源:sector_fighters.php

示例15: updatecookie

//  published by the Free Software Foundation, either version 3 of the
//  License, or (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU Affero General Public License for more details.
//
//  You should have received a copy of the GNU Affero General Public License
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
//
// File: emerwarp.php
include "config/config.php";
updatecookie();
// New database driven language entries
load_languages($db, $lang, array('emerwarp', 'common', 'global_includes', 'global_funcs', 'footer', 'news'), $langvars, $db_logging);
$title = $l_ewd_title;
include "header.php";
if (checklogin()) {
    die;
}
?>
<div class="tablecell content both-border">
	<div class="pad">
<?php 
$result = $db->Execute("SELECT * FROM {$db->prefix}ships WHERE ship_id='{$user_ship_id}'");
db_op_result($db, $result, __LINE__, __FILE__, $db_logging);
$playerinfo = $result->fields;
bigtitle();
if ($playerinfo['dev_emerwarp'] > 0) {
    $dest_sector = mt_rand(0, $sector_max - 1);
开发者ID:kagetenshi,项目名称:xenoberage,代码行数:31,代码来源:emerwarp.php


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