$arrAllIndustrys = $kekezu->_indus_arr; if ($edituid) { $member_arr = kekezu::get_user_info($edituid); $shop_open = db_factory::get_count('select shop_id from ' . TABLEPRE . 'witkey_shop where uid=' . $edituid); } $member_group_arr = db_factory::query(sprintf("select group_id,groupname from %switkey_member_group", TABLEPRE)); if ($op == 'getzfpwd') { $userInfo = keke_user_class::get_user_info(intval($userid)); $email = $userInfo['email']; $strNewCode = kekezu::randomkeys(8); $strNewMd5Pwd = keke_user_class::get_password($strNewCode, $userInfo['rand_code']); $intRes = db_factory::updatetable(TABLEPRE . 'witkey_space', array('sec_code' => $strNewMd5Pwd), array('uid' => intval($userid))); if ($intRes) { $message_obj = new keke_msg_class(); $message_obj->send_message($userInfo['uid'], $userInfo['username'], 'update_sec_code', '找回支付密码', array('支付密码' => $strNewCode), $userInfo['email'], $userInfo['mobile'], 2); $system_log_obj = new Keke_witkey_system_log_class(); $system_log_obj->setLog_content('admin于' . date("Y-m-d H:i:s") . '重置了' . $userInfo['username'] . '的支付密码'); $system_log_obj->setLog_ip(kekezu::get_ip()); $system_log_obj->setLog_time(time()); $system_log_obj->setUser_type($userInfo['group_id']); $system_log_obj->setUid($userInfo['uid']); $system_log_obj->setUsername($userInfo['username']); $system_log_obj->create_keke_witkey_system_log(); $status = '重置成功'; } else { $status = '重置失败'; } echo json_encode(array('status' => $status)); die; } if ($is_submit == 1) {
static function admin_system_log($msg) { global $_K, $admin_info; $system_log_obj = new Keke_witkey_system_log_class(); $system_log_obj->setLog_content($msg); $system_log_obj->setLog_ip(kekezu::get_ip()); $system_log_obj->setLog_time(time()); $system_log_obj->setUser_type($admin_info['group_id']); $system_log_obj->setUid($admin_info['uid'] ? $admin_info['uid'] : $_SESSION['uid']); $system_log_obj->setUsername($admin_info['username'] ? $admin_info['username'] : $_SESSION['username']); $system_log_obj->create_keke_witkey_system_log(); }