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(); +?> + -삼국지 모의전투 유기체서버 +메인 + + + + + + + + + + + + - - - + + +
+ + + + + + 0) { $color = "cyan"; } +else { $color = "white"; } +if($valid == 1) { + echo " + + + + + + "; +} +?> + + + + + + + + + + + + + "; +?> + + + + += 5) { + echo " + +"; +} + +?> + +
삼국지 모의전투 PHP 유기체서버 (0?"cyan":"white";?>>)
{$scenario}NPC수 : {$extend}NPC상성 : {$fiction}NPC선택 : {$npcmode}
전체 접속자 수 : 턴당 갱신횟수 :
+서버 가동중"; } +else { echo "서버 동결중"; } + +echo " + +"; + +switch($admin['tnmt_type']) { +case 0: $str = "전력전"; break; +case 1: $str = "통솔전"; break; +case 2: $str = "일기토"; break; +case 3: $str = "설전"; break; +} +$str2 = getTournament($admin['tournament']); +$str3 = getTournamentTime($connect); +if($admin['tournament'] == 0) { echo "현재 토너먼트 경기 없음"; } +else { echo "{$str} {$str2} {$str3}↑"; } + +echo " + +"; + +$query = "select no from auction"; +$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); +$auctionCount = MYDB_num_rows($result); +if($auctionCount > 0) { echo "{$auctionCount}건 거래 진행중"; } +else { echo "진행중 거래 없음"; } + +echo " + +"; + +$vote = explode("|", $admin['vote']); +$vote[0] = Tag2Code($vote[0]); +if($vote[0] == "") { echo "진행중 설문 없음"; } +else { echo "설문 진행중 : $vote[0]"; } + + +echo " +
접속중인 국가:
【 국가방침 】
【 접속자 】
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ +
+ 0?"cyan":"white";?>> Ctrl, Shift, 드래그로 복수선택 가능     반복&수정 + ;color:white;width:50;font-size:13px; value='반복' onclick='refreshing(2,0)'>;color:white;width:80;font-size:13px; value='▼미루기' onclick='refreshing(2,1)'>;color:white;width:80;font-size:13px; value='▲당기기' onclick='refreshing(2,2)'> +
+ + ;color:white;width:110;font-size:13px; value='실 행' onclick='refreshing(3,form2)'>;color:white;width:110;font-size:13px; value='갱 신' onclick='refreshing(0,0)'>;color:white;width:160;font-size:13px; value='로그아웃' onclick=location.replace('logout_process.php')>
+
+ + + + + + +
+ + + + + + + + + + + +
장수 동향개인 기록
중원 정세
+ + + + + + + +
+
+ + + ;color:white;font-size:13px;width:100px; value='서신전달&갱신' onclick='refreshing(4,message)'> +
내용 없이 '서신전달&갱신'을 누르면 메세지창이 갱신됩니다. +
+
+ +
+ + + +
+ +
+ -*/ \ 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(); -?> - - - -메인 - - - - - - - - - - - - - - - - -
- - - - - - 0) { $color = "cyan"; } -else { $color = "white"; } -if($valid == 1) { - echo " - - - - - - "; -} -?> - - - - - - - - - - - - - "; -?> - - - - -= 5) { - echo " - -"; -} - -?> - -
삼국지 모의전투 PHP 유기체서버 (0?"cyan":"white";?>>)
{$scenario}NPC수 : {$extend}NPC상성 : {$fiction}NPC선택 : {$npcmode}
전체 접속자 수 : 턴당 갱신횟수 :
-서버 가동중"; } -else { echo "서버 동결중"; } - -echo " - -"; - -switch($admin['tnmt_type']) { -case 0: $str = "전력전"; break; -case 1: $str = "통솔전"; break; -case 2: $str = "일기토"; break; -case 3: $str = "설전"; break; -} -$str2 = getTournament($admin['tournament']); -$str3 = getTournamentTime($connect); -if($admin['tournament'] == 0) { echo "현재 토너먼트 경기 없음"; } -else { echo "{$str} {$str2} {$str3}↑"; } - -echo " - -"; - -$query = "select no from auction"; -$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); -$auctionCount = MYDB_num_rows($result); -if($auctionCount > 0) { echo "{$auctionCount}건 거래 진행중"; } -else { echo "진행중 거래 없음"; } - -echo " - -"; - -$vote = explode("|", $admin['vote']); -$vote[0] = Tag2Code($vote[0]); -if($vote[0] == "") { echo "진행중 설문 없음"; } -else { echo "설문 진행중 : $vote[0]"; } - - -echo " -
접속중인 국가:
【 국가방침 】
【 접속자 】
- - - - - - - - - - -
- - - - - - - - - - - - - - - - - -
- -
- 0?"cyan":"white";?>> Ctrl, Shift, 드래그로 복수선택 가능     반복&수정 - ;color:white;width:50;font-size:13px; value='반복' onclick='refreshing(2,0)'>;color:white;width:80;font-size:13px; value='▼미루기' onclick='refreshing(2,1)'>;color:white;width:80;font-size:13px; value='▲당기기' onclick='refreshing(2,2)'> -
- - ;color:white;width:110;font-size:13px; value='실 행' onclick='refreshing(3,form2)'>;color:white;width:110;font-size:13px; value='갱 신' onclick='refreshing(0,0)'>;color:white;width:160;font-size:13px; value='로그아웃' onclick=location.replace('logout_process.php')>
-
- - - - - - -
- - - - - - - - - - - -
장수 동향개인 기록
중원 정세
- - - - - - - -
-
- - - ;color:white;font-size:13px;width:100px; value='서신전달&갱신' onclick='refreshing(4,message)'> -
내용 없이 '서신전달&갱신'을 누르면 메세지창이 갱신됩니다. -
-
- -
- - - -
- -
- - -= 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(); }