stylesheet를 우선 기본값으로 보여주도록 수정

This commit is contained in:
2018-01-20 05:43:50 +09:00
parent a39a1e8612
commit 3e629c5c54
4 changed files with 14 additions and 5 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ function GetImageURL($imgsvr) {
}
function CheckLogin($type=0) {
if($_SESSION['p_id'] == "") {
if(!isset($_SESSION['p_id'])) {
if($type == 0) {
//echo "<script>location.replace('start.php');</script>";
echo 'start.php';//TODO:debug all and replace
+2 -2
View File
@@ -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);
+6 -1
View File
@@ -7,13 +7,18 @@ $connect = dbConn();
increaseRefresh($connect, "메인", 2);
checkTurn($connect);
if(!isset($_SESSION['p_id'])){
echo "<script>location.replace('start.php');</script>";
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 "<script>location.replace('start.php');</script>";
exit(0);
}
+5 -1
View File
@@ -1,12 +1,16 @@
<?php
include "lib.php";
include "../e_lib/util.php";
$connect=dbConn();
$query = "select month from game";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$admin = MYDB_fetch_array($result);
$query = "select no,skin,con from general where user_id='{$_SESSION['p_id']}'";
$tmp_id = util::array_get($_SESSION['p_id'],0);
$query = "select no,skin,con from general where user_id='$tmp_id'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$me = MYDB_fetch_array($result);