本文整理汇总了PHP中keke_lang_class::loadlang方法的典型用法代码示例。如果您正苦于以下问题:PHP keke_lang_class::loadlang方法的具体用法?PHP keke_lang_class::loadlang怎么用?PHP keke_lang_class::loadlang使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类keke_lang_class
的用法示例。
在下文中一共展示了keke_lang_class::loadlang方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defined
<?php
defined('ADMIN_KEKE') or exit('Access Denied');
$ops = array('basic', 'order', 'comm', 'mark');
in_array($op, $ops) or $op = 'basic';
if ($ajax == 'delfile') {
keke_shop_class::delServiceFiles($serviceid, $filename, $type);
$data = array();
$data['type'] = $type;
$data['dataid'] = $dataid;
kekezu::echojson('删除成功', 1, $data);
die;
}
keke_lang_class::loadlang('public', 'shop');
keke_lang_class::loadlang('task_edit', 'task');
if ($op == 'basic') {
$service_obj = new service_shop_class();
$service_info = db_factory::get_one(sprintf("select * from %switkey_service where service_id='%d'", TABLEPRE, $service_id));
if ($service_info['pic']) {
$servicePics = explode(',', $service_info['pic']);
}
if ($service_info['file_path']) {
$serviceFiles = explode(',', $service_info['file_path']);
}
$ac_url = "index.php?do=model&model_id=7&view=edit&service_id=" . $service_id;
$status_arr = $service_obj->get_service_status();
unset($status_arr[1]);
$service_info['ext_fields'] = CustomClass::getExtDataList($service_info['service_id'], $service_info['model_id']);
if ($sbt_edit) {
if ($ext_fds) {
CustomClass::editExtData($service_id, $model_id, $ext_fds);
示例2: define
<?php
define("IN_KEKE", TRUE);
include 'app_comm.php';
$task_open = $kekezu->_task_open;
$shop_open = $kekezu->_shop_open;
$dos = $kekezu->_route;
!empty($do) && in_array($do, $dos) and $do or (!$_GET && !$_POST and $do = $kekezu->_sys_config['set_index'] or $do = 'index');
if (stristr($_SERVER["REQUEST_URI"], "index.html")) {
$do = index;
}
isset($m) && $m == "user" and $do = "avatar";
keke_lang_class::package_init("index");
keke_lang_class::loadlang($do);
$kekezu->init_lang();
$strPageKeyword = $kekezu->_sys_config['seo_keyword'];
$strPageDescription = $kekezu->_sys_config['seo_desc'];
$strWebLogo = $kekezu->_sys_config['web_logo'];
$gUid = $uid = intval($kekezu->_uid);
$gUsername = $username = $kekezu->_username;
$user_type = $kekezu->_user_type;
//增加需方供方身份
$messagecount = kekezu::getmessagecount($uid);
$gUserInfo = $user_info = $kekezu->_userinfo;
$indus_p_arr = $kekezu->_indus_p_arr;
$indus_c_arr = $kekezu->_indus_c_arr;
$indus_arr = $kekezu->_indus_arr;
$indus_task_arr = $kekezu->_indus_task_arr;
$indus_goods_arr = $kekezu->_indus_goods_arr;
$arrModelList = $model_list = $kekezu->_model_list;
$nav_arr = kekezu::nav_list($kekezu->_nav_list);
示例3: __construct
function __construct()
{
$this->init();
keke_lang_class::loadlang('public', 'public');
}
示例4:
$res and kekezu::echojson('', 1) or kekezu::echojson('', 0);
die;
break;
}
} else {
$o = keke_table_class::get_instance('witkey_comment');
$tmp = $o->get_grid('obj_id=' . $task_id . ' and p_id=0', $url, $page, $limit, ' order by on_time desc ', 1, 'ajax_dom');
$list = $tmp['data'];
$pages = $tmp['pages'];
}
break;
case 'mark':
$list = db_factory::query(sprintf(" select * from %switkey_mark where origin_id=%d and `mark_status`!=0 and model_code='%s'", TABLEPRE, $task_id, $model_info['model_code']));
break;
case 'agree':
keke_lang_class::loadlang('task_agreement', 'task_sreward');
$id = db_factory::get_count(sprintf(' select agree_id from %switkey_agreement where task_id=%d', TABLEPRE, $task_id));
$o = sreward_task_agreement::get_instance($id);
$agree_info = $o->_agree_info;
$buyer_contact = $o->_buyer_contact;
$buyer_status_arr = $o->get_buyer_status();
$seller_contact = $o->_seller_contact;
$seller_status_arr = $o->get_seller_status();
$buyer_uid = $o->_buyer_uid;
$seller_uid = $o->_seller_uid;
$buyer_username = $o->_buyer_username;
$seller_username = $o->_seller_username;
$agree_status = $o->_agree_status;
$buyer_status = $o->_buyer_status;
$seller_status = $o->_seller_status;
$status_arr = $o->get_agreement_status();
示例5: defined
<?php
defined('ADMIN_KEKE') or exit('Access Denied');
keke_lang_class::package_init("shop");
keke_lang_class::loadlang("goods_process");
$views = array('config', 'list', 'order', 'process', 'edit', 'order_detail');
$view = in_array($view, $views) ? $view : "list";
require "goods_{$view}.php";
示例6: defined
<?php
defined('ADMIN_KEKE') or exit('Access Denied');
keke_lang_class::package_init("auth");
keke_lang_class::loadlang("{$do}_{$view}");
$views = array('item_list', 'info', 'list', 'item_edit');
$view = !empty($view) && in_array($view, $views) ? $view : 'item_list';
if (file_exists(ADMIN_ROOT . 'admin_' . $do . '_' . $view . '.php')) {
keke_lang_class::package_init("auth");
keke_lang_class::loadlang("admin_{$view}");
if (!$auth_dir) {
$auth_item_list = keke_auth_base_class::get_auth_item();
$keys = array_keys($auth_item_list);
$code or $code = $keys['0'];
if ($view != 'item_list') {
if ($auth_item_list[$code]) {
$auth_class = "keke_auth_" . $code . "_class";
$auth_obj = new $auth_class($code);
$auth_item = $auth_item_list[$code];
$auth_dir = $auth_item['auth_dir'];
keke_lang_class::loadlang($auth_dir);
} else {
kekezu::show_msg($_lang['illegal_parameter_or_authmadel_delete'], "index.php?do=auth&view=item_list", 3, '', 'warning');
}
}
}
require ADMIN_ROOT . 'admin_' . $do . '_' . $view . '.php';
} else {
kekezu::admin_show_msg($_lang['404_page'], '', 3, '', 'warning');
}
示例7: define
<?php
define("ADMIN_KEKE", TRUE);
define("IN_KEKE", TRUE);
require '../app_comm.php';
$_K['is_rewrite'] = 0;
define('ADMIN_ROOT', S_ROOT . '/' . ADMIN_DIRECTORY . '/');
$_K['admin_tpl_path'] = S_ROOT . '/' . ADMIN_DIRECTORY . '/tpl/';
$dos = array('square', 'app', 'task_map', 'static', 'preview', 'database_manage', 'permission', 'prom', 'main', 'side', 'menu', 'tpl', 'index', 'config', 'article', 'art_cat', 'edit_art_cat', 'finance', 'task', 'model', 'tool', 'user', 'login', 'logout', 'button_a', 'user_integration', 'score_config', 'score_rule', 'mark_config', 'mark_rule', 'mark_addico', 'mark_mangeico', 'auth', 'shop', 'group', 'rule', 'case', 'relation_info', 'nav', 'msg', 'trans', 'keke', 'payitem', 'store', 'custom', 'dq', 'watermark', 'ajax');
!empty($do) && in_array($do, $dos) or $do = 'index';
$admin_info = kekezu::get_user_info($_SESSION['uid']);
if ($do != 'login' && $do != 'logout') {
if (!$_SESSION['auid'] || !$_SESSION['uid'] || $admin_info['group_id'] == 0) {
echo "<script>window.parent.location.href='index.php?do=login';</script>";
die;
}
}
$grouplist_arr = keke_admin_class::get_user_group();
$arrpriv = $grouplist_arr[$admin_info['group_id']]['group_roles'];
keke_lang_class::package_init("admin");
keke_lang_class::loadlang("admin_{$do}");
$kekezu->init_lang();
$view and keke_lang_class::loadlang("admin_{$do}_{$view}");
$op and keke_lang_class::loadlang("admin_{$do}_{$view}_{$op}");
keke_lang_class::loadlang("admin_screen_lock");
$language = $kekezu->_lang;
$menu_arr = array('config' => $_lang['global_config'], 'article' => $_lang['article_manage'], 'task' => $_lang['task_manage'], 'shop' => $_lang['shop_manage'], 'finance' => $_lang['finance_manage'], 'user' => $_lang['user_manage'], 'tool' => $_lang['system_tool'], 'app' => $_lang['app_center']);
$admin_obj = new keke_admin_class();
require ADMIN_ROOT . 'admin_' . $do . '.php';
示例8: intval
<?php
$taskId = intval($taskId);
$agreeId = intval($agreeId);
$arrAgreeInfo = db_factory::get_one(sprintf("select model_id,buyer_uid,seller_uid from %switkey_agreement where agree_id='%d'", TABLEPRE, $agreeId));
$arrAgreeInfo or kekezu::show_msg('非法进入,不存在此交付协议', 'index.php', 3, NULL, 'warning');
!$uid and header('Location:index.php?do=login');
$arrAgreeInfo['buyer_uid'] != $gUid && $arrAgreeInfo['seller_uid'] != $gUid and kekezu::show_msg('警告,您不是雇佣双方,无法进入此页面', 'index.php', 3, NULL, 'warning');
$arrModelInfo = $kekezu->_model_list[$arrAgreeInfo['model_id']];
$arrModelInfo or kekezu::show_msg('当前任务模型不存在或已关闭,无法进入交付页面,请联系管理员解决', 'index.php', 3, NULL, 'warning');
keke_lang_class::package_init("task_" . $arrModelInfo['model_dir']);
keke_lang_class::loadlang("task_agreement");
require "task/" . $arrModelInfo['model_dir'] . "/control/agreement.php";
示例9: defined
<?php
defined('ADMIN_KEKE') or exit('Access Denied');
keke_lang_class::package_init("task_{$model_info['model_dir']}");
keke_lang_class::loadlang("task_process");
$views = array('list', 'config', 'edit', 'task', 'op', 'cove', 'process', 'deliverfrozen', 'reason');
in_array($view, $views) or $view = "list";
require "task_{$view}.php";
示例10: filter_xss
static function filter_xss()
{
global $_lang;
keke_lang_class::loadlang('public', 'public');
$temp = strtoupper(urldecode(urldecode($_SERVER['REQUEST_URI'])));
if (strpos($temp, '<') !== false || strpos($temp, '>') !== false || strpos($temp, '"') !== false || strpos($temp, 'CONTENT-TRANSFER-ENCODING') !== false) {
kekezu::show_msg($_lang['operate_notice'], "index.php", 9999, $_lang['xss_attack_warning_notice'], "error");
die;
}
return true;
}
示例11: defined
<?php
defined('ADMIN_KEKE') or exit('Access Denied');
$model_id or kekezu::admin_show_msg($_lang['error_model_param'], "index.php?do=info", 3, '', 'warning');
$model_info = db_factory::get_one(" select * from " . TABLEPRE . "witkey_model where model_id = '{$model_id}'");
if (!$model_info['model_status']) {
header("location:index.php?do=config&view=model");
die;
}
keke_lang_class::package_init("task_{$model_info['model_dir']}");
keke_lang_class::loadlang("admin_{$do}_{$view}");
keke_lang_class::loadlang("task_{$view}");
keke_lang_class::package_init("shop");
keke_lang_class::loadlang("{$model_info[model_dir]}_{$view}");
require S_ROOT . $model_info['model_type'] . "/" . $model_info['model_dir'] . "/admin/admin_route.php";