diff --git a/i_entrance/adminInc.php b/i_entrance/adminInc.php
index deaac9b4..50e24da9 100644
--- a/i_entrance/adminInc.php
+++ b/i_entrance/adminInc.php
@@ -37,7 +37,7 @@ foreach($_serverDirs as $serverDir) {
if(!is_dir($serverPath)){
$state = '상태이상, 01';
}
- else if(!file_exists($realServerPath.'/main.php')){
+ else if(!file_exists($realServerPath.'/index.php')){
$state = '상태이상, 02';
}
else if(file_exists($realServerPath.'/.htaccess')) {
diff --git a/twe/c_double.php b/twe/c_double.php
index 3c5441e2..5fa64c76 100644
--- a/twe/c_double.php
+++ b/twe/c_double.php
@@ -40,8 +40,8 @@ if($command == 46) {
}
$query = "update general set {$str} where no_member='{$_SESSION['noMember']}'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
- //echo "";
- echo 'main.php';//TODO:debug all and replace
+ //echo "";
+ echo 'index.php';//TODO:debug all and replace
//통합제의
} elseif($command == 53) {
$query = "select nation,level from general where no_member='{$_SESSION['noMember']}'";
@@ -125,8 +125,8 @@ if($command == 46) {
}
$query = "update general set {$str} where no_member='{$_SESSION['noMember']}'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
- //echo "";
- echo 'main.php';//TODO:debug all and replace
+ //echo "";
+ echo 'index.php';//TODO:debug all and replace
}
diff --git a/twe/c_msgsubmit.php b/twe/c_msgsubmit.php
index 40b1bad3..62e741fe 100644
--- a/twe/c_msgsubmit.php
+++ b/twe/c_msgsubmit.php
@@ -23,15 +23,15 @@ $me = MYDB_fetch_array($result);
$con = checkLimit($me['userlevel'], $me['con'], $admin['conlimit']);
if($con >= 2) {
- //echo ""; exit();
+ //echo ""; exit();
header('Content-Type: application/json');
echo json_encode([
'result' => false,
'reason' => '권한이 충분하지 않습니다.',
- 'redirect' => 'main.php',
+ 'redirect' => 'index.php',
'page_target' => 'top'
]);
- echo 'main.php';//TODO:debug all and replace
+ echo 'index.php';//TODO:debug all and replace
}
$msg = str_replace("|", "", $msg);
diff --git a/twe/func.php b/twe/func.php
index 5bdf72ca..bf6eda8f 100644
--- a/twe/func.php
+++ b/twe/func.php
@@ -4506,7 +4506,7 @@ function printCitysName($connect, $cityNo, $distance=1) {
function backButton() {
echo "
-
+
";
}
diff --git a/twe/func_legacy.php b/twe/func_legacy.php
index 8fb7eb5d..4dae871d 100644
--- a/twe/func_legacy.php
+++ b/twe/func_legacy.php
@@ -6,7 +6,7 @@ function CheckLogin($type=0) {
header('Location: ../');
}
else {
- header('Location: main.php');
+ header('Location: index.php');
}
exit();
}
diff --git a/twe/index.php b/twe/index.php
index 95992a56..ac30d9a6 100644
--- a/twe/index.php
+++ b/twe/index.php
@@ -1,13 +1,284 @@
queryFirstRow('select no,skin,userlevel,con,turntime,newmsg,newvote,map from general where user_id = %s', $userID);
+
+//그새 사망이면
+if($me === null) {
+ resetSessionGeneralValues();
+ header('Location: ../');
+ die();
+}
+
+if($me['newmsg'] == 1 && $me['newvote'] == 1) {
+ $query = "update general set newmsg=0,newvote=0 where no_member='{$_SESSION['noMember']}'";
+ MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
+} elseif($me['newmsg'] == 1) {
+ $query = "update general set newmsg=0 where no_member='{$_SESSION['noMember']}'";
+ MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
+} elseif($me['newvote'] == 1) {
+ $query = "update general set newvote=0 where no_member='{$_SESSION['noMember']}'";
+ MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
+}
+
+$query = "select develcost,online,conlimit,tournament,tnmt_type,turnterm,scenario,extend,fiction,npcmode,vote from game where no=1";
+$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
+$admin = MYDB_fetch_array($result);
+
+$query = "select plock from plock where no=1";
+$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
+$plock = MYDB_fetch_array($result);
+
+$con = checkLimit($me['userlevel'], $me['con'], $admin['conlimit']);
+if($con >= 2) { printLimitMsg($me['turntime']); exit(); }
+
+if($me['skin'] < 1) {
+ $tempColor = $_basecolor; $tempColor2 = $_basecolor2; $tempColor3 = $_basecolor3; $tempColor4 = $_basecolor4;
+ $_basecolor = "000000"; $_basecolor2 = "000000"; $_basecolor3 = "000000"; $_basecolor4 = "000000";
+}
+
+$scenario = getScenario();
+?>
+
-삼국지 모의전투 유기체서버
+메인
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+ |
+ =getMapHtml()?>
+ |
+ |
+
+
+
+
+
+ |
+ |
+
+ | =commandButton()?> |
+
+
+
+ | 장수 동향 |
+ 개인 기록 |
+
+
+ |
+ |
+
+ | 중원 정세 |
+ |
+
+
+
+ |
+
+ |
+
+ | =allButton()?> |
+ |
+
+ |
+ |
+
+
+
+ |
+
+
+
+
-*/
\ No newline at end of file
+queryFirstRow('select no,skin,userlevel,con,turntime,newmsg,newvote,map from general where user_id = %s', $userID);
-
-//그새 사망이면
-if($me === null) {
- resetSessionGeneralValues();
- header('Location: ../');
- die();
-}
-
-if($me['newmsg'] == 1 && $me['newvote'] == 1) {
- $query = "update general set newmsg=0,newvote=0 where no_member='{$_SESSION['noMember']}'";
- MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
-} elseif($me['newmsg'] == 1) {
- $query = "update general set newmsg=0 where no_member='{$_SESSION['noMember']}'";
- MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
-} elseif($me['newvote'] == 1) {
- $query = "update general set newvote=0 where no_member='{$_SESSION['noMember']}'";
- MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
-}
-
-$query = "select develcost,online,conlimit,tournament,tnmt_type,turnterm,scenario,extend,fiction,npcmode,vote from game where no=1";
-$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
-$admin = MYDB_fetch_array($result);
-
-$query = "select plock from plock where no=1";
-$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
-$plock = MYDB_fetch_array($result);
-
-$con = checkLimit($me['userlevel'], $me['con'], $admin['conlimit']);
-if($con >= 2) { printLimitMsg($me['turntime']); exit(); }
-
-if($me['skin'] < 1) {
- $tempColor = $_basecolor; $tempColor2 = $_basecolor2; $tempColor3 = $_basecolor3; $tempColor4 = $_basecolor4;
- $_basecolor = "000000"; $_basecolor2 = "000000"; $_basecolor3 = "000000"; $_basecolor4 = "000000";
-}
-
-$scenario = getScenario();
-?>
-
-
-
-메인
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- |
- =getMapHtml()?>
- |
- |
-
-
-
-
-
- |
- |
-
- | =commandButton()?> |
-
-
-
- | 장수 동향 |
- 개인 기록 |
-
-
- |
- |
-
- | 중원 정세 |
- |
-
-
-
- |
-
- |
-
- | =allButton()?> |
- |
-
- |
- |
-
-
-
- |
-
-
-
-
-
-= 2) {
- //echo "";
- echo 'main.php';//TODO:debug all and replace
+ //echo "";
+ echo 'index.php';//TODO:debug all and replace
exit();
}
diff --git a/twe/turn.php b/twe/turn.php
index f3b9b543..8e4eaffc 100644
--- a/twe/turn.php
+++ b/twe/turn.php
@@ -18,8 +18,8 @@ $me = MYDB_fetch_array($result);
$con = checkLimit($me['userlevel'], $me['con'], $admin['conlimit']);
if($con >= 2) {
- //echo "";
- echo 'main.php';//TODO:debug all and replace
+ //echo "";
+ echo 'index.php';//TODO:debug all and replace
exit();
}