답변 1개
채택된 답변
+20 포인트
10년 전
아이디 비밀번호가 잘못 입력 됐을 경우가 많습니다.
FTP 가능하시면 아래 소스를
bbs/ 안에 pw.php 하는 이름으로 파일을 만들어 업로드 하시고
웹상에서 불러와 보시면 아디와 비밀번호를 강제 변경 할 수 있습니다.
입력창이 나오면
admin/ 1234 / 1234 입력 하시면 편합니다.
</P>
<P><?
//$g4_path = "../"; // 다른 경로에 common.php 있을때
//include_once ("$g4_path/common.php");</P>
<P>include_once("./_common.php");</P>
<P>
include_once ("$g4[path]/head.sub.php");</P>
<P>$check_password="1234";</P>
<P>if ($_POST[id1]&&$_POST[pw1]&&$_POST[pw2]==$check_password) {
$sql="update $g4[member_table] set mb_password = '".sql_password($_POST[pw1])."' where mb_id='$_POST[id1]'";
sql_query($sql);
$total=mysql_affected_rows();
//echo "$sql
";
echo "$total 건 변경됨
";
}</P>
<P>
?>
<center>
<form method=post>
<input type=text name=id1>
<input type=text name=pw1>
<input type=password name=pw2>
<input type=submit value='Change'>
</form></P>
<P><?
include_once ("$g4[path]/tail.sub.php");
?></P>
<P>
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인