general table의 no_member를 의미에 더 맞도록 owner로 변경.
general table의 user_id, password column 삭제. 코드도 이를 참조하지 않고 owner를 이용하도록 변경
This commit is contained in:
+2
-2
@@ -48,7 +48,7 @@ if(getBlockLevel() == 1 || getBlockLevel() == 3) {
|
||||
|
||||
$conlimit = $db->queryFirstField('select conlimit from game where no=1');
|
||||
|
||||
$me = $db->queryFirstRow('select `no`,`name`,`nation`,`level`,`msgindex`,`userlevel`,`con`,`picture`,`imgsvr` from `general` where `no_member` = %i', getUserID());
|
||||
$me = $db->queryFirstRow('select `no`,`name`,`nation`,`level`,`msgindex`,`userlevel`,`con`,`picture`,`imgsvr` from `general` where `owner` = %i', getUserID());
|
||||
|
||||
if(!$me){
|
||||
resetSessionGeneralValues();
|
||||
@@ -147,7 +147,7 @@ if($destMailbox == 9999) {
|
||||
}
|
||||
|
||||
|
||||
$destUser = $db->queryFirstRow('select `no`,`name`,`nation` from `general` where `user_id` = %s',$destMailbox);
|
||||
$destUser = $db->queryFirstRow('select `no`,`name`,`nation` from `general` where `no` = %s',$destMailbox);
|
||||
|
||||
if($destUser == NULL || empty($destUser)){
|
||||
returnJson([
|
||||
|
||||
Reference in New Issue
Block a user