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


PHP kekezu::admin_system_log方法代码示例

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


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

示例1: 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

示例2: defined

<?php

defined('ADMIN_KEKE') or exit('Access Denied');
kekezu::admin_check_role(73);
$msg_obj = new Keke_witkey_msg_tpl_class();
$config_msg_arr = $kekezu->get_table_data("*", "witkey_msg_config", " 1 = 1 ", "config_id desc ", '', '', 'config_id');
$now_msg_arr = db_factory::get_one(" select * from " . TABLEPRE . "witkey_msg_config where k='{$slt_tpl_code}'");
$now_v = unserialize($now_msg_arr['v']);
if (isset($tpl_code)) {
    $msg_tpl = db_factory::query(" select * from " . TABLEPRE . "witkey_msg_tpl where tpl_code='{$tpl_code}'");
    if ($msg_tpl) {
        kekezu::echojson('', 1, $msg_tpl);
    } else {
        echo json_encode(array("status" => 0));
    }
}
$objMsgC = new Keke_witkey_msg_config_class();
if (isset($sbt_edit)) {
    if ($slt_tpl_code) {
        $objMsgC->setWhere("k='{$slt_tpl_code}'");
        $objMsgC->setContent($tar_msg_temp_content);
        $res = $objMsgC->edit_keke_witkey_msg_config();
    }
    if ($res) {
        kekezu::admin_system_log($_lang['edit_sms_tpl']);
        kekezu::admin_show_msg($_lang['edit_sms_tpl_success'], 'index.php?do=msg&view=intertpl&slt_tpl_code=' . $slt_tpl_code, 3, '', 'success');
    }
}
$msg_tpl = db_factory::get_one("select content from " . TABLEPRE . "witkey_msg_config where k='{$slt_tpl_code}'");
$msg_tpl = $msg_tpl['content'];
require $kekezu->_tpl_obj->template(ADMIN_DIRECTORY . '/tpl/admin_msg_' . $view);
开发者ID:xupnge1314,项目名称:project,代码行数:31,代码来源:admin_msg_intertpl.php

示例3: defined

defined('IN_KEKE') or exit('Access Denied');
$strUrl = 'index.php?do=user&view=account&op=password';
if (isset($formhash) && kekezu::submitcheck($formhash)) {
    $old_pass = kekezu::escape(trim($old_password));
    $new_pass = kekezu::escape(trim($new_password));
    $confirm_pass = kekezu::escape(trim($confirm_password));
    if (md5($old_pass) != $gUserInfo['password']) {
        $title['errors']['old_password'] = '登录密码错误';
        kekezu::show_msg($title, NULL, NULL, NULL, 'error');
    }
    if ($old_pass === $new_pass) {
        $title['errors']['new_password'] = '新密码与当前密码相同';
        kekezu::show_msg($title, NULL, NULL, NULL, 'error');
    }
    if ($new_pass != $confirm_pass) {
        $title['errors']['confirm_password'] = '两次输入密码不一致';
        kekezu::show_msg($title, NULL, NULL, NULL, 'error');
    }
    $intRes1 = db_factory::updatetable(TABLEPRE . 'witkey_space', array('password' => md5($new_pass)), array('uid' => $gUid));
    $intRes2 = db_factory::updatetable(TABLEPRE . 'witkey_member', array('password' => md5($new_pass)), array('uid' => $gUid));
    $flag = keke_user_class::user_edit($gUserInfo['username'], $old_pass, $new_pass, '', 0) > 0 ? 1 : 0;
    if ($flag && $intRes1 === 1 && $intRes2 === 1) {
        kekezu::admin_system_log($_SESSION['username'] . '于' . date("Y-m-d H:i:s") . '修改了密码');
        keke_msg_class::notify_user($gUserInfo['uid'], $gUserInfo['username'], 'update_password', '修改密码', array('新密码' => $new_pass, '网站名称' => $kekezu->_sys_config['website_name'], '用户名' => $gUserInfo['username']), 2);
        setcookie('rememberme', '');
        unset($_SESSION, $_SESSION['uid'], $_SESSION['username']);
        unset($_COOKIE['rememberme']);
        session_destroy();
        kekezu::show_msg('新密码已生效', 'index.php?do=login', NULL, NULL, 'ok');
    }
}
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:account_password.php

