general table의 no_member를 의미에 더 맞도록 owner로 변경.
general table의 user_id, password column 삭제. 코드도 이를 참조하지 않고 owner를 이용하도록 변경
This commit is contained in:
+7
-16
@@ -4,14 +4,12 @@ include "func.php";
|
||||
|
||||
//TODO: 이게 뭔지 분석
|
||||
|
||||
$id = $_POST['id'];
|
||||
$pw = $_POST['pw'];
|
||||
$btn = $_POST['btn'];
|
||||
|
||||
$userID = getUserID();
|
||||
$connect = dbConn("sammo");
|
||||
|
||||
//회원 테이블에서 정보확인
|
||||
$query = "select no,name,picture,grade from MEMBER where id='$id' and pw='$pw'";
|
||||
$query = "select no,name,picture,grade from MEMBER where no='$userID'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$member = MYDB_fetch_array($result);
|
||||
|
||||
@@ -21,17 +19,10 @@ if(!$member) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
if($btn == "장수생성") {
|
||||
$site = "join.php";
|
||||
header('Location:join.php');
|
||||
} elseif($btn == "장수선택") {
|
||||
$site = "select_npc.php";
|
||||
}
|
||||
?>
|
||||
<html>
|
||||
<form name=form1 action=<?=$site;?> method=post>
|
||||
<input type=hidden name=id value='<?=$id;?>'>
|
||||
<input type=hidden name=pw value='<?=$pw;?>'>
|
||||
</form>
|
||||
a
|
||||
<script>form1.submit();</script>
|
||||
</html>
|
||||
header('Location:select_npc.php');
|
||||
}
|
||||
Reference in New Issue
Block a user