$_SESSION 으로 직접 접근하는 코드들을 모두 Session 클래스로 통합
This commit is contained in:
@@ -674,7 +674,7 @@ function command_Single($connect, $turn, $command) {
|
||||
for($i=0; $i < $count; $i++) {
|
||||
$str .= ",turn{$turn[$i]}='{$command}'";
|
||||
}
|
||||
$query = "update general set {$str} where owner='{$_SESSION['userID']}'";
|
||||
$query = "update general set {$str} where owner='{$session->userID}'";
|
||||
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
//echo "<script>location.replace('commandlist.php');</script>";
|
||||
echo 'commandlist.php';//TODO:debug all and replace
|
||||
@@ -684,7 +684,7 @@ function command_Single($connect, $turn, $command) {
|
||||
function command_Chief($connect, $turn, $command) {
|
||||
$command = EncodeCommand(0, 0, 0, $command);
|
||||
|
||||
$query = "select nation,level from general where owner='{$_SESSION['userID']}'";
|
||||
$query = "select nation,level from general where owner='{$session->userID}'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$me = MYDB_fetch_array($result);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user