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


PHP kekezu::lang方法代码示例

本文整理汇总了PHP中kekezu::lang方法的典型用法代码示例。如果您正苦于以下问题:PHP kekezu::lang方法的具体用法?PHP kekezu::lang怎么用?PHP kekezu::lang使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在kekezu的用法示例。


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

示例1: get_payitem_type

 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));
 }
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:5,代码来源:keke_glob_class.php

示例2: defined

<?php

defined('IN_KEKE') or exit('Access Denied');
$strNavActive = 'articlelist';
intval($id) and $intId = intval($id);
$strSql = "select a.* ,b.cat_name from %switkey_article as a left join %switkey_article_category as b  on a.art_cat_id = b.art_cat_id where a.cat_type = 'article' and a.art_id='%d'";
$arrArtInfo = db_factory::get_one(sprintf($strSql, TABLEPRE, TABLEPRE, $intId));
$arrArtInfo or kekezu::show_msg(kekezu::lang("operate_notice"), "index.php?do=articlelist", 2, "对不起,您访问的页面没找到!", "warning");
$arrBreadcrumbs = array(1 => array('url' => 'index.php?do=articlelist', 'name' => '资讯中心'), 2 => array('url' => 'index.php?do=articlelist&catid=' . $arrArtInfo['art_cat_id'], 'name' => $arrArtInfo['cat_name']));
$arrArtKeyword = db_factory::query("select * from " . TABLEPRE . "witkey_article_keyword where keyword_status=1");
if (is_array($arrArtKeyword)) {
    foreach ($arrArtKeyword as $v) {
        $arrArtInfo['content'] = str_replace($v['word'], "<a href='" . $v['url'] . "' target='_blank'>" . $v['word'] . "</a>", $arrArtInfo['content']);
        $intShowCount = substr_count($arrArtInfo['content'], $v['word']);
        if ($intShowCount && !$arrArtInfo['views']) {
            db_factory::execute(sprintf("update %switkey_article_keyword set show_count = show_count +%d where keyword_id=%d", TABLEPRE, intval($intShowCount), $v['keyword_id']));
        }
    }
}
$strWhere = " and 1=1 ";
$intCatid and $strWhere .= " and  art_cat_id  = " . intval($arrArtInfo['art_cat_id']);
$arrArtUp = db_factory::get_one(sprintf("select  art_id ,art_cat_id,art_title  from %switkey_article  where cat_type = 'article' and  art_id<'%d'  %s order by art_id desc limit 0,1", TABLEPRE, $intId, $strWhere));
$arrArtDown = db_factory::get_one(sprintf("select art_id ,art_cat_id,art_title  from %switkey_article  where cat_type = 'article' and  art_id>'%d' %s order by art_id asc limit 0,1", TABLEPRE, $intId, $strWhere));
if (!$_COOKIE["article_" . $intId]) {
    $sqlplus = "update %switkey_article set views = views+1 where art_id = %d";
    db_factory::execute(sprintf($sqlplus, TABLEPRE, $intId));
}
setcookie("article_" . $intId, "exist_" . $intId, time() + 3600 * 24, COOKIE_PATH, COOKIE_DOMAIN, NULL, TRUE);
if ($arrArtInfo['seo_title']) {
    $strPageTitle = $arrArtInfo['seo_title'];
} else {
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:article.php

示例3: defined

<?php

defined('ADMIN_KEKE') or exit('Access Denied');
if ($op == 'repair') {
    if ($is_submit) {
        $table_arr = db_factory::query(" SHOW TABLES");
        foreach ($table_arr as $v) {
            db_factory::execute("REPAIR TABLE " . $v['Tables_in_' . DBNAME]);
        }
        kekezu::admin_show_msg($_lang['operate_notice'], 'index.php?do=tool&view=dboptim&op=repair', 3, kekezu::lang("operate_success"), 'success');
    }
} else {
    if ($is_submit) {
        $optimizetables or kekezu::admin_show_msg($_lang['operate_notice'], 'index.php?do=tool&view=dboptim', 3, $_lang['no_select_table'], 'warning');
        foreach ($optimizetables as $v) {
            db_factory::execute("OPTIMIZE TABLE " . $v);
        }
        kekezu::admin_show_msg($_lang['operate_notice'], 'index.php?do=tool&view=dboptim', 3, kekezu::lang("operate_success"), 'success');
    } else {
        $table_arr = db_factory::query("SHOW TABLE STATUS FROM `" . DBNAME . "` LIKE '" . TABLEPRE . "%'");
        foreach ($table_arr as $k => $v) {
            $v['Data_free'] > 0 and $table_free_list[$k] = $v;
        }
    }
}
require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_' . $do . '_' . $view);
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:26,代码来源:admin_tool_dboptim.php

示例4: intval

<?php

$strNavActive = "goodslist";
$intId = intval($id);
if ($intId) {
    $arrServiceInfo = keke_shop_class::get_service_info($intId);
    keke_shop_class::plus_view_num($intId, $arrServiceInfo['uid']);
    $arrModelInfo = $model_list[$arrServiceInfo['model_id']];
    $arrServiceInfo or kekezu::show_msg(kekezu::lang("operate_notice"), "index.php?do=goodslist", 2, "对不起,您访问的页面没找到!", "warning");
    $strUrl = "index.php?do=goods&id=" . $intId;
    $arrView = array('sale', 'comment', 'mark', 'content');
    if (!in_array($view, $arrView)) {
        $view = 'content';
    }
    if ($arrServiceInfo['indus_id']) {
        $indusInfo = CommonClass::getIndustryById($arrServiceInfo['indus_id']);
    } elseif ($arrServiceInfo['indus_pid']) {
        $indusInfo = CommonClass::getIndustryById($arrServiceInfo['indus_pid']);
    }
    if ($arrServiceInfo['seo_title']) {
        $strPageTitle = $arrServiceInfo['seo_title'];
    } else {
        if ($indusInfo['seo_title']) {
            $strPageTitle = $indusInfo['seo_title'];
        } else {
            $strPageTitle = $arrServiceInfo['title'] . '-' . $indus_arr[$arrServiceInfo['indus_id']]['indus_name'] . ',' . $indus_p_arr[$arrServiceInfo['indus_pid']]['indus_name'] . '-' . $_K['html_title'];
        }
    }
    if ($arrServiceInfo['seo_keyword']) {
        $strPageKeyword = $arrServiceInfo['seo_keyword'];
    } else {
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:goods.php

示例5: intval

<?php

$id = intval($id);
$strUrl = 'index.php?do=seller&id=' . $id;
$arrView = array('goods', 'task', 'case', 'mark');
if (false === in_array($view, $arrView)) {
    $view = 'goods';
}
if (!intval($id)) {
    $arrSellerInfo = db_factory::get_one(sprintf('select * from %s a left join %s b on a.uid = b.uid where a.uid =%s', TABLEPRE . 'witkey_space', TABLEPRE . 'witkey_shop', intval($gUid)));
    $arrSellerInfo['uid'] or kekezu::check_login();
} else {
    $arrSellerInfo = db_factory::get_one(sprintf('select * from %s a left join %s b on a.uid = b.uid where a.uid =%s', TABLEPRE . 'witkey_space', TABLEPRE . 'witkey_shop', intval($id)));
    $arrSellerInfo['uid'] or kekezu::show_msg(kekezu::lang("operate_notice"), "index.php?do=sellerlist", 2, "对不起,您访问的页面没找到!", "warning");
}
if ($arrSellerInfo['shop_backstyle']) {
    $arrBackgroudStyle = unserialize($arrSellerInfo['shop_backstyle']);
}
if ($arrSellerInfo['skill_ids']) {
    $arrSkill = explode(',', $arrSellerInfo['skill_ids']);
}
$strAddress = keke_shop_class::getUserAddress($id, 2, 1, 1, 0);
if ($arrSellerInfo['shop_name']) {
    $shopTitle = $arrSellerInfo['shop_name'];
} else {
    $shopTitle = $arrSellerInfo['username'] . "-的店铺";
}
if ($view == 'goods') {
    if ($arrSellerInfo['seo_title']) {
        $strPageTitle = $arrSellerInfo['seo_title'];
    } else {
开发者ID:xupnge1314,项目名称:project,代码行数:31,代码来源:seller.php

示例6: defined

<?php

defined('ADMIN_KEKE') or exit('Access Denied');
kekezu::admin_check_role(4);
$finace_obj = new Keke_witkey_finance_class();
$page_obj = $kekezu->_page_obj;
$w[page_size] and $page_size = intval($w[page_size]) or $page_size = 10;
$page and $page = intval($page) or $page = '1';
$url = "index.php?do={$do}&view={$view}&w[fina_id]={$w['fina_id']}&w[username]={$w['username']}&w[fina_type]={$w['fina_type']}&w[page_size]={$page_size}&w[ord][0]={$w['ord']['0']}&w[ord][1]={$w['ord']['1']}&page={$page}&w[fina_action]={$w['fina_action']}";
if (isset($ac) && $fina_id) {
    switch ($ac) {
        case "del":
            $finace_obj->setWhere('fina_id=' . $fina_id);
            $res = $finace_obj->del_keke_witkey_finance();
            kekezu::admin_system_log(kekezu::lang(delete_financial_records) . "_{$fina_id}");
            $res and kekezu::admin_show_msg($_lang['list_finance_delete_success'], $url, 3, '', 'success') or kekezu::admin_show_msg($_lang['list_finance_delete_fail'], $url, 3, '', 'warning');
            break;
    }
} elseif (isset($ckb)) {
    $ckb_string = implode(',', $ckb);
    $finace_obj->setWhere('fina_id in (' . $ckb_string . ')');
    switch ($sbt_action) {
        case $_lang['mulit_delete']:
            $res = $finace_obj->del_keke_witkey_finance();
            kekezu::admin_system_log($_lang['mulit_delete_financial_records'] . "_{$ids}");
            break;
    }
    $res and kekezu::admin_show_msg($_lang['mulit_operate_success'], $url, 3, '', 'success') or kekezu::admin_show_msg($_lang['mulit_operate_fail'], $url, 3, '', 'warning');
} else {
    $where = ' 1 = 1 ';
    $w['fina_type'] and $where .= " and fina_type = '{$w['fina_type']}' ";
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:admin_finance_all.php

示例7: defined

<?php

defined('ADMIN_KEKE') or exit('Access Denied');
kekezu::admin_check_role(11);
$page_obj = $kekezu->_page_obj;
$table_class = new keke_table_class('witkey_space');
$member_class = new keke_table_class('witkey_member');
$url_str = "index.php?do={$do}&view={$view}&space[username]={$space['username']}&space[email]={$space['email']}&space[uid]={$space['uid']}&slt_page_size={$slt_page_size}&ord[0]={$ord['0']}&ord[1]={$ord['1']}&slt_static={$slt_static}";
$grouplist_arr = keke_admin_class::get_user_group();
switch ($op) {
    case "del":
        $del_uid = keke_user_class::user_delete($edituid);
        kekezu::admin_system_log(kekezu::lang('delete_member}') . $memberinfo_arr['username']);
        $del_uid and kekezu::admin_show_msg($_lang['operate_success'], "index.php?do=user&view=list", 3, '', 'success') or kekezu::admin_show_msg($_lang['operate_fail'], "index.php?do=user&view=list", 3, '', 'warning');
        break;
    case "disable":
        $sql = sprintf("update  %switkey_space set status=2 where uid =%d", TABLEPRE, $edituid);
        db_factory::execute($sql);
        $v_arr = array($_lang['username'] => $memberinfo_arr['username'], $_lang['website_name'] => $kekezu->_sys_config['website_name']);
        keke_shop_class::notify_user($memberinfo_arr['uid'], $memberinfo_arr['username'], 'freeze', $_lang['user_freeze'], $v_arr, 2);
        kekezu::admin_system_log($_lang['unfreeze_member'] . $memberinfo_arr['username']);
        kekezu::admin_show_msg($_lang['operate_success'], "index.php?do=user&view=list", 3, '', 'success');
        break;
    case "able":
        kekezu::admin_check_role(24);
        $sql = sprintf("update  %switkey_space set status=1 where uid =%d", TABLEPRE, $edituid);
        db_factory::execute($sql);
        $v_arr = array($_lang['username'] => $memberinfo_arr['username'], $_lang['website_name'] => $kekezu->_sys_config['website_name']);
        keke_msg_class::notify_user($memberinfo_arr['uid'], $memberinfo_arr['username'], 'unfreeze', $_lang['user_unfreeze'], $v_arr, 2);
        kekezu::admin_system_log($_lang['unfreeze_member'] . $memberinfo_arr['username']);
        kekezu::admin_show_msg($_lang['operate_success'], "index.php?do=user&view=list", 3, '', 'success');
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:admin_user_list.php

示例8: defined

<?php

defined('IN_KEKE') or exit('Access Denied');
if ($id) {
    $intId = intval($id);
    $intId and $arrArtInfo = db_factory::get_one(sprintf("select * from %switkey_article where art_id='%d'", TABLEPRE, $intId));
}
if ($arrArtInfo) {
    if (!$_COOKIE["article_" . $intId]) {
        $strSqlPlus = "update %switkey_article set views = views+1 where art_id = %d";
        db_factory::execute(sprintf($strSqlPlus, TABLEPRE, $intId));
    }
    setcookie("article_" . $intId, "exist_" . $intId, time() + 3600 * 24, COOKIE_PATH, COOKIE_DOMAIN, NULL, TRUE);
    $strPageTitle = $arrArtInfo['art_title'] . $arrArtInfo['seo_title'] . '- ' . $_K['html_title'];
    $strPageKeyword = $arrArtInfo['seo_keyword'];
    $strPageDescription = $arrArtInfo['seo_desc'];
} else {
    kekezu::show_msg(kekezu::lang("operate_notice"), "index.php", 2, "系统繁忙,找不到您要的内容", "warning");
}
$_SESSION['spread'] = 'index.php?do=single&id=' . intval($id);
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:20,代码来源:single.php

示例9: unserialize

        } else {
            $confs = unserialize($model_info['config']);
            is_array($confs) && extract($confs);
            $time_rule = keke_task_config::get_time_rule($model_id);
            $delay_rule = keke_task_config::get_delay_rule($model_id);
        }
        break;
    case "priv":
        if ($sbt_edit) {
            if ($fds['allow_times']) {
                $perm_item_obj = new Keke_witkey_priv_item_class();
                foreach ($fds['allow_times'] as $k => $v) {
                    $perm_item_obj->setWhere(" op_id = '{$k}'");
                    $perm_item_obj->setAllow_times(intval($v));
                    $perm_item_obj->edit_keke_witkey_priv_item();
                }
            }
            kekezu::admin_show_msg($model_info['model_name'] . $_lang['permissions_config_update_success'], "{$ac_url}", '3', '', 'success');
        } else {
            $perm_item = keke_privission_class::get_model_priv_item($model_id);
        }
        break;
}
if ($sbt_edit) {
    $file_obj = new keke_file_class();
    $file_obj->delete_files(S_ROOT . "./data/data_cache/");
    $log_op_arr = array("config" => kekezu::lang("basic_config"), "control" => $_lang['control_config'], "priv" => $_lang['private_config']);
    $log_msg = $_lang['has_update_more_reward'] . $log_op_arr[$op];
    kekezu::admin_system_log($log_msg);
}
require keke_tpl_class::template('task/' . $model_info['model_dir'] . '/admin/tpl/task_' . $op);
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:task_config.php

示例10: output_error

 static function output_error($error)
 {
     global $_lang;
     $error_arr = array('WITKEY_TASK_EXIST_ERROR' => $_lang['witkey_task_exist_error'], 'WITKEY_RECHARGE_EXIST_ERROR' => $_lang['witkey_recharge_exist_error'], 'RECHARGE_INFO_MODIFIED' => $_lang['recharge_info_modified'], 'PLATFORM_AUTHORITY_ILLEGAL' => $_lang['platform_authority_illegal'], 'WITKEY_RECHARGE_ID_EMPTY' => $_lang['witkey_recharge_id_empty'], 'WITKEY_RECHARGE_EMPTY' => $_lang['witkey_recharge_empty'], 'WITKEY_TASK_NOT_EXIST' => $_lang['witkey_task_not_exist'], 'WITKEY_TRANSFER_NOT_EXIST' => $_lang['witkey_transfer_not_exist'], 'WITKEY_TRANSFER_ALREADY_EXIST' => $_lang['witkey_transfer_already_exist'], 'WITKEY_AMOUNT_NOT_MATCH' => $_lang['witkey_amount_not_match'], 'WITKEY_TASK_LEF_AMOUNT_NOT_ENOUGH' => $_lang['witkey_task_lef_amount_not_enough'], 'WITKEY_COUNT_NOT_MATCH' => $_lang['witkey_count_not_match'], 'WITKEY_NOT_ALLOW' => $_lang['witkey_not_allow'], 'WITKEY_OUTER_TRANSFER_ALREADY_PAID' => $_lang['witkey_outer_transfer_already_paid'], 'WITKEY_OUTER_TRANSFER_REPEAT' => $_lang['witkey_outer_transfer_repeat'], 'WITKEY_DATA_NOT_MATCH' => $_lang['witkey_data_not_match'], 'WITKEY_DATA_VALIDATE_FAILURE' => $_lang['witkey_data_validate_failure'], 'BIDDER_EQUALS_TASK_CREATOR_ERROR' => $_lang['bidder_equals_task_creator_error'], 'PLATFORM_CREATE_PLATFORM_SHARE_GREATEE_0' => kekezu::lang('platform_create_platform_share_greatee_0 '), 'PLATFORM_CREATE_ADDITIONAL_AMOUNT_GREATER_0' => $_lang['platform_create_additional_amount_greater_0'], 'PLATFORM_CREATE_COMMISSION_RATE_GREATER_0' => $_lang['platform_create_commission_rate_greater_0'], 'ACCOUNT_QUERY_ERROR' => $_lang['account_query_error'], 'ACCOUNT_NOT_EXIST' => $_lang['account_not_exist'], 'NOT_DONE_OF_TRANSFER_FOUND' => $_lang['not_done_of_transfer_found'], 'REMAINS_OF_TASK_AMOUNT_FOUND' => $_lang['remains_of_task_amount_found'], 'ILLEGAL_ARGUMENT' => $_lang['illegal_argument'], 'ILLEGAL_SIGN' => $_lang['illegal_sign'], 'SYSTEM_ERROR' => $_lang['system_error'], 'SESSION_TIMEOUT' => $_lang['session_timeout'], 'ILLEGAL_PARTNER' => $_lang['illegal_partner'], 'HAS_NO_PRIVILEGE' => $_lang['has_no_privilege'], 'ILLEGAL_SERIVCE' => $_lang['illegal_serivce']);
 }
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:5,代码来源:keke_trust_fac_class.php


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