本文整理汇总了PHP中jieqi_loadlang函数的典型用法代码示例。如果您正苦于以下问题:PHP jieqi_loadlang函数的具体用法?PHP jieqi_loadlang怎么用?PHP jieqi_loadlang使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了jieqi_loadlang函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getSalestatus
function getSalestatus($display = '')
{
global $jieqiLang;
jieqi_loadlang('obook', 'obook');
if ($display == '') {
$display = $this->getVar('display', 'n');
}
switch ($display) {
case 1:
return $jieqiLang['obook']['obook_status_noauth'];
case 2:
return $jieqiLang['obook']['obook_status_unsale'];
case 0:
default:
return $jieqiLang['obook']['obook_status_sale'];
}
}
示例2: define
* 数据库优化
*
* 优化和修复数据表
*
* 调用模板:/templates/admin/dboptimize.html
*
* @category jieqicms
* @package system
* @copyright Copyright (c) Hangzhou Jieqi Network Technology Co.,Ltd. (http://www.jieqi.com)
* @author $Author: juny $
* @version $Id: dboptimize.php 326 2009-02-04 00:26:22Z juny $
*/
define('JIEQI_MODULE_NAME', 'system');
require_once '../global.php';
jieqi_checklogin();
jieqi_loadlang('database', JIEQI_MODULE_NAME);
if ($jieqiUsersStatus != JIEQI_GROUP_ADMIN) {
jieqi_printfail(LANG_NEED_ADMIN);
}
@set_time_limit(3600);
@session_write_close();
jieqi_includedb();
$db_query = JieqiQueryHandler::getInstance('JieqiQueryHandler');
include_once JIEQI_ROOT_PATH . '/admin/header.php';
if ($_POST['action'] == 'optimize' || $_POST['action'] == 'repair') {
if (empty($_POST['checkid'])) {
jieqi_printfail($jieqiLang['system']['need_select_table']);
}
$sql = "SHOW TABLE STATUS LIKE '" . JIEQI_DB_PREFIX . "%'";
$res = $db_query->execute($sql);
$alltables = array();
示例3: define
*
* 设置文章的本站推荐标志
*
* 调用模板:无
*
* @category jieqicms
* @package article
* @copyright Copyright (c) Hangzhou Jieqi Network Technology Co.,Ltd. (http://www.jieqi.com)
* @author $Author: juny $
* @version $Id: setgood.php 228 2008-11-27 06:44:31Z juny $
*/
define('JIEQI_MODULE_NAME', 'article');
require_once '../../../global.php';
jieqi_getconfigs(JIEQI_MODULE_NAME, 'power');
jieqi_checkpower($jieqiPower['article']['manageallarticle'], $jieqiUsersStatus, $jieqiUsersGroup, false, true);
jieqi_loadlang('manage', JIEQI_MODULE_NAME);
if (empty($_REQUEST['id'])) {
jieqi_printfail($jieqiLang['article']['article_not_exists']);
}
include_once $jieqiModules['article']['path'] . '/class/article.php';
$article_handler =& JieqiArticleHandler::getInstance('JieqiArticleHandler');
$article = $article_handler->get($_REQUEST['id']);
if (!is_object($article)) {
jieqi_printfail($jieqiLang['article']['article_not_exists']);
}
if ($_REQUEST['action'] == 'no') {
$article->setVar('toptime', 0);
} else {
$article->setVar('toptime', JIEQI_NOW_TIME);
}
$article_handler->insert($article);
示例4: define
* 我的链接
*
* 我的友情链接列表,含友情链接增加、编辑、删除、置顶功能
*
* 调用模板:/templates/mylink.html
*
* @category jieqicms
* @package system
* @copyright Copyright (c) Hangzhou Jieqi Network Technology Co.,Ltd. (http://www.jieqi.com)
* @author $Author: juny $
* @version $Id: mylink.php 332 2009-02-23 09:15:08Z juny $
*/
define('JIEQI_MODULE_NAME', 'system');
require_once 'global.php';
jieqi_checklogin();
jieqi_loadlang('userlink', JIEQI_MODULE_NAME);
jieqi_getconfigs('system', 'configs');
if (empty($_REQUEST['page']) || !is_numeric($_REQUEST['page'])) {
$_REQUEST['page'] = 1;
}
//页码
//获得允许链接数和现有链接数
jieqi_getconfigs('system', 'honors');
jieqi_getconfigs(JIEQI_MODULE_NAME, 'right');
$maxuserlink = isset($jieqiConfigs['system']['maxuserlink']) ? intval($jieqiConfigs['system']['maxuserlink']) : 0;
$honorid = jieqi_gethonorid($_SESSION['jieqiUserScore'], $jieqiHonors);
if ($honorid && isset($jieqiRight['system']['maxuserlink']['honors'][$honorid]) && is_numeric($jieqiRight['system']['maxuserlink']['honors'][$honorid])) {
$maxuserlink = intval($jieqiRight['system']['maxuserlink']['honors'][$honorid]);
}
//根据头衔设置的消息数
include_once JIEQI_ROOT_PATH . '/class/userlink.php';
示例5: define
* 调用模板:/templates/admin/managemodules.html
*
* @category jieqicms
* @package system
* @copyright Copyright (c) Hangzhou Jieqi Network Technology Co.,Ltd. (http://www.jieqi.com)
* @author $Author: juny $
* @version $Id: managemodules.php 332 2009-02-23 09:15:08Z juny $
*/
define('JIEQI_MODULE_NAME', 'system');
require_once '../global.php';
jieqi_checklogin();
if ($jieqiUsersStatus != JIEQI_GROUP_ADMIN) {
jieqi_printfail(LANG_NEED_ADMIN);
}
//jieqi_getconfigs(JIEQI_MODULE_NAME, 'modules','jieqiModules'); //系统已经载入
jieqi_loadlang('modules', JIEQI_MODULE_NAME);
if (!empty($_REQUEST['dosubmit'])) {
foreach ($_REQUEST['jieqiModules'] as $k => $v) {
$jieqiModules[$k] = $v;
}
$jieqiModules = $_REQUEST['jieqiModules'];
//jieqi_setconfigs('modules','jieqiModules',$jieqiModules, JIEQI_MODULE_NAME);
jieqi_save_modconfig($jieqiModules);
jieqi_jumppage(JIEQI_URL . '/admin/managemodules.php', LANG_DO_SUCCESS, $jieqiLang['system']['modules_config_saved']);
}
include_once JIEQI_ROOT_PATH . '/admin/header.php';
if (!isset($jieqiModules)) {
$jieqiModules = array();
}
$fileroot = JIEQI_ROOT_PATH . '/modules';
$handle = opendir($fileroot);
示例6: define
* SMS支付-返回处理
*
* SMS支付-返回处理
*
* 调用模板:无
*
* @category jieqicms
* @package pay
* @copyright Copyright (c) Hangzhou Jieqi Network Technology Co.,Ltd. (http://www.jieqi.com)
* @author $Author: juny $
* @version $Id: smsreturn.php 234 2008-11-28 01:53:06Z juny $
*/
define('JIEQI_MODULE_NAME', 'pay');
define('JIEQI_PAY_TYPE', 'sms');
require_once '../../global.php';
jieqi_loadlang('pay', JIEQI_MODULE_NAME);
jieqi_getconfigs(JIEQI_MODULE_NAME, JIEQI_PAY_TYPE, 'jieqiPayset');
$mycorpid = $jieqiPayset[JIEQI_PAY_TYPE]['payid'];
//企业编码
$mydest = $jieqiPayset[JIEQI_PAY_TYPE]['mydest'];
//短信特服号
$emoney = $jieqiPayset[JIEQI_PAY_TYPE]['emoney'];
//扣取的钱(分)
$egold = $jieqiPayset[JIEQI_PAY_TYPE]['egold'];
//默认虚拟货币
$ptype = $jieqiPayset[JIEQI_PAY_TYPE]['ptype'];
//接收方手机类型。1=移动手机,2=联通手机
$sid = $jieqiPayset[JIEQI_PAY_TYPE]['sid'];
//1315 小说点播阅读 1000 免费帮助
$mtype = $jieqiPayset[JIEQI_PAY_TYPE]['mtype'];
//0=免费信息,1=按条收费短信,2=正常包月短信,3=包月话单
示例7: header
if (JIEQI_USE_CACHE) {
header('Location: ' . JIEQI_URL . '/' . $_REQUEST['target']);
exit;
} else {
ob_start();
include_once JIEQI_ROOT_PATH . '/' . $_REQUEST['target'];
$content = ob_get_contents();
ob_end_clean();
echo preg_replace('/\\<meta[^\\<\\>]*content[\\s]*=[\\s]*(\'|")?[^\\/;]*\\/[^\\/;]*;[\\s]*charset[\\s]*=[\\s]*(gb2312|gbk)(\'|")?[^\\<\\>]*\\>/is', '<meta http-equiv="Content-Type" content="text/html; charset=big5" />', $content);
exit;
}
}
//包含页头页尾
include_once JIEQI_ROOT_PATH . '/header.php';
//载入语言
jieqi_loadlang('index', JIEQI_MODULE_NAME);
if (!empty($_REQUEST['refresh']) && empty($_REQUEST['confirm'])) {
jieqi_msgwin(LANG_NOTICE, sprintf($jieqiLang['system']['sindex_confirm_notice'], jieqi_addurlvars(array('confirm' => 1))));
}
//包含区块参数
if (empty($_REQUEST['blocks']) || strlen($_REQUEST['blocks']) > 30 || !preg_match('/^\\w+$/', $_REQUEST['blocks'])) {
$_REQUEST['blocks'] = 'blocks';
}
jieqi_getconfigs('system', $_REQUEST['blocks'], 'jieqiBlocks');
//设置该页面的模板文件
if (!empty($_REQUEST['template']) && strlen($_REQUEST['template']) <= 30 && preg_match('/^\\w+\\.html?$/', $_REQUEST['template'])) {
$jieqiTset['jieqi_page_template'] = JIEQI_ROOT_PATH . '/templates/' . trim($_REQUEST['template']);
} else {
$jieqiTset['jieqi_page_template'] = '';
}
if (empty($jieqiTset['jieqi_page_template']) || !is_file($jieqiTset['jieqi_page_template'])) {
示例8: define
* 调用模板:/modules/obook/templates/share/sharelogin.html
*
* @category jieqicms
* @package obook
* @copyright Copyright (c) Hangzhou Jieqi Network Technology Co.,Ltd. (http://www.jieqi.com)
* @author $Author: juny $
* @version $Id: sharelogin.php 326 2009-02-04 00:26:22Z juny $
*/
define('JIEQI_MODULE_NAME', 'obook');
define('JIEQI_ADMIN_LOGIN', 1);
//if(JIEQI_LOCAL_URL != JIEQI_USER_URL) header('Location: '.JIEQI_USER_URL.jieqi_addurlvars(array()));
if ($_REQUEST['action'] == 'login') {
define('JIEQI_NEED_SESSION', 1);
}
require_once '../../../global.php';
jieqi_loadlang('share', JIEQI_MODULE_NAME);
jieqi_getconfigs(JIEQI_MODULE_NAME, 'publisher');
jieqi_getconfigs(JIEQI_MODULE_NAME, 'configs');
if (!isset($_REQUEST['action'])) {
$_REQUEST['action'] = '';
}
if ($_REQUEST['action'] == 'login' && isset($_REQUEST['publishid'])) {
$_REQUEST['publishid'] = intval($_REQUEST['publishid']);
if (isset($jieqiPublisher[$_REQUEST['publishid']]) && $jieqiPublisher[$_REQUEST['publishid']]['password'] == $_REQUEST['password'] && !empty($_REQUEST['password'])) {
$_SESSION['jieqiPublishid'] = $_REQUEST['publishid'];
if (empty($_REQUEST['jumpurl'])) {
$_REQUEST['jumpurl'] = $jieqiModules['obook']['url'] . '/share/sharestat.php';
}
jieqi_jumppage($_REQUEST['jumpurl'], LANG_DO_SUCCESS, $jieqiLang['obook']['share_login_success']);
} else {
jieqi_printfail($jieqiLang['obook']['share_login_error']);
示例9: jieqi_getconfigs
//检查权限
jieqi_getconfigs('system', 'power');
if (!jieqi_checkpower($jieqiPower['system']['deluser'], $jieqiUsersStatus, $jieqiUsersGroup, true, true) || !jieqi_checkpower($jieqiPower['system']['adminvip'], $jieqiUsersStatus, $jieqiUsersGroup, true, true)) {
jieqi_printfail(LANG_NO_PERMISSION);
}
if (empty($_REQUEST['uid']) || !is_numeric($_REQUEST['uid'])) {
jieqi_printfail(LANG_ERROR_PARAMETER);
}
$_REQUEST['uid'] = intval($_REQUEST['uid']);
include_once JIEQI_ROOT_PATH . '/class/users.php';
$users_handler =& JieqiUsersHandler::getInstance('JieqiUsersHandler');
$user = $users_handler->get($_REQUEST['uid']);
if (!is_object($user)) {
jieqi_printfail(LANG_NO_USER);
}
jieqi_loadlang('egold', JIEQI_MODULE_NAME);
//LANG_ERROR_PARAMETER
if (!isset($_REQUEST['action'])) {
$_REQUEST['action'] = 'show';
}
$uid = $user->getVar('uid');
$uname = $user->getVar('name');
if (strlen($uname) == 0) {
$uname = $user->getVar('uname');
}
$uname_n = $user->getVar('name', 'n');
if (strlen($uname_n) == 0) {
$uname_n = $user->getVar('uname', 'n');
}
switch ($_REQUEST['action']) {
case 'update':
示例10: define
/**
* 编辑章节
*
* 编辑章节
*
* 调用模板:无
*
* @category jieqicms
* @package obook
* @copyright Copyright (c) Hangzhou Jieqi Network Technology Co.,Ltd. (http://www.jieqi.com)
* @author $Author: juny $
* @version $Id: chapteredit.php 231 2008-11-27 08:46:26Z juny $
*/
define('JIEQI_MODULE_NAME', 'obook');
require_once '../../global.php';
jieqi_loadlang('obook', JIEQI_MODULE_NAME);
if ($_POST['chaptertype'] == 1) {
$typename = $jieqiLang['obook']['volume_name'];
} else {
$typename = $jieqiLang['obook']['chapter_name'];
}
if (empty($_REQUEST['id'])) {
jieqi_printfail(sprintf($jieqiLang['obook']['chapter_volume_notexists'], $typename));
}
include_once $jieqiModules['obook']['path'] . '/class/ochapter.php';
$chapter_handler =& JieqiOchapterHandler::getInstance('JieqiOchapterHandler');
$chapter = $chapter_handler->get($_REQUEST['id']);
if (!$chapter) {
jieqi_printfail(sprintf($jieqiLang['obook']['chapter_volume_notexists'], $typename));
}
if ($chapter->getVar('chaptertype') == 1) {
示例11: jieqi_uedit_iprocess
/**
* 用户接口,编辑处理
*
* @param array $params 参数数组
* 必须参数: $params['username'] - 用户名,$params['password'] - 密码,$params['email'] - 邮箱
* @access public
* @return int
*/
function jieqi_uedit_iprocess(&$params)
{
global $jieqiLang;
if (!isset($jieqiLang['system'])) {
jieqi_loadlang('users', 'system');
}
$lang_success = empty($_REQUEST['lang_success']) ? $jieqiLang['system']['change_user_success'] : $_REQUEST['lang_success'];
if (defined('JIEQI_WAP_PAGE')) {
jieqi_wapgourl($params['jumpurl']);
} elseif ($_REQUEST['jumphide']) {
header('Location: ' . $params['jumpurl']);
} else {
jieqi_jumppage($params['jumpurl'], LANG_DO_SUCCESS, $lang_success);
}
return true;
}
示例12: define
* 网盈一号通-充值确认 (http://www.vnetone.com)
*
* 调用模板:/modules/pay/templates/vnetone.html
*
* @category jieqicms
* @package pay
* @copyright Copyright (c) Hangzhou Jieqi Network Technology Co.,Ltd. (http://www.jieqi.com)
* @author $Author: juny $
* @version $Id: vnetoneconfirm.php 312 2008-12-29 05:30:54Z juny $
*/
define('JIEQI_MODULE_NAME', 'pay');
define('JIEQI_PAY_TYPE', 'vnetone');
require_once '../../global.php';
jieqi_checklogin();
jieqi_loadlang('pay', JIEQI_MODULE_NAME);
jieqi_loadlang('vnetone', JIEQI_MODULE_NAME);
jieqi_getconfigs(JIEQI_MODULE_NAME, JIEQI_PAY_TYPE, 'jieqiPayset');
if (isset($_REQUEST['egold']) && is_numeric($_REQUEST['egold']) && $_REQUEST['egold'] > 0) {
$_REQUEST['egold'] = intval($_REQUEST['egold']);
if (!empty($jieqiPayset[JIEQI_PAY_TYPE]['paylimit'])) {
if (!empty($jieqiPayset[JIEQI_PAY_TYPE]['paylimit'][$_REQUEST['egold']])) {
$money = intval($jieqiPayset[JIEQI_PAY_TYPE]['paylimit'][$_REQUEST['egold']]);
} else {
jieqi_printfail($jieqiLang['pay']['buy_type_error']);
}
} else {
$money = round(intval($_REQUEST['egold']) / 100);
}
include_once $jieqiModules['pay']['path'] . '/class/paylog.php';
$paylog_handler = JieqiPaylogHandler::getInstance('JieqiPaylogHandler');
$paylog = $paylog_handler->create();
示例13: define
*
* 九州网联116电话支付-返回处理 (http://www.116.com.cn)
*
* 调用模板:无
*
* @category jieqicms
* @package pay
* @copyright Copyright (c) Hangzhou Jieqi Network Technology Co.,Ltd. (http://www.jieqi.com)
* @author $Author: juny $
* @version $Id: 9zfeereturn.php 234 2008-11-28 01:53:06Z juny $
*/
define('JIEQI_MODULE_NAME', 'pay');
define('JIEQI_PAY_TYPE', '9zfee');
require_once '../../global.php';
jieqi_loadlang('pay', JIEQI_MODULE_NAME);
jieqi_loadlang('9zfee', JIEQI_MODULE_NAME);
jieqi_getconfigs(JIEQI_MODULE_NAME, JIEQI_PAY_TYPE, 'jieqiPayset');
$mycpid = $jieqiPayset[JIEQI_PAY_TYPE]['payid'];
//CP编号
$key = $jieqiPayset[JIEQI_PAY_TYPE]['paykey'];
//密钥
//1-----------接收回的信息--------------------------------------------------------------------
$cp_id = trim($_REQUEST['cp_id']);
$prod_id = trim($_REQUEST['prod_id']);
$rand_id = trim($_REQUEST['rand_id']);
$pay_id = trim($_REQUEST['pay_id']);
$valid_time = trim($_REQUEST['valid_time']);
$money_type = trim($_REQUEST['money_type']);
$price = trim($_REQUEST['price']);
$result = trim($_REQUEST['result']);
$md5 = substr(trim($_REQUEST['md5']), 0, 32);
示例14: define
* @copyright Copyright (c) Hangzhou Jieqi Network Technology Co.,Ltd. (http://www.jieqi.com)
* @author $Author: juny $
* @version $Id: blockedit.php 344 2009-06-23 03:06:07Z juny $
*/
if (empty($_GET['mod'])) {
$_GET['mod'] = 'system';
}
define('JIEQI_MODULE_NAME', $_GET['mod']);
require_once '../global.php';
//检查权限
include_once JIEQI_ROOT_PATH . '/class/power.php';
$power_handler =& JieqiPowerHandler::getInstance('JieqiPowerHandler');
$power_handler->getSavedVars($_GET['mod']);
jieqi_checkpower($jieqiPower[$_GET['mod']]['adminblock'], $jieqiUsersStatus, $jieqiUsersGroup, false, true);
//载入语言
jieqi_loadlang('blocks', JIEQI_MODULE_NAME);
//取得设置
if (empty($_REQUEST['id'])) {
jieqi_printfail($jieqiLang['system']['block_not_exists']);
}
include_once JIEQI_ROOT_PATH . '/class/blocks.php';
$blocks_handler =& JieqiBlocksHandler::getInstance('JieqiBlocksHandler');
$block = $blocks_handler->get($_REQUEST['id']);
if (!is_object($block)) {
jieqi_printfail($jieqiLang['system']['block_not_exists']);
}
include_once JIEQI_ROOT_PATH . '/admin/header.php';
//区块名称
include_once JIEQI_ROOT_PATH . '/class/modules.php';
$modules_handler =& JieqiModulesHandler::getInstance('JieqiModulesHandler');
$criteria = new CriteriaCompo(new Criteria('publish', 1, '='));
示例15: define
*
* @category jieqicms
* @package article
* @copyright Copyright (c) Hangzhou Jieqi Network Technology Co.,Ltd. (http://www.jieqi.com)
* @author $Author: juny $
* @version $Id: packshow.php 339 2009-06-23 03:03:24Z juny $
*/
define('JIEQI_MODULE_NAME', 'article');
if (!defined('JIEQI_GLOBAL_INCLUDE')) {
include_once '../../global.php';
}
$_REQUEST['id'] = intval($_REQUEST['id']);
if (empty($_REQUEST['id']) && empty($_REQUEST['name'])) {
jieqi_printfail(LANG_ERROR_PARAMETER);
}
jieqi_loadlang('down', JIEQI_MODULE_NAME);
if (empty($_REQUEST['id']) && !empty($_REQUEST['name'])) {
include_once $jieqiModules['article']['path'] . '/class/article.php';
$article_handler =& JieqiArticleHandler::getInstance('JieqiArticleHandler');
$criteria = new CriteriaCompo(new Criteria('articlename', $_REQUEST['name'], '='));
$article_handler->queryObjects($criteria);
$article = $article_handler->getObject();
if (is_object($article)) {
$_REQUEST['id'] = intval($article->getVar('articleid', 'n'));
} else {
jieqi_printfail($jieqiLang['article']['article_not_exists']);
}
}
if (empty($_REQUEST['id'])) {
jieqi_printfail(LANG_ERROR_PARAMETER);
}