本文整理汇总了PHP中keke_lang_class::package_init方法的典型用法代码示例。如果您正苦于以下问题:PHP keke_lang_class::package_init方法的具体用法?PHP keke_lang_class::package_init怎么用?PHP keke_lang_class::package_init使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类keke_lang_class
的用法示例。
在下文中一共展示了keke_lang_class::package_init方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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);
示例2: 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";
示例3: 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';
示例4: 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');
}
示例5: 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";
示例6: 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";