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


PHP kekezu::echojson方法代码示例

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


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

示例1: get_item_info

 public static function get_item_info($num_iid)
 {
     $taoapi = new taoapi_get('item', array('num_iid' => $num_iid));
     $data = $taoapi->send();
     $status = 1;
     $data['code'] && ($status = 0);
     kekezu::echojson('', $status, $data);
 }
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:8,代码来源:keke_taobaoke_class.php

示例2: get_max_day

 public function get_max_day($task_cash)
 {
     global $kekezu;
     global $_lang;
     if ($task_cash >= $this->_task_config['min_cash']) {
         $time = keke_task_release_class::get_default_max_day($task_cash, $this->_model_id, $this->_task_config['min_day']);
         kekezu::echojson($time, 1, $time);
     } else {
         kekezu::echojson($_lang['task_min_cash_limit_notice'] . $this->_task_config['min_cash'], 0);
         die;
     }
 }
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:12,代码来源:mreward_release_class.php

示例3: wap_release

 public function wap_release()
 {
     $task_obj = $this->_task_obj;
     $_D = $_REQUEST;
     $this->wap_public();
     $this->set_task_status($this->get_total_cash($_D['task_cash']), $_D['task_cash']);
     $task_id = $task_obj->create_keke_witkey_task();
     if ($task_id) {
         $t = $this->wap_update($task_id);
     }
     if ($t[0] == 'success') {
         $s = 1;
     } else {
         $msg = array('r' => $t[1]);
         $s = 0;
     }
     kekezu::echojson($msg, $s, $task_id);
     die;
 }
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:19,代码来源:sreward_wap_release_class.php

示例4: run_backup

 static function run_backup()
 {
     global $_lang;
     set_time_limit(0);
     ini_set('memory_limit', '1024M');
     $output = array();
     $db_factory = new db_factory();
     $tables = $db_factory->query(" show table status from `" . DBNAME . "`");
     $temp_arr = array();
     foreach ($tables as $v) {
         if (substr($v[Name], 0, strlen(TABLEPRE)) == TABLEPRE) {
             $temp_arr[] = $v;
         }
     }
     $tables = $temp_arr;
     $sqlmsg = '';
     foreach ($tables as $tablesarr) {
         $table_name = $tablesarr['Name'];
         $table_type = $tablesarr['Type'];
         $result = $db_factory->query("show fields from " . $table_name);
         $sqlmsg .= "#" . $_lang['table_name'] . ":<" . $table_name . ">\n";
         $sqlmsg .= "DROP TABLE IF EXISTS `" . $table_name . "`;\n";
         $createtable = $db_factory->query("SHOW CREATE TABLE " . $table_name);
         $sqlmsg .= $createtable[0]['Create Table'] . " ;\n";
         $result = $db_factory->query("show fields from " . $table_name);
         foreach ($result as $fileds) {
             $fields[] = "`" . $fileds['Field'] . "`";
         }
         $field = join(",", $fields);
         $sql_insert = self::querySelect($table_name, $field, $result);
         if ($sql_insert !== false) {
             $sqlmsg .= $sql_insert;
         }
         unset($fields);
         $output[] = str_replace(TABLEPRE . 'witkey_', '**********************', $table_name);
     }
     $sqlmsg .= "\n";
     $path = S_ROOT . './data/backup/backup_' . time() . '_' . DBNAME . ".sql";
     keke_tpl_class::swritefile($path, $sqlmsg);
     kekezu::admin_system_log($_lang['backup_database'] . '' . "backup_" . time() . '_' . DBNAME . ".sql");
     file_exists($path) and kekezu::echojson('', 1, $output) or kekezu::echojson('', 0, $output);
     die;
 }
开发者ID:pengfeiaaa,项目名称:web,代码行数:43,代码来源:keke_backup_class.php

