diff --git a/twe/func.php b/twe/func.php
index 283c1bf1..61e693d6 100644
--- a/twe/func.php
+++ b/twe/func.php
@@ -111,7 +111,7 @@ function GetImageURL($imgsvr) {
}
function CheckLogin($type=0) {
- if($_SESSION['p_id'] == "") {
+ if(!isset($_SESSION['p_id'])) {
if($type == 0) {
//echo "";
echo 'start.php';//TODO:debug all and replace
diff --git a/twe/join.php b/twe/join.php
index 00469055..656e3d06 100644
--- a/twe/join.php
+++ b/twe/join.php
@@ -67,8 +67,8 @@ function updateToken(type) {
console.log(data);
if(data.result != "rand" && data.result != "leadpow" && data.result != "leadint" && data.result != "powint") {
alert(jqXHR.status+", "+jqXHR.statusText+", "+jqXHR.responseText);
- //location.replace("index.php");
- echo 'index.php';//TODO:debug all and replace
+ location.replace("index.php");
+ //echo 'index.php';//TODO:debug all and replace
} else {
$("#leader").text(data.leader);
$("#power").text(data.power);
diff --git a/twe/main.php b/twe/main.php
index 9971a2bf..a1b72d7b 100644
--- a/twe/main.php
+++ b/twe/main.php
@@ -7,13 +7,18 @@ $connect = dbConn();
increaseRefresh($connect, "메인", 2);
checkTurn($connect);
+if(!isset($_SESSION['p_id'])){
+ echo "";
+ exit(0);
+}
+
$query = "select no,skin,userlevel,con,turntime,newmsg,newvote,map from general where user_id='{$_SESSION['p_id']}'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$me = MYDB_fetch_array($result);
//그새 사망이면
if($me['no'] == 0) {
- echo "a";
+ //echo "a";
echo "";
exit(0);
}
diff --git a/twe/stylesheet.php b/twe/stylesheet.php
index 5f268e66..1d4761b8 100644
--- a/twe/stylesheet.php
+++ b/twe/stylesheet.php
@@ -1,12 +1,16 @@