From 3e629c5c540a0dedd5d9bb9c71c355b7daf7b003 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 20 Jan 2018 05:43:50 +0900 Subject: [PATCH] =?UTF-8?q?stylesheet=EB=A5=BC=20=EC=9A=B0=EC=84=A0=20?= =?UTF-8?q?=EA=B8=B0=EB=B3=B8=EA=B0=92=EC=9C=BC=EB=A1=9C=20=EB=B3=B4?= =?UTF-8?q?=EC=97=AC=EC=A3=BC=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- twe/func.php | 2 +- twe/join.php | 4 ++-- twe/main.php | 7 ++++++- twe/stylesheet.php | 6 +++++- 4 files changed, 14 insertions(+), 5 deletions(-) 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 @@