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


PHP keke_lang_class类代码示例

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


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

示例1: user_auth_info

<?php

keke_lang_class::load_lang_class('keke_auth_fac_class');
class keke_auth_fac_class
{
    public static function user_auth_info($uid)
    {
        $auth_list = kekezu::get_table_data("*,max(auth_status) auth_status", "witkey_auth_record", "uid='{$uid}'", '', 'auth_code', '', 'auth_code');
        return $auth_list;
    }
    public static function get_submit_auth_record($uid, $auth_status = '1')
    {
        $auth_item = keke_auth_base_class::get_auth_item();
        $auth_code = array_keys($auth_item);
        return self::auth_check($auth_code, $uid, $auth_status);
    }
    public static function get_auth_imghtm($auth_code, $uid)
    {
        global $_lang;
        $auth_list = self::user_auth_info($uid);
        $config_list = keke_auth_bank_class::get_auth_item($auth_code, 'auth_code,auth_title,auth_small_ico,auth_small_n_ico,auth_open', 1);
        $img_list = '';
        foreach ($config_list as $c) {
            if (!$c['auth_open']) {
                continue;
            }
            $str = '';
            $str .= '<img src="';
            $str .= $auth_list[$c['auth_code']]['auth_status'] ? $c['auth_small_ico'] : $c['auth_small_n_ico'];
            $str .= '" align="absmiddle" title="' . $c['auth_title'];
            $str .= $auth_list[$c['auth_code']]['auth_status'] ? $_lang['has_pass'] : $_lang['not_pass'];
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:keke_auth_fac_class.php

示例2: get_instance

<?php

keke_lang_class::load_lang_class('sreward_task_class');
class sreward_task_class extends keke_task_class
{
    public $_task_status_arr;
    public $_work_status_arr;
    public $_delay_rule;
    public $_agree_id;
    protected $_inited = false;
    public static function get_instance($task_info)
    {
        static $obj = null;
        if ($obj == null) {
            $obj = new sreward_task_class($task_info);
        }
        return $obj;
    }
    public function __construct($task_info)
    {
        parent::__construct($task_info);
        $this->_task_status == '6' || $this->_task_status == '8' and $this->_agree_id = db_factory::get_count(sprintf(" select agree_id from %switkey_agreement where task_id='%d'", TABLEPRE, $this->_task_id));
        $this->init();
    }
    public function init()
    {
        if (!$this->_inited) {
            $this->status_init();
            $this->delay_rule_init();
            $this->wiki_priv_init();
            $this->mark_init();
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:sreward_task_class.php

示例3: array

<?php

keke_lang_class::load_lang_class('service_pay_return_class');
final class service_pay_return_class extends pay_return_base_class
{
    function __construct($charge_type, $model_id = '', $uid = '', $obj_id = '', $order_id = '', $total_fee = '')
    {
        parent::__construct($charge_type, $model_id, $uid, $obj_id, $order_id, $total_fee);
    }
    function order_charge()
    {
        global $_K;
        $order_id = $this->_order_id;
        $sid = $this->_obj_id;
        $uid = $this->_uid;
        $user_info = $this->_userinfo;
        $order_info = db_factory::get_one(sprintf(" select order_status,order_uid,order_username,seller_uid,seller_username from %switkey_order where order_id='%d'", TABLEPRE, $order_id));
        $url = $_K['siteurl'] . "/index.php?do=user&view=finance&op=order&obj_type=service&role=2&order_id=" . $order_id;
        $s_order_link = "<a href=\"" . $_K['siteurl'] . "/index.php?do=user&view=finance&op=order&obj_type=service&role=1&order_id=" . $order_id . "\">" . $order_info['order_name'] . "</a>";
        $b_order_link = "<a href=\"" . $_K['siteurl'] . "/index.php?do=user&view=finance&op=order&obj_type=service&role=2&order_id=" . $order_id . "\">" . $order_info['order_name'] . "</a>";
        if ($order_info['order_status'] == 'wait') {
            $service_info = keke_shop_class::get_service_info($sid);
            if ($service_info[service_status] == '2') {
                $data = array(':service_id' => $service_info['service_id'], ':title' => $service_info['title']);
                keke_finance_class::init_mem('buy_service', $data);
                $this->_total_fee > 0 and $res = keke_finance_class::cash_out($uid, $this->_total_fee, 'buy_service', '0', 'service', $order_id);
                if ($res) {
                    db_factory::execute(sprintf(" update %switkey_order set order_status='ok' where order_id='%d'", TABLEPRE, $order_id));
                    $v_arr = array($_lang['user_msg'] => $_lang['you'], $_lang['action'] => $_lang['haved_confirm_pay'], $_lang['order_id'] => $order_id, $_lang['order_link'] => $b_order_link);
                    keke_shop_class::notify_user($order_info['order_uid'], $order_info['order_username'], "order_change", $_lang['goods_order_confirm_pay'], $v_arr);
                    $v_arr = array($_lang['user_msg'] => $order_info['order_username'], $_lang['action'] => $_lang['haved_confirm_pay'], $_lang['order_id'] => $order_id, $_lang['order_link'] => $s_order_link);
开发者ID:pengfeiaaa,项目名称:web,代码行数:31,代码来源:service_pay_return_class.php

示例4: __construct

<?php

keke_lang_class::load_lang_class('keke_auth_base_class');
abstract class keke_auth_base_class
{
    public $_auth_item;
    public $_auth_code;
    public $_auth_name;
    public $_auth_obj;
    public $_auth_table_name;
    public $_tab_obj;
    public $_primary_key;
    public function __construct($auth_code)
    {
        $this->_auth_code = $auth_code;
        $this->_auth_name = $auth_code . "_auth";
        $this->_auth_table_name = "witkey_auth_" . $auth_code;
        $this->_tab_obj = keke_table_class::get_instance($this->_auth_table_name);
    }
    public static function get_auth_item($auth_code = null, $find_str = null, $is_open = false, $w = null, $cache = true)
    {
        global $_cache_obj;
        $auth_code && is_array($auth_code) and $auth_code = implode(",", $auth_code);
        $auth_code and (is_array($auth_code) and $where = " auth_code in ('{$auth_code}') " or $where = " auth_code = '{$auth_code}'") or $where = " 1 = 1";
        $find_str and $fds = $find_str or $fds = '*';
        $is_open and $where .= " and auth_open=1 ";
        $w and $where .= " and " . $w;
        $cache == true and $c = null or $c = 0;
        $auth_item = kekezu::get_table_data($fds, "witkey_auth_item", $where, 'listorder asc', '', '', 'auth_code', $c);
        if ($auth_code && !is_array($auth_code)) {
            return $auth_item[$auth_code];
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:keke_auth_base_class.php

示例5: get_instance

<?php

keke_lang_class::load_lang_class('keke_prom_class');
class keke_prom_class
{
    public $_prom_open;
    public $_prom_period;
    public $_auth;
    public static function get_instance()
    {
        static $obj = null;
        if ($obj == null) {
            $obj = new keke_prom_class();
        }
        return $obj;
    }
    public function __construct()
    {
        global $kekezu;
        $this->_prom_open = intval($kekezu->_sys_config['prom_open']);
        $this->_prom_period = intval($kekezu->_sys_config['prom_period']);
        $this->auth_init();
    }
    public function auth_init()
    {
        $reg_config = $this->get_prom_rule("reg");
        $this->_auth = $reg_config['auth'];
    }
    public static function get_prom_rule($prom_code)
    {
        $p_config = db_factory::get_one(sprintf(" select * from %switkey_prom_rule where prom_code='%s'", TABLEPRE, $prom_code));
开发者ID:pengfeiaaa,项目名称:web,代码行数:31,代码来源:keke_prom_class.php

示例6: get_finance_action

<?php

keke_lang_class::load_lang_class('keke_glob_class');
class keke_glob_class
{
    public static function get_finance_action()
    {
        global $_lang;
        return array("buy_service" => $_lang['buy_service'], "buy_gy" => '雇佣服务', "pub_task" => $_lang['pub_task'], "hosted_reward" => $_lang['hosted_reward'], "withdraw" => $_lang['withdraw'], "task_delay" => $_lang['task_delay'], "ext_cash" => $_lang['ext_cash'], "offline_charge" => $_lang['offline_recharge'], "task_bid" => $_lang['task_bid'], "task_fail" => $_lang['task_fail'], "task_prom_fail" => $_lang['task_prom_fail'], "sale_service" => $_lang['sale_service'], "sale_gy" => '出售雇佣服务', "admin_recharge" => $_lang['admin_recharge'], "withdraw_fail" => $_lang['withdraw_fail'], "report" => $_lang['report_processs'], "payitem" => $_lang['payitem'], "prom_reg" => $_lang['prom_reg'], "task_fj" => $_lang['task_fj'], 'rights_return' => $_lang['rights_return'], "task_auto_return" => $_lang['task_auto_return'], 'order_cancel' => $_lang['order_cancel'], "online_charge" => $_lang['online_charge'], "order_charge" => $_lang['order_charge'], 'prom_pub_task' => $_lang['prom_pub_task'], 'user_charge' => $_lang['user_charge'], 'prom_bid_task' => $_lang['prom_bid_task'], 'prom_service' => $_lang['prom_service'], 'prom_bank_auth' => $_lang['prom_bank_auth'], 'prom_realname_auth' => $_lang['prom_realname_auth'], 'prom_email_auth' => $_lang['prom_email_auth'], 'prom_mobile_auth' => $_lang['prom_mobile_auth'], 'prom_enterprise_auth' => $_lang['prom_mobile_auth'], 'enterprise_auth' => $_lang['enterprise_auth'], 'task_remain_return' => $_lang['task_remain_return'], 'task_hosted_return' => $_lang['task_hosted_return'], 'admin_charge' => $_lang['admin_charge'], 'host_deposit' => $_lang['host_deposit'], 'deposit_return' => $_lang['deposit_return'], 'host_return' => $_lang['host_return'], 'cancel_bid' => '撤销中标', 'host_split' => $_lang['host_split'], "workhide" => $_lang['workhide'] . '退款', "seohide" => $_lang['seohide'] . '退款', "tasktop" => $_lang['task_top'] . '退款', "goodstop" => $_lang['goods_top'] . '退款', "urgent" => $_lang['task_urgent'] . '退款', "finish_task" => '完成福袋任务', "task_xg" => '任务返还金额');
    }
    public static function get_value_add_type()
    {
        global $_lang;
        return array("workhide" => $_lang['workhide'], "seohide" => $_lang['seohide'], "tasktop" => $_lang['task_top'], "goodstop" => $_lang['goods_top'], "urgent" => $_lang['task_urgent']);
    }
    public static function get_payitem_type()
    {
        global $_lang;
        return array("task" => $_lang['task_pub'], "work" => $_lang['witkey_submit'], "task_service" => kekezu::lang(task_pub_goods_pub));
    }
    public static function withdraw_status()
    {
        global $_lang;
        return array("1" => $_lang['wait_audit'], "2" => $_lang['has_success'], "3" => $_lang['has_fail']);
    }
    public static function get_message_send_type()
    {
        global $_lang;
        return array(array("1" => "send_sms", "2" => "send_email", "3" => "send_mobile_sms"), array("send_sms" => $_lang['site_msg'], "send_email" => $_lang['send_email'], "send_mobile_sms" => $_lang['send_mobile_sms']));
    }
    public static function get_message_send_obj()
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:keke_glob_class.php

示例7: get_service_info

<?php

keke_lang_class::load_lang_class('keke_shop_class');
class keke_shop_class
{
    public static function get_service_info($sid)
    {
        return db_factory::get_one(sprintf(" select * from %switkey_service where service_id=%d", TABLEPRE, $sid));
    }
    public static function notify_user($uid, $username, $action, $title, $v_arr = array(), $msg_type = '1')
    {
        $msg_obj = new keke_msg_class();
        $contact = self::get_contact($uid);
        $msg_obj->send_message($uid, $username, $action, $title, $v_arr, $contact['email'], $contact['mobile'], 1);
    }
    public static function get_contact($uid)
    {
        return db_factory::get_one(sprintf(" select mobile,email from %switkey_space where uid = '%d'", TABLEPRE, $uid));
    }
    public static function access_check($sid, $s_uid, $model_id)
    {
        global $uid, $kekezu, $_lang;
        $order_info = self::check_has_buy($sid, $uid);
        $order_status = $order_info['order_status'];
        $order_id = intval($order_info['order_id']);
        $model_code = $kekezu->_model_list[$model_id]['model_code'];
        if ($uid == $s_uid || $uid == $order_info['order_uid']) {
            return true;
        } else {
            kekezu::keke_show_msg("index.php?do=user&view=transaction&op=sold&intModelId=" . $model_id, '您没有权限进入此页面', 'error');
        }
开发者ID:pengfeiaaa,项目名称:web,代码行数:31,代码来源:keke_shop_class.php

示例8: get_instance

<?php

keke_lang_class::load_lang_class('sreward_report_class');
class sreward_report_class extends keke_report_class
{
    public static function get_instance($report_id, $report_info = null, $obj_info = null, $user_info = null, $to_userinfo = null)
    {
        static $obj = null;
        if ($obj == null) {
            $obj = new sreward_report_class($report_id, $report_info, $obj_info, $user_info, $to_userinfo);
        }
        return $obj;
    }
    public function __construct($report_id, $report_info, $obj_info, $user_info, $to_userinfo)
    {
        parent::__construct($report_id, $report_info, $obj_info, $user_info, $to_userinfo);
        $this->_task_info = $this->get_task_info($this->_report_info['origin_id']);
        $this->_task_obj = new sreward_task_class($this->_task_info);
    }
    public function process_rights($op_result, $type)
    {
        global $kekezu;
        global $_lang;
        $prom_obj = $objProm = keke_prom_class::get_instance();
        $trans_name = $this->get_transrights_name($this->_report_type);
        $op_result = $this->op_result_format($op_result);
        $g_info = $this->user_role('gz');
        $w_info = $this->user_role('wk');
        switch ($op_result['action']) {
            case "pass":
                if ($this->_process_can['sharing']) {
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:sreward_report_class.php

示例9: init_curr

 function init_curr()
 {
     if ($_SESSION['currency']) {
         $this->_currency = $_SESSION['currency'];
     } else {
         $this->_currency = $this->_sys_config['currency'];
         $_SESSION['currency'] = $this->_sys_config['currency'];
     }
     $this->_curr_list = keke_lang_class::get_curr_list();
 }
开发者ID:xupnge1314,项目名称:project,代码行数:10,代码来源:keke_core_class.php

示例10: defined

<?php

defined('ADMIN_KEKE') or exit('Access Denied');
kekezu::admin_check_role(220);
$lang_arr = keke_lang_class::lang_type();
$url = 'index.php?do=config&view=enclosure';
$objBasicConfigT = new Keke_witkey_basic_config_class();
$config_basic_arr = $objBasicConfigT->query_keke_witkey_basic_config();
foreach ($config_basic_arr as $k => $v) {
    $arrBasicConfig[$v['k']] = $v['v'];
}
if (isset($_POST) && !empty($_POST)) {
    if ($_POST['upload_type'] == '1') {
        unset($_POST['access_key']);
        unset($_POST['secret_key']);
        unset($_POST['qn_bucket']);
        unset($_POST['qn_domain']);
    } else {
        $res = kekezu::check_upload_access($_POST['access_key'], $_POST['secret_key'], $_POST['qn_bucket']);
        !$res and kekezu::admin_show_msg('请核对AccessKey、SecretKey和bucket是否准确!', $url, 3, '', 'warning');
    }
    foreach ($_POST as $k => $v) {
        $objBasicConfigT->setWhere("k = '{$k}'");
        $objBasicConfigT->setV(kekezu::k_input($v));
        $res += $objBasicConfigT->edit_keke_witkey_basic_config();
    }
    kekezu::admin_show_msg('提交成功', $url, 3, '', 'success');
}
require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_config_' . $view);
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:29,代码来源:admin_config_enclosure.php

示例11: 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);
开发者ID:xupnge1314,项目名称:project,代码行数:31,代码来源:index.php

示例12: 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";
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:8,代码来源:admin_route.php

示例13: get_instance

<?php

keke_lang_class::load_lang_class('keke_auth_mobile_class');
class keke_auth_mobile_class extends keke_auth_base_class
{
    public static function get_instance($code = 'mobile')
    {
        static $obj = null;
        if ($obj == null) {
            $obj = new keke_auth_mobile_class($code);
        }
        return $obj;
    }
    public function __construct($code = 'mobile')
    {
        parent::__construct($code);
        $this->_primary_key = 'mobile_a_id';
        $this->_tab_obj = keke_table_class::get_instance($this->_auth_table_name);
    }
    public static function get_auth_step($step = null, $auth_info = array())
    {
        if ($step) {
            $step = $step;
        } elseif ($auth_info) {
            $auth_info['auth_status'] and $step = "step3" or $step = "step2";
        } else {
            $step = 'step1';
        }
        return $step;
    }
    public function add_auth($data, $file_name = '')
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:keke_auth_mobile_class.php

示例14: get_instance

<?php

keke_lang_class::load_lang_class('goods_report_class');
class goods_report_class extends keke_report_class
{
    public static function get_instance($report_id, $report_info = null, $obj_info = null, $user_info = null, $to_userinfo = null)
    {
        static $obj = null;
        if ($obj == null) {
            $obj = new goods_report_class($report_id, $report_info, $obj_info, $user_info, $to_userinfo);
        }
        return $obj;
    }
    public function __construct($report_id, $report_info, $obj_info, $user_info, $to_userinfo)
    {
        parent::__construct($report_id, $report_info, $obj_info, $user_info, $to_userinfo);
    }
    public function process_rights($op_result, $type)
    {
        global $_lang;
        $trans_name = $this->get_transrights_name($this->_report_type);
        $op_result = $this->op_result_format($op_result);
        $g_info = $this->user_role('gz');
        $w_info = $this->user_role('wk');
        switch ($op_result['action']) {
            case "pass":
                if ($this->_process_can['sharing']) {
                    $total_cash = floatval($this->_obj_info['cash']);
                    $gz_get = floatval($op_result['gz_get']);
                    $wk_get = floatval($op_result['wk_get']);
                    if ($total_cash != $gz_get + $wk_get) {
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:goods_report_class.php

示例15: get_table_obj

<?php

keke_lang_class::load_lang_class('keke_payitem_class');
class keke_payitem_class
{
    public static function get_table_obj($table = 'witkey_payitem')
    {
        return keke_table_class::get_instance($table);
    }
    public static function get_payitem_config($user_type = null, $model_code = null, $item_code = null, $pk = null, $is_open = 1)
    {
        global $kekezu;
        $is_open == 1 and $where = " and is_open={$is_open}";
        $pk or $pk = "item_code";
        $payitem_list = kekezu::get_table_data("*", "witkey_payitem", "1=1 {$where} ", "", "", "", $pk, 3600);
        if ($user_type) {
            foreach ($payitem_list as $k => $v) {
                if ($v['user_type'] != $user_type) {
                    unset($payitem_list[$k]);
                }
            }
        }
        if ($model_code) {
            foreach ($payitem_list as $k => $v) {
                if (strpos($v['model_code'], $model_code) === FALSE) {
                    unset($payitem_list[$k]);
                }
            }
        }
        if ($item_code) {
            $payitem_list[$item_code];
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:keke_payitem_class.php


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