本文整理汇总了PHP中get_langfile_path函数的典型用法代码示例。如果您正苦于以下问题:PHP get_langfile_path函数的具体用法?PHP get_langfile_path怎么用?PHP get_langfile_path使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_langfile_path函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: dbconn
<?php
require_once "include/bittorrent.php";
dbconn();
require_once get_langfile_path("", false, $CURLANGDIR);
cur_user_check();
registration_check("cardreg");
failedloginscheck("Signup");
$emailnotice = $restrictemaildomain == 'yes' ? $lang_signup['text_email_note'] . allowedemails() : "";
$smarty->assign("{$emailnotice}", ${$emailnotice});
$select = 'signupcard';
$smarty->assign("select", $select);
$smarty->assign("show", 'yes');
$signuplist = $smarty->fetch(MTPTTEMPLATES . '/signuplist.html');
$smarty->assign("signuplist", $signuplist);
$smarty->display(MTPTTEMPLATES . '/signupcard.html');
stdfoot();
开发者ID:NullYing,项目名称:mtpt,代码行数:17,代码来源:signupcard.php
示例2: dbconn
<?php
require "include/bittorrent.php";
dbconn();
require_once get_langfile_path();
loggedinorreturn();
if (get_user_class() < UC_UPLOADER) {
permissiondenied();
}
$year = 0 + $_GET['year'];
if (!$year || $year < 2000) {
$year = date('Y');
}
$month = 0 + $_GET['month'];
if (!$month || $month <= 0 || $month > 12) {
$month = date('m');
}
$order = $_GET['order'];
if (!in_array($order, array('username', 'torrent_size', 'torrent_count'))) {
$order = 'username';
}
if ($order == 'username') {
$order .= ' ASC';
} else {
$order .= ' DESC';
}
stdhead($lang_uploaders['head_uploaders']);
begin_main_frame();
?>
<div style="width: 940px">
<?php
开发者ID:CptTZ,项目名称:NexusPHP,代码行数:31,代码来源:uploaders.php
示例3: dbconn
<?php
require "include/bittorrent.php";
dbconn();
require_once get_langfile_path("takeinvite.php", "", "");
loggedinorreturn();
parked();
stdhead("修改邮箱");
function bark($msg)
{
stdmsg('失败!', $msg);
stdfoot();
exit;
}
if (!(strstr($CURUSER['email'], '@yahoo.cn') || strstr($CURUSER['email'], '@yahoo.com.cn'))) {
bark('您的邮箱不是中国雅虎邮箱,暂时不支持修改邮箱服务.如果有特殊情况需要修改邮箱请联系管理组,并且详细说明原因。');
} else {
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$email = $_POST['email'];
//$email=safe_email($email);
$password = $_POST['password'];
if (!$email) {
bark($lang_takeinvite['std_must_enter_email']);
}
if (!check_email($email)) {
bark($lang_takeinvite['std_invalid_email_address']);
}
if (EmailBanned($email)) {
bark($lang_takeinvite['std_email_address_banned']);
}
if (!EmailAllowed($email)) {
开发者ID:chenrizhi,项目名称:mtpt,代码行数:31,代码来源:changeemailforyahoo.php
示例4: ini_set
<?php
require_once "include/benc.php";
require_once "include/bittorrent.php";
ini_set("upload_max_filesize", $max_torrent_size);
dbconn();
require_once get_langfile_path();
require get_langfile_path("", true);
loggedinorreturn();
function bark($msg)
{
global $lang_takeupload;
genbark($msg, $lang_takeupload['std_upload_failed']);
die;
}
if ($CURUSER["uploadpos"] == 'no') {
die;
}
foreach (explode(":", "descr:type:name") as $v) {
if (!isset($_POST[$v])) {
bark($lang_takeupload['std_missing_form_data']);
}
}
if (!isset($_FILES["file"])) {
bark($lang_takeupload['std_missing_form_data']);
}
$f = $_FILES["file"];
$fname = unesc($f["name"]);
if (empty($fname)) {
bark($lang_takeupload['std_empty_filename']);
}
开发者ID:CptTZ,项目名称:NexusPHP-1,代码行数:31,代码来源:takeupload.php
示例5: require_once
<?php
require_once("include/bittorrent.php");
dbconn();
require_once(get_langfile_path());
require "./memcache.php";
if (isset($_GET['checknew']))
{
//file_put_contents("testshout/".$CURUSER["username"],date("H:i:s",time()));
echo file_get_contents("shoutbox_new.html");
die;
}
if (isset($_GET['del']))
{
if (is_valid_id($_GET['del']))
{
if((get_user_class() >= $sbmanage_class))
{
sql_query("DELETE FROM shoutbox WHERE id=".mysql_real_escape_string($_GET['del']));
write_log($CURUSER['username'] ."删掉了一条群聊发言",'normal');
}
}
}
$where=$_GET["type"];
?>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="<?php echo get_font_css_uri()?>" type="text/css">
<link rel="stylesheet" href="<?php echo get_css_uri()."theme.css"?>" type="text/css">
<link rel="stylesheet" href="styles/curtain_imageresizer.css" type="text/css">
<script src="curtain_imageresizer.js" type="text/javascript"></script><style type="text/css">body {overflow-y:scroll; overflow-x: hidden}</style>
<?php
开发者ID:NullYing,项目名称:mtpt,代码行数:31,代码来源:shoutbox.php
示例6: header
<?php
require_once "include/bittorrent.php";
header("Content-Type: text/html; charset=utf-8");
if (!mkglobal("username:password")) {
die;
}
dbconn();
require_once get_langfile_path("", false, get_langfolder_cookie());
cur_user_check();
function bark($text = "")
{
global $lang_takelogin;
$text = $text == "" ? $lang_takelogin['std_login_fail_note'] : $text;
stderr($lang_takelogin['std_login_fail'], $text, false);
}
if ($iv == "yes") {
check_code($_POST['imagehash'], $_POST['imagestring'], 'login.php', true);
}
if (get_magic_quotes_gpc()) {
$username = stripslashes($username);
}
$res = sql_query("SELECT id, passhash, secret, enabled, status FROM users WHERE username = " . "'" . mysql_real_escape_string($username) . "'");
$row = mysql_fetch_array($res);
if (!$row) {
failedlogins();
}
if ($row['status'] == 'pending') {
failedlogins($lang_takelogin['std_user_account_unconfirmed']);
}
if ($row["passhash"] != md5($row["secret"] . $password . $row["secret"])) {
开发者ID:CptTZ,项目名称:NexusPHP-1,代码行数:31,代码来源:takelogin.php
示例7: get_user_class_name
function get_user_class_name($class, $compact = false, $b_colored = false, $I18N = false)
{
static $en_lang_functions;
static $current_user_lang_functions;
if (!$en_lang_functions) {
require get_langfile_path("functions.php", false, "en");
$en_lang_functions = $lang_functions;
}
if (!$I18N) {
$this_lang_functions = $en_lang_functions;
} else {
if (!$current_user_lang_functions) {
require get_langfile_path("functions.php");
$current_user_lang_functions = $lang_functions;
}
$this_lang_functions = $current_user_lang_functions;
}
$class_name = "";
switch ($class) {
case UC_PEASANT:
$class_name = $this_lang_functions['text_peasant'];
break;
case UC_USER:
$class_name = $this_lang_functions['text_user'];
break;
case UC_POWER_USER:
$class_name = $this_lang_functions['text_power_user'];
break;
case UC_ELITE_USER:
$class_name = $this_lang_functions['text_elite_user'];
break;
case UC_CRAZY_USER:
$class_name = $this_lang_functions['text_crazy_user'];
break;
case UC_INSANE_USER:
$class_name = $this_lang_functions['text_insane_user'];
break;
case UC_VETERAN_USER:
$class_name = $this_lang_functions['text_veteran_user'];
break;
case UC_EXTREME_USER:
$class_name = $this_lang_functions['text_extreme_user'];
break;
case UC_ULTIMATE_USER:
$class_name = $this_lang_functions['text_ultimate_user'];
break;
case UC_NEXUS_MASTER:
$class_name = $this_lang_functions['text_nexus_master'];
break;
case UC_VIP:
$class_name = $this_lang_functions['text_vip'];
break;
case UC_UPLOADER:
$class_name = $this_lang_functions['text_uploader'];
break;
case UC_RETIREE:
$class_name = $this_lang_functions['text_retiree'];
break;
case UC_FORUM_MODERATOR:
$class_name = $this_lang_functions['text_forum_moderator'];
break;
case UC_MODERATOR:
$class_name = $this_lang_functions['text_moderators'];
break;
case UC_ADMINISTRATOR:
$class_name = $this_lang_functions['text_administrators'];
break;
case UC_SYSOP:
$class_name = $this_lang_functions['text_sysops'];
break;
case UC_STAFFLEADER:
$class_name = $this_lang_functions['text_staff_leader'];
break;
}
switch ($class) {
case UC_PEASANT:
$class_name_color = $en_lang_functions['text_peasant'];
break;
case UC_USER:
$class_name_color = $en_lang_functions['text_user'];
break;
case UC_POWER_USER:
$class_name_color = $en_lang_functions['text_power_user'];
break;
case UC_ELITE_USER:
$class_name_color = $en_lang_functions['text_elite_user'];
break;
case UC_CRAZY_USER:
$class_name_color = $en_lang_functions['text_crazy_user'];
break;
case UC_INSANE_USER:
$class_name_color = $en_lang_functions['text_insane_user'];
break;
case UC_VETERAN_USER:
$class_name_color = $en_lang_functions['text_veteran_user'];
break;
case UC_EXTREME_USER:
$class_name_color = $en_lang_functions['text_extreme_user'];
break;
case UC_ULTIMATE_USER:
//.........这里部分代码省略.........
开发者ID:skygunner,项目名称:ekucms,代码行数:101,代码来源:functions.php
示例8: dbconn
<?php
require_once "include/bittorrent.php";
dbconn(true);
require_once get_langfile_path("torrents.php");
loggedinorreturn();
parked();
if (isset($searchstr)) {
stdhead($lang_torrents['head_search_results_for'] . $searchstr_ori);
} elseif ($sectiontype == $browsecatmode) {
stdhead($lang_torrents['head_torrents']);
} else {
stdhead($lang_torrents['head_music']);
}
print "<table width=\"940\" class=\"main\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td class=\"embedded\">";
$rss = "http://pt.ghtt.net/torrentrss.php?rows=50&linktype=dl&passkey={$CURUSER['passkey']}&inclbookmarked=1";
if (isset($_GET['do']) && $_GET['do'] == 'clear') {
$sql = "SELECT * FROM `weixin` WHERE `ptid` = {$CURUSER['id']}";
$res = sql_query($sql);
if (mysql_num_rows($res) > 0) {
$sql = "DELETE FROM `bookmarks` WHERE `userid` = {$CURUSER['id']}";
sql_query($sql);
$Cache->delete_value('user_' . $user_ptid . '_bookmark_array');
if (mysql_affected_rows() > 0) {
echo "<script> alert ('清理成功')</script>";
} else {
echo "<script> alert ('清理失败...')</script>";
}
}
}
?>
开发者ID:Qbuer,项目名称:pt-wechat,代码行数:31,代码来源:weixin.php
示例9: dbconn
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.php.net/license/3_0.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | [email protected] so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Original Author <[email protected]> |
// | Your Name <[email protected]> |
// +----------------------------------------------------------------------+
//
// $Id:$
require_once "include/bittorrent.php";
dbconn(true);
require_once get_langfile_path("torrents.php");
require_once get_langfile_path("edit.php");
loggedinorreturn();
parked();
function logmenu($selected = "candidate")
{
global $lang_log;
global $showfunbox_main;
begin_main_frame();
print "<div id=\"lognav\"><ul id=\"logmenu\" class=\"menu\">";
print "<li" . ($selected == "recycle" ? " class=selected" : "") . "><a href=\"?status=recycle\">回收站</a></li>";
print "<li" . ($selected == "candidate" ? " class=selected" : "") . "><a href=\"?status=candidate\">候选区</a></li>";
print "</ul></div>";
end_main_frame();
}
if ($showextinfo['imdb'] == 'yes') {
require_once "imdb/imdb.class.php";
开发者ID:NullYing,项目名称:mtpt,代码行数:31,代码来源:recycle.php
注:本文中的get_langfile_path函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论