stylesheet를 우선 기본값으로 보여주도록 수정
This commit is contained in:
+1
-1
@@ -111,7 +111,7 @@ function GetImageURL($imgsvr) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function CheckLogin($type=0) {
|
function CheckLogin($type=0) {
|
||||||
if($_SESSION['p_id'] == "") {
|
if(!isset($_SESSION['p_id'])) {
|
||||||
if($type == 0) {
|
if($type == 0) {
|
||||||
//echo "<script>location.replace('start.php');</script>";
|
//echo "<script>location.replace('start.php');</script>";
|
||||||
echo 'start.php';//TODO:debug all and replace
|
echo 'start.php';//TODO:debug all and replace
|
||||||
|
|||||||
+2
-2
@@ -67,8 +67,8 @@ function updateToken(type) {
|
|||||||
console.log(data);
|
console.log(data);
|
||||||
if(data.result != "rand" && data.result != "leadpow" && data.result != "leadint" && data.result != "powint") {
|
if(data.result != "rand" && data.result != "leadpow" && data.result != "leadint" && data.result != "powint") {
|
||||||
alert(jqXHR.status+", "+jqXHR.statusText+", "+jqXHR.responseText);
|
alert(jqXHR.status+", "+jqXHR.statusText+", "+jqXHR.responseText);
|
||||||
//location.replace("index.php");
|
location.replace("index.php");
|
||||||
echo 'index.php';//TODO:debug all and replace
|
//echo 'index.php';//TODO:debug all and replace
|
||||||
} else {
|
} else {
|
||||||
$("#leader").text(data.leader);
|
$("#leader").text(data.leader);
|
||||||
$("#power").text(data.power);
|
$("#power").text(data.power);
|
||||||
|
|||||||
+6
-1
@@ -7,13 +7,18 @@ $connect = dbConn();
|
|||||||
increaseRefresh($connect, "메인", 2);
|
increaseRefresh($connect, "메인", 2);
|
||||||
checkTurn($connect);
|
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']}'";
|
$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),"");
|
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||||
$me = MYDB_fetch_array($result);
|
$me = MYDB_fetch_array($result);
|
||||||
|
|
||||||
//그새 사망이면
|
//그새 사망이면
|
||||||
if($me['no'] == 0) {
|
if($me['no'] == 0) {
|
||||||
echo "a";
|
//echo "a";
|
||||||
echo "<script>location.replace('start.php');</script>";
|
echo "<script>location.replace('start.php');</script>";
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-1
@@ -1,12 +1,16 @@
|
|||||||
<?php
|
<?php
|
||||||
include "lib.php";
|
include "lib.php";
|
||||||
|
include "../e_lib/util.php";
|
||||||
$connect=dbConn();
|
$connect=dbConn();
|
||||||
|
|
||||||
$query = "select month from game";
|
$query = "select month from game";
|
||||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||||
$admin = MYDB_fetch_array($result);
|
$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),"");
|
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||||
$me = MYDB_fetch_array($result);
|
$me = MYDB_fetch_array($result);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user