示例4: Keke_witkey_industry_class

$indus_table_obj = new Keke_witkey_industry_class();
$indus_obj = keke_table_class::get_instance("witkey_industry");
$file_obj = new keke_file_class();
$indus_arr = kekezu::get_industry(0);
isset($indus_id) and intval($indus_id) > 0 and $indus_info = $indus_obj->get_table_info('indus_id', $indus_id);
empty($art_info) or extract($art_info);
if (isset($indus_id) && intval($indus_id) > o) {
    $indus_info = $indus_obj->get_table_info('indus_id', $indus_id);
    $indus_pid = $indus_info['indus_pid'];
}
if ($sbt_edit) {
    $indus_table_obj->setWhere("indus_name = '" . $fs['indus_name'] . "'");
    $res = $indus_table_obj->count_keke_witkey_industry();
    !$pk && $res and kekezu::admin_show_msg($_lang['operate_fail'], $url, 3, $_lang['indus_has']);
    $fs['on_time'] = time();
    isset($fs['is_recommend']) or $fs['is_recommend'] = 0;
    isset($fs['totask']) or $fs['totask'] = 0;
    isset($fs['togoods']) or $fs['togoods'] = 0;
    $fs = kekezu::escape($fs);
    $res = $indus_obj->save($fs, $pk);
    $indus_info = $indus_obj->get_table_info('indus_id', $pk['indus_id']);
    $url = "index.php?do=task&view=industry";
    !$pk and kekezu::admin_system_log($_lang['add_industry']) or kekezu::admin_system_log($_lang['edit_industry'] . ':' . $indus_info['indus_name']);
    $file_obj->delete_files(S_ROOT . "./data/data_cache/");
    $file_obj->delete_files(S_ROOT . './data/tpl_c/');
    $res and kekezu::admin_show_msg($_lang['operate_success'], $url, 3, '', 'success') or kekezu::admin_show_msg($_lang['operate_fail'], $url, 3, '', 'warning');
}
$temp_arr = array();
kekezu::get_tree($indus_arr, $temp_arr, 'option', $indus_pid, 'indus_id');
$indus_arr = $temp_arr;
require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_task_' . $view);
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:admin_task_industry_edit.php

示例5: elseif

        kekezu::admin_system_log($_lang['delete_attachment'] . $file_id);
        $res and kekezu::admin_show_msg($_lang['atachment_delete_success'], $url, 3, '', 'success') or kekezu::admin_show_msg($_lang['attchment_not_exist_delete_fail'], $url, 3, '', 'warning');
    }
} elseif (isset($sbt_action)) {
    is_array($ckb) and $ids = implode(',', array_filter($ckb));
    if (sizeof($ids)) {
        $where = "file_id in ({$ids})";
        $file_obj->setWhere($where);
        $file_info = $file_obj->query_keke_witkey_file();
        foreach ($file_info as $v) {
            @unlink($backup_patch . $v['save_name']);
        }
        $file_obj->setWhere($where);
        $res = $file_obj->del_keke_witkey_file();
        if ($res) {
            kekezu::admin_system_log($_lang['delete_attachment'] . "{$ids}");
            kekezu::admin_show_msg($_lang['mulit_operate_success'], $url, 3, '', 'success');
        }
    } else {
        kekezu::admin_show_msg($_lang['choose_operate_item'], $url, 3, '', 'warning');
    }
} else {
    $where = ' 1 = 1 ';
    intval($txt_file_id) and $where .= " and file_id = {$txt_file_id}";
    strval($txt_file_name) and $where .= " and file_name like '%{$txt_file_name}%' ";
    $ord['1'] and $where .= " order by {$ord['0']} {$ord['1']} " or $where .= " order by file_id desc";
    $table_obj = keke_table_class::get_instance("witkey_file");
    $d = $table_obj->get_grid($where, $url, $page, $wh['page_size'], null, 1, 'ajax_dom');
    $file_arr = $d['data'];
    $pages = $d['pages'];
}
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:admin_tool_file.php

示例6: md5

        kekezu::admin_show_msg($_lang['operate_notice'], "index.php?do=user&view=add", 3, $_lang['user_creat_success'], 'success');
    } else {
        $uinfo = kekezu::get_user_info($edituid);
        if ($fds['password']) {
            $slt = db_factory::get_count(sprintf("select rand_code from %switkey_member where uid = '%d'", TABLEPRE, $edituid));
            $sec_code = keke_user_class::get_password($fds['password'], $slt);
            $fds['sec_code'] = $sec_code;
            $newpwd = $fds['password'];
            $pwd = md5($fds['password']);
            $fds[password] = $pwd;
            db_factory::execute(sprintf("update %switkey_member set password ='%s' where uid=%d", TABLEPRE, $pwd, $edituid));
        } else {
            unset($fds['password']);
        }
        keke_user_class::user_edit($uinfo['username'], '', $newpwd, '', 1);
        $space_class->save($fds, array("uid" => "{$edituid}"));
        kekezu::admin_system_log($_lang['edit_member'] . $member_arr[username]);
        kekezu::admin_show_msg($_lang['edit_success'], "index.php?do=user&view=add&edituid=" . $edituid, 3, '', 'success');
    }
}
if ($check_email) {
    $regClass = new keke_register_class();
    $result = $regClass->check_email($check_email);
    if ($result !== true) {
        echo $result;
    } else {
        echo 1;
    }
    die;
}
require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_user_add');
开发者ID:pengfeiaaa,项目名称:web,代码行数:31,代码来源:admin_user_add.php

示例7: defined

<?php

defined('ADMIN_KEKE') or exit('Access Denied');
kekezu::admin_check_role(140);
if (isset($submit)) {
    $basic_obj = new Keke_witkey_basic_config_class();
    foreach ($conf as $k => $v) {
        $basic_obj->setWhere("k = '{$k}'");
        $basic_obj->setV($v);
        $res .= $basic_obj->edit_keke_witkey_basic_config();
    }
    !empty($api) and $attent_api = $api or $attent_api = array();
    $basic_obj->setWhere("k = 'attent_api_open'");
    $basic_obj->setV(serialize($attent_api));
    $basic_obj->edit_keke_witkey_basic_config();
    kekezu::admin_system_log($_lang['weibo_config_view']);
    kekezu::admin_show_msg($_lang['weibo_view_config_success'], "index.php?do=msg&view=attention", 3, '', 'success');
} else {
    $attent_api = db_factory::get_count(sprintf(" select v from %switkey_basic_config where type='attent_api'", TABLEPRE));
    $attent_api = unserialize($attent_api);
    $attent_list = kekezu::get_table_data("k,v,desc", "witkey_basic_config", "type='attention'", 'listorder asc ', "", "", "k");
}
require keke_tpl_class::template(ADMIN_DIRECTORY . '/tpl/admin_' . $do . '_' . $view);
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:23,代码来源:admin_msg_attention.php

示例8: array

     $task_obj->setTask_cash($fields['task_cash']);
     $task_obj->setTask_desc($fields['task_desc']);
     $fields = kekezu::escape($fields);
     $task_obj->setSeo_title($fields['seo_title']);
     $task_obj->setSeo_keyword($fields['seo_keyword']);
     $task_obj->setSeo_desc($fields['seo_desc']);
     if ($_FILES['fle_task_pic']['name']) {
         $task_pic = keke_file_class::upload_file("fle_task_pic");
     } else {
         $task_pic = $task_pic_path;
     }
     $task_obj->setTask_pic($task_pic);
     $item_ids = array();
     $cash = $task_info['att_cash'] ? $task_info['att_cash'] : 0;
     $task_obj->setAtt_cash($cash);
     kekezu::admin_system_log($_lang['edit_task'] . ":{$fields['task_title']}");
     $res = $task_obj->edit_keke_witkey_task();
     $v_arr = array($_lang['admin_name'] => $myinfo_arr['username'], $_lang['time'] => date('Y-m-d H:i:s', time()), $_lang['model_name'] => $model_info['model_name'], $_lang['task_id'] => $task_info['task_id'], $_lang['task_title'] => $task_info['task_title']);
     keke_msg_class::notify_user($task_info['uid'], $task_info['username'], 'task_edit', $_lang['edit_task'], $v_arr, 1);
 } elseif ($sbt_act) {
     switch ($sbt_act) {
         case "freeze":
             $res = keke_task_config::task_freeze($task_id);
             break;
         case "unfreeze":
             $res = keke_task_config::task_unfreeze($task_id);
             break;
         case "pass":
             $res = keke_task_config::task_audit_pass(array($task_id));
             break;
         case "nopass":
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:task_edit.php

示例9: defined

<?php

defined('ADMIN_KEKE') or exit('Access Denied');
kekezu::admin_check_role(141);
if ($sbt_edit) {
    $api = array();
    foreach ($conf as $k => $v) {
        $res .= db_factory::execute(" update " . TABLEPRE . "witkey_basic_config set v='{$v}' where k='{$k}'");
        $open == $k and $api[$k] = 1 or $api[$k] = 0;
    }
    $api = serialize($api);
    db_factory::execute(sprintf("update %switkey_basic_config set v='%s' where k='map_api_open'", TABLEPRE, $api));
    kekezu::admin_system_log($_lang['edit_map_api']);
    if ($res) {
        kekezu::admin_show_msg($_lang['map_api_edit_success'], "index.php?do={$do}&view={$view}", 2, '', 'success');
    }
} else {
    $map_apis = kekezu::get_table_data("k,v,type,desc", "witkey_basic_config", "type='map'", "", "", "", "k");
    $api_open = db_factory::get_one("select v from " . TABLEPRE . "witkey_basic_config where k='map_api_open'");
    $api_open = unserialize($api_open['v']);
}
require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_' . $do . '_' . $view);
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:22,代码来源:admin_msg_map.php

示例10: defined

defined('ADMIN_KEKE') or exit('Access Denied');
kekezu::admin_check_role('m612');
$goods_config = kekezu::get_task_config($model_id);
is_array($goods_config) and extract($goods_config) or $goods_config = array();
$model_obj = keke_table_class::get_instance('witkey_model');
$ops = array('config', 'control', 'rule');
in_array($op, $ops) or $op = 'config';
$url = "index.php?do=model&model_id={$model_id}&view=config&op={$op}";
kekezu::empty_cache();
$indus_arr = $kekezu->_indus_arr;
$indus_index = kekezu::get_indus_by_index();
if (isset($sbt_edit)) {
    $log_op_arr = array("config" => $_lang['goods_basic_config'], "control" => $_lang['goods_flow_config'], "rule" => $_lang['goods_permissions_config']);
    $log_msg = $_lang['has_update'] . $log_op_arr[$op];
    kekezu::admin_system_log($log_msg);
    switch ($op) {
        case 'config':
            !empty($fds['indus_bid']) and $fds['indus_bid'] = implode(",", $fds['indus_bid']) or $fds['indus_bid'] = '';
            $fds['on_time'] = time();
            $fds = kekezu::escape($fds);
            $res = $model_obj->save($fds, $pk);
            kekezu::admin_show_msg($_lang['goods_basic_config_update_success'], $url, 3, '', 'success');
            break;
        case 'control':
            if ($filepath) {
                copy("../" . $filepath, "../tpl/default/img/shop/shop_default_big.png");
            }
            is_array($cont) and $res = keke_task_config::set_task_ext_config($model_id, $cont);
            kekezu::admin_show_msg($_lang['goods_flow_config_update_success'], $url, 3, '', 'success');
            break;
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:30,代码来源:goods_config.php

示例11: del_sign_task

 public static function del_sign_task($task_id, $model)
 {
     global $_lang;
     $taskInfo = db_factory::get_one(sprintf("select * from %switkey_task where task_id='%d' and task_status in(0,1,8,9,10)", TABLEPRE, $task_id));
     if ($taskInfo) {
         CustomClass::delExtDataByObjId($taskInfo['task_id'], $taskInfo['model_id']);
     }
     if ($model === 1) {
         $sql = sprintf("delete from %switkey_task_work where task_id='%d'", TABLEPRE, $task_id);
     } else {
         $sql = sprintf("delete from %switkey_task_bid where task_id ='%d'", TABLEPRE, $task_id);
     }
     db_factory::execute($sql);
     $file_sql = sprintf("select save_name from %switkey_file where task_id = '%d' ", TABLEPRE, $task_id);
     $files = db_factory::query($file_sql);
     foreach ($files as $v) {
         keke_file_class::del_file($v['save_name']);
     }
     db_factory::execute(sprintf("delete from %switkey_file where task_id ='%d' ", TABLEPRE, $task_id));
     $del_title = db_factory::get_count(sprintf("select task_title from %switkey_task where task_id='%d'", TABLEPRE, $task_id));
     kekezu::admin_system_log($_lang['delete_task'] . ":{$del_title}");
 }
开发者ID:pengfeiaaa,项目名称:web,代码行数:22,代码来源:keke_task_config.php

示例12: base64_decode

    $config_arr[$v['k']] = $v['v'];
}
$config_arr['account_pwd'] = base64_decode($config_arr['account_pwd']);
$url = 'index.php?do=config&view=mail';
if (isset($submit)) {
    foreach ($_POST as $k => $v) {
        $config_basic_obj->setWhere("k = '{$k}'");
        if ($k == 'account_pwd') {
            $config_basic_obj->setV(base64_encode($v));
        } else {
            $config_basic_obj->setV($v);
        }
        $res += $config_basic_obj->edit_keke_witkey_basic_config();
    }
    $kekezu->_cache_obj->gc();
    kekezu::admin_system_log($_lang['email_config_param']);
    $kekezu->_cache_obj->set("keke_witkey_basic_config", $config_basic_arr);
    kekezu::admin_show_msg($_lang['submit_success'], $url, 3, '', 'success');
}
if (isset($email)) {
    $mail = new Phpmailer_class();
    if ($config_arr['mail_server_cat'] == "smtp") {
        $mail->IsSMTP();
        $mail->SMTPAuth = true;
        $mail->CharSet = $_K['charset'];
        $mail->Host = $config_arr['smtp_url'];
        $mail->Port = $config_arr['mail_server_port'];
        $mail->Username = $config_arr['post_account'];
        $mail->Password = $config_arr['account_pwd'];
    } else {
        $mail->IsMail();
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:admin_config_mail.php

示例13: elseif

            $auth_obj->del_auth($record_id);
            break;
    }
} elseif (isset($sbt_action)) {
    $keyids = $ckb;
    switch ($sbt_action) {
        case $_lang['mulit_delete']:
            kekezu::admin_system_log($_lang['mulit_delete_mobile']);
            $auth_obj->del_auth($keyids);
            break;
        case $_lang['mulit_pass']:
            kekezu::admin_system_log($_lang['mulit_pass_mobile']);
            $auth_obj->review_auth($keyids, 'pass');
            break;
        case $_lang['mulit_nopass']:
            kekezu::admin_system_log($_lang['mulit_nopass_mobile']);
            $auth_obj->review_auth($keyids, 'not_pass');
            break;
    }
} else {
    $where = " 1 = 1 ";
    $w['auth_status'] === "0" and $where .= " and auth_status = 0 " or $w['auth_status'] and $where .= " and auth_status = '{$w['auth_status']}' ";
    intval($w['mobile_a_id']) and $where .= " and mobile_a_id = " . intval($w['mobile_a_id']) . "";
    $w['username'] and $where .= " and username like '%" . $w['username'] . "%' ";
    $where .= " order by mobile_a_id desc ";
    intval($w['page_size']) and $page_size = intval($w['page_size']) or $page_size = 10;
    $mobile_obj->setWhere($where);
    $count = $mobile_obj->count_keke_witkey_auth_mobile();
    abs(intval($page)) or $page = 1;
    $kekezu->_page_obj->setAjax(1);
    $kekezu->_page_obj->setAjaxDom("ajax_dom");
开发者ID:pengfeiaaa,项目名称:web,代码行数:31,代码来源:auth_list.php

示例14: unset

        unset($_POST['mobile_username']);
        unset($_POST['mobile_password']);
    }
    foreach ($_POST as $k => $v) {
        $config_basic_obj->setWhere("k = '{$k}'");
        $config_basic_obj->setV(kekezu::k_input($v));
        $res += $config_basic_obj->edit_keke_witkey_basic_config();
    }
    if ($_POST['credit_is_allow'] == 2) {
        foreach ($model_list as $k => $v) {
            $config = unserialize($v['config']);
            $config['defeated'] = '1';
            keke_task_config::set_task_ext_config($v['model_id'], $config);
        }
    }
    kekezu::admin_system_log($_lang['update'] . $log_nav_arr[$op]);
    $kekezu->_cache_obj->set("keke_witkey_basic_config", $config_basic_arr);
    kekezu::admin_show_msg($_lang['submit_success'], $url, 3, '', 'success');
}
function get_url_rule()
{
    $service = array('apache', 'apache-hosts', 'iis6', 'iis7', 'nginx');
    $rule_arr = array();
    foreach ($service as $v) {
        switch ($v) {
            case 'apache-hosts':
                $r = '
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)/index.html$ $1/index.php
RewriteRule ^(.*)/(\\w+).html$ $1/index.php?do=$2
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:admin_config_basic.php

示例15: elseif

if ($op == 'del') {
    $delid = $delid ? $delid : kekezu::admin_show_msg($_lang['wrong_parameters'], $url, 3, '', 'warning');
    $tag_obj->setWhere("tag_id='{$delid}'");
    $tag_obj->del_keke_witkey_tag();
    $kekezu->_cache_obj->del('tag_list_cache');
    kekezu::admin_system_log($_lang['delete_tag'] . "{$delid}");
    kekezu::admin_show_msg($_lang['operate_success'], $url, 3, '', 'success');
} elseif (isset($sbt_action)) {
    if (is_array($ckb)) {
        $ids = implode(',', array_filter($ckb));
    }
    if (count($ids)) {
        $tag_obj->setWhere(' tag_id in (' . $ids . ') ');
        $tag_obj->del_keke_witkey_tag();
        $kekezu->_cache_obj->del('tag_list_cache');
        kekezu::admin_system_log($_lang['delete_tag'] . "{$ids}");
        kekezu::admin_show_msg($_lang['mulit_operate_success'], $url, 3, '', 'success');
    } else {
        kekezu::admin_show_msg($_lang['choose_operate_item'], $url, 3, '', 'warning');
    }
} else {
    $where = " tag_type=5  ";
    $type or $type = 2;
    if ($type == 1) {
        $where .= " and tagname like '%活动%' ";
    } elseif ($type == 2) {
        $where .= " and tagname like '%协议%' ";
    } else {
        $where .= " and tagname like '%任务%' ";
    }
    strval($txt_title) and $where .= " and tagname like '%{$txt_title}%' ";
开发者ID:pengfeiaaa,项目名称:web,代码行数:31,代码来源:admin_tpl_taglist.php


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