exit('error: 403 该帐户已被禁用'); } else { if ($cur_user['flag'] == 1) { header("content-Type: text/html; charset=UTF-8"); exit('error: 401 该帐户还在审核中'); } } $tip1 = ''; $tip2 = ''; $tip3 = ''; $av_time = ''; if ($_SERVER['REQUEST_METHOD'] == 'POST') { $action = $_POST['action']; if ($action == 'info') { $email = addslashes(filter_chr(trim($_POST['email']))); $url = char_cv(filter_chr(trim($_POST['url']))); $about = addslashes(trim($_POST['about'])); if ($DBS->unbuffered_query("UPDATE yunbbs_users SET email='{$email}', url='{$url}', about='{$about}' WHERE id='{$cur_uid}'")) { //更新缓存 $cur_user['email'] = $email; $cur_user['url'] = $url; $cur_user['about'] = $about; $tip1 = '已成功保存'; } else { $tip1 = '数据库更新失败,修改尚未保存,请稍后再试'; } } else { if ($action == 'avatar') { if ($_FILES['avatar']['size'] && $_FILES['avatar']['size'] < 301000) { $img_info = getimagesize($_FILES['avatar']['tmp_name']); if ($img_info) {
} } if ($new_main_nodes_arr) { $_POST['main_nodes'] = implode(",", $new_main_nodes_arr); } else { $_POST['main_nodes'] = ''; } } // spam_words $spam_words = filter_chr($_POST['spam_words']); $spam_words = str_replace(",", ",", $spam_words); $spam_words_arr = explode(",", $spam_words); $spam_words_arr = array_filter(array_unique($spam_words_arr)); $_POST['spam_words'] = implode(",", $spam_words_arr); // ext_list $_POST['ext_list'] = filter_chr($_POST['ext_list']); if ($_POST['ext_list'] && $options['ext_list'] != $_POST['ext_list']) { $ext_list = str_replace(" ", ",", $_POST['ext_list']); $ext_list = str_replace("/", ",", $ext_list); $ext_list = str_replace(",", ",", $ext_list); $ext_list = str_replace("。", ",", $ext_list); $ext_list = str_replace("、", ",", $ext_list); $ext_list_arr = explode(",", $ext_list); $ext_list_arr = array_filter(array_unique($ext_list_arr)); if ($ext_list_arr) { $_POST['ext_list'] = implode(",", $ext_list_arr); } else { $_POST['ext_list'] = ''; } } $changed = 0;