- 메인그룹 -

알지로넷 웹호스팅

위리넷 웹호스팅

유용한팁
메인그룹 > 유용한팁
  • 관리자 아이디, 패스워드 분실시
  • defle
  • 작성일 : 2007-08-01 22:46:46
    아래 소스를 복사해서 main/에 업로드 하고 불러오세요!!

     
    <?
    require_once("../rg4_include/lib.php");
    if ($act=='ok'){
    $pass = get_password_str("$password");
    $rs->clear();
    $rs->set_table($_table['member']);
    $rs->add_field("mb_id","$id");
    $rs->add_field("mb_pass","$pass");
    $rs->add_field("mb_name","운영자");
    $rs->add_field("mb_nick","$mb_nick");
    $rs->add_field("mb_level","90");
    $rs->add_field("mb_state","1");
    $rs->add_field("mb_jumin","$mb_jumin");
    $rs->add_field("mb_sex","$mb_sex");
    $rs->add_field("mb_post","$mb_post");
    $rs->add_field("mb_address1","$mb_address1");
    $rs->add_field("mb_address2","$mb_address2");
    $rs->add_field("mb_email","$mb_email");
    $rs->add_field("mb_tel1","$mb_tel1");
    $rs->add_field("mb_tel2","$mb_tel2");
    $rs->add_field("mb_is_mailing","$mb_is_mailing");
    $rs->add_field("mb_is_opening","$mb_is_opening");
    $rs->add_field("mb_open_field","$mb_open_field");
    $rs->add_field("mb_signature","$mb_signature");
    $rs->add_field("mb_introduce","$mb_introduce");
    $rs->add_field("mb_admin_memo","$mb_admin_memo");
    $rs->add_field("mb_ext1","$mb_ext1");
    $rs->add_field("mb_ext2","$mb_ext2");
    $rs->add_field("mb_ext3","$mb_ext3");
    $rs->add_field("mb_ext4","$mb_ext4");
    $rs->add_field("mb_ext5","$mb_ext5");
    $rs->add_field("mb_point","0");
    $rs->add_field("login_count","0");
    $rs->add_field("login_date","0");
    $rs->add_field("login_ip","");
    $rs->add_field("join_date",time());
    $rs->add_field("join_ip",$_SERVER['REMOTE_ADDR']);
    $rs->add_field("modify_date","0");
    $rs->add_field("modify_ip","");
    $rs->insert();
    rg_href('','아이디 '.$id.', 비밀번호 '.$password.'로 운영자를 생성하였습니다.','close');
    }
    ?>
    <link href="<?=$_url['css']?>style.css" rel="stylesheet" type="text/css">
    <table border="0" cellspacing="0" cellpadding="5" width="410" align="center">
    <tr><td style="font-weight:bold;">
    생성할 운영자의 아이디와 비밀번호를 입력해주세요(rg4.x용)
    <table border="0" cellspacing="0" cellpadding="5" width="400" style="border-top:1px solid #CCCCCC; border-bottom:1px solid #CCCCCC;" bgcolor="#f7f7f7" align="center">
    <form name="loss_form" action="?" method="post">
    <input type="hidden" name="act" value="ok">
    <tr>
    <td width="120" align="right">아이디</td><td><input type="text" name="id" size="20" class="input"></td></tr>
    <tr><td align="right">비밀번호</td><td><input type="text" name="password" size="20" class="input"></td>
    </tr>
    <tr>
    <td colspan="2" align="center">
    <input type="submit" value="  확  인  " class="button"> <input type="reset" value="  취    소  " class="button">
    </td>
    </tr>
    </form>
    </table>
    </td>
    </tr>
    </table>