|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /home/queenjbs/www/member/ |
Upload File : |
<?
include "$DOCUMENT_ROOT/conf/conf_dir.php";
?>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<?
$id = trim($id);
preg_match_all('/[a-z]|[0-9]/', $id, $u_id); // 소문자와 숫자를 $u_id[0][0]부터 한글자씩 저장
$user_id = implode('', $u_id[0]); // 정규식에 걸려든(?) 녀석들을 합쳐서 $user_id에 저장
if($id <> $user_id){ // ID비교.
echo"<script>
alert('英語(小文字)と数字の外の文字は利用することができません');
parent.document.form.id.value='';
parent.document.form.idchk.value='';
parent.document.form.id.focus();
return;
</script>";
}
//$id = strtolower($id);
//$id = mb_convert_kana($id, "ars", "utf-8");
$userid = get_db("select userid from user where userid = '$id'");
$chkId = get_db("select user_id from userChk where user_id = '$id'");
if($userid || $chkId){
//alert('중복된 ID 입니다.다시 입력해 주세요');
echo"<script>
alert('IDが重複しています。再度ご入力下さい。');
parent.document.form.id.value='';
parent.document.form.idchk.value='';
parent.document.form.id.focus();</script>";
}else{
echo"<script>
alert('ご利用可能なIDです。');
parent.document.form.idchk.value=1;
parent.document.form.jname2.focus();
</script>";
}
mysql_close();
?>