public function process_report($op_result, $type) { global $_lang; $trans_name = $this->get_transrights_name($this->_report_type); $op_result = $this->op_result_format($op_result); if ($op_result['action']) { if ($op_result['product_remove'] == 1) { $res = db_factory::execute(sprintf(" update %switkey_service set service_status='3' where service_id='%d'", TABLEPRE, $this->_obj_info['origin_id'])); $this->process_notify('pass', $this->_report_info, $this->_user_info, $this->_to_user_info, $op_result['process_result']); $this->change_status($this->_report_id, '4', $op_result, $op_result['process_result']); $res and kekezu::admin_show_msg($trans_name . $_lang['deal_success'], "index.php?do=trans&view=report&type={$type}", "3", '', 'success') or kekezu::admin_show_msg($trans_name . $_lang['deal_fail'], "index.php?do=trans&view=process&type={$type}&report_id=" . $this->_report_id, "3", '', 'warning'); } if ($op_result['product_remove'] == 2) { $this->process_notify('nopass', $this->_report_info, $this->_user_info, $this->_to_user_info, $op_result['process_result']); $res = $this->change_status($this->_report_id, '3', $op_result, $op_result, $op_result['reply']); $res and kekezu::admin_show_msg($trans_name . $_lang['deal_success'], "index.php?do=trans&view=rights&type={$type}", "3", '', 'success') or kekezu::admin_show_msg($trans_name . $_lang['deal_fail'], "index.php?do=trans&view=process&type={$type}&report_id=" . $this->_report_id, "3", '', 'warning'); } if ($op_result['product_remove'] == 3) { $this->disablePeople(); $this->process_notify('pass', $this->_report_info, $this->_user_info, $this->_to_user_info, $op_result['process_result']); $res = $this->change_status($this->_report_id, '4', $op_result, $op_result['process_result']); $res and kekezu::admin_show_msg($trans_name . $_lang['deal_success'], "index.php?do=trans&view=rights&type={$type}", "3", '', 'success') or kekezu::admin_show_msg($trans_name . $_lang['deal_fail'], "index.php?do=trans&view=process&type={$type}&report_id=" . $this->_report_id, "3", '', 'warning'); } } }
function process_report($op_result, $type) { global $_lang; $op_result['result'] = $op_result['process_result']; $op_result = $this->op_result_format($op_result); $trans_name = $this->get_transrights_name($this->_report_info['report_type']); if ($op_result['action']) { switch ($op_result['task']) { case 1: $this->_task_obj->set_task_status(9); $this->process_notify('pass', $this->_report_info, $this->_user_info, $this->_to_user_info, $op_result['result']); $res = $this->change_status($this->_report_id, '4', $op_result, $op_result['result']); break; case 2: kekezu::admin_show_msg('操作提示', "index.php?do=trans&view=report&type={$type}", "3", "该任务不能进行此操作"); break; case 3: $this->process_notify('nopass', $this->_report_info, $this->_user_info, $this->_to_user_info, $op_result['process_result'], $op_result['reply']); $res = $this->change_status($this->_report_id, '3', $op_result, $op_result, $op_result['result']); break; case 4: $res = $this->shield_work($this->_obj_info['obj_id']); $this->_task_obj->set_task_status(2); $this->process_notify('pass', $this->_report_info, $this->_user_info, $this->_to_user_info, $op_result['result']); $res = $this->change_status($this->_report_id, '4', $op_result, $op_result['result']); break; case 5: $this->cancel_bid($this->_obj_info['obj_id']); $this->_task_obj->set_task_status(2); $this->process_notify('pass', $this->_report_info, $this->_user_info, $this->_to_user_info, $op_result['result']); $res = $this->change_status($this->_report_id, '4', $op_result, $op_result['result']); break; case 6: $this->disablePeople(); $this->process_notify('pass', $this->_report_info, $this->_user_info, $this->_to_user_info, $op_result['process_result']); $res = $this->change_status($this->_report_id, '4', $op_result, $op_result['process_result']); $res and kekezu::admin_show_msg($trans_name . $_lang['deal_success'], "index.php?do=trans&view=rights&type={$type}", "3", '', 'success') or kekezu::admin_show_msg($trans_name . $_lang['deal_fail'], "index.php?do=trans&view=process&type={$type}&report_id=" . $this->_report_id, "3", '', 'warning'); } if ($res) { kekezu::admin_show_msg($trans_name . $_lang['deal_success'], "index.php?do=trans&view=report&type={$type}", "3", "", "success"); } else { kekezu::admin_show_msg($trans_name . $_lang['deal_fail'], "index.php?do=trans&view=process&type={$type}&report_id=" . $this->_report_id, "3", "", "warning"); } } }
$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); $res and kekezu::admin_show_msg($_lang['modify_case_success'], 'index.php?do=case&view=lise', 3, '', 'success') or kekezu::admin_show_msg($_lang['modify_case_fail'], 'index.php?do=case&view=lise', 3, '', 'warning'); } else { $res = $case_obj->create_keke_witkey_case(); kekezu::admin_system_log($_lang['add_case']); $res and kekezu::admin_show_msg($_lang['add_case_success'], 'index.php?do=case&view=lise', 3, '', 'success') or kekezu::admin_show_msg($_lang['add_case_fail'], 'index.php?do=case&view=add', 3, '', 'warning'); } } function case_obj_exists($id, $obj = 'task') { if ($obj == 'task') { $search_obj = db_factory::get_count(sprintf("select count(task_id) from %switkey_task where task_id='%d' ", TABLEPRE, $id)); } elseif ($obj == 'service') { $search_obj = db_factory::get_count(sprintf("select count(service_id) from %switkey_service where service_id='%d' ", TABLEPRE, $id)); } if ($search_obj) { return true; } else { return false; } }
<?php defined('ADMIN_KEKE') or exit('Access Denied'); $event_id or kekezu::admin_show_msg($_lang['param_error'], "index.php?do={$do}&view=event", 3, '', 'warning'); $objProm = keke_prom_class::get_instance(); $prom_arr = $objProm->get_prom_type(); $event_id and $event_info = db_factory::get_one(" select * from " . TABLEPRE . "witkey_prom_event where event_id = '{$event_id}'"); if ($event_info['action'] == 'pub_task' || $event_info['action'] == 'bid_task') { $objInfo = db_factory::get_one(sprintf('select * from %s where task_id= %d', TABLEPRE . 'witkey_task', intval($event_info['obj_id']))); $objInfo['id'] = $objInfo['task_id']; $objInfo['title'] = $objInfo['task_title']; $objInfo['url'] = $_K['siteurl'] . '/index.php?do=task&id=' . intval($objInfo['id']); } elseif ($event_info['action'] == 'service') { $objInfo = db_factory::get_one(sprintf('select * from %s where service_id= %d', TABLEPRE . 'witkey_service', intval($event_info['obj_id']))); $objInfo['id'] = $objInfo['service_id']; $objInfo['title'] = $objInfo['title']; $objInfo['url'] = $_K['siteurl'] . '/index.php?do=goods&id=' . intval($objInfo['id']); } require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_' . $do . '_' . $view);
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 ='******' 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');
<?php defined('ADMIN_KEKE') or exit('Access Denied'); kekezu::admin_check_role(82); $suggest_obj = new keke_table_class('witkey_proposal'); $proposal_obj = new Keke_witkey_proposal_class(); $suggest_type_arr = array('1' => '我的建议', '2' => '我的问题'); $suggest_status_arr = array('1' => '待回复', '2' => '已回复'); $url = "index.php?do={$do}&view={$view}&suggest_id={$suggest_id}"; if ($suggest_id) { $suggest_info = db_factory::get_one(sprintf("select * from %switkey_proposal where p_id = '%d'", TABLEPRE, $suggest_id)); $user_info = kekezu::get_user_info($suggest_info['uid']); if ($sbt_op) { $proposal_obj->setWhere('p_id = ' . $suggestid); $proposal_obj->setOp_content(kekezu::escape($op_result['process_result'])); $proposal_obj->setOp_time(time()); $proposal_obj->setPro_status(2); $proposal_obj->setOp_uid($_SESSION['uid']); $proposal_obj->setOp_username($_SESSION['username']); $res_id = $proposal_obj->edit_keke_witkey_proposal(); $v_arr = array('用户名' => $suggest_username, '用户标题' => $suggest_title, '建议内容' => kekezu::escape($pro_desc), '回复内容' => kekezu::escape($op_result['process_result']), $_lang['website_name'] => $kekezu->_sys_config['website_name']); keke_shop_class::notify_user($suggest_uid, $suggest_username, 'suggest_reply', '建议答复', $v_arr, 2); $res_id and kekezu::admin_show_msg($_lang['operate_notice'], $url, "2", '回复成功', 'success') or kekezu::admin_show_msg($_lang['operate_notice'], $url, "2", '回复失败', 'warning'); } } require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_user_suggest_reply');
<?php defined('ADMIN_KEKE') or exit('Access Denied'); $alipayjs_obj = new Keke_witkey_auth_alipayjs_class(); $pay_tool_arr = array(1 => $_lang['alipay'], 2 => $_lang['tenpay'], 3 => $_lang['payment_online']); $alipayjs_name_arr = keke_glob_class::get_bank(); if ($sbt_pay_to_user) { $alipayjs_obj->setWhere('alipayjs_a_id=' . $fds['alipayjs_a_id']); $alipayjs_obj->setPay_to_user_cash($fds['pay_to_user_cash']); $alipayjs_obj->setPay_time(time()); $res = $alipayjs_obj->edit_keke_witkey_auth_alipayjs(); $alipayjs_info = db_factory::get_one(sprintf(" select uid,username from %switkey_auth_alipayjs where alipayjs_a_id = '%d'", TABLEPRE, $fds[alipayjs_a_id])); $v_arr = array($_lang['username'] => $alipayjs_info['username']); keke_msg_class::notify_user($alipayjs_info['uid'], $alipayjs_info['username'], 'alipayjs_auth', "支付宝认证通知", $v_arr, 2); $res and kekezu::admin_show_msg($_lang['give_cach_success'], $_SERVER['HTTP_REFERER'], '3', '', 'success'); } else { $alipayjs_a_id and $alipayjs_info = db_factory::get_one(sprintf(" select * from %switkey_auth_alipayjs where alipayjs_a_id = '%d'", TABLEPRE, $alipayjs_a_id)); } require $template_obj->template('auth/' . $auth_dir . '/admin/tpl/auth_info');
$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']; } require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_' . $do . '_' . $view);
<?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);
<?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);
<?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);
public function process_report($op_result, $type) { global $_lang; $trans_name = $this->get_transrights_name($this->_report_type); $op_result['result'] = $op_result['process_result']; $op_result = $this->op_result_format($op_result); if ($op_result['action']) { switch ($op_result['task']) { case 1: $this->_task_obj->dispose_task_return(); $this->process_notify('pass', $this->_report_info, $this->_user_info, $this->_to_user_info, $op_result['process_result']); $res = $this->change_status($this->_report_id, '4', $op_result, $op_result['process_result']); break; case 2: $arrBids = db_factory::query("select * from " . TABLEPRE . "witkey_task_work where work_status=4"); if (is_array($arrBids)) { foreach ($arrBids as $k => $v) { db_factory::execute(sprintf("update %switkey_task_work set work_status = 0 where work_id = '%d'", TABLEPRE, $v['work_id'])); db_factory::execute(sprintf(" update %switkey_space set accepted_num = accepted_num-1 where uid = '%d'", TABLEPRE, $v['uid'])); } } $this->_task_obj->auto_choose(); $this->process_notify('pass', $this->_report_info, $this->_user_info, $this->_to_user_info, $op_result['process_result']); $res = $this->change_status($this->_report_id, '4', $op_result, $op_result['process_result']); break; case 3: $this->process_notify('nopass', $this->_report_info, $this->_user_info, $this->_to_user_info, $op_result['process_result'], $op_result['reply']); $res = $this->change_status($this->_report_id, '3', $op_result, $op_result, $op_result['process_result']); break; case 4: $res = $this->shield_work($this->_obj_info['obj_id']); $this->process_notify('pass', $this->_report_info, $this->_user_info, $this->_to_user_info, $op_result['process_result']); $res = $this->change_status($this->_report_id, '4', $op_result, $op_result['process_result']); break; case 5: $this->cancel_bid($this->_obj_info['obj_id']); $this->_task_obj->auto_choose(); $this->process_notify('pass', $this->_report_info, $this->_user_info, $this->_to_user_info, $op_result['process_result']); $res = $this->change_status($this->_report_id, '4', $op_result, $op_result['process_result']); break; case 6: $this->disablePeople(); $this->process_notify('pass', $this->_report_info, $this->_user_info, $this->_to_user_info, $op_result['process_result']); $res = $this->change_status($this->_report_id, '4', $op_result, $op_result['process_result']); $res and kekezu::admin_show_msg($trans_name . $_lang['deal_success'], "index.php?do=trans&view=rights&type={$type}", "3", '', 'success') or kekezu::admin_show_msg($trans_name . $_lang['deal_fail'], "index.php?do=trans&view=process&type={$type}&report_id=" . $this->_report_id, "3", '', 'warning'); } if ($res) { kekezu::admin_show_msg($trans_name . $_lang['deal_success'], "index.php?do=trans&view=report&type={$type}", "3", "", "success"); } else { kekezu::admin_show_msg($trans_name . $_lang['deal_fail'], "index.php?do=trans&view=process&type={$type}&report_id=" . $this->_report_id, "3", "", "warning"); } } }
<?php defined('ADMIN_KEKE') or exit('Access Denied'); $url = 'index.php?do=config&view=adddq'; if ($page) { $page = $_R['page']; $url .= '&page=' . $page; } else { $page = 1; } if ($_R[is_submit] == 1) { $objDistrict = keke_table_class::get_instance('witkey_district'); $arrFields = array('name' => $_R[one], upid => 0); $intResult = $objDistrict->save($arrFields); 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); }
<?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);
} $charge_reason = kekezu::filter_input($charge_reason); $sql2 = "update " . TABLEPRE . "witkey_finance set fina_mem='{$charge_reason}' where fina_id = last_insert_id()"; db_factory::execute($sql2); if ($res) { if ($cash_type == 1) { $v_arr = array('用户名' => $info[username], '金额动作' => '充值', '金额' => $cash); keke_shop_class::notify_user($info[uid], $info[username], "admin_charge", '后台手动充值通知', $v_arr, 2); kekezu::admin_show_msg('手动充值现金成功', $url, 3, '', 'success'); } else { $v_arr = array('用户名' => $info[username], '金额动作' => '扣除', '金额' => $cash); keke_shop_class::notify_user($info[uid], $info[username], "admin_charge", '后台手动充值通知', $v_arr, 2); kekezu::admin_show_msg('手动扣除现金成功', $url, 3, '', 'success'); } } else { kekezu::admin_show_msg('手动充值或扣除失败', "index.php?do={$do}&view={$view}", 3, '', 'warning'); } } function get_info($uid, $t) { $sql = " select balance,credit,uid,username from %switkey_space where "; if ($t == '1') { $sql1 = sprintf($sql . " uid=%d ", TABLEPRE, $uid, $uid); $info = db_factory::get_one($sql1); } else { $sql = sprintf($sql . " username='******'", TABLEPRE, $uid); $info = db_factory::get_one($sql); } return $info; } require keke_tpl_class::template(ADMIN_DIRECTORY . '/tpl/admin_user_charge');
break; case "del": $del_info = kekezu::get_user_info($delid); $delid or kekezu::admin_show_msg($_lang['param_error'], $url, 3, '', 'warning'); $res = db_factory::execute(sprintf("update %switkey_space set group_id = 0 where uid = '%d' ", TABLEPRE, $delid)); kekezu::admin_system_log($_lang['delete_kf'] . $del_info[username]); $res and kekezu::admin_show_msg($_lang['operate_notice'], $url, 2, $_lang['delete_success'], 'success') or kekezu::admin_show_msg($_lang['operate_notice'], $url, 2, $_lang['delete_fail'], 'warning'); break; } if ($sbt_action) { $keyids = $ckb; if (is_array($keyids)) { $ids = implode(',', $keyids); $res = db_factory::execute(sprintf("update %switkey_space set group_id = 0 where uid in (%s) ", TABLEPRE, $ids)); kekezu::admin_system_log($_lang['more_delete_kfs'] . $ids); $res and kekezu::admin_show_msg($_lang['operate_notice'], $url, 2, $_lang['mulit_operate_success']) or kekezu::admin_show_msg($_lang['operate_notice'], $url, 2, $_lang['mulit_operate_fail'], "error"); } } $sql = " 1 = 1 and group_id != 0 "; $w[page_size] and $p_size = intval($w[page_size]) or $p_size = 10; $page = intval($page) ? intval($page) : 1; $w[uid] and $sql .= " and uid='{$w['uid']}'"; $w[username] and $sql .= " and username like '%{$w['username']}%'"; $w[status] == 1 and $sql .= " and status = 1"; $w[status] == 2 and $sql .= " and status = 0"; $ord[uid] and $sql .= " order by uid " . $ord[uid] or $sql .= " order by uid desc "; $space_obj->setWhere($sql); $count = $space_obj->count_keke_witkey_space(); $limit = $p_size; $kekezu->_page_obj->setAjax(1); $kekezu->_page_obj->setAjaxDom('ajax_dom');
<?php defined('ADMIN_KEKE') or exit('Access Denied'); $tab_obj = keke_table_class::get_instance("witkey_prom_item"); $upload_obj = new keke_upload_class(UPLOAD_ROOT, array("gif", 'jpeg', 'jpg', 'png'), UPLOAD_MAXSIZE); if ($sbt_edit) { $fds['prom_type'] == 'site' and $fds['item_type'] = 'img'; $fds['on_time'] = time(); $files = $upload_obj->run('item_pic', 1); $files != 'The uploaded file is Unallowable!' and $item_pic = $files['0']['saveName']; $item_pic and $fds['item_pic'] = $item_pic; if ($item_id) { $edit = $tab_obj->save($fds, $pk); kekezu::admin_system_log($_lang['edit_prom_material'] . $item_id); $edit && kekezu::admin_show_msg($_lang['prom_material_edit_success'], '', 3, '', 'success'); } $add = $tab_obj->save($fds); kekezu::admin_system_log($_lang['add_prom_material']); $add && kekezu::admin_show_msg($_lang['prom_material_add_success'], '', 3, '', 'success'); } else { $item_id and $item_info = db_factory::get_one(" select * from " . TABLEPRE . "witkey_prom_item where item_id = '{$item_id}'"); } require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_' . $do . '_' . $view);
public static function edit_item($auth_code, $data, $pk = null, $big_ico_name = null, $small_ico_name = null, $small_n_ico_name = null, $conf = array()) { global $kekezu; global $_lang; $auth_item = keke_auth_base_class::get_auth_item($auth_code); $auth_item or kekezu::admin_show_msg($_lang['auth_item_edit_fail_notice'], "index.php?do=auth&view=item_list", '3', '', 'error'); $tab_obj = keke_table_class::get_instance("witkey_auth_item"); $big_ico_name and $data['auth_big_ico'] = $big_ico_name == 'delete' ? '' : $big_ico_name; $small_ico_name and $data['auth_small_ico'] = $small_ico_name == 'delete' ? '' : $small_ico_name; $small_n_ico_name and $data['auth_small_n_ico'] = $small_n_ico_name == 'delete' ? '' : $small_n_ico_name; $data['update_time'] = time(); $res = $tab_obj->save($data, $pk); if ($res) { $kekezu->_cache_obj->del('auth_item_cache_list'); kekezu::admin_system_log($_lang['edit_auth_item'] . $auth_item['auth_title']); kekezu::admin_show_msg($_lang['auth_item_edit_success'], $_SERVER['HTTP_REFERER'], 3, '', 'success'); } else { kekezu::admin_show_msg($_lang['auth_item_edit_fail'], $_SERVER['HTTP_REFERER'], 3, '', 'warning'); } }
<?php defined('ADMIN_KEKE') or exit('Access Denied'); kekezu::admin_check_role(2); $url = "index.php?do={$do}&view={$view}"; $default_currency = $kekezu->_sys_config['currency']; if (!empty($cid)) { $sql = sprintf("select * from %switkey_currencies where currencies_id ='%d' limit 0,1", TABLEPRE, $cid); $currency_config = db_factory::get_one($sql); } if ($conf and $sbt_edit) { if (preg_match('/([a-z])+/i', $conf['code'])) { $currencies_obj = new keke_table_class('witkey_currencies'); $conf['last_updated'] = time(); if ($default_cur) { $default_currency_conf = db_factory::execute(sprintf("update %switkey_basic_config set v='%s' where k='currency'", TABLEPRE, $default_cur)); $_SESSION['currency'] = $default_cur; } $res = $currencies_obj->save($conf, $pk); kekezu::admin_show_msg($_lang['operate_success'], $url, 2, $_lang['edit_success'], "success"); } else { kekezu::admin_show_msg($_lang['operate_fail'], $url, 2, $_lang['currency_code_fill_error'], "error"); } } require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_config_' . $view . '_' . $op);
$ad_result = $ad_obj->del_keke_witkey_ad(); $tag_obj->setWhere('tag_id=' . $delid); $result = $tag_obj->del_keke_witkey_tag(); kekezu::admin_system_log($_lang['delete_ads_tags_id'] . $delid . 'name:' . $ad_name . $_lang['corresponding_ads_data'] . $ad_result . $_lang['tiao']); kekezu::admin_show_msg($result ? $_lang['delete_ads_tags_success'] : $_lang['delete_fail'], $url, 3, '', $result ? 'success' : 'warning'); } else { if (!empty($ckb)) { $ids = is_array($ckb) && count($ckb) > 0 ? implode(',', $ckb) : kekezu::admin_show_msg($_lang['delete_fail_select_operation'], $url, 3, '', 'warning'); $tag_name_arr = db_factory::query(' select tagname from ' . TABLEPRE . "witkey_tag where tag_id in({$ids}) "); while (list($key, $value) = each($tag_name_arr)) { $ad_obj->setWhere('ad_name = "' . $value['tagname'] . '"'); $ad_result .= $ad_obj->del_keke_witkey_ad(); } $tag_obj->setWhere('tag_id in(' . $ids . ')'); $result = $tag_obj->del_keke_witkey_tag(); kekezu::admin_system_log($_lang['mulit_delete_ads_tags'] . $ids . $_lang['is_corresponding_ads_data'] . $ad_result . $_lang['tiao']); kekezu::admin_show_msg($result ? $_lang['mulit_delete_ads_tags_success'] : $_lang['delete_fail'], $url, 3, '', $res ? 'success' : 'warning'); } } } $where = '1=1 and tag_type=9'; $w['tag_id'] && ($where .= ' and tag_id="' . $w['tag_id'] . '"'); $w['tagname'] && ($where .= " and INSTR(tagname,'{$w['tagname']}')>0 "); is_array($w['ord']) && ($w['ord'] = $w['ord'][0] . ' ' . $w['ord'][1]); $w['ord'] && ($where .= ' order by ' . $w['ord']) or $sql .= ' order by tag_id desc '; $w['page_size'] and $page_size = intval($w['page_size']) or $page_size = 10; $page and $page = intval($page) or $page = '1'; $tag_arr = $table_obj->get_grid($where, $url, $page, $page_size); $pages = $tag_arr['pages']; $tag_arr = $tag_arr['data']; require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_' . $do . '_' . $view);
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": $res = keke_task_config::task_audit_nopass($task_id); break; } } else { $process_arr = keke_task_config::can_operate($task_info['task_status'], $task_info['is_top']); $file_list = db_factory::query(sprintf(" select * from %switkey_file where task_id='%d' and obj_type='task' ", TABLEPRE, $task_id)); $status_arr = sreward_task_class::get_task_status(); $payitem_list = keke_payitem_class::get_payitem_config('employer'); $indus_arr = $kekezu->_indus_arr; $temp_arr = array(); $indus_option_arr = $indus_arr; kekezu::get_tree($indus_option_arr, $temp_arr, "option", $task_info['indus_id']); $indus_option_arr = $temp_arr; } if ($res) { kekezu::admin_show_msg($_lang['task_operate_success'], "index.php?do=model&model_id={$model_id}&view=list", 3, '', 'success'); } } else { require S_ROOT . '/task/' . $model_info['model_dir'] . '/admin/task_misc.php'; } require $kekezu->_tpl_obj->template('task/' . $model_info['model_dir'] . '/admin/tpl/task_edit_' . $op);
$obj_HotWords->setWhere(' id in (' . $ids . ') '); $obj_HotWords->del_keke_witkey_hotwords(); $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'); } } elseif (isset($sbt_add)) { $time = time(); $obj_HotWords = new Keke_witkey_hotwords_class(); $obj_HotWords->setWords($words_add); $obj_HotWords->setTime(time()); $obj_HotWords->setCount($count_add); $obj_HotWords->create_keke_witkey_hotwords(); kekezu::admin_show_msg("添加成功", "index.php?do=tpl&view=hotwords", "3", "", "success"); } elseif ($ac == 'editlistorder') { $obj_HotWords = new Keke_witkey_hotwords_class(); $obj_HotWords->setWhere('id=' . $id); $obj_HotWords->setSort($sort); $obj_HotWords->edit_keke_witkey_hotwords(); } elseif ($ac == 'open') { db_factory::updatetable(TABLEPRE . "witkey_basic_config", array('v' => $status), array('k' => 'hot_words_status')); } elseif ($ac == 'handle') { db_factory::updatetable(TABLEPRE . "witkey_basic_config", array('v' => $status), array('k' => 'update_status')); } else { $w = " 1 = 1 "; $id and $w .= " and id = '{$id}'"; $title and $w .= " and words like '%{$title}%'"; if ($ord) { switch ($ord) {
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); } kekezu::admin_system_log($_lang['to_witkey_service_name_is'] . $service_info[title] . $_lang['in_edit_operate']); service_shop_class::set_on_sale_num($pk['service_id'], $fds['service_status']); $service_obj = keke_table_class::get_instance('witkey_service'); $c = $service['content']; $fds = kekezu::escape($service); $service['content'] = $c; isset($service['is_top']) or $service['is_top'] = 0; $service_obj->save($service, array("service_id" => $service_id)); kekezu::admin_show_msg($_lang['service_edit_success'], 'index.php?do=model&model_id=7&view=list', 2, $_lang['service_edit_success'], 'success'); } } else { require S_ROOT . '/shop/' . $model_info['model_dir'] . '/admin/shop_misc.php'; } require keke_tpl_class::template('shop/' . $model_info['model_dir'] . '/admin/tpl/service_edit_' . $op);
<?php defined('ADMIN_KEKE') or exit('Access Denied'); $region_config = keke_glob_class::getRegionConfig(); $objDistrict = keke_table_class::get_instance('witkey_district'); $url = 'index.php?do=config&view=dqtwo'; if ($page) { $page = $_R['page']; $url .= '&page=' . $page; } else { $page = 1; } if ($_R['id']) { $id = intval($_R[id]); $url .= '&id=' . $id; } $two = $objDistrict->get_grid('upid=' . $id, $url, $page, 10, ' order by id desc'); if ($_R['is_submit'] == 1) { foreach ($_R[id] as $key => $val) { $arrFields = array('name' => $_R[nametwo][$key]); $arrWhere = array('id' => $_R[id][$key]); $intResult = $objDistrict->save($arrFields, $arrWhere); } kekezu::admin_show_msg("修改成功", "index.php?do=config&view=dqtwo&page=" . $page . '&id=' . $_R['upid1'], 2, '', 'success'); } else { require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_config_' . $view); } if ($_R[op] == 'del') { $intResult = $objDistrict->del('id', $_R[id2]); kekezu::admin_show_msg("删除成功", "index.php?do=config&view=dqtwo&page=" . $page . '&id=' . $_R['id'], 2, '', 'success'); }
public function review_auth($auth_ids, $type = 'pass', $url = null) { global $_lang; global $kekezu; if ($url === null) { $url = $_SERVER['HTTP_REFERER']; } $prom_obj = keke_prom_class::get_instance(); is_array($auth_ids) and $auth_ids = implode(",", $auth_ids); $auth_info = $this->get_auth_info($auth_ids); $size = sizeof($auth_info); $size > 0 && $type == 'pass' and $status = '1' or $status = '2'; $size == 0 and kekezu::admin_show_msg($this->auth_lang() . $_lang['apply_not_exist_audit_fail'], $_SERVER['HTTP_REFERER']); if ($size == 1 && $auth_info[0]['auth_status'] != '1') { $this->set_auth_status($auth_info[0][$this->_primary_key], $status); $this->set_auth_record_status($auth_info[0]['uid'], $status); $this->_auth_code == 'realname' && $status == 1 and $this->extract_birth($auth_info[0]['uid'], $auth_info[0]['id_card']); } elseif ($size > 1) { foreach ($auth_info as $v) { if ($v['auth_status'] != '1') { $this->set_auth_record_status($v['uid'], $status); $this->set_auth_status($v[$this->_primary_key], $status); $this->_auth_code == 'realname' && $status == 1 and $this->extract_birth($v['uid'], $v['id_card']); } } } switch ($type) { case "pass": kekezu::admin_system_log($this->auth_lang() . $_lang['apply_pass'] . "{$auth_ids}"); foreach ($auth_info as $v) { if ($this->_auth_code == 'enterprise') { $this->set_user_role($auth_info[0][uid], $type); } elseif ($this->_auth_code == 'realname') { $this->set_user_role($auth_info[0][uid], $type); } $feed_arr = array("feed_username" => array("content" => $v[username], "url" => "index.php?do=seller&id={$v['uid']}"), "action" => array("content" => $_lang['has_pass'], "url" => ""), "event" => array("content" => $this->auth_lang(), "url" => "")); kekezu::save_feed($feed_arr, $v['uid'], $v['username'], $this->_auth_name); $prom_obj->dispose_prom_event('reg', $v['uid'], $v['uid']); $auth_arr = keke_glob_class::get_finance_action(); $arr[$_lang['auth_code']] = $auth_arr[$this->_auth_name]; $arr[$_lang['auth_url']] = "index.php?do=user&view=payitem&op=auth&auth_code={$this->_auth_code}"; keke_msg_class::notify_user($v['uid'], $v['username'], 'auth_success', $auth_arr[$this->_auth_name] . $_lang['through'], $arr, 2); } $url = 'HTTP://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . "?do=auth&view=list&code={$this->_auth_code}"; kekezu::admin_show_msg($this->auth_lang() . $_lang['apply_audit_success'], $url, 3, '', 'success'); break; case "not_pass": kekezu::admin_system_log($this->auth_lang() . $_lang['apply_not_pass'] . "{$auth_ids}"); kekezu::admin_show_msg($this->auth_lang() . $_lang['apply_audit_not_pass'], $url, 3, '', 'success'); break; } }
intval($hdn_mark_rule_id) and $mark_rule_obj->setWhere(" mark_rule_id = " . intval($hdn_mark_rule_id) . ""); $mark_rule_obj->setM_value(intval($txt_m_value)); $mark_rule_obj->setG_value(intval($txt_g_value)); $mark_rule_obj->setG_title($txt_g_title); $mark_rule_obj->setM_title($txt_m_title); $mark_rule_obj->setG_ico($hdn_g_ico); $mark_rule_obj->setM_ico($hdn_m_ico); if (intval($hdn_mark_rule_id)) { kekezu::admin_system_log($_lang['edit_mark_rule']); $res = $mark_rule_obj->edit_keke_witkey_mark_rule(); } else { kekezu::admin_system_log($_lang['create_mark_rule']); $res = $mark_rule_obj->create_keke_witkey_mark_rule(); } if ($res) { $u_list = db_factory::query(sprintf(" select buyer_credit,seller_credit,uid from %switkey_space", TABLEPRE)); if ($u_list) { $s = sizeof($u_list); for ($i = 0; $i < $s; $i++) { $b_level = keke_user_mark_class::get_mark_level($u_list[$i]['buyer_credit'], 2); $s_level = keke_user_mark_class::get_mark_level($u_list[$i]['seller_credit'], 1); $sql = " UPDATE " . TABLEPRE . "witkey_space set buyer_level='" . serialize($b_level) . "',seller_level='" . serialize($s_level) . "' where uid='{$u_list[$i]['uid']}'"; $sql != '' && db_factory::execute($sql); } } } kekezu::admin_show_msg($_lang['operate_notice'], $url, 2, $_lang['submit_success'], 'success'); } else { $mark_rule = $mark_rule_obj->query_keke_witkey_mark_rule(); require $kekezu->_tpl_obj->template(ADMIN_DIRECTORY . "/tpl/admin_{$do}_{$view}"); }
<?php $waterMark = db_factory::get_one('select * from ' . TABLEPRE . 'witkey_basic_config where k="watermark"'); $config = unserialize($waterMark['v']); if ($submit) { $data['switch'] = $switch; $data['hight'] = $hight; $data['width'] = $width; $data['img'] = $filepath1; $d = serialize($data); $res = db_factory::updatetable(TABLEPRE . 'witkey_basic_config', array('v' => $d), array('k' => 'watermark')); $res and kekezu::admin_show_msg('修改成功', 'index.php?do=watermark', 3, '', 'success'); } require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_' . $do);
public static function obj_info_init($report_info, $user_info) { global $kekezu, $_K; global $_lang; switch ($report_info['obj']) { case "task": $obj_info = db_factory::get_one(sprintf(" select task_id origin_id,uid origin_uid,model_id,task_title origin_title,task_status as origin_status,real_cash as cash from %switkey_task where task_id='%d'", TABLEPRE, $report_info['origin_id'])); $re_obj = "<a href=\"" . $_K['siteurl'] . "/index.php?do=task&id=" . $obj_info['origin_id'] . "\">" . $obj_info['origin_title'] . "</a>"; break; case "work": $model_id = db_factory::get_count(sprintf(" select model_id from %switkey_task where task_id='%d'", TABLEPRE, $report_info['origin_id'])); if ($report_info['report_type'] == 1) { $view = 'rights'; } else { $view = 'report'; } $model_id or kekezu::admin_show_msg($_lang['friendly_notice'], 'index.php?do=trans&view=' . $view, 2, $_lang['this_task_has_delete']); $model_info = $kekezu->_model_list[$model_id]; $sql = " select a.task_id origin_id,a.task_title origin_title,a.uid origin_uid,a.model_id,a.task_status origin_status,a.real_cash cash "; if ($model_info['model_code'] == 'dtender' || $model_info['model_code'] == 'tender') { $sql .= ",b.bid_id obj_id,b.uid obj_uid,b.bid_status obj_status from %switkey_task a left join %switkey_task_bid b on a.task_id=b.task_id where b.bid_id='%d'"; $bid_count = db_factory::get_count(sprintf(" select count(bid_id) from %switkey_task_bid where task_id='%d' and bid_status='4'", TABLEPRE, $report_info['origin_id'])); } else { $sql .= ",b.work_id obj_id,b.uid obj_uid,b.work_status obj_status from %switkey_task a left join %switkey_task_work b on a.task_id=b.task_id where b.work_id='%d'"; $bid_count = db_factory::get_count(sprintf(" select count(work_id) from %switkey_task_work where task_id='%d' and work_status not in(0,5,7,8) ", TABLEPRE, $report_info['origin_id'])); } $obj_info = db_factory::get_one(sprintf($sql, TABLEPRE, TABLEPRE, $report_info['obj_id'])); $obj_info['bid_count'] = $bid_count; $re_obj = "<a href=\"" . $_K['siteurl'] . "/index.php?do=task&id=" . $obj_info['origin_id'] . "&view=list_work&work_id=" . $obj_info['obj_id'] . "\">" . $obj_info['origin_title'] . "</a>"; break; case "product": $obj_info = db_factory::get_one(sprintf(" select service_id origin_id,uid origin_uid,model_id,title origin_title from %switkey_service where service_id='%d'", TABLEPRE, $report_info['obj_id'])); $re_obj = "<a href=\"" . $_K['siteurl'] . "/shop.php?do=service&service_id=" . $obj_info['origin_id'] . "\">" . $obj_info['origin_title'] . "</a>"; break; case "order": $sql = " select a.obj_id obj_id,b.order_id origin_id,b.order_uid origin_uid,b.seller_uid obj_uid,\n\t\t\t\t\tb.order_status obj_status,b.order_amount cash,b.model_id,b.order_name obj_title from %switkey_order b left join\n\t\t\t\t\t%switkey_order_detail a on a.order_id=b.order_id where b.order_id='%d'"; $obj_info = db_factory::get_one(sprintf($sql, TABLEPRE, TABLEPRE, $report_info['obj_id'])); break; } if ($report_info['report_status'] == '1') { $res = self::change_status($report_info['report_id'], '2'); self::accept_notify($report_info, $user_info, $re_obj); } return $obj_info; }
$tag_id and $feed_info = db_factory::get_one(" select tagname,tag_id,cache_time,tag_code,tpl_type,code from " . TABLEPRE . "witkey_tag where tag_type=8 and tag_id='{$tag_id}'"); $code = unserialize($feed_info['code']); } if ($sbt_edit) { if ($type === 'manage') { $slt_feed_type == 1 and kekezu::admin_show_msg($_lang['add_fail_select_type'], $url, 3, '', 'warning'); $cbk_group and $tpl_type = implode(",", $cbk_group) or $tpl_type = $_K['template']; $tag_obj->setTagname($txt_tag_name); $tag_obj->setTag_code($tag_code); $tag_obj->setCache_time($txt_cache_time); $tag_obj->setTpl_type($tpl_type); $tag_obj->setTag_type(8); $code['feed_type'] = $slt_feed_type; $code['load_num'] = intval($txt_load_num) ? intval($txt_load_num) : 9; $code['user_id'] = 0; $code['obj_id'] = 0; $code['cache_name'] = $txt_cache_name ? $txt_cache_name : $txt_tag_name; $code = serialize($code); $tag_obj->setCode($code); if ($hdn_tag_id) { $tag_obj->setTag_id($hdn_tag_id); $res = $tag_obj->edit_keke_witkey_tag(); } else { $check_exixts = db_factory::execute("select tagname from " . TABLEPRE . "witkey_tag where tagname='{$txt_tag_name}'"); $check_exixts and kekezu::admin_show_msg($_lang['add_fail_alerady_exists'], $url, 3, '', 'warning'); $res = $tag_obj->create_keke_witkey_tag(); } } $res and kekezu::admin_show_msg($_lang['edit_success'], $url, 3, '', 'success') or kekezu::admin_show_msg($_lang['edit_fail'], $url, 3, '', 'warning'); } require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_tpl_' . $view . '_' . $type);
<?php defined('ADMIN_KEKE') or exit('Access Denied'); $views = array('fields', 'editfields'); !empty($view) && in_array($view, $views) and $view or $view = 'fields'; if (file_exists(ADMIN_ROOT . 'admin_custom_' . $view . '.php')) { $model_id or kekezu::admin_show_msg($_lang['error_model_param'], "index.php?do=info", 3, '', 'warning'); $model_info = db_factory::get_one(" select * from " . TABLEPRE . "witkey_model where model_id = '{$model_id}'"); if (!$model_info['model_status']) { header("location:index.php?do=config&view=model"); die; } require ADMIN_ROOT . 'admin_custom_' . $view . '.php'; } else { kekezu::admin_show_msg($_lang['404_page'], '', 3, '', 'warning'); }