dmsg($L['op_edit_success'], 'edit.php'); } else { message($do->errmsg); } } else { $head_title = $L['send_passport_title']; include template('send', $module); } break; default: if ($_userid) { dheader($MOD['linkurl']); } if ($auth) { $user = check_auth($auth); auth_time($user['authtime']); $authvalue = $user['authvalue']; $username = $user['username']; $db->query("UPDATE {$DT_PRE}member SET auth='',authvalue='',authtime=0,password='******' WHERE username='******'"); userclean($username); message($L['send_password_success'], $MOD['linkurl'] . $DT['file_login'] . '?username='******'mail_type'] == 'close') { message($L['send_mail_close']); } if ($submit) { captcha($captcha); $email = trim($email); if (!is_email($email)) { message($L['member_email_null']); }
include template('validate', $module); } } break; case 'mobile': $MOD['vmobile'] or dheader($MOD['linkurl']); $DT['sms'] or message($L['send_sms_close']); $head_title = $L['validate_mobile_title']; if ($user['vmobile']) { $action = 'v' . $action; include template('validate', $module); exit; } if ($auth) { if ($auth == $user['auth']) { auth_time($user['authtime'], 1); $mobile = $user['authvalue']; $r = $db->get_one("SELECT userid FROM {$DT_PRE}member WHERE mobile='{$mobile}' AND vmobile=1 AND userid<>{$_userid}"); if ($r) { message($L['validate_mobile_exist'], $MOD['linkurl']); } $db->query("UPDATE {$DT_PRE}member SET mobile='{$mobile}',vmobile=1,auth='',authvalue='',authtime=0 WHERE username='******'"); $db->query("INSERT INTO {$DT_PRE}validate (type,username,ip,addtime,status,title,editor,edittime) VALUES ('mobile','{$username}','{$DT_IP}','{$DT_TIME}','3','{$mobile}','system','{$DT_TIME}')"); message($L['validate_mobile_success'], $MOD['linkurl']); } message($L['validate_mobile_code_error']); } else { if ($submit) { is_mobile($mobile) or message($L['validate_mobile_bad']); $r = $db->get_one("SELECT userid FROM {$DT_PRE}member WHERE mobile='{$mobile}' AND vmobile=1 AND userid<>{$_userid}"); if ($r) {