general table의 no_member를 의미에 더 맞도록 owner로 변경.
general table의 user_id, password column 삭제. 코드도 이를 참조하지 않고 owner를 이용하도록 변경
This commit is contained in:
@@ -3,6 +3,8 @@ include "lib.php";
|
||||
include "func.php";
|
||||
$connect = dbConn();
|
||||
|
||||
//TODO: 폐기
|
||||
|
||||
$id = $_POST['id'];
|
||||
$pw = $_POST['pw'];
|
||||
$pw = md5($pw.$pw);
|
||||
@@ -43,7 +45,7 @@ if(!$me2) {
|
||||
|
||||
$date = date('Y-m-d H:i:s');
|
||||
|
||||
$query="update general set logcnt=logcnt+1,ip='{$_SESSION['p_ip']}',lastconnect='$date',conmsg='$conmsg' where no_member='{$_SESSION['noMember']}'";
|
||||
$query="update general set logcnt=logcnt+1,ip='{$_SESSION['p_ip']}',lastconnect='$date',conmsg='$conmsg' where owner='{$_SESSION['noMember']}'";
|
||||
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
|
||||
//echo "<script>window.top.location.replace('./');</script>";
|
||||
|
||||
Reference in New Issue
Block a user