$_SESSION 으로 직접 접근하는 코드들을 모두 Session 클래스로 통합

This commit is contained in:
2018-04-05 02:04:43 +09:00
parent b3e621fbfd
commit 51316abd42
61 changed files with 177 additions and 180 deletions
+5 -5
View File
@@ -14,7 +14,7 @@ $query = "select conlimit from game limit 1";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$admin = MYDB_fetch_array($result);
$query = "select no,name,nation,con from general where owner='{$_SESSION['userID']}'";
$query = "select no,name,nation,con from general where owner='{$session->userID}'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
@@ -37,7 +37,7 @@ case 0:
if($k >= 24) break;
$query .= ",";
}
$query .= " where owner='{$_SESSION['userID']}'";
$query .= " where owner='{$session->userID}'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
}
*/
@@ -51,7 +51,7 @@ case 0:
if($k >= 24) break;
}
}
$query .= " where owner='{$_SESSION['userID']}'";
$query .= " where owner='{$session->userID}'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
break;
case 1:
@@ -69,7 +69,7 @@ case 1:
if($k < 0) break;
$query .= ",";
}
$query .= " where owner='{$_SESSION['userID']}'";
$query .= " where owner='{$session->userID}'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
break;
case 2:
@@ -87,7 +87,7 @@ case 2:
if($i >= 24) break;
$query .= ",";
}
$query .= " where owner='{$_SESSION['userID']}'";
$query .= " where owner='{$session->userID}'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
break;
}