コード例 #1
0
 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');
         }
     }
 }
コード例 #2
0
ファイル: CustomFields.php プロジェクト: huangbinzd/kppwGit
 public function delFields()
 {
     if ($this->isFieldsExsits()) {
         db_factory::execute("ALTER TABLE " . $this->_tbname . " DROP " . $this->_tbfield);
         return true;
     }
     return false;
 }
コード例 #3
0
 public function service_end_time()
 {
     $service_list = db_factory::query(sprintf(" select * from %switkey_service where service_status=2 and  overdue_type!='forever' and exist_time < %d and model_id = 7 ", TABLEPRE, time()));
     if (is_array($service_list)) {
         foreach ($service_list as $k => $v) {
             db_factory::execute(sprintf("update %switkey_service set service_status=3 where service_id=%d", TABLEPRE, $v['service_id']));
         }
     }
 }
コード例 #4
0
 function del_comment($comment_id, $obj_id, $is_reply = false)
 {
     $res = db_factory::execute(sprintf("delete from %switkey_comment where comment_id='%d' or p_id='%d'", TABLEPRE, $comment_id, $comment_id));
     if (!$is_reply) {
         if ($this->_comment_type == 'task') {
             $res and $res = db_factory::execute(sprintf(" update %switkey_task set leave_num =ifnull(leave_num,0)-1 where task_id='%d'", TABLEPRE, $obj_id));
         } elseif ($this->_comment_type == 'service') {
             $res and $res = db_factory::execute(sprintf(" update %switkey_service set leave_num =ifnull(leave_num,0)-1 where service_id='%d'", TABLEPRE, $obj_id));
         }
     }
     return $res;
 }
コード例 #5
0
 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");
         }
     }
 }
コード例 #6
0
ファイル: retrieve.bak.php プロジェクト: huangbinzd/kppwGit
function reset_set_password($user_info)
{
    $code = kekezu::randomkeys(6);
    $user_code = md5($code);
    $slt = kekezu::randomkeys(6);
    $user_seccode = keke_user_class::get_password($code, $slt);
    $sql = "update %switkey_member set password = '******' , rand_code = '%s' where uid=%d";
    $sql = sprintf($sql, TABLEPRE, $user_code, $slt, $user_info['uid']);
    $res = db_factory::execute($sql);
    $sql = "update %switkey_space set  password = '******' , sec_code = '%s' where uid=%d";
    $sql = sprintf($sql, TABLEPRE, $user_code, $user_seccode, $user_info['uid']);
    db_factory::execute($sql);
    $pass_info['code'] = $pass_info['sec_code'] = $code;
    keke_user_class::user_edit($user_info['username'], '', $code, '', 1);
    return $pass_info;
}
コード例 #7
0
 function order_charge()
 {
     global $_K;
     $order_id = $this->_order_id;
     $sid = $this->_obj_id;
     $uid = $this->_uid;
     $user_info = $this->_userinfo;
     $order_info = db_factory::get_one(sprintf(" select order_status,order_uid,order_username,seller_uid,seller_username from %switkey_order where order_id='%d'", TABLEPRE, $order_id));
     $url = $_K['siteurl'] . "/index.php?do=user&view=finance&op=order&obj_type=service&role=2&order_id=" . $order_id;
     $s_order_link = "<a href=\"" . $_K['siteurl'] . "/index.php?do=user&view=finance&op=order&obj_type=service&role=1&order_id=" . $order_id . "\">" . $order_info['order_name'] . "</a>";
     $b_order_link = "<a href=\"" . $_K['siteurl'] . "/index.php?do=user&view=finance&op=order&obj_type=service&role=2&order_id=" . $order_id . "\">" . $order_info['order_name'] . "</a>";
     if ($order_info['order_status'] == 'wait') {
         $service_info = keke_shop_class::get_service_info($sid);
         $service_status = db_factory::get_count(sprintf(" select service_status from %switkey_service where service_id='%d'", TABLEPRE, $sid));
         if ($service_status == '2') {
             $data = array(':service_id' => $service_info['service_id'], ':title' => $service_info['title']);
             keke_finance_class::init_mem('buy_service', $data);
             $this->_total_fee > 0 and $res = keke_finance_class::cash_out($uid, $this->_total_fee, 'buy_service', '0', 'service', $order_id);
             if ($res) {
                 db_factory::execute(sprintf(" update %switkey_order set order_status='ok' where order_id='%d'", TABLEPRE, $order_id));
                 $v_arr = array('用户名' => $order_info['order_username'], '网站名称' => $kekezu->_sys_config['website_name'], '用户' => $_lang['you'], '动作' => $_lang['haved_confirm_pay'], '订单编号' => $order_id, '订单链接' => $b_order_link);
                 keke_shop_class::notify_user($order_info['order_uid'], $order_info['order_username'], "order_change", $_lang['goods_order_confirm_pay'], $v_arr);
                 $v_arr = array('用户名' => $order_info['order_username'], '网站名称' => $kekezu->_sys_config['website_name'], '用户' => $order_info['order_username'], '动作' => $_lang['haved_confirm_pay'], '订单编号' => $order_id, '订单链接' => $s_order_link);
                 keke_shop_class::notify_user($order_info['seller_uid'], $order_info['seller_username'], "order_change", $_lang['goods_order_confirm_pay'], $v_arr);
                 $notice = $_lang['goods_pay_success'];
                 $type = 'success';
             } else {
                 $notice = $_lang['goods_pay_fail'];
                 $type = 'warning';
             }
         } else {
             db_factory::execute(sprintf(" update %switkey_order set order_status='close' where order_id='%d'", TABLEPRE, $order_id));
             $v_arr = array('用户名' => $order_info['seller_username'], '网站名称' => $kekezu->_sys_config['website_name'], "用户" => $_lang['system'], '动作' => $_lang['stop_your_order_and_your_cash_return'], '订单编号' => $order_id, '订单链接' => $s_order_link);
             keke_shop_class::notify_user($order_info['seller_uid'], $order_info['seller_username'], "order_change", $_lang['goods_order_close'], $v_arr);
             $v_arr = array('用户名' => $order_info['order_username'], '网站名称' => $kekezu->_sys_config['website_name'], "用户" => $_lang['system'], '动作' => $_lang['stop_your_order_and_your_cash_return'], '订单编号' => $order_id, '订单链接' => $b_order_link);
             keke_shop_class::notify_user($order_info['order_uid'], $order_info['order_username'], "order_change", $_lang['goods_order_close'], $v_arr);
             $notice = $_lang['goods_pay_fail'];
             $type = 'warning';
         }
     } else {
         $notice = $_lang['goods_pay_success'];
         $type = 'success';
     }
     return pay_return_fac_class::struct_response($_lang['operate_notice'], $notice, $url, $type);
 }
コード例 #8
0
 public function add_auth($data, $file_name = '')
 {
     global $kekezu, $user_info, $_lang;
     $data = $this->format_auth_apply($data);
     $auth_info = $this->get_user_auth_info($user_info[uid]);
     if ($auth_info) {
         $success = $this->_tab_obj->save($data, array($this->_primary_key => $auth_info[$this->_primary_key]));
         $this->set_auth_record_status($user_info['uid'], '0');
         db_factory::execute(sprintf(" update %switkey_space set user_type='2' where uid='%d'", TABLEPRE, $auth_info[uid]));
     } else {
         $success = $this->_tab_obj->save($data);
     }
     if ($success) {
         $data['start_time'] == $data['end_time'] and $end_time = $data['end_time'] or $end_time = 0;
         $this->add_auth_record($data['uid'], $data['username'], $this->_auth_code, $end_time);
         return true;
     }
     return false;
 }
コード例 #9
0
 public function add_auth($data, $is_jump = true)
 {
     global $kekezu, $user_info, $_lang;
     $data = $this->format_auth_apply($data);
     $arrAuthInfo = $this->get_user_auth_info($user_info[uid]);
     if ($arrAuthInfo) {
         $success = $this->_tab_obj->save($data, array($this->_primary_key => $arrAuthInfo[$this->_primary_key]));
         $this->set_auth_record_status($user_info['uid'], '0');
     } else {
         $success = $this->_tab_obj->save($data);
     }
     if ($success) {
         db_factory::execute(sprintf(" update %switkey_space set truename='%s',idcard='%s' where uid ='%d'", TABLEPRE, $data[realname], $data[id_card], $data[uid]));
         $data['cash'] > 0 and keke_finance_class::cash_out($data['uid'], $data['cash'], $this->_auth_name, $data['cash'], $this->_auth_name, $success);
         $data['start_time'] == $data['end_time'] and $end_time = $data['end_time'] or $end_time = 0;
         $this->add_auth_record($data['uid'], $data['username'], $this->_auth_code, $end_time);
         return true;
     }
     return false;
 }
コード例 #10
0
 public function task_agreement_freeze()
 {
     global $model_list, $_K, $_lang;
     $config = unserialize($model_list[1]['config']);
     $sql = " select a.agree_id,a.agree_status,a.seller_status,a.buyer_status,a.seller_uid,a.buyer_uid,a.task_id,a.on_time,b.task_title from %switkey_agreement a left join %switkey_task b on a.task_id=b.task_id where\n\t\t\t\ta.model_id=1  and b.task_status=6 and a.on_time<'%d'";
     $agree_list = db_factory::query(sprintf($sql, TABLEPRE, TABLEPRE, time() - intval($config['agree_complete_time']) * 24 * 3600));
     if (!empty($agree_list)) {
         $msg_obj = new keke_msg_class();
         foreach ($agree_list as $k => $v) {
             $ginfo = kekezu::get_user_info($v['seller_uid']);
             $winfo = kekezu::get_user_info($v['buyer_uid']);
             db_factory::execute(sprintf(" update %switkey_task set task_status=13 where task_id='%d'", TABLEPRE, $v['task_id']));
             db_factory::execute(sprintf(" update %switkey_agreement set agree_status=5 where agree_id='%d'", TABLEPRE, $v['agree_id']));
             $url = "<a href=\"" . $_K['siteurl'] . '/index.php?do=task&id=' . $v['task_id'] . "\">" . $v['task_title'] . "</a>";
             $v1 = array('动作' => $_lang['agree_g_ac'], '原因' => '由于超时未完成交付已被系统冻结,请尽快联系客服,由客服介入处理', '任务标题' => $url);
             $v2 = array('动作' => $_lang['agree_w_ac'], '原因' => '由于超时未完成交付已被系统冻结,请尽快联系客服,由客服介入处理', '任务标题' => $url);
             $msg_obj->send_message($ginfo['uid'], $ginfo['username'], "task_freeze", '协议交付超时冻结通知', $v1, $ginfo['email'], $ginfo['mobile']);
             $msg_obj->send_message($winfo['uid'], $winfo['username'], "task_freeze", '协议交付超时冻结通知', $v2, $winfo['email'], $winfo['mobile']);
         }
     }
 }
コード例 #11
0
 private function user_charge()
 {
     global $_K;
     global $_lang;
     $uid = $this->_uid;
     $order_id = $this->_order_id;
     $order_id = keke_order_class::update_order_charge($this->_out_trade_no, $this->_total_fee);
     $order_info = db_factory::get_one(sprintf(" select order_status,order_type from %switkey_order_charge where order_id='%d' and uid='%d'", TABLEPRE, $order_id, $uid));
     if ($order_info['order_status'] == 'wait') {
         db_factory::execute(sprintf(" update %switkey_order_charge set order_status='ok' where order_id='%d'", TABLEPRE, $order_id));
         $res = keke_finance_class::cash_in($uid, $this->_total_fee, $order_info['order_type'], $this->_charge_type, 'user_charge', $order_id);
         $v_arr = array($_lang['recharge_account'] => $this->_total_fee);
         keke_shop_class::notify_user($this->_uid, $this->_username, "pay_success", $_lang['online_recharge_success'], $v_arr, 2);
     } else {
         $res = true;
     }
     if ($res) {
         return $this->struct_response($_lang['operate_notice'], $_lang['online_recharge_success'], $url, 'success');
     } else {
         return $this->struct_response($_lang['operate_notice'], $_lang['online_recharge_fail'], $url, 'warning');
     }
 }
コード例 #12
0
 public function alipayjs_success_notify($detail_arr, $status = true)
 {
     global $_lang, $_K;
     $ids = implode(",", array_keys($detail_arr));
     $info = kekezu::get_table_data("withdraw_id,uid,username,withdraw_status,withdraw_cash,pay_username,pay_account", "witkey_withdraw", " withdraw_id in ({$ids})", "", "", "", "withdraw_id");
     foreach ($detail_arr as $k => $v) {
         if ($info[$k]['withdraw_status'] == 1) {
             switch ($v['status']) {
                 case "S":
                     $fee = $info[$k]['withdraw_cash'] - keke_finance_class::get_to_cash($info[$k]['withdraw_cash']);
                     $res = db_factory::execute(sprintf(" update %switkey_withdraw set withdraw_status='2',fee=%.2f where withdraw_id ='%d'", TABLEPRE, $fee, $k));
                     $arr = array($_lang['sitename'] => $_K['sitename'], $_lang['tx_cash'] => $v['fee']);
                     keke_msg_class::notify_user($info[$k]['uid'], $info[$k]['username'], 'draw_success', $_lang['tx_success'], $arr, 2);
                     break;
                 case "F":
                     $res = db_factory::execute(sprintf(" update %switkey_withdraw set withdraw_status='3' where withdraw_id ='%d'", TABLEPRE, $k));
                     $v_arr = array('网站名称' => $_K['sitename'], '提现方式' => $pay_way[$withdraw_info[0]['pay_type']], '失败原因' => '未注明原因', '帐户' => $withdraw_info[0]['pay_account'], '提现金额' => $v['withdraw_cash']);
                     keke_msg_class::notify_user($info[$k]['uid'], $info[$k]['username'], 'withdraw_fail', $_lang['tx_fail'], $v_arr, 2);
                     break;
             }
         }
     }
 }
コード例 #13
0
 public function add_auth($email, $file_name = '')
 {
     global $_K, $user_info, $_lang;
     $data['email'] = $email;
     $data = $this->format_auth_apply($data);
     $data['email'] or kekezu::show_msg($this->auth_lang() . $_lang['apply_submit_fail'], $_SERVER['HTTP_REFERER'], 3, $this->auth_lang() . $_lang['apply_fail_and_info_fail'], 'warning');
     $data['auth_time'] = time();
     $arrAuthInfo = $this->get_user_auth_info($user_info[uid]);
     if ($arrAuthInfo) {
         $success = $this->_tab_obj->save($data, array($this->_primary_key => $arrAuthInfo[$this->_primary_key]));
         $success and $success = $arrAuthInfo[$this->_primary_key];
         $this->set_auth_record_status($user_info['uid'], '0');
     } else {
         $success = $this->_tab_obj->save($data);
     }
     if ($success) {
         if ($this->send_mail($success, $data)) {
             $data['start_time'] == $data['end_time'] and $end_time = $data['end_time'] or $end_time = 0;
             db_factory::execute(" update " . TABLEPRE . "witkey_space set email = '{$data['email']}' where uid = '{$data['uid']}'");
             db_factory::execute(" update " . TABLEPRE . "witkey_member set email = '{$data['email']}' where uid = '{$data['uid']}'");
             return $this->add_auth_record($data['uid'], $data['username'], $this->_auth_code, $end_time);
         }
     }
 }
コード例 #14
0
ファイル: witkey_msg_config.php プロジェクト: pengfeiaaa/web
<?php

$msgConfigsTpl = array('admin_charge' => array('config_id' => '142', 'k' => 'admin_charge', 'obj' => 'manage', 'desc' => '手动充值', 'prompt' => '管理员给用户手动充值时用户会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1421811808', 'content' => '<p>尊敬的 {用户名}:</p><p>&nbsp; 后台管理员{金额动作}您现金{金额},感谢您对{网站名称}网的信任。如有特殊情况,请致电客服,我们将协助您解决问题。</p><p>--------------------------------------------------------------------------------------------------------------------</p><p>此邮件为系统自动发出的邮件,请勿直接回复。</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:后台管理员{金额动作}您现金{金额}', 'mobile' => '0'), 'agreement' => array('config_id' => '81', 'k' => 'agreement', 'obj' => 'task', 'desc' => '协议签署', 'prompt' => '用户中标单人悬赏后,签署协议成功后会收到此通知。(这里有问题,如果是雇主或威客其中一方签订协议,另一方也会收到这条信息,并且内容身份错误)', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1435218234', 'content' => '<p>尊敬的 {用户名}:</p><p>{协议状态}:</p><p>协议链接:{协议链接}</p><p>感谢您对{网站名称}的信任。如有特殊情况,请致电客服</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:{协议状态}:协议链接:{协议链接}', 'mobile' => '1'), 'agreement_file' => array('config_id' => '82', 'k' => 'agreement_file', 'obj' => 'task', 'desc' => '协议文件交付', 'prompt' => '用户发布的单人悬赏,威客方交付了任务时,用户会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1435218234', 'content' => '<p>尊敬的 {用户名}:</p><p>用户{发起者}已经{动作}:</p><p>协议链接:{协议链接}</p><p>协议状态:{协议状态}<br /></p><p>感谢您对{网站名称}的信任。如有特殊情况,请致电客服</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:用户{发起者}已经{动作}:协议链接:{协议链接}协议状态:{协议状态}', 'mobile' => '1'), 'alipayjs_auth' => array('config_id' => '158', 'k' => 'alipayjs_auth', 'obj' => 'auth', 'desc' => '支付宝认证通知', 'prompt' => '后台打款给用户的时候', 'v' => 'a:3:{s:8:"send_sms";i:1;s:10:"send_email";i:1;s:15:"send_mobile_sms";i:1;}', 'on_time' => '1364996161', 'content' => '<p>您申请的支付宝认证已经受理,管理员已经打款到您的账户,请及时查收,并在<a href="index.php?do=user&view=account&op=index&code=alipayjs">确认收款金额</a>中填写您收到的金额数,以便你认证成功!</p>', 'send_type' => '1', 'mobile_content' => '您申请的支付宝认证已经受理,管理员已经打款到您的账户,请及时查收,并在确认收款金额中填写您收到的金额数,以便你认证成功!', 'mobile' => '1'), 'auth_auth_fail' => array('config_id' => '153', 'k' => 'auth_auth_fail', 'obj' => 'auth', 'desc' => '企业认证审核通知', 'prompt' => '用户申请的企业认证未通过审核时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1421811808', 'content' => '<p>尊敬的 {用户名}:您的申请的企业认证未通过审核,未通过审核的原因:{审核原因},感谢您对{网站名称}的信任。如有特殊情况,请致电客服,我们将协助您解决问题。</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您的申请的企业认证未通过审核,未通过审核的原因:{审核原因}', 'mobile' => '0'), 'auth_fail' => array('config_id' => '111', 'k' => 'auth_fail', 'obj' => 'auth', 'desc' => '认证失败', 'prompt' => '当用户认证失败时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1343204483', 'content' => '<p>您的{认证代码}没通过,请到<a href="{认证链接}">认证中心</a>查看详细</p>', 'send_type' => '1', 'mobile_content' => '您的{认证代码}没通过,请到认证中心查看详细', 'mobile' => '0'), 'auth_success' => array('config_id' => '110', 'k' => 'auth_success', 'obj' => 'auth', 'desc' => '认证成功', 'prompt' => '当用户认证成功时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1343204483', 'content' => '<p>您的{认证代码}已通过,请到<a href="{认证链接}">认证中心</a>查看详细</p>', 'send_type' => '1', 'mobile_content' => '您的{认证代码}已通过,请到认证中心查看详细', 'mobile' => '0'), 'auto_choose' => array('config_id' => '87', 'k' => 'auto_choose', 'obj' => 'task', 'desc' => '自动选稿', 'prompt' => '用户参与的计件任务,自动选稿后,用户会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1435218234', 'content' => '<p>尊敬的 {用户名}:</p><p>您参与的任务{任务编号}进行了自动选稿,任务信息:</p><p>任务标题:{任务标题}</p><p>感谢您对{网站名称}的信任。如有特殊情况,请致电客服</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您参与的任务{任务编号}进行了自动选稿', 'mobile' => '1'), 'aut_auth_fail' => array('config_id' => '154', 'k' => 'aut_auth_fail', 'obj' => 'auth', 'desc' => '实名认证审核通知', 'prompt' => '用户申请的实名认证未通过审核时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1421811808', 'content' => '<p>尊敬的 {用户名}:您的申请的实名认证未通过审核,未通过审核的原因:{审核原因},感谢您对{网站名称}的信任。如有特殊情况,请致电客服,我们将协助您解决问题。</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您的申请的实名认证未通过审核,未通过审核的原因:{审核原因}', 'mobile' => '0'), 'bank_auth' => array('config_id' => '109', 'k' => 'bank_auth', 'obj' => 'auth', 'desc' => '银行认证', 'prompt' => '当用户申请进行银行认证时会收到此通知。', 'v' => 'a:1:{s:8:"send_sms";i:1;}', 'on_time' => '1343204483', 'content' => '<p>您申请的银行认证已经受理,管理员已经打款到您的账户,请及时查收,并在<a href="index.php?do=user&view=account&op=index&code=bank">确认收款金额</a>中填写您收到的金额数,以便你认证成功!</p>', 'send_type' => '1', 'mobile_content' => '您申请的银行认证已经受理,管理员已经打款到您的账户,请及时查收,并在确认收款金额中填写您收到的金额数,以便你认证成功!', 'mobile' => '0'), 'dispose_task' => array('config_id' => '101', 'k' => 'dispose_task', 'obj' => 'task', 'desc' => '稿件结算', 'prompt' => '用户参与的计件任务,进行结算环节时,用户会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1335428501', 'content' => '<p>尊敬的 {用户名}:</p><p>您参与的任务已经结束。</p><p>任务编号:{任务编号}</p><p>任务链接:{任务链接}<br /></p><p>感谢您对{网站名称}的信任。如有特殊情况,请致电客服</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您参与的任务已经结束', 'mobile' => '1'), 'draw_success' => array('config_id' => '5', 'k' => 'draw_success', 'obj' => 'found', 'desc' => '提现成功', 'prompt' => '用户提现成功后将会发送此通知。', 'v' => 'a:3:{s:8:"send_sms";i:1;s:10:"send_email";i:1;s:15:"send_mobile_sms";i:1;}', 'on_time' => '1427947128', 'content' => '<p>您在{网站名称}的提现申请已被受理,您的提现金额为{提现金额}元,提现账户:{帐户}请查收!</p>', 'send_type' => '1', 'mobile_content' => '您在{网站名称}的提现申请已被受理,您的提现金额为{提现金额}元,提现账户:{帐户}请查收!', 'mobile' => '1'), 'dtend_amount' => array('config_id' => '155', 'k' => 'dtend_amount', 'obj' => 'task', 'desc' => '雇主已托管赏金', 'prompt' => '用户中标的订金招标任务,雇主托管赏金后用户会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1421811808', 'content' => '<p>您中标的{模型名称}任务<a href="index.php?do=task&id={任务编号}">{任务标题}</a>雇主已成功托管赏金{金额}元</p><p>感谢您对{网站名称}的信任。如有特殊情况,请致电客服</p>', 'send_type' => '1', 'mobile_content' => '您中标的{模型名称}任务{任务标题}雇主已成功托管赏金{金额}元', 'mobile' => '1'), 'freeze' => array('config_id' => '2', 'k' => 'freeze', 'obj' => 'user', 'desc' => '用户冻结', 'prompt' => '当用户的账号被后台冻结后会收到此通知。', 'v' => 'a:3:{s:8:"send_sms";i:1;s:10:"send_email";i:1;s:15:"send_mobile_sms";i:1;}', 'on_time' => '1427947128', 'content' => '<p>尊敬的 {用户名}:</p><p>您的用户已被冻结,感谢您对{网站名称}的信任。如有特殊情况,请致电客服,我们将协助您解决问题。</p><p>--------------------------------------------------------------------------------------------------------------------</p><p>此邮件为系统自动发出的邮件,请勿直接回复。</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您的用户已被冻结', 'mobile' => '1'), 'get_password' => array('config_id' => '100', 'k' => 'get_password', 'obj' => 'user', 'desc' => '密码找回', 'prompt' => '当用户申请找回密码成功时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1364996161', 'content' => '&lt;p&gt;亲爱的用户:&lt;/p&gt;&lt;p&gt;您好!感谢您使用{网站名称},您正在进行邮箱验证,本次请求的验证码为:&lt;/p&gt;&lt;p&gt;{验证码}(为了保障您帐号的安全性,请在1小时内完成验证。)&lt;/p&gt;&lt;p&gt;如有任何疑问,欢迎随时与我们联系,我们将竭诚为您服务!&lt;/p&gt;&lt;p&gt;欢迎继续关注{网站名称}!&lt;/p&gt;&lt;p&gt;祝:&lt;/p&gt;&lt;p&gt;工作学习顺利, 生活愉快!&lt;/p&gt;', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:感谢您对{网站名称}的信任,您的新密码为{密码},支付密码为{安全码},请保护好您的账号', 'mobile' => '1'), 'goods_order' => array('config_id' => '85', 'k' => 'goods_order', 'obj' => 'service', 'desc' => '商品订单提交', 'prompt' => '用户发布的商品,有人进行了下单操作时用户会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1366440936', 'content' => '<p>尊敬的 {用户名}:</p><p>{用户动作}了您的{服务类型}:{服务名称}。</p><p>买家留言:{买家留言}</p><p>感谢您对{网站名称}的信任。如有特殊情况,请致电客服</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:{用户动作}了您的{服务类型}:{服务名称}。买家留言:{买家留言}', 'mobile' => '1'), 'group_set' => array('config_id' => '121', 'k' => 'group_set', 'obj' => 'manage', 'desc' => '分组设置', 'prompt' => '用户被管理员分配权限设置后台分组时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1343204483', 'content' => '<p>尊敬的 {用户名}:管理员{管理员名称}设置了您的后台用户组</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:管理员{管理员名称}设置了您的后台用户组', 'mobile' => '0'), 'gy_notice_to_buyer' => array('config_id' => '150', 'k' => 'gy_notice_to_buyer', 'obj' => 'service', 'desc' => '雇佣通知买家', 'prompt' => '用户成功发起雇佣时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1421811808', 'content' => '<p>尊敬的 {用户名}:</p><p>你对{用户}发出雇佣,{状态变更}</p><p>请尽快前往用户中心处理。</p><p>雇佣信息:雇佣订单编号:{订单编号}</p><p>感谢您对{网站名称}的信任。如有特殊情况,请致电客服</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:你对{用户}发出雇佣,{状态变更}请尽快前往用户中心处理', 'mobile' => '0'), 'gy_notice_to_seller' => array('config_id' => '148', 'k' => 'gy_notice_to_seller', 'obj' => 'service', 'desc' => '雇佣通知卖家', 'prompt' => '用户被雇佣时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1421811808', 'content' => '<p>尊敬的 {用户名}:</p><p>{用户}对你发出雇佣,{状态变更}</p><p>请尽快前往用户中心处理。</p><p>雇佣信息:雇佣订单编号:{订单编号}</p><p>感谢您对{网站名称}的信任。如有特殊情况,请致电客服</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:{用户}对你发出雇佣,{状态变更}请尽快前往用户中心处理', 'mobile' => '0'), 'gy_order_notice' => array('config_id' => '161', 'k' => 'gy_order_notice', 'obj' => 'service', 'desc' => '雇佣订单消息', 'prompt' => '当用户收到雇佣时会收到此通知', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1364996161', 'content' => '&lt;p&gt;尊敬的 {用户名}:&lt;/p&gt;&lt;p&gt;{用户}对您发出雇佣操作:{雇佣订单链接}&lt;/p&gt;&lt;p&gt;感谢您对{网站名称}的信任。&lt;/p&gt;&lt;p&gt;如有特殊情况,请致电客服&lt;/p&gt;', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:{用户}对您发出雇佣操作', 'mobile' => '0'), 'kf_set' => array('config_id' => '123', 'k' => 'kf_set', 'obj' => 'manage', 'desc' => '客服设置', 'prompt' => '用户被管理员设置为客服时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1343204483', 'content' => '<p>尊敬的 {用户名}:管理员{管理员名}设置了您为客服</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:管理员{管理员名}设置了您为客服', 'mobile' => '0'), 'match_task' => array('config_id' => '102', 'k' => 'match_task', 'obj' => 'task', 'desc' => '速配任务', 'prompt' => '雇主发布的速配任务被抢标时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1335428501', 'content' => '<p>尊敬的 {用户名}:{描述}。</p><p>任务标题:{任务标题}。</p><p>感谢您对{网站名称}的信任。如有特殊情况,请致电客服</p><br />', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:{描述}。任务标题:{任务标题}', 'mobile' => '1'), 'order_change' => array('config_id' => '88', 'k' => 'order_change', 'obj' => 'service', 'desc' => '订单状态变更', 'prompt' => '威客发布的商品服务被购买过程中,状态改变时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1402106715', 'content' => '<p>尊敬的 {用户名}:</p><p>{用户}{动作},请尽快前往用户中心处理,订单信息:</p><p>订单编号:{订单编号}</p><p>订单链接:{订单链接}</p><p>感谢您对{网站名称}的信任。如有特殊情况,请致电客服</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:{用户}{动作},请尽快前往用户中心处理', 'mobile' => '1'), 'order_create' => array('config_id' => '156', 'k' => 'order_create', 'obj' => 'service', 'desc' => '创建订单', 'prompt' => '威客发布的商品服务被购买会收到此通知。', 'v' => 'a:3:{s:8:"send_sms";i:1;s:10:"send_email";i:1;s:15:"send_mobile_sms";i:1;}', 'on_time' => '1364996161', 'content' => '<p>尊敬的 {用户名}:</p><p>您的{商品模型名称}{商品标题}</p><p>购买者:{用户},&nbsp;&nbsp;&nbsp;订单详情:{订单链接}</p><p>感谢您对{网站名称}的信任。如有特殊情况,请致电客服</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您的{商品模型名称}{商品标题}购买者:{用户}', 'mobile' => '0'), 'pay_fail' => array('config_id' => '4', 'k' => 'pay_fail', 'obj' => 'found', 'desc' => '支付失败', 'prompt' => '用户支付失败后将会发送此通知。', 'v' => 'a:3:{s:8:"send_sms";i:1;s:10:"send_email";i:1;s:15:"send_mobile_sms";i:1;}', 'on_time' => '1427947128', 'content' => '<p>尊敬的 {用户名}:您充值{充值金额}元业务失败,感谢您对{网站名称}的信任。如有特殊情况,请致电客服,我们将协助您解决问题。sad</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您充值{充值金额}元业务失败', 'mobile' => '0'), 'pay_success' => array('config_id' => '3', 'k' => 'pay_success', 'obj' => 'found', 'desc' => '支付成功', 'prompt' => '用户成功支付后将会发送此通知。', 'v' => 'a:3:{s:8:"send_sms";i:1;s:10:"send_email";i:1;s:15:"send_mobile_sms";i:1;}', 'on_time' => '1427947128', 'content' => '<p>尊敬的 {用户名}:</p><p>您成功充值{充值金额}元,感谢您对{网站名称}的信任。如有特殊情况,请致电客服,我们将协助您解决问题。</p><p>--------------------------------------------------------------------------------------------------------------------</p><p>此邮件为系统自动发出的邮件,请勿直接回复。</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您成功充值{充值金额}元', 'mobile' => '0'), 'plan_confirm_pay' => array('config_id' => '117', 'k' => 'plan_confirm_pay', 'obj' => 'task', 'desc' => '计划确认付款', 'prompt' => '用户发布的任务,威客已经完成计划第N阶段时,用户会收到此通知', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1343204483', 'content' => '<p>您的{模型名称}任务<a href="index.php?do=task&id={任务编号}">{任务标题}</a>中标者已完成第{几}阶段计划,请确认及付款</p>', 'send_type' => '1', 'mobile_content' => '您的{模型名称}任务{任务标题}中标者已完成第{几}阶段计划,请确认及付款', 'mobile' => '0'), 'plan_haved_pay' => array('config_id' => '120', 'k' => 'plan_haved_pay', 'obj' => 'task', 'desc' => '计划已经付款', 'prompt' => '用户承接的订金招标任务,雇主已经确认付款时用户会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1343204483', 'content' => '<p>您在{模型名称}任务<a href="index.php?do=task&id={任务编号}">{任务标题}</a>中,您的第{几}阶段计划已得到雇主确认,对方已付款,您获得了{金额}元,请注意查收</p>', 'send_type' => '1', 'mobile_content' => '您在{模型名称}任务{任务标题}中,您的第{几}阶段计划已得到雇主确认,对方已付款,您获得了{金额}元,请注意查收', 'mobile' => '0'), 'prom_succes' => array('config_id' => '114', 'k' => 'prom_succes', 'obj' => 'prom', 'desc' => '推广成功', 'prompt' => '当用户成功进行了一次推广时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1343204483', 'content' => '<p>您的下线:{推广用户名},{事件}。</p><p>您获得了推广金额:{推广金额}元</p>', 'send_type' => '1', 'mobile_content' => '您的下线:{推广用户名},{事件}。您获得了推广金额:{推广金额}元', 'mobile' => '0'), 'recharge_fail' => array('config_id' => '7', 'k' => 'recharge_fail', 'obj' => 'found', 'desc' => '充值失败', 'prompt' => '用户充值失败后将会发送此通知。', 'v' => 'a:3:{s:8:"send_sms";i:1;s:10:"send_email";i:1;s:15:"send_mobile_sms";i:1;}', 'on_time' => '1427947128', 'content' => '<p>尊敬的 {用户名}:</p><p>您的单号为:{充值单号}的充值受理失败,感谢您对{网站名称}的信任。如有特殊情况,请致电客服,我们将协助您解决问题。</p><p>--------------------------------------------------------------------------------------------------------------------</p><p>此邮件为系统自动发出的邮件,请勿直接回复。</p><br />', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您的单号为:{充值单号}的充值受理失败', 'mobile' => '1'), 'recharge_success' => array('config_id' => '6', 'k' => 'recharge_success', 'obj' => 'found', 'desc' => '充值成功', 'prompt' => '用户充值成功后将会发送此通知。', 'v' => 'a:3:{s:8:"send_sms";i:1;s:10:"send_email";i:1;s:15:"send_mobile_sms";i:1;}', 'on_time' => '1427947128', 'content' => '<p>尊敬的 {用户名}:</p><p>您的单号为:{充值单号}的充值受理成功,充值金额:{充值金额}元,感谢您对{网站名称}的信任。如有特殊情况,请致电客服,我们将协助您解决问题。</p><p>--------------------------------------------------------------------------------------------------------------------</p><p>此邮件为系统自动发出的邮件,请勿直接回复。</p><br />', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您的单号为:{充值单号}的充值受理成功,充值金额:{充值金额}元', 'mobile' => '1'), 'reg' => array('config_id' => '1', 'k' => 'reg', 'obj' => 'user', 'desc' => '注册成功', 'prompt' => '当用户注册成功后将会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1427947128', 'content' => '<p>尊敬的 {用户名}:</p><p>&nbsp;感谢您对{网站名称}的信任,当您收到这封信的时候,您已经成功注册为{网站名称}会员。在这里,您可以感受到诚信、活泼、高效的网络交易文化。</p><p>如有任何疑问,欢迎随时与我们联系,我们将竭诚为您服务!<br/>&nbsp;&nbsp;&nbsp;  欢迎继续关注{网站名称}!</p><p>&nbsp;&nbsp;&nbsp; 祝:</p><p> &nbsp; 工作学习顺利, 生活愉快!</p><p>{网站名称}客服中心</p><p>--------------------------------------------------------------------------------------------------------------------</p><p>此邮件为系统自动发出的邮件,请勿直接回复。fff</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您已经成功注册为{网站名称}会员', 'mobile' => '1'), 'reported_nopass' => array('config_id' => '138', 'k' => 'reported_nopass', 'obj' => 'trans', 'desc' => '被举报不成立', 'prompt' => '用户被举报,管理员确认不成立时收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1366440944', 'content' => '<p>尊敬的 {用户名}:</p><p>您被网站用户举报的{交易维权编号}的{交易维权名称}记录网站确认为不成立,处理结果为:</p><p>{处理结果}</p><p>感谢您对{网站名称}的信任。如有特殊情况,请致电客服</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您被网站用户举报的{交易维权编号}的{交易维权名称}记录网站确认为不成立,处理结果为:{处理结果}', 'mobile' => '0'), 'reported_pass' => array('config_id' => '139', 'k' => 'reported_pass', 'obj' => 'trans', 'desc' => '被举报成立', 'prompt' => '用户被举报,管理员确认成立时收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1366440944', 'content' => '<p>尊敬的 {用户名}:</p><p>您被网站用户举报的{交易维权编号}的{交易维权名称}记录网站已经受理完成,{交易维权名称}处理结果为:{处理结果}</p><p>感谢您对{网站名称}的信任。如有特殊情况,请致电客服</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您被网站用户举报的{交易维权编号}的{交易维权名称}记录网站已经受理完成,{交易维权名称}处理结果为:{处理结果}', 'mobile' => '0'), 'report_notice' => array('config_id' => '145', 'k' => 'report_notice', 'obj' => 'user', 'desc' => '举报通知', 'prompt' => '用户发布的任务/作品/服务被其他用户举报时会收到此通知', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1421811808', 'content' => '<p>尊敬的{用户名}:您发布的{模型名称}{类型}{标题}被其他用户举报!</p><p>感谢您对{网站名称}的信任。如有特殊情况,请致电客服,我们将协助您解决问题。</p>--------------------------------------------------------------------------------------------------------------------</p><p>此邮件为系统自动发出的邮件,请勿直接回复。</p>', 'send_type' => '1', 'mobile_content' => '尊敬的{用户名}:您发布的{模型名称}{类型}{标题}被其他用户举报', 'mobile' => '0'), 'reward_cash_trust' => array('config_id' => '118', 'k' => 'reward_cash_trust', 'obj' => 'task', 'desc' => '诚意金托管', 'prompt' => '用户成功托管任务赏金时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1343204483', 'content' => '<p>您在发布的{模型名称}任务<a href="index.php?do=task&id={任务编号}">{任务标题}</a>已成功托管赏金{金额}元</p><p>您可以去<a href="index.php?do=user&view=finance">财务中心账目明细中查看</a><p>', 'send_type' => '1', 'mobile_content' => '您在发布的{模型名称}任务{任务标题}已成功托管赏金{金额}元您可以去财务中心账目明细中查看', 'mobile' => '0'), 'select' => array('config_id' => '160', 'k' => 'select', 'obj' => 'task', 'desc' => '红包任务', 'prompt' => '当用户完成任务时会收到此通知', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1364996161', 'content' => '<p>您的红包任务{红包任务}已完成,你得到金额{红包金额}元</p>', 'send_type' => '1', 'mobile_content' => '您的红包任务{红包任务}已完成,你得到金额{红包金额}元', 'mobile' => '0'), 'service_auth_fail' => array('config_id' => '152', 'k' => 'service_auth_fail', 'obj' => 'service', 'desc' => '服务审核通知', 'prompt' => '用户发布的服务未通过审核时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1421811808', 'content' => '<p>尊敬的 {用户名}:您的发布的服务 {作品标题} 未通过审核,未通过审核的原因:{审核原因},感谢您对{网站名称}的信任。如有特殊情况,请致电客服,我们将协助您解决问题。</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您的发布的服务 {作品标题} 未通过审核,未通过审核的原因:{审核原因}', 'mobile' => '0'), 'service_order' => array('config_id' => '84', 'k' => 'service_order', 'obj' => 'service', 'desc' => '服务订单提交', 'prompt' => '当用户提交了一个服务订单时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1402106715', 'content' => '<div style="top: 0px;">尊敬的 {用户名}:</div><p>{用户动作}了您的{服务类型}:{服务名称}。</p><p>&nbsp;订单详情:{订单链接}</p><p>感谢您对{网站名称}的信任。如有特殊情况,请致电客服</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:{用户动作}了您的{服务类型}:{服务名称}', 'mobile' => '1'), 'service_pub' => array('config_id' => '83', 'k' => 'service_pub', 'obj' => 'service', 'desc' => '服务发布', 'prompt' => '当用户发布了一个服务时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1402106715', 'content' => '<p>尊敬的 {用户名}:</p><p>您的{服务类型}已发布成功。{服务类型}信息:</p><p>{服务类型}链接:{商品链接}</p><p><em><strong>发布时间:{发布时间}</strong></em><br /></p><p>{服务类型}状态:{商品状态}<br /></p><p>感谢您对{网站名称}的信任。如有特殊情况,请致电客服</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您的{服务类型}已发布成功', 'mobile' => '1'), 'suggest_reply' => array('config_id' => '137', 'k' => 'suggest_reply', 'obj' => 'user', 'desc' => '建议反馈', 'prompt' => '用户成功提交建议反馈时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1366440944', 'content' => '<p>亲爱的{用户名}:</p><p>标题:您的建议"{用户标题}"收到了来自管理员的回复</p><p>您建议的内容:{建议内容}</p><p>管理员回复:{回复内容}<br /></p><p>&nbsp;{网站名称}<br /></p>', 'send_type' => '1', 'mobile_content' => '亲爱的{用户名}:标题:您的建议"{用户标题}"收到了来自管理员的回复您建议的内容:{建议内容}管理员回复:{回复内容}', 'mobile' => '0'), 'task_auth_fail' => array('config_id' => '11', 'k' => 'task_auth_fail', 'obj' => 'task', 'desc' => '任务审核失败', 'prompt' => '用户发布的任务没有通过后台审核时会收到此通知。', 'v' => 'a:3:{s:8:"send_sms";i:1;s:10:"send_email";i:1;s:15:"send_mobile_sms";i:1;}', 'on_time' => '1435218234', 'content' => '<p>尊敬的 {用户名}:您的发布的任务 {任务标题} 未通过审核,未通过审核的原因:{审核原因},感谢您对{网站名称}的信任。如有特殊情况,请致电客服,我们将协助您解决问题。</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您的发布的任务 {任务标题} 未通过审核,未通过审核的原因:{审核原因}', 'mobile' => '1'), 'task_auth_success' => array('config_id' => '12', 'k' => 'task_auth_success', 'obj' => 'task', 'desc' => '审核通过', 'prompt' => '用户发布的任务通过后台审核时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1435218234', 'content' => '<p>尊敬的 {用户名}:您的发布的任务已通过审核,感谢您对{网站名称}的信任。如有特殊情况,请致电客服,我们将协助您解决问题。任务编号:{任务编号}</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您的发布的任务已通过审核', 'mobile' => '1'), 'task_bid' => array('config_id' => '10', 'k' => 'task_bid', 'obj' => 'task', 'desc' => '任务中标', 'prompt' => '用户投标被雇主采纳将会收到此通知。', 'v' => 'a:3:{s:8:"send_sms";i:1;s:10:"send_email";i:1;s:15:"send_mobile_sms";i:1;}', 'on_time' => '1435218234', 'content' => '<p>尊敬的 {用户名}:</p><p>&nbsp; 您的稿件被雇主{稿件状态},感谢您对{网站名称}网的信任。如有特殊情况,请致电客服,我们将协助您解决问题。</p><p>任务编号:{任务编号}</p><p>任务标题:{任务标题}中标金额:{中标金额}</p><p>--------------------------------------------------------------------------------------------------------------------</p><p>此邮件为系统自动发出的邮件,请勿直接回复。</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您的稿件被雇主{稿件状态}', 'mobile' => '1'), 'task_complete' => array('config_id' => '134', 'k' => 'task_complete', 'obj' => 'task', 'desc' => '任务完成', 'prompt' => '用户发布的任务,确认完成后,会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1366440944', 'content' => '<p>您发布的{模型名称}任务<a href="index.php?do=task&id={任务编号}">{任务标题}</a>{理由}<p>', 'send_type' => '1', 'mobile_content' => '您发布的{模型名称}任务{任务标题}{理由}', 'mobile' => '0'), 'task_edit' => array('config_id' => '116', 'k' => 'task_edit', 'obj' => 'task', 'desc' => '管理员编辑任务', 'prompt' => '当用户的任务被管理员编辑后会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1343204483', 'content' => '<p>管理员{管理员名称}在{时间}成功编辑了您的{模型名称}任务<a href="index.php?do=task&id={任务编号}">{任务标题}</a>请注意查看</p>', 'send_type' => '1', 'mobile_content' => '管理员{管理员名称}在{时间}成功编辑了您的{模型名称}任务{任务标题}请注意查看', 'mobile' => '0'), 'task_end_manually' => array('config_id' => '157', 'k' => 'task_end_manually', 'obj' => 'task', 'desc' => '任务结束通知', 'prompt' => '管理员后台手动结束任务时用户会收到此通知。', 'v' => 'a:3:{s:8:"send_sms";i:1;s:10:"send_email";i:1;s:15:"send_mobile_sms";i:1;}', 'on_time' => '1364996161', 'content' => '<p>您发布的{模型名称}任务{任务标题}被管理员手动结束,原因:{理由}<p>', 'send_type' => '1', 'mobile_content' => '您发布的{模型名称}任务{任务标题}被管理员手动结束,原因:{理由}', 'mobile' => '0'), 'task_fail' => array('config_id' => '127', 'k' => 'task_fail', 'obj' => 'task', 'desc' => '任务失败', 'prompt' => '用户发布的任务因某些原因失败时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1343204483', 'content' => '<p>您发布的{模型名称}任务<a href="index.php?do=task&id={任务编号}">{任务标题}</a>因{理由}已经失败。</p>', 'send_type' => '1', 'mobile_content' => '您发布的{模型名称}任务{任务标题}因{理由}已经失败。', 'mobile' => '0'), 'task_freeze' => array('config_id' => '13', 'k' => 'task_freeze', 'obj' => 'task', 'desc' => '任务冻结', 'prompt' => '用户发布的任务被管理员冻结时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1435218234', 'content' => '<p>尊敬的 {用户名}:</p><p>您的任务<a href="index.php?do=task&id={任务编号}">{任务标题}</a>已被{原因},感谢您对{网站名称}的信任。如有特殊情况,请致电客服,我们将协助您解决问题。</p><p>--------------------------------------------------------------------------------------------------------------------</p><p>此邮件为系统自动发出的邮件,请勿直接回复。</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您的任务{任务标题}已被{原因}', 'mobile' => '1'), 'task_hand' => array('config_id' => '15', 'k' => 'task_hand', 'obj' => 'task', 'desc' => '任务交稿', 'prompt' => '当用户发布的任务,有威客投稿时会收到此通知。', 'v' => 'a:3:{s:8:"send_sms";i:1;s:10:"send_email";i:1;s:15:"send_mobile_sms";i:1;}', 'on_time' => '1435218234', 'content' => '<p>尊敬的 {用户名}:</p><p>{用户}向{称谓}的{任务标题}提交了稿件。</p><p>感谢您对{网站名称}的信任。如有特殊情况,请致电客服</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:{用户}向{称谓}的{任务标题}提交了稿件', 'mobile' => '1'), 'task_jf' => array('config_id' => '126', 'k' => 'task_jf', 'obj' => 'task', 'desc' => '任务交付', 'prompt' => '用户接受的任务,雇主方已经托管赏金后会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1343204483', 'content' => '<p>您参与的{模型名称}任务<a href="index.php?do=task&id={任务编号}">{任务标题}</a>,雇主{雇主名称}已成功托管任务赏金{金额}元,请尽快完成任务计划</p>', 'send_type' => '1', 'mobile_content' => '您参与的{模型名称}任务{任务标题},雇主{雇主名称}已成功托管任务赏金{金额}元,请尽快完成任务计划', 'mobile' => '0'), 'task_over' => array('config_id' => '119', 'k' => 'task_over', 'obj' => 'task', 'desc' => '任务圆满结束', 'prompt' => '用户发布的任务已经完全完成后会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1343204483', 'content' => '<p>您发布的{模型名称}任务<a href="index.php?do=task&id={任务编号}">{任务标题}</a>已圆满结束,感谢您对本站的支持!</p>', 'send_type' => '1', 'mobile_content' => '您发布的{模型名称}任务{任务标题}已圆满结束', 'mobile' => '0'), 'task_pub' => array('config_id' => '9', 'k' => 'task_pub', 'obj' => 'task', 'desc' => '任务发布', 'prompt' => '用户成功发布一个任务后将会收到此通知。', 'v' => 'a:3:{s:8:"send_sms";i:1;s:10:"send_email";i:1;s:15:"send_mobile_sms";i:1;}', 'on_time' => '1435218234', 'content' => '<p>尊敬的 {用户名}:</p><p>您的任务{任务编号}{任务标题}{任务状态},感谢您对{网站名称}的信任。如有特殊情况,请致电客服,我们将协助您解决问题。</p><p>任务编号:{任务编号}</p><p>任务标题:{任务链接}</p><p>任务状态:{任务状态}</p><p>开始时间:{开始时间}</p><p>投稿结束时间:{投稿结束时间}</p><p>选稿结束时间:{选稿结束时间}</p><p>--------------------------------------------------------------------------------------------------------------------</p><p>此邮件为系统自动发出的邮件,请勿直接回复。</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您的任务{任务编号}{任务标题}{任务状态}', 'mobile' => '1'), 'task_sign' => array('config_id' => '14', 'k' => 'task_sign', 'obj' => 'task', 'desc' => '任务报名', 'prompt' => '用户发布的任务有人报名后会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1435218234', 'content' => '<p>尊敬的 {用户名}:</p><p>{用户}报名了{称谓}的{任务标题}。</p><p>感谢您对{网站名称}的信任。如有特殊情况,请致电客服</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:{用户}报名了{称谓}的{任务标题}', 'mobile' => '1'), 'task_unbid' => array('config_id' => '108', 'k' => 'task_unbid', 'obj' => 'task', 'desc' => '稿件淘汰', 'prompt' => '当用户投标的稿件被雇主淘汰时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1343204483', 'content' => '<p>尊敬的 {用户名}:</p><p>您参与的任务:{任务标题}的任务稿件,已被雇主淘汰,感谢您对{网站名称}网的信任。如有特殊情况,请致电客服,我们将协助您解决问题。</p><p>任务编号:{任务编号}</p><p>--------------------------------------------------------------------------------------------------------------------</p><p>此邮件为系统自动发出的邮件,请勿直接回复。</p><br />', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您参与的任务:{任务标题}的任务稿件,已被雇主淘汰', 'mobile' => '1'), 'task_unfrize' => array('config_id' => '136', 'k' => 'task_unfrize', 'obj' => 'task', 'desc' => '任务解冻', 'prompt' => '用户发布的任务被管理员解冻时会收到此通知', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1366440944', 'content' => '<p>尊敬的 {用户名}:</p><p>您的任务<a href="index.php?do=task&id={任务编号}">{任务标题}</a>已被{原因},感谢您对{网站名称}的信任。如有特殊情况,请致电客服,我们将协助您解决问题。</p><p>--------------------------------------------------------------------------------------------------------------------</p><p>此邮件为系统自动发出的邮件,请勿直接回复。</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您的任务{任务标题}已被{原因}', 'mobile' => '0'), 'timeout' => array('config_id' => '122', 'k' => 'timeout', 'obj' => 'task', 'desc' => '过期', 'prompt' => '用户发布的投标任务结束了投标期后会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1343204483', 'content' => '<p>您发布的{模型名称}任务<a href="index.php?do=task&id={任务编号}">{任务标题}</a>{投标}期已过,任务在自动进入下一阶段', 'send_type' => '1', 'mobile_content' => '您发布的{模型名称}任务{任务标题}{投标}期已过,任务在自动进入下一阶段', 'mobile' => '0'), 'transrights_accept' => array('config_id' => '18', 'k' => 'transrights_accept', 'obj' => 'trans', 'desc' => '交易维权受理', 'prompt' => '当网站受理了用户的交易维权时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1366440916', 'content' => '<p>尊敬的 {用户名}:</p><p>与您相关的编号为{交易维权编号}的{交易维权名称}记录网站确已经受理,相应{交易维权类型}{交易维权对象}已被{动作}。</p><p>感谢您对{网站名称}的信任。如有特殊情况,请致电客服</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:与您相关的编号为{交易维权编号}的{交易维权名称}记录网站确已经受理,相应{交易维权类型}{交易维权对象}已被{动作}', 'mobile' => '1'), 'transrights_freeze' => array('config_id' => '19', 'k' => 'transrights_freeze', 'obj' => 'trans', 'desc' => '交易维权冻结', 'prompt' => '当网站冻结了用户的交易维权申请时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1366440916', 'content' => '<p>尊敬的 {用户名}:</p><p>由{发起方}对{交易维权对象}发起的维权记录已经提交成功,相应{交易维权类型}已被冻结,请等待网站受理。提交原因:</p><p>{提交原因}<br /></p><p>感谢您对{网站名称}的信任。如有特殊情况,请致电客服</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:由{发起方}对{交易维权对象}发起的维权记录已经提交成功,相应{交易维权类型}已被冻结,请等待网站受理。提交原因:{提交原因}', 'mobile' => '1'), 'transrights_nopass' => array('config_id' => '17', 'k' => 'transrights_nopass', 'obj' => 'trans', 'desc' => '交易维权不成立', 'prompt' => '当用户发起的交易维权被后台确认不成立时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1366440916', 'content' => '<p>尊敬的 {用户名}:</p><p>您举报的{交易维权编号}的{交易维权名称}记录网站确认为不成立,处理结果为:</p><p>{处理结果}</p><p>感谢您对{网站名称}的信任。如有特殊情况,请致电客服</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您举报的{交易维权编号}的{交易维权名称}记录网站确认为不成立,处理结果为:{处理结果}', 'mobile' => '0'), 'transrights_pass' => array('config_id' => '16', 'k' => 'transrights_pass', 'obj' => 'trans', 'desc' => '交易维权成立', 'prompt' => '当用户发起的交易维权被后台确认成立时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1366440916', 'content' => '<p>尊敬的 {用户名}:</p><p>您举报的{交易维权编号}的{交易维权名称}记录网站已经受理完成,{交易维权名称}处理结果为:</p><p>{处理结果}</p><p>感谢您对{网站名称}的信任。如有特殊情况,请致电客服</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您举报的{交易维权编号}的{交易维权名称}记录网站已经受理完成,{交易维权名称}处理结果为:{处理结果}', 'mobile' => '0'), 'unfreeze' => array('config_id' => '99', 'k' => 'unfreeze', 'obj' => 'user', 'desc' => '用户解冻', 'prompt' => '当用户的账号被后台解冻后会收到此通知。', 'v' => 'a:3:{s:8:"send_sms";i:1;s:10:"send_email";i:1;s:15:"send_mobile_sms";i:1;}', 'on_time' => '1364996161', 'content' => '<p>尊敬的 {用户名}:</p><p>您的用户已被解封,感谢您对{网站名称}的信任。如有特殊情况,请致电客服,我们将协助您解决问题。</p><p>--------------------------------------------------------------------------------------------------------------------</p><p>此邮件为系统自动发出的邮件,请勿直接回复。</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您的用户已被解封', 'mobile' => '1'), 'update_password' => array('config_id' => '21', 'k' => 'update_password', 'obj' => 'safe', 'desc' => '更新密码', 'prompt' => '当用户修改了登陆密码时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1322020124', 'content' => '<p>尊敬的 {用户名}:</p><p>您的密码已经修改,新密码是:<u>({新密码})</u>,感谢您对{网站名称}的信任。如有特殊情况,请致电客服,我们将协助您解决问题。</p><p>--------------------------------------------------------------------------------------------------------------------</p><p>此邮件为系统自动发出的邮件,请勿直接回复。</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您的密码已经修改,新密码是:({新密码})', 'mobile' => '1'), 'update_sec_code' => array('config_id' => '20', 'k' => 'update_sec_code', 'obj' => 'safe', 'desc' => '支付密码变更', 'prompt' => '当用户修改了支付密码时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1366440916', 'content' => '<p>尊敬的 {用户名}:</p><p>您的支付密码修改成功,您的新支付密码为:{支付密码}。感谢您对{网站名称}的信任。如有特殊情况,请致电客服,我们将协助您解决问题。</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您的支付密码修改成功,您的新支付密码为:{支付密码}', 'mobile' => '1'), 'withdraw_fail' => array('config_id' => '113', 'k' => 'withdraw_fail', 'obj' => 'finance', 'desc' => '提现失败', 'prompt' => '当用户提现失败时会收到此通知。', 'v' => 'a:1:{s:8:"send_sms";i:1;}', 'on_time' => '1343204483', 'content' => '<p>您在{网站名称}通过{提现方式}提现,提现账户:{帐户},提现金额{提现金额}元,提现审核未通过</p>', 'send_type' => '1', 'mobile_content' => '您在{网站名称}通过{提现方式}提现,提现账户:{帐户},提现金额{提现金额}元,提现审核未通过', 'mobile' => '0'), 'work_out' => array('config_id' => '141', 'k' => 'work_out', 'obj' => 'task', 'desc' => '稿件淘汰', 'prompt' => '用户发布稿件被雇主淘汰时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1366440936', 'content' => '<p>尊敬的 {用户名}:</p><p>&nbsp; 您的稿件被雇主{稿件状态},感谢您对{网站名称}网的信任。如有特殊情况,请致电客服,我们将协助您解决问题。</p><p>任务编号:{任务编号}</p><p>任务标题:{任务标题}</p><p>--------------------------------------------------------------------------------------------------------------------</p><p>此邮件为系统自动发出的邮件,请勿直接回复。</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您的稿件被雇主{稿件状态}', 'mobile' => '0'), 'work_rw' => array('config_id' => '140', 'k' => 'work_rw', 'obj' => 'task', 'desc' => '稿件入围', 'prompt' => '用户发布稿件被雇主选中入围时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1366440944', 'content' => '<p>尊敬的 {用户名}:</p><p>&nbsp; 您的稿件被雇主{稿件状态},感谢您对{网站名称}网的信任。如有特殊情况,请致电客服,我们将协助您解决问题。</p><p>任务编号:{任务编号}</p><p>任务标题:{任务标题}</p><p>--------------------------------------------------------------------------------------------------------------------</p><p>此邮件为系统自动发出的邮件,请勿直接回复。</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您的稿件被雇主{稿件状态}', 'mobile' => '0'), 'zp_auth_fail' => array('config_id' => '151', 'k' => 'zp_auth_fail', 'obj' => 'service', 'desc' => '作品审核通知', 'prompt' => '用户发布的作品未通过审核时会收到此通知。', 'v' => 'a:2:{s:8:"send_sms";i:1;s:10:"send_email";i:1;}', 'on_time' => '1421811808', 'content' => '<p>尊敬的 {用户名}:您的发布的作品 {作品标题} 未通过审核,未通过审核的原因:{审核原因},感谢您对{网站名称}的信任。如有特殊情况,请致电客服,我们将协助您解决问题。</p>', 'send_type' => '1', 'mobile_content' => '尊敬的 {用户名}:您的发布的作品 {作品标题} 未通过审核,未通过审核的原因:{审核原因}', 'mobile' => '0'));
$msgConfigsTplKeys = array_keys($msgConfigsTpl);
$tables = db_factory::query("SHOW TABLES LIKE '" . TABLEPRE . "witkey_msg_tpl'");
if ($tables[0]) {
    $msgLists = db_factory::query("SELECT * FROM `" . TABLEPRE . "witkey_msg_tpl` WHERE send_type != '2'   ORDER BY tpl_code ASC");
    if ($msgLists) {
        foreach ($msgLists as $k => $v) {
            $sql = "UPDATE `" . TABLEPRE . "witkey_msg_config` SET `send_type`='{$v['send_type']}' ,`content`='{$v['content']}'  WHERE k='{$v['tpl_code']}'";
            db_factory::execute($sql);
        }
    }
}
$smsLists = db_factory::get_table_data('*', 'witkey_msg_config', null, ' k asc ', null, null, 'k', 0);
$smsListsKeys = array_keys($smsLists);
if ($smsLists) {
    foreach ($smsLists as $k => $v) {
        if (in_array($k, $msgConfigsTplKeys)) {
            $setsqlarr = array();
            $setsqlarr['content'] = $v['content'] ? str_replace(array('<p></p>', '<p><br/></p>', '<p><br /></p>'), array('', '', ''), htmlspecialchars_decode($v['content'])) : '';
            $setsqlarr['content'] = $v['content'] ? str_replace(array('task_id='), array('id='), $v['content']) : $v['content'];
            $setsqlarr['mobile_content'] = $v['mobile_content'] ? str_replace(array('<p></p>', '<p><br/></p>', '<p><br /></p>'), array('', '', ''), htmlspecialchars_decode($v['mobile_content'])) : '';
            if (!$setsqlarr['content']) {
                $setsqlarr['content'] = $msgConfigsTpl[$k]['content'];
            }
            if (!$setsqlarr['mobile_content']) {
                $setsqlarr['mobile_content'] = $msgConfigsTpl[$k]['mobile_content'];
            }
            $wheresqlarr = array();
            $wheresqlarr['config_id'] = $v['config_id'];
コード例 #15
0
ファイル: keke_order_class.php プロジェクト: pengfeiaaa/web
 public static function update_fina_order($fina_id, $order_id)
 {
     return db_factory::execute(sprintf(" update %switkey_finance set order_id = '%d' where fina_id = '%d'", TABLEPRE, $order_id, $fina_id));
 }
コード例 #16
0
ファイル: keke_prom_class.php プロジェクト: pengfeiaaa/web
 function set_relation_status($relation_id, $status)
 {
     return db_factory::execute(" update " . TABLEPRE . "witkey_prom_relation set relation_status ='{$status}' where relation_id ='{$relation_id}'");
 }
コード例 #17
0
 public static function updateRegionConfig($k, $v)
 {
     $result = db_factory::get_one("SELECT * FROM `" . TABLEPRE . "witkey_basic_config` WHERE k ='{$k}'");
     if (!$result) {
         $sql = "INSERT INTO `" . TABLEPRE . "witkey_basic_config` (`k`, `v`) VALUES ('{$k}', '{$v}')";
     } else {
         $sql = "UPDATE `" . TABLEPRE . "witkey_basic_config` SET `v`='{$v}' WHERE (`k`='{$k}')";
     }
     return db_factory::execute($sql);
 }
コード例 #18
0
ファイル: message_outbox.php プロジェクト: huangbinzd/kppwGit
                    list($intMsgId, $intStatus) = explode(',', $v);
                    if ($intStatus == 0) {
                        db_factory::execute("update " . TABLEPRE . "witkey_msg set msg_status=1 where msg_id = " . intval($intMsgId));
                    } else {
                        $objMsgT->del('msg_id', intval($intMsgId));
                    }
                }
                kekezu::show_msg('删除成功', $strUrl, NULL, NULL, 'ok');
            } else {
                kekezu::show_msg('删除失败', NULL, NULL, NULL, 'error');
            }
            break;
        case 'delSingle':
            if ($objId) {
                if ($msgStatus == 0) {
                    db_factory::execute("update " . TABLEPRE . "witkey_msg set msg_status=1 where msg_id = " . intval($objId));
                } else {
                    $objMsgT->del('msg_id', intval($objId));
                }
                kekezu::show_msg('删除成功', $strUrl, NULL, NULL, 'ok');
            } else {
                kekezu::show_msg('删除失败', NULL, NULL, NULL, 'error');
            }
            break;
    }
} else {
    $strWhere = " msg_status<>1 and uid = " . intval($gUid);
    $page and $intPage = intval($page);
    $intPage = intval($intPage) ? $intPage : 1;
    $intPagesize = intval($intPagesize) ? $intPagesize : 10;
    $strWhere .= " order by msg_id desc";
コード例 #19
0
 static function update_ad($ad_info)
 {
     global $_K, $kekezu;
     if (SYS_START_TIME - intval($ad_info['on_time']) > $_K['timespan']) {
         db_factory::execute(sprintf('update %switkey_ad set on_time  = %s where ad_id = %d', TABLEPRE, time() + $_K['timespan'], $ad_info['ad_id']));
         db_factory::execute(sprintf("update %switkey_ad set is_allow='0' where ad_id='%d' and  end_time>0 and end_time<%d", TABLEPRE, $ad_info['ad_id'], time()));
     }
 }
コード例 #20
0
 public function save_user_info($user_info, $account, $ckb_cookie = 1, $login_type = 0, $auto_login = 0, $oauth_login = 0)
 {
     global $kekezu, $_K, $handlekey;
     global $_lang;
     $_SESSION['uid'] = $user_info['uid'];
     $_SESSION['username'] = $user_info['username'];
     $_SESSION['last_login_time'] = $user_info['last_login_time'];
     $this->add_login_time(0);
     $login_type = $this->_login_type;
     if ($auto_login == '1') {
         $c = array();
         $c[0] = base64_encode($user_info['uid']);
         $c[1] = base64_encode($account);
         $c[2] = base64_encode($user_info['uid'] . '|' . $user_info['password'] . '|' . $account);
         setcookie('keke_auto_login', serialize($c), time() + 3600 * 24 * 30);
     }
     if ($_K['refer']) {
         //登录之后不同身份跳转到各自管理页面
         $user_obj = new keke_user_class();
         $user_type = $user_obj->get_user_type($user_info['uid']);
         if ($user_type['user_type'] == 2) {
             $r_url = '?do=user&view=wk';
         } elseif ($user_type['user_type'] == 1) {
             $r_url = '?do=user&view=gz';
         }
         $r = $_K['refer'] . $r_url;
     } else {
         $r = 'index.php';
     }
     if ($login_type) {
         $r = 'index.php';
     }
     if ($oauth_login) {
         $r = 'index.php';
     }
     if ($this->_sys_config['user_intergration'] == 2) {
         $synhtml = keke_user_class::user_synlogin($user_info['uid'], $this->_password);
     }
     $synhtml = isset($synhtml) ? $synhtml : "";
     $user_obj = new Keke_witkey_space_class();
     $user_obj->setLast_login_time(time());
     $user_obj->setWhere("uid = '{$user_info['uid']}'");
     $user_obj->edit_keke_witkey_space();
     $black_obj = new Keke_witkey_member_black_class();
     $black_obj->setWhere("uid = '{$user_info['uid']}'");
     $black_obj->del_keke_witkey_member_black();
     db_factory::execute(sprintf("update %switkey_member_oltime set last_op_time=%d where uid = %d", TABLEPRE, time(), $user_info['uid']));
     if (isset($_COOKIE['prom']) && $_COOKIE['prom']) {
         $prom_obj = keke_prom_class::get_instance();
         $url_data = $prom_obj->extract_prom_cookie();
         $url_data['p'] == 'reg' or $prom_obj->create_prom_relation($user_info['uid'], $user_info['username'], $url_data, '2');
     }
     if ($login_type == 1) {
         if (strtolower($_SERVER['REQUEST_METHOD']) == 'post') {
             $this->show_msg($_lang['login_success'] . "{$synhtml}", 1, $r);
         } elseif (strtolower($_SERVER['REQUEST_METHOD']) == 'get') {
             echo "{$synhtml}<script>window.location.href='{$r}';</script>";
             die;
         }
     } else {
         if ($login_type == 3 || $login_type == 4) {
             $info = $user_info;
             $return_info['uid'] = $info['uid'];
             $return_info['username'] = $info['username'];
             $return_info['balance'] = intval($info['balance']);
             $return_info['credit'] = intval($info['credit']);
             $return_info['pic'] = keke_user_class::get_user_pic($user_info['uid']);
             $return_info['syn'] = $synhtml;
             $user_info['uid'] == ADMIN_UID || $user_info['group_id'] > 0 and $return_info['is_admin'] = 1;
             $return_info['g_pic'] = unserialize($info['buyer_level']);
             $return_info['s_pic'] = unserialize($info['seller_level']);
             $this->show_msg($_lang['login_success'], 1, $return_info);
             die;
         } elseif ($login_type == 2) {
             return true;
         } else {
             $this->show_msg($_lang['login_success'] . "{$synhtml}", 1, $r);
         }
     }
 }
コード例 #21
0
ファイル: goodslist.php プロジェクト: pengfeiaaa/web
    $arrCityone = CommonClass::getDistrictById($p);
    $strWhere .= " and a.province = " . intval($p);
    $two = db_factory::get_table_data("*", "witkey_district", "upid=" . intval($p));
}
if (intval($twoid)) {
    $arrCitytwo = CommonClass::getDistrictById($twoid);
    $strWhere .= " and a.city = " . intval($twoid);
    $three = db_factory::get_table_data("*", "witkey_district", "upid=" . intval($twoid));
    $twoid and $strUrl .= "&twoid=" . intval($twoid);
}
if (intval($threeid)) {
    $arrCitythree = CommonClass::getDistrictById($threeid);
    $strWhere .= " and a.area = " . intval($threeid);
}
$ky and $strWhere .= " and a.title like '%{$ky}%' ";
$intCount = db_factory::execute($strSql . $strWhere);
if (isset($o)) {
    switch (intval($o)) {
        case '1':
            $strWhere .= " order by a.sale_num desc ";
            break;
        case '2':
            $strWhere .= " order by a.sale_num asc ";
            break;
        case '3':
            $strWhere .= " order by a.price desc ";
            break;
        case '4':
            $strWhere .= " order by a.price asc ";
            break;
    }
コード例 #22
0
<?php

defined('ADMIN_KEKE') or exit('Access Denied');
$objTable = keke_table_class::get_instance("witkey_custom_fields");
intval($page) or $page = 1;
$url = "index.php?do=custom&view=fields&model_id={$model_id}&page={$page}";
$id = intval($id);
$model_id = intval($model_id);
if ($opajax == 'setorder') {
    db_factory::execute("UPDATE `" . TABLEPRE . "witkey_custom_fields` SET `listorder`='" . intval($ordernum) . "' WHERE (`id`='" . $id . "')");
    die;
}
if ($opajax == 'setopen') {
    db_factory::execute("UPDATE `" . TABLEPRE . "witkey_model` SET `open_custom`='" . intval($opennum) . "' WHERE (`model_id`='" . $model_id . "')");
    die;
}
if ($ac == 'del') {
    CustomClass::delExtData($id);
    $res = $objTable->del('id', $id);
    $res and kekezu::admin_show_msg($_lang['delete_success'], $url, 3, '', 'success') or kekezu::admin_show_msg($_lang['delete_fail'], $url, 3, '', 'warning');
} else {
    $where = " 1 = 1 and model_id = " . $model_id;
    $where .= " order by listorder asc ";
    $d = $objTable->get_grid($where, $url, $page, 10, null, 1, 'ajax_dom');
    $dataList = $d['data'];
    $pages = $d['pages'];
}
require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_' . $do . '_' . $view);
コード例 #23
0
 private function extract_birth($uid, $idcard)
 {
     switch (strlen($idcard)) {
         case 15:
             $y = '19' . substr($idcard, 6, 2);
             $m = substr($idcard, 8, 2);
             $d = substr($idcard, 10, 2);
             break;
         case 18:
             $y = substr($idcard, 6, 4);
             $m = substr($idcard, 10, 2);
             $d = substr($idcard, 12, 2);
             break;
     }
     $f = $y . '-' . $m . '-' . $d;
     db_factory::execute(sprintf("update %switkey_space set birthday='%s' where uid='%d'", TABLEPRE, $f, $uid));
 }
コード例 #24
0
    }
    $strSql = " select a.{$satus_fds},a.{$time_fds},a.{$id_fds},b.task_id,b.task_cash,b.task_title,b.model_id,b.task_cash_coverage,b.task_status,b.start_time from " . TABLEPRE . $tab_name . " a left join " . TABLEPRE . "witkey_task b on a .task_id=b.task_id where b.model_id = '{$intModelId}' and a.uid='{$uid}'";
    $strCountSql = "select a.{$id_fds} from " . TABLEPRE . $tab_name . " a left join " . TABLEPRE . "witkey_task b on a .task_id=b.task_id where a.uid='{$uid}'";
    $intModelId and $strCountSql .= " and b.model_id = '{$intModelId}'";
    $page and $intPage = intval($page);
    $intPage = intval($intPage) ? $intPage : 1;
    $intPagesize = 10;
    $intTaskId and $strWhere .= " and a.task_id=" . intval($intTaskId);
    $strTaskTitle and $strWhere .= " and b.task_title like '%" . trim($strTaskTitle) . "%' ";
    if (isset($intTaskStatus) && $intTaskStatus != '' && $intTaskStatus > -1) {
        $strWhere .= " and b.task_status=" . intval($intTaskStatus);
    } else {
        $intTaskStatus = -1;
    }
    in_array($strOrder, array_keys($arrListOrder)) and $strWhere .= " order by " . $strOrder or $strWhere .= " order by b.task_id desc";
    $intCount = intval(db_factory::execute($strCountSql . $strWhere));
    $strPages = $page_obj->getPages($intCount, $intPagesize, $intPage, $strUrl);
    $arrTaskLists = db_factory::query($strSql . $strWhere . $strPages['where']);
} else {
    $arrTaskStatus = array('1' => '待审核', 'D2' => '竞标中', 'T4' => '工作中', '8' => '已评价');
    $arrListOrder = array('task_id desc' => '编号降序', 'task_id asc' => '编号升序', 'task_cash desc' => '金额降序', 'task_cash asc' => '金额升序');
    $page and $intPage = intval($page);
    $intPage = intval($intPage) ? $intPage : 1;
    $intPagesize = 10;
    $intTaskId && $intTaskId != '' and $strWhere = " and task_id=" . intval($intTaskId);
    $strTaskTitle and $strWhere .= " and task_title like '%" . trim($strTaskTitle) . "%' ";
    if ($intTaskStatus) {
        if (is_numeric($intTaskStatus) && $intTaskStatus != '-1') {
            $strWhere .= " and task_status=" . intval($intTaskStatus);
        } else {
            $sPrefix = substr($intTaskStatus, 0, 1);
コード例 #25
0
ファイル: oauthlogin.php プロジェクト: pengfeiaaa/web
    $objLogin->save_user_info($loginUserInfo, 1);
}
$inter = $kekezu->_sys_config['user_intergration'];
$intLoginTimes = intval($_SESSION['login_times']);
if (kekezu::submitcheck(isset($formhash)) || isset($login_type) == 3) {
    if ($code) {
        $strCodeCheck = kekezu::check_secode($code);
        if ($strCodeCheck != 1) {
            $tips['errors']['code'] = $strCodeCheck;
            kekezu::show_msg($tips, NULL, NULL, NULL, 'error');
        }
    }
    $strCode = isset($code) ? $code : "";
    $intLoginType = isset($login_type) ? $login_type : "";
    $ckb_cookie = isset($ckb_cookie) ? $ckb_cookie : "";
    if (strtoupper(CHARSET) == 'GBK') {
        $account = kekezu::utftogbk($account);
    }
    $arrUserInfo = $objLogin->user_login($account, $password, $strCode, $intLoginType, 1);
    db_factory::execute("delete from " . TABLEPRE . "witkey_space where uid =" . intval($arrBindInfo['uid']));
    db_factory::execute("delete from " . TABLEPRE . "witkey_shop where uid=" . intval($arrBindInfo['uid']));
    db_factory::execute("delete from " . TABLEPRE . "witkey_member where uid=" . intval($arrBindInfo['uid']));
    $objMemberOauth = new Keke_witkey_member_oauth_class();
    $objMemberOauth->setWhere(array('oauth_id' => $arrBindInfo['oauth_id'], 'uid' => $arrBindInfo[uid]));
    $objMemberOauth->setUid($arrUserInfo[uid]);
    $objMemberOauth->setUsername($arrUserInfo[username]);
    $objMemberOauth->edit_keke_witkey_member_oauth();
    $_SESSION[$type . '_oauthInfo'] = null;
    $objLogin->save_user_info($arrUserInfo, $account, $ckb_cookie, $intLoginType, 0, true);
    die;
}
コード例 #26
0
 function register_login($userinfo, $is_oauth = null)
 {
     global $kekezu;
     global $_lang;
     global $_K;
     $_SESSION['uid'] = $userinfo['uid'];
     $_SESSION['username'] = $userinfo['username'];
     $c = $_COOKIE;
     if ($_K['refer']) {
         $r = $_K['refer'];
     } else {
         $r = 'index.php';
     }
     if (isset($_COOKIE['prom'])) {
         $prom_obj = keke_prom_class::get_instance();
         $url_data = $prom_obj->extract_prom_cookie();
         $prom_obj->create_prom_relation($userinfo['uid'], $userinfo['username'], $url_data);
         $url_data['p'] == 'reg' and $obj_id = $userinfo['uid'] or $obj_id = $url_data['o'];
         $prom_obj->create_prom_event($url_data['p'], $userinfo['uid'], $obj_id);
     }
     $synhtml = keke_user_class::user_synlogin($userinfo['uid'], md5($this->_reg_pwd));
     if ($userinfo['status'] == 3 && $this->_reg_type == 1) {
         if ($userinfo['email'] && !$is_oauth) {
             $arr = explode("@", $userinfo['email']);
             $mail_url = keke_user_class::getAllEmail('@' . $arr[1]);
         }
         if (!$userinfo['email'] || $is_oauth) {
             $this->show_msg("注册成功!", 1, "index.php?do=login");
         } else {
             $_SESSION['uid'] = '';
             $_SESSION['username'] = '';
             $this->show_msg($_lang['register_success_and_excite'] . "{$synhtml}", 1, $mail_url);
         }
     } else {
         if ($this->_reg_type == 2) {
             $userinfo[pic] = keke_user_class::get_user_pic($userinfo['uid']);
             $r = $userinfo;
             db_factory::execute(sprintf(" update %switkey_space set status=1 where uid='%d'", TABLEPRE, $userinfo['uid']));
         }
         $this->show_msg($_lang['register_success'] . "{$synhtml}", 1, 'index.php?do=user&view=account&op=basic');
     }
 }
コード例 #27
0
 public function dispose_order($order_id, $trust_response = false)
 {
     global $kekezu, $uid, $username, $_K;
     global $_lang;
     $response = array();
     $task_config = $this->_task_config;
     $task_info = $this->_task_info;
     $url = $_K['siteurl'] . '/index.php?do=task&id=' . $this->_task_id;
     $task_status = $this->_task_status;
     $order_info = db_factory::get_one("select * from " . TABLEPRE . "witkey_order where order_id=" . intval($order_id));
     $order_amount = $order_info['order_amount'];
     if ($order_info['order_status'] == 'ok') {
         $task_status == 1 && ($notice = $_lang['task_pay_success_and_wait_admin_audit']);
         $task_status == 2 && ($notice = $_lang['task_pay_success_and_task_pub_success']);
         return pay_return_fac_class::struct_response($_lang['operate_notice'], $notice, $url, 'success');
     } else {
         $arrOrderDetail = keke_order_class::get_order_detail($order_id);
         foreach ($arrOrderDetail as $k => $v) {
             if ($v['obj_type'] == 'task' && $v['detail_type'] == null) {
                 $data = array(':model_name' => $this->_model_name, ':task_id' => $this->_task_id, ':task_title' => $this->_task_title);
                 keke_finance_class::init_mem('pub_task', $data);
                 $res = keke_finance_class::cash_out($task_info['uid'], $v['price'], 'pub_task', 0, 'task', $this->_task_id);
             }
             if ($v['obj_type'] == 'task' && $v['detail_type']) {
                 PayitemClass::createPayitemRecord($v['detail_type'], $v['num'], $v['obj_type'], $v['obj_id']);
             }
         }
         switch ($res == true) {
             case "1":
                 $objProm = keke_prom_class::get_instance();
                 if ($objProm->is_meet_requirement("pub_task", $this->_task_id)) {
                     $objProm->create_prom_event("pub_task", $this->_guid, $task_info['task_id'], $task_info['task_cash']);
                 }
                 db_factory::updatetable(TABLEPRE . "witkey_order", array("order_status" => "ok"), array("order_id" => "{$order_id}"));
                 keke_order_class::update_fina_order($res, $order_id);
                 $consume = kekezu::get_cash_consume($task_info['task_cash']);
                 db_factory::execute(sprintf(" update %switkey_task set cash_cost='%s',credit_cost='%s' where task_id='%d'", TABLEPRE, $consume['cash'], $consume['credit'], $this->_task_id));
                 if ($task_info['task_cash'] < $task_config['audit_cash'] && !$this->_trust_mode) {
                     $this->set_task_status(1);
                     return pay_return_fac_class::struct_response($_lang['operate_notice'], $_lang['task_pay_success_and_wait_admin_audit'], $url, 'alert_right');
                 } else {
                     $this->set_task_status(2);
                     $feed_arr = array("feed_username" => array("content" => $task_info['username'], "url" => "index.php?do=seller&id={$task_info['uid']}"), "action" => array("content" => $_lang['pub_task'], "url" => ""), "event" => array("content" => "{$task_info['task_title']}", "url" => "index.php?do=task&id={$task_info['task_id']}", "cash" => $task_info['task_cash_coverage'] ? $task_info['task_cash_coverage'] : $task_info['task_cash'], "model_id" => "{$this->_model_id}"));
                     kekezu::save_feed($feed_arr, $task_info['uid'], $task_info['username'], 'pub_task', $task_info['task_id']);
                     $status_arr = self::get_task_status();
                     $url = '<a href="' . $_K['siteurl'] . '/index.php?do=task&id=' . $task_info['task_id'] . '"  target="_blank">' . $task_info['task_title'] . '</a>';
                     $v = array('model_name' => $this->_model_name, 'task_id' => $task_info['task_id'], $_lang['task_title'] => $task_info['task_title'], $_lang['task_id'] => $task_info['task_id'], $_lang['task_link'] => $url, $_lang['task_status'] => $status_arr[2], '开始时间' => date('Y-m-d H:i:s', $task_info['start_time']), '投稿结束时间' => date('Y-m-d H:i:s', $task_info['sub_time']), '选稿结束时间' => date('Y-m-d H:i:s', $task_info['end_time']));
                     $this->notify_user("task_pub", '任务发布通知', $v, $notify_type = 1, $task_info['uid']);
                     return pay_return_fac_class::struct_response($_lang['operate_notice'], $_lang['task_pay_success_and_task_pub_success'], $url, 'alert_right');
                 }
                 break;
             case "0":
                 $pay_url = $_K['siteurl'] . "/index.php?do=pay&order_id={$order_id}";
                 return pay_return_fac_class::struct_response($_lang['operate_notice'], $_lang['task_pay_error_and_please_repay'], $pay_url, 'alert_error');
                 break;
         }
     }
 }
コード例 #28
0
function updateFilepath($serviceId, $filepath, $type)
{
    if ($type == 'pic') {
        $sql = ' update ' . TABLEPRE . 'witkey_service set pic = "' . $filepath . '" where service_id = ' . intval($serviceId);
    } else {
        $sql = ' update ' . TABLEPRE . 'witkey_service set file_path = "' . $filepath . '" where service_id = ' . intval($serviceId);
    }
    db_factory::execute($sql);
}
コード例 #29
0
    $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);
コード例 #30
0
ファイル: install.php プロジェクト: huangbinzd/kppwGit
    if ($col_info) {
        if ($col_info["Type"] != "varchar(50)") {
            db_factory::execute("alter  table " . TABLEPRE . "witkey_model  change column  model_intro model_intro varchar(50)");
        }
    } else {
        db_factory::execute("alter table " . TABLEPRE . "witkey_model add model_intro varchar(50) null default null ");
    }
    $col_info = db_factory::query("show COLUMNS FROM " . TABLEPRE . "witkey_model where Field='indus_bid' ");
    $col_info = $col_info[0];
    if ($col_info) {
        if ($col_info["Type"] != "text") {
            db_factory::execute("alter  table " . TABLEPRE . "witkey_model  change column  indus_bid indus_bid text");
        }
    } else {
        db_factory::execute("alter table " . TABLEPRE . "witkey_model add indus_bid text null default null ");
    }
    $col_info = db_factory::query("show COLUMNS FROM " . TABLEPRE . "witkey_model where Field='config' ");
    $col_info = $col_info[0];
    if ($col_info) {
        if ($col_info["Type"] != "text") {
            db_factory::execute("alter  table " . TABLEPRE . "witkey_model  change column  config config text");
        }
    } else {
        db_factory::execute("alter table " . TABLEPRE . "witkey_model add config text null default null ");
    }
}
$table_exist = false;
if (!$table_exist) {
    db_factory::execute("replace into " . TABLEPRE . "witkey_model (`model_id`,`model_code`,`model_name`,`model_dir`,`model_type`,`model_dev`,`model_status`,`model_desc`,`on_time`,`hide_mode`,`listorder`,`model_intro`,`indus_bid`,`config`) values ('7','service','威客服务','service','shop','kekezu','1','<strong>威客作品的一般流程是:</strong><br /><p>1、买家在网站平台上上传服务,等待后台审核</p><p>2、审核通过后,该服务就会上架,在网站商城里显示</p><p>3、卖家购买服务后,付款</p><p>4、付款后,等待买家提供服务</p><br />','1325152856',0,'7','威客服务是网络商城的一种交易模式。','','a:5:{s:14:\"service_profit\";s:2:\"20\";s:8:\"min_cash\";s:1:\"5\";s:10:\"audit_cash\";s:2:\"20\";s:16:\"step_min_account\";s:1:\"6\";s:13:\"max_filecount\";s:1:\"2\";}')");
}
/*********Table witkey_model end **************/