<?php if (!defined("__MAGIC__")) { exit; } // 스펨 차단코드 검사 Captcha::Inst()->Check(); // 걸러진 결과값 $clear = $this->Clear(); if (!$clear['mb_nick']) { Dialog::alert("별명을 입력하세요."); } if (!$clear['mb_passwd']) { Dialog::alert("비밀번호를 입력하세요."); } if (!$clear['mb_email']) { Dialog::alert("이메일 주소를 입력하세요."); } if ($clear['mb_passwd'] != $_POST['confirm_passwd']) { Dialog::alert("비밀번호 확인이 일치하지 않습니다."); } $clear['mb_passwd'] = $this->Sql('password', $clear['mb_passwd']); $clear['mb_datetime'] = 'NOW()'; $clear['mb_level'] = '2'; $tbn = $this->TBN(); $sql = "\n SELECT\n mb_id,\n mb_nick,\n mb_name,\n mb_email\n FROM {$tbn}\n WHERE\n mb_id='{$clear['mb_id']}' OR\n mb_nick='{$clear['mb_nick']}' OR\n mb_name='{$clear['mb_name']}' OR\n mb_email='{$clear['mb_email']}'\n LIMIT 1\n"; $dup = DB::Get()->sql_fetch($sql); if ($duplication !== false) { if ($dup['mb_id'] == $clear['mb_id']) { Dialog::alertNReplace("동일한 회원아이디가 있습니다.", Path::Group()); }
<input type="text" size="10" name="mb_name" class="require"/> <span class="desc"> - 홈페이지 및 각종 게시판에서 사용됩니다.</span> </td> </tr> <tr> <th class="require">이메일</th> <td> <input type="text" size="25" name="mb_email" class="require"/> <b>수신동의</b> <input class="check" type="checkbox" name="mb_mailing"/> 동의 합니다. </td> </tr> <tr> <th class="require">자동등록 방지코드</th> <td> <?php echo Captcha::Inst()->html(); ?> <span class="desc"> - 로봇에 의한 자동회원 가입을 방지합니다.</span> </td> </tr> </tbody> </table> <div class="center"> <input type="image" class="adjust_button_line" src="<?php echo $this->path_img('btn_regist.gif'); ?> " alt="회원가입"/> <a href="<?php echo Path::Root(); ?>
<?php if(!defined("__MAGIC__")) exit; // 지엠스팸프리 검사 if(!$this->Config('mb','login')) Captcha::Inst()->Check(); if(!$this->Can('write')) { Dialog::alert("글쓰기 권한이 없습니다."); }
<?php if(!$this->Config('mb','login')){?> <!-- 비회원 : 작성자, 비밀번호 --> <tr> <th>작성자</th> <td> <input type="text" class="require" name="wr_writer" size="10" value="<?php echo $v['wr_writer']?>" alt="작성자"/> <span>패스워드</span> <input type="password" class="require" name="wr_password" size="8" value="<?php echo $_POST['password']?>" alt="비밀번호"/> <span>패스워드확인</span> <input type="password" class="require" name="wr_password_check" size="8" value="<?php echo $_POST['password']?>" alt="비밀번호확인"/> </td> </tr> <!-- 보안코드 --> <tr> <th>보안코드</th> <td><?php echo Captcha::Inst()->html()?></td> </tr> <?php }?> <?php if(($this->Config('mb','admin') && $this->Config('show_notice')) || $cfg->bo_use_secret){?> <!-- 옵션 : 공지사항, 비밀글 --> <tr> <th>옵션</th> <td> <?php if($this->Config('mb','admin') && $this->Config('show_notice')){?> <input id="notice" type="checkbox" name="opt_notice" value="1" <?php echo $v['wr_is_notice']?'checked="checked"':''?>/> <label for="notice">공지사항</label> <?php }?> <?php if($cfg->bo_use_secret){?> <input id="secret" type="checkbox" name="opt_secret" value="1" <?php echo $v['wr_is_secret']?'checked="checked"':''?>/> <label for="secret">비밀글</label>
?> name="mb_memo"></textarea> <?php if (Config::Inst()->regist_field_memo == 'require') { echo '<span class="require"> [필수입력]</span>'; } ?> </td> </tr> <?php } ?> <tr> <th>자동등록<br/>방지코드 <span class="require">(*)</span></th> <td class="left"><?php echo Captcha::Inst()->MsgPos('right')->html(); ?> </td> </tr> </tbody> </table> <div class="center buttonset"> <input class="button hover" type="submit" value="회원가입"/><input class="button" type="button" value="취소" onclick="location.href='<?php echo Path::Group(); ?> '"/> </div> </div> </form>