示例5: intval

             CommonClass::applyEdit($arrLogInfo, $service_id);
             CommonClass::cancleEdit($service_id, 6);
             $arrServiceInfo = db_factory::get_one('select * from ' . TABLEPRE . 'witkey_service where service_id = ' . intval($service_id));
             if ($arrServiceInfo['service_status'] == '1') {
                 $time = time() - $service_arr['on_time'];
                 keke_payitem_class::update_service_payitem_time($service_arr['payitem_time'], $time, $service_id);
                 goods_shop_class::set_service_status($service_id, 2);
             }
             keke_msg_class::send_private_message('服务审核通知', '您编辑的商品信息<a href="index.php?do=goods&id=' . $service_id . '">' . $arrServiceInfo['title'] . '</a>已通过管理员审核,目前已生效!', $arrServiceInfo['uid'], $arrServiceInfo['username']);
         }
         if ($acc == 'snopass') {
             CommonClass::cancleEdit($service_id, 6);
             keke_shop_release_class::updateEditStatusBySid($service_id, 4);
             keke_msg_class::send_private_message('服务审核通知', '您编辑的商品信息<a href="index.php?do=goods&id=' . $service_id . '">' . $arrServiceInfo['title'] . '</a>未通过管理员的审核,如有疑问请联系网站管理员!', $arrServiceInfo['uid'], $arrServiceInfo['username']);
         }
         kekezu::echojson('操作成功', 1);
     } else {
         $editInfo = CommonClass::getEditLogInfoByLogTypeAndObjId($service_id, 6);
         $arrTopIndustrys = $kekezu->_indus_goods_arr;
         $arrIndustrys = CommonClass::getIndustryByPid($editInfo['log_content_data']['indus_pid']);
         $arrOldImageLists = CommonClass::getFileArrayByPath(',', $editInfo['log_content_data']['old_pic']);
         $arrImageLists = CommonClass::getFileArrayByPath(',', $editInfo['log_content_data']['pic']);
         $arrOldFileLists = CommonClass::getFileArrayByPath(',', $editInfo['log_content_data']['old_file_path']);
         $arrFileLists = CommonClass::getFileArrayByPath(',', $editInfo['log_content_data']['file_path']);
         require keke_tpl_class::template('shop/goods/admin/tpl/goods_updateinfo');
         die;
     }
     break;
 case 'off_shelf':
     if ($is_submit == "1") {
         $serviceInfo = db_factory::get_one("select * from " . TABLEPRE . "witkey_service where service_id=" . intval($service_id));
开发者ID:pengfeiaaa,项目名称:web,代码行数:31,代码来源:goods_list.php

示例6: defined

<?php

defined('ADMIN_KEKE') or exit('Access Denied');
$art_obj = new Keke_witkey_article_class();
$table_obj = new keke_table_class("witkey_article");
$types = array('help', 'art', 'bulletin', 'about');
$type = !empty($type) && in_array($type, $types) ? $type : 'art';
$url = "index.php?do={$do}&view={$view}&w[username]={$w['username']}&w[art_title]={$w['art_title']}&w[art_cat_id]={$w['art_cat_id']}&page_size={$page_size}&page={$page}&type={$type}&ord[0]={$ord['0']}&ord[1]={$ord['1']}";
if ($opajax == 'setorder') {
    $table_obj->save(array('listorder' => intval($ov)), array('art_id' => intval($dataid)));
    kekezu::echojson('设置成功', 1);
    die;
}
if ($ac == 'del') {
    $res = $table_obj->del('art_id', $art_id, $url);
    $res and kekezu::admin_show_msg($_lang['operate_success'], $url, 3, '', 'success') or kekezu::admin_show_msg($_lang['operate_fail'], $url, 3, '', 'warning');
} elseif (isset($sbt_action)) {
    sizeof($ckb) or kekezu::admin_show_msg($_lang['choose_operate_item'], $url, 3, '', 'warning');
    is_array($ckb) and $ids = implode(',', array_filter($ckb));
    $art_obj->setWhere("art_id in ({$ids})");
    if ($sbt_action) {
        $res = $art_obj->del_keke_witkey_article();
        kekezu::admin_system_log($_lang['mulit_recovery_articles']);
    }
    $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');
} elseif ($op == 'listorder') {
    $art_obj = new Keke_witkey_article_class();
    $art_obj->setWhere("art_id='{$art_id}'");
    $art_obj->setListorder(intval($value));
    $art_obj->edit_keke_witkey_article();
    kekezu::admin_system_log($_lang['edit_art_order'] . $art_id);
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:admin_article_list.php

示例7: foreach

    $page = 1;
}
$region_config = keke_glob_class::getRegionConfig();
$objDq = keke_table_class::get_instance('witkey_basic_config');
if ($_R['op'] == 'del') {
    $intResult = $objDistrict->del('id', $_R[id]);
    kekezu::admin_show_msg($_lang['operate_success'], "index.php?do=config&view=dq&page=" . $page, 3, '', 'success');
}
if ($_R['op'] == 'region_switch') {
    $result = keke_glob_class::updateRegionConfig('region_search_switch', $_R['val']);
    $result and kekezu::echojson('', $_R['val']) or kekezu::echojson('', $_R['val']);
}
if ($_R['op'] == 'region_checkbox') {
    if ($_R['dtype'] == 'shop') {
        keke_glob_class::updateRegionConfig('region_search_shop', $_R['val']);
    } else {
        keke_glob_class::updateRegionConfig('region_search_task', $_R['val']);
    }
    kekezu::echojson('', $_R['val']);
}
$one = $objDistrict->get_grid('upid=0', $url, $page, 10, ' order by id asc', '1', 'ajax_dom');
if ($_R['is_submit'] == 1) {
    foreach ($_R[id] as $key => $val) {
        $arrFields = array('name' => $_R[name][$key], 'displayorder' => $_R[displayorder][$key]);
        $arrWhere = array('id' => $_R[id][$key]);
        $intResult = $objDistrict->save($arrFields, $arrWhere);
    }
    kekezu::admin_show_msg("修改成功", "index.php?do=config&view=dq&page=" . $page, 2, '', 'success');
} else {
    require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_config_' . $view);
}
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:admin_config_dq.php

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

示例9: array

    $url = "index.php?do={$do}&view=list&type={$type}";
    $fields = kekezu::escape($fields);
    $res = $art_obj->save($fields, $pk);
    $log_ac = array('edit' => $_lang['edit_art'], 'add' => $_lang['add_art']);
    if ($pk['art_id']) {
        kekezu::admin_system_log($log_ac['edit'] . ":" . $fields['art_title']);
    } else {
        kekezu::admin_system_log($log_ac['add'] . ":" . $fields['art_title']);
    }
    kekezu::admin_show_msg($_lang['operate_success'], $url, 3, '', 'success');
}
if (isset($ac) && $ac == 'del') {
    if ($filepath) {
        $pk and db_factory::execute(" update " . TABLEPRE . "witkey_article set art_pic ='' where art_id = " . intval($pk));
        $file_info = db_factory::get_one(" select * from " . TABLEPRE . "witkey_file where save_name = '.{$filepath}.'");
        keke_file_class::del_att_file($file_info['file_id'], $file_info['save_name']);
        kekezu::echojson('', '1');
    }
}
$cat_arr = array();
kekezu::get_tree($art_cat_arr, $cat_arr, 'option', $art_id, 'art_cat_id', 'art_cat_pid', 'cat_name');
require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_' . $do . "_" . $view);
function get_fid($path)
{
    if (!path) {
        return false;
    }
    $querystring = substr(strstr($path, '?'), 1);
    parse_str($querystring, $query);
    return $query['fid'];
}
开发者ID:pengfeiaaa,项目名称:web,代码行数:31,代码来源:admin_article_edit.php

示例10: keke_show_msg

 public static function keke_show_msg($url, $content, $type = 'success', $output = 'normal')
 {
     global $_lang;
     switch ($output) {
         case "normal":
             kekezu::show_msg($_lang['operate_notice'], $url, '3', $content, $type);
             break;
         case "json":
             $type == 'error' or $status = '1';
             $msg = $_lang['operate_notice'];
             ISWAP == 1 and $msg = array('r' => $content);
             kekezu::echojson($msg, intval($status), $content);
             die;
             break;
     }
 }
开发者ID:xupnge1314,项目名称:project,代码行数:16,代码来源:keke_core_class.php

示例11: defined

<?php

defined('ADMIN_KEKE') or exit('Access Denied');
kekezu::admin_check_role(154);
$case_obj = new Keke_witkey_case_class();
$task_obj = new Keke_witkey_task_class();
$case_id and $case_info = db_factory::get_one(" select * from " . TABLEPRE . "witkey_case where case_id ='{$case_id}'");
$txt_task_id and $case_info = db_factory::get_one(" select * from " . TABLEPRE . "witkey_task where task_id = '{$txt_task_id}'");
$url = "index.php?do=case&view=list";
if ($ac == 'ajax' && $id && $obj) {
    case_obj_exists($id, $obj) and kekezu::echojson($_lang['echojson_msg'], 1) or kekezu::echojson($_lang['echojosn_erreor_msg'], 0);
}
if (isset($sbt_edit)) {
    if ($hdn_case_id) {
        $case_obj->setCase_id($hdn_case_id);
    } else {
        if (case_obj_exists($fds['obj_id'], $case_type)) {
            $case_obj->setObj_id($fds['obj_id']);
        }
    }
    $case_obj->setObj_type($case_type);
    $case_obj->setCase_auther($fds['case_auther']);
    $case_obj->setCase_price($fds['case_price']);
    $case_obj->setCase_desc(kekezu::escape($fds['case_desc']));
    $case_obj->setCase_title(kekezu::escape($fds['case_title']));
    $case_obj->setOn_time(time());
    $case_img = $hdn_case_img or $case_img = keke_file_class::upload_file("fle_case_img");
    $case_obj->setCase_img($case_img);
    if ($hdn_case_id) {
        $res = $case_obj->edit_keke_witkey_case();
        kekezu::admin_system_log($_lang['edit_case'] . ':' . $hdn_case_id);
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:admin_case_add.php

示例12: trim

$oid = trim($id);
$order_info = db_factory::get_one(sprintf(" select * from %switkey_order_charge where out_trade_no='%s' and uid='%d'", TABLEPRE, $oid, $uid));
$data = array();
if ($order_info['order_status'] == 'ok') {
    list($_, $charge_type, $uid, $obj_id, $order_id, $model_id) = explode('-', $order_info['attach'], 6);
    if ($charge_type == 'user_charge') {
        $show_url = 'index.php?do=recharge&cash=' . $order_info['pay_money'] . '&status=1';
        $_SESSION['chargecash'] = $order_info['pay_money'];
    } elseif ($charge_type == 'payitem_charge') {
        if (!in_array($model_id, array(6, 7))) {
            $show_url = 'index.php?do=task&id=' . $obj_id;
        } else {
            $show_url = 'index.php?do=goods&id=' . $obj_id;
        }
    } else {
        if (!in_array($model_id, array(6, 7))) {
            $arrOrderDetail = keke_order_class::get_order_detail($order_id);
            if ($arrOrderDetail[0]['obj_type'] == 'hosted') {
                $show_url = 'index.php?do=task&id=' . $obj_id;
            } else {
                $show_url = 'index.php?do=pay&type=task&id=' . $obj_id . '&status=1';
            }
        } else {
            $show_url = 'index.php?do=pay&type=order&id=' . $order_id . '&status=1';
        }
    }
    $data['url'] = $show_url;
    kekezu::echojson('已支付成功', '0', $data);
} else {
    kekezu::echojson('未支付', '1');
}
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:querypayorder.php

示例13: explode

         kekezu::show_msg($tips, $strUrl . '&step=step3', NULL, NULL, 'ok');
     } else {
         !$_SESSION[$stdCacheName] and kekezu::show_msg($_lang['friendly_notice'], "index.php?do=pubtask&id={$id}", 2, "任务已提交,不可再返回修改!", "warning");
         $objRelease->check_access($step, $id, $arrPubInfo);
         $strExtTypes = kekezu::get_ext_type();
     }
     $arrFileLists = CommonClass::getFileArray('|', $arrPubInfo['file_ids']);
     if ($action == 'delete_file') {
         $resText = CommonClass::delFileByFileId($fileid);
         if ($resText) {
             $array = explode('|', $arrPubInfo['file_ids']);
             $newArr = CommonClass::returnNewArr($fileid, $array);
             $_POST['file_ids'] = implode("|", $newArr);
             $arrPubInfo and $_POST = array_merge($arrPubInfo, $_POST);
             $objRelease->save_task_obj($_POST, $stdCacheName);
             kekezu::echojson('删除成功', 1, array('fileid' => $fileid, 'a' => $arrPubInfo));
             die;
         }
     }
     break;
 case 'step3':
     $intFileCount = 0;
     if ($arrPubInfo['file_ids']) {
         $intFileCount = count(explode('|', $arrPubInfo['file_ids']));
     }
     if (isset($formhash) && kekezu::submitcheck($formhash)) {
         $arrPayitems = array('urgent' => intval($txt_urgent), 'tasktop' => intval($txt_tasktop) && intval($text_tasktop) ? intval($text_tasktop) : 0, 'workhide' => intval($txt_workhide), 'seohide' => intval($txt_seohide));
         $arrPayitems = array_filter($arrPayitems);
         PayitemClass::validPayitemCount($arrPayitems, $arrPubInfo['txt_task_day']);
         $_POST['payitem'] = $arrPayitems;
         $arrPubInfo and $_POST = array_merge($arrPubInfo, $_POST);
开发者ID:pengfeiaaa,项目名称:web,代码行数:31,代码来源:pub.php

示例14: array

<?php

if ($opajax == 'getzfpwd') {
    if (!$gUid) {
        kekezu::echojson('用户未登录', 'error');
    }
    $email = $gUserInfo['email'];
    if (!$email) {
        kekezu::echojson('请确保您的邮箱有效可用', 'error');
    }
    $strNewCode = kekezu::randomkeys(8);
    $strNewMd5Pwd = keke_user_class::get_password($strNewCode, $gUserInfo['rand_code']);
    $intRes = db_factory::updatetable(TABLEPRE . 'witkey_space', array('sec_code' => $strNewMd5Pwd), array('uid' => $gUid));
    if ($intRes) {
        $message_obj = new keke_msg_class();
        $message_obj->send_message($gUserInfo['uid'], $gUserInfo['username'], 'update_sec_code', '找回支付密码', array('支付密码' => $strNewCode), $gUserInfo['email'], $gUserInfo['mobile'], 2);
        kekezu::admin_system_log($gUserInfo['username'] . '于' . date("Y-m-d H:i:s") . '找回了支付密码');
        kekezu::echojson('支付密码已发到您的邮箱', 'success');
    } else {
        kekezu::echojson('支付密码找回失败', 'fail');
    }
    die;
}
exit('no access');
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:24,代码来源:getZfpwd.php

示例15: ini_set

        ini_set('memory_limit', '1024M');
        $file_sql = file_get_contents($backup_patch . $file_arr[$restore_name][name]);
        $file_sql = htmlspecialchars_decode($file_sql);
        $sql = str_replace("\r\n", "\n", $file_sql);
        $ret = array();
        $num = 0;
        foreach (explode(";\n", trim($sql)) as $query) {
            $ret[$num] = '';
            $queries = explode("\n", trim($query));
            foreach ($queries as $query) {
                $ret[$num] .= isset($query[0]) && $query[0] == '#' || isset($query[1]) && isset($query[1]) && $query[0] . $query[1] == '--' ? '' : $query;
            }
            $num++;
        }
        foreach ($ret as $vvv) {
            empty($vvv) or $res *= db_factory::execute($vvv);
        }
        kekezu::admin_system_log($_lang['restore_database_operate_success'] . $file_arr[$restore_name][name]);
        kekezu::echojson($_lang['database_restore_success'], 1);
        break;
    case 'del':
        $res = unlink($backup_patch . $file_arr[$restore_name][name]);
        if ($res) {
            kekezu::admin_system_log($_lang['delete_database_backup_file'] . $file_arr[$restore_name][name]);
            kekezu::admin_show_msg($_lang['delete_database_backup_file_success'], 'index.php?do=' . $do . '&view=' . $view, 3, '', 'success');
        } else {
            kekezu::admin_show_msg($_lang['delete_database_backup_file_fail'], 'index.php?do=' . $do . '&view=' . $view, 3, '', 'warning');
        }
        break;
}
require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_' . $do . '_' . $view);
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:admin_tool_dbrestore.php


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