OK!'; } } else { $resultnum = 1; $resultmsg = 'OK!'; } } else { $resultnum = 0; $resultmsg = '이미 사용중인 아이디입니다'; } } } if ($fname == 'email[]') { if ($my['uid']) { $isId = getDbRows($table['s_mbrdata'],"email='".$fvalue."' and email <> '".$my['email']."'"); } else { $isId = getDbRows($table['s_mbrdata'],"email='".$fvalue."'"); } if (!$isId) { $resultnum = 1; $resultmsg = 'OK!'; } else { $resultnum = 0; $resultmsg = '이미 존재하는 이메일입니다'; } } if ($fname == 'nic[]') { if (strstr(','.$d['member']['join_cutnic'].',',','.$fvalue.',') && !$my['admin']) { $resultnum = 0; $resultmsg = '이미 존재하는 닉네임입니다'; } else { if ($my['admin']) { $resultnum = 1; $resultmsg = 'OK!'; } else { if($my['uid']) { $isId = getDbRows($table['s_mbrdata'],"nic='".$fvalue."' and nic<>'".$my['nic']."'"); } else { $isId = getDbRows($table['s_mbrdata'],"nic='".$fvalue."'"); } if (!$isId) { $resultnum = 1; $resultmsg = 'OK!'; } else { $resultnum = 0; $resultmsg = '이미 존재하는 닉네임입니다'; } } } } ?>