실명확인용 ID, 패스워드 찾기 > 그누3 팁자료실

그누3 팁자료실

실명확인용 ID, 패스워드 찾기 정보

그누호환 실명확인용 ID, 패스워드 찾기

본문

실명확인용 ID, 패스워드 찾기입니다.
outlogout.skin.php에서
<a href="javascript:winopen('?doc=bbs/mbpasswdforget.php', '', 'left=50, top=50, width=415, height=165, scrollbars=1');">
여기를 주석처리하시고
<a href='?doc=bbs/idpassforget.php'>이걸로 교체해주세요!
//##########################################################
//##
//##    bbs/idpassforget.php
//##
//##########################################################
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "DESIGN"); ?>

<table width="420" height="400" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="#EAEAEA">
    <td height="40" bgcolor="#EAEAEA"><img src="img/idpass_title.gif" width="175" height="40"></td>
</tr>
<tr>
    <td height="44"> </td>
</tr>
<tr>
    <td height="159" align="center" background="img/idpass_bg.gif">
    <table width="302" height="159" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td width="151" height="32" align="center" valign="bottom">
        <table width="80%" height="25" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="15"><img src="img/id_blit.gif" width="10" height="10"></td>
                    <td><b>아이디 찾기</b></td>
                </tr>
                </table>
        </td>
            <td width="151" height="32" align="center" valign="bottom">
        <table width="80%" height="25" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="15"><img src="img/id_blit.gif" width="10" height="10"></td>
                    <td><b>비밀번호 찾기</b></td>
                </tr>
                </table>
        </td>
        </tr>
        <tr>
            <td width="151" height="89">
        <table width="151" height="89" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="22" height="34"> </td>
                    <td height="34"> </td>
                </tr>
                <tr>
                    <td width="22"> </td>
                    <td valign="top">이름과 주민번호로<br>아이디를 확인할 수<br>있습니다.</td>
                </tr>
                </table>
    </td>
            <td width="151" height="89">
        <table width="151" height="89" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="22" height="34"> </td>
                    <td height="34"> </td>
                </tr>
                <tr>
                    <td width="22"> </td>
                    <td valign="top">ID, 이름, 주민번호로<br>비밀번호를 확인 할<br>수 있습니다.</td>
                </tr>
                </table>
    </td>
        </tr>
        <tr align="center">
            <td width="151" height="38"><a href="javascript:winopen('?doc=bbs/idforget.php', '', 'left=50, top=50, width=440, height=420, scrollbars=1');"><img src="img/idpass_btn.gif" width="88" height="29" border="0"></a></td>
            <td width="151" height="38"><a href="javascript:winopen('?doc=bbs/passforget.php', '', 'left=50, top=50, width=440, height=420, scrollbars=1');"><img src="img/idpass_btn.gif" width="88" height="29" border="0"></a></td>
        </tr>
        </table>
</td>
</tr>
<tr>
    <td height="157" valign="bottom">
    <table width="420" height="139" border="0" cellpadding="5" cellspacing="0" bgcolor="#F7F7F7">
        <tr>
            <td>※ 회원가입시 입력하신 정보가 불충분하거나 기억하지 못하실 경우<br>
                아이디/비밀번호 확인기능을 사용하실 수 없습니다.</td>
        </tr>
        <tr>
            <td>※ <b>회원님의 정보중 비밀번호 및 주민번호 뒷자리는 암호화 처리되어</b><br>
                    <b>있습니다.</b><br>
                    아이디 및 비밀번호를 찾지 못할 경우 저희 고객지원센터로 문의하시기<br>
                    바랍니다.
    </td>
        </tr>
        </table>
    </td>
</tr>
</table>

//##########################################################
//##
//##    bbs/idforget.php
//##
//##########################################################
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "STYLE"); ?>

<table width="420" height="400" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="#EAEAEA">
    <td height="40" bgcolor="#EAEAEA"><img src="img/id_title.gif" width="120" height="40"></td>
</tr>
<tr align="center">
    <td height="44">
        <table width="75%" height="30" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td width="15"><img src="img/id_blit.gif" width="10" height="10"></td>
            <td>회원가입시 기재하신 정보를 정확히 입력해 주세요.</td>
        </tr>
        </table>
    </td>
</tr>
<tr>
    <td height="159" align="center" background="img/id_bg.gif">
        <table width="302" height="159" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td align="center">
                <table width="250" border="0" cellspacing="0" cellpadding="0">
                <tr>
                <form method=post action="?doc=bbs/idforget_v.php" method="post">
                    <td width="15" height="30"><img src="img/id_blit.gif" width="10" height="10"></td>
                    <td width="60" height="30">이 름</td>
                    <td height="30"><input type=text class=input name='mb_name' size=20 maxlength=20 minlength=2 itemname='이름' value='<?=$mb_name?>' required ></td>
                </tr>
                <tr>
                    <td width="15" height="30"><img src="img/id_blit.gif" width="10" height="10"></td>
                    <td width="60" height="30">주민번호</td>
                    <td height="30"><input type=text class=input name='mb_jumin' size=13 maxlength=13 minlength=13 required jumin itemname='주민등록번호'></td>
                </tr>
                <tr align="center" valign="bottom">
                    <td height="60" colspan="3">
                        <input type=image src='img/id_btn.gif' alt='확인' border=0 align=absmiddle>
                    </td>
                </tr>
                </form>
                </table>
            </td>
        </tr>
        </table>
    </td>
</tr>
<tr>
    <td height="157" valign="bottom">
        <table width="420" height="139" border="0" cellpadding="5" cellspacing="0" bgcolor="#F7F7F7">
        <tr>
            <td>※ 회원가입시 입력하신 정보가 불충분하거나 기억하지 못하실 경우<br>
                    아이디/비밀번호 확인기능을 사용하실 수 없습니다.</td>
        </tr>
        <tr>
            <td>※ <b>회원님의 정보중 비밀번호 및 주민번호 뒷자리는 암호화 처리되어</b><br>
                    <b>있습니다.</b><br>
                    아이디 및 비밀번호를 찾지 못할 경우 저희 고객지원센터로 문의하시기<br>
                    바랍니다.</td>
        </tr>
        </table>
    </td>
</tr>
</table>

//##########################################################
//##
//##    bbs/idforget_v.php
//##
//##########################################################
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "STYLE");

      $row = sql_fetch( " SELECT mb_id FROM gb_member WHERE mb_name = '$_POST[mb_name]' AND mb_jumin = PASSWORD('{$_POST[mb_jumin]}') ");       


        if ($row[mb_id]) {  ?>


<table width="420" height="" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="#EAEAEA">
    <td height="40" bgcolor="#EAEAEA"><img src="img/id_title.gif" width="120" height="40"></td>
</tr>
<tr align="center">
    <td height="44">
        <table width="75%" height="30" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td width="15"><img src="img/id_blit.gif" width="10" height="10"></td>
            <td>회원가입시 기재하신 정보를 정확히 입력해 주세요.</td>
        </tr>
        </table>
    </td>
</tr>
<tr>
    <td height="90" align="center" background="img/id_bg.gif">
        <table width="250" height="90" border="0" cellpadding="0" cellspacing="0">
        <tr>
        <form>
            <td align="center">
                <table width="250" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td width="15" height="30"><img src="img/id_blit.gif" width="10" height="10"></td>
                    <td width="60" height="30">아이디</td>
                    <td height="30"><?=$row[mb_id]?></td>
                </tr>
                <tr align="center" valign="bottom">
                    <td height="60" colspan="3">
                        <a href='javascript:window.close();'><img src='img/id_btn.gif' border=0 align=absmiddle></a>
                    </td>
                </tr>
                </table>
            </td>
        </form>
        </tr>
        </table>
    </td>
</tr>

<?
        } else { 

            echo "찾을수 없습니다.";

        }

?>
</table>

//##########################################################
//##
//##    bbs/passforget.php
//##
//##########################################################
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "STYLE"); ?>

<table width="420" height="400" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="#EAEAEA">
    <td height="40" bgcolor="#EAEAEA"><img src="img/id_title.gif" width="120" height="40"></td>
</tr>
<tr align="center">
    <td height="44">
        <table width="75%" height="30" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td width="15"><img src="img/id_blit.gif" width="10" height="10"></td>
            <td>회원가입시 기재하신 정보를 정확히 입력해 주세요.</td>
        </tr>
        </table>
    </td>
</tr>
<tr>
    <td height="159" align="center" background="img/id_bg.gif">
        <table width="302" height="159" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td align="center">
                <table width="250" border="0" cellspacing="0" cellpadding="0">
                <form method=post action="?doc=bbs/passforget_v.php" method="post">
    <tr>
                    <td width="15" height="27"><img src="img/id_blit.gif" width="10" height="10"></td>
                    <td width="60" height="27">아이디</td>
                    <td height="27">
                        <input type=text class=input name='mb_id' size=20 value='<?=$mb_id?>' maxlength=20 minlength=3 itemname='아이디' required alphanumeric></td>
                </tr>
                <tr>
                    <td width="15" height="27"><img src="img/id_blit.gif" width="10" height="10"></td>
                    <td width="60" height="27">이 름</td>
                    <td height="27"><input type=text class=input name='mb_name' size=20 maxlength=20 minlength=2 itemname='이름' value='<?=$mb_name?>' required></td>
                </tr>
                <tr>
                    <td width="15" height="27"><img src="img/id_blit.gif" width="10" height="10"></td>
                    <td width="60" height="27">주민번호</td>
                    <td height="27"><input type=text class=input name='mb_jumin' size=13 maxlength=13 minlength=13 required jumin itemname='주민등록번호'></td>
                </tr>
                <tr align="center" valign="bottom">
                    <td height="50" colspan="3">
                        <input type=image src='img/id_btn.gif' alt='확인' border=0 align=absmiddle>
                    </td>
                </tr>
                </form>
                </table>
            </td>
        </tr>
        </table>
    </td>
</tr>
<tr>
    <td height="157" valign="bottom">
        <table width="420" height="139" border="0" cellpadding="5" cellspacing="0" bgcolor="#F7F7F7">
        <tr>
            <td>※ 회원가입시 입력하신 정보가 불충분하거나 기억하지 못하실 경우<br>
                    아이디/비밀번호 확인기능을 사용하실 수 없습니다.</td>
        </tr>
        <tr>
            <td>※ <b>회원님의 정보중 비밀번호 및 주민번호 뒷자리는 암호화 처리되어</b><br>
                    <b>있습니다.</b><br>
                    아이디 및 비밀번호를 찾지 못할 경우 저희 고객지원센터로 문의하시기<br>
                    바랍니다.</td>
        </tr>
        </table>
    </td>
</tr>
</table>
//##########################################################
//##
//##    bbs/passforget_v.php
//##
//##########################################################
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "STYLE");

      $row = sql_fetch( " SELECT mb_id FROM gb_member WHERE mb_id = '$_POST[mb_id]' AND mb_name = '$_POST[mb_name]' AND mb_jumin = PASSWORD('{$_POST[mb_jumin]}') ");       


        if ($row[mb_id]) { 
           
            $kkk = rand(100,999) ; 
           
            $sql = " UPDATE $cfg[table_member]
                        SET mb_passwd = password('test{$kkk}') ";
                        where mb_id = '$row[mb_id]' ";
            sql_query($sql);
        ?>


<table width="420" height="" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="#EAEAEA">
    <td height="40" bgcolor="#EAEAEA"><img src="img/id_title.gif" width="120" height="40"></td>
</tr>
<tr align="center">
    <td height="44">
        <table width="75%" height="30" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td width="15"><img src="img/id_blit.gif" width="10" height="10"></td>
            <td>패스워드가 변경되었습니다.</td>
        </tr>
        </table>
    </td>
</tr>
<tr>
    <td height="90" align="center" background="img/id_bg.gif">
        <table width="250" height="90" border="0" cellpadding="0" cellspacing="0">
        <tr>
        <form>
            <td align="center">
                <table width="250" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td width="15" height="30"><img src="img/id_blit.gif" width="10" height="10"></td>
                    <td width="60" height="30">새 Password</td>
                    <td height="30">test<?=$kkk?></td>
                </tr>
                <tr align="center" valign="bottom">
                    <td height="60" colspan="3">
                        <a href='javascript:window.close();'><img src='img/id_btn.gif' border=0 align=absmiddle></a>
                    </td>
                </tr>
                </table>
            </td>
        </form>
        </tr>
        </table>
    </td>
</tr>

<?
        } else { 

            echo "찾을수 없습니다.";

        }

?>
</table>
추천
0

댓글 전체

이쪽문에서

  $sql = " UPDATE $cfg[table_member]
                        SET mb_passwd = password('test{$kkk}') 
                        where mb_id = '$row[mb_id]' ";

이렇게 수정해주세요! 오타네요!
sql_query("UPDATE $cfg[table_member] SET mb_passwd = password('test{$kkk}') WHRER mb_id = '$row[mb_id]'");

이런식으로 하면

UPDATE gb_member SET mb_passwd = password('test8194') WHRER mb_id = 'test2'

1064 : You have an error in your SQL syntax near 'WHRER mb_id = 'test2'' at line 1

이런에러가 나고요..
$sql = " UPDATE $cfg[table_member]
                        SET mb_passwd = password('test{$kkk}') ";
                        where mb_id = '$row[mb_id]' ";

쪽 문에서

_DOCTYPE_ 오류 : NONE , STYLE , DESIGN 중 하나를 사용하세요.

Parse error: parse error in /home/kmms/board/bbs/passforget_v.php on line 9


이런에러가 나오네요..
전 안되네요.. 어떻게 해야 되나요..

아이디 찾기에 주민번호랑 이름 쓰면 이렇게 나옵니다.

"찾을 수 없습니다. "

비밀번호 찾기는 이렇게 나옵니다.

"찾을 수 없습니다."

이거 되긴 되는 건가요..;;
전체 1,026
그누3 팁자료실 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT