diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 00000000..7dc85d41
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,15 @@
+{
+ "files.exclude": {
+ "**/.git": true,
+ "**/.svn": true,
+ "**/.hg": true,
+ "**/CVS": true,
+ "**/.DS_Store": true,
+ "**/logs/*.txt": true,
+
+ },
+ "search.exclude": {
+ "**/che_close": true,
+ "e_lib/*":true,
+ },
+}
\ No newline at end of file
diff --git a/_common.php b/_common.php
index bc36bd5c..fecd45f7 100644
--- a/_common.php
+++ b/_common.php
@@ -7,4 +7,3 @@ require_once(ROOT.W.F_CONFIG.W.APP.PHP);
require_once(ROOT.W.F_FUNC.W.FUNC.PHP);
CustomHeader();
-?>
diff --git a/che_close/_119_b.php b/che_close/_119_b.php
index 365c3a7e..ad3027d3 100644
--- a/che_close/_119_b.php
+++ b/che_close/_119_b.php
@@ -54,4 +54,3 @@ case "락풀기":
}
echo "";
-?>
diff --git a/che_close/_admin1_submit.php b/che_close/_admin1_submit.php
index 3f3bd5b2..c48f3ffd 100644
--- a/che_close/_admin1_submit.php
+++ b/che_close/_admin1_submit.php
@@ -176,5 +176,3 @@ switch($btn) {
}
echo "";
-?>
-
diff --git a/che_close/_admin2_submit.php b/che_close/_admin2_submit.php
index 295d675e..c08fe206 100644
--- a/che_close/_admin2_submit.php
+++ b/che_close/_admin2_submit.php
@@ -428,5 +428,4 @@ switch($btn) {
}
echo "";
-?>
diff --git a/che_close/_admin3_submit.php b/che_close/_admin3_submit.php
index 60ed41b5..119d7548 100644
--- a/che_close/_admin3_submit.php
+++ b/che_close/_admin3_submit.php
@@ -130,5 +130,3 @@ switch($btn) {
}
echo "";
-?>
-
diff --git a/che_close/_admin4_submit.php b/che_close/_admin4_submit.php
index 344f7def..bea27171 100644
--- a/che_close/_admin4_submit.php
+++ b/che_close/_admin4_submit.php
@@ -103,5 +103,3 @@ switch($btn) {
}
echo "";
-?>
-
diff --git a/che_close/_admin5_submit.php b/che_close/_admin5_submit.php
index 3a6bcb98..6aa1ea8d 100644
--- a/che_close/_admin5_submit.php
+++ b/che_close/_admin5_submit.php
@@ -26,5 +26,3 @@ switch($btn) {
}
echo "";
-?>
-
diff --git a/che_close/_simul.php b/che_close/_simul.php
index b993bd97..5f3b4120 100644
--- a/che_close/_simul.php
+++ b/che_close/_simul.php
@@ -1559,4 +1559,4 @@ function printSimul($game, $i) {
";
}
-?>
+
diff --git a/che_close/a_traffic.php b/che_close/a_traffic.php
index 3731917b..1f12bb51 100644
--- a/che_close/a_traffic.php
+++ b/che_close/a_traffic.php
@@ -254,4 +254,3 @@ function getHexCode($hex) {
case 12: return "C"; case 13: return "D"; case 14: return "E"; case 15: return "F";
}
}
-?>
diff --git a/che_close/a_vote.php b/che_close/a_vote.php
index b6acb56c..b225b11c 100644
--- a/che_close/a_vote.php
+++ b/che_close/a_vote.php
@@ -335,4 +335,3 @@ function getNewColor($type) {
return $color;
}
-?>
diff --git a/che_close/analytics.php b/che_close/analytics.php
index bf3f0d19..f0e83ec9 100644
--- a/che_close/analytics.php
+++ b/che_close/analytics.php
@@ -1,4 +1,4 @@
-
+-->
\ No newline at end of file
diff --git a/che_close/c_auction.php b/che_close/c_auction.php
index 99db948f..691fcd29 100644
--- a/che_close/c_auction.php
+++ b/che_close/c_auction.php
@@ -213,4 +213,3 @@ if($btn == "판매") {
}
Submit("b_auction.php", $msg, $msg2);
-?>
diff --git a/che_close/c_dipcenter.php b/che_close/c_dipcenter.php
index 65334296..ffafdf16 100644
--- a/che_close/c_dipcenter.php
+++ b/che_close/c_dipcenter.php
@@ -58,5 +58,3 @@ if($btn == "국가방침") {
echo "";
-?>
-
diff --git a/che_close/c_double.php b/che_close/c_double.php
index 8c99759b..d15b8ce5 100644
--- a/che_close/c_double.php
+++ b/che_close/c_double.php
@@ -124,5 +124,3 @@ if($command == 46) {
echo "";
}
-?>
-
diff --git a/che_close/c_msgsubmit.php b/che_close/c_msgsubmit.php
index 4a0eba39..921e575d 100644
--- a/che_close/c_msgsubmit.php
+++ b/che_close/c_msgsubmit.php
@@ -115,5 +115,3 @@ if($genlist == 9999 && str_replace(" ", "", $msg) != "") {
echo "";
-?>
-
diff --git a/che_close/c_myBossInfo.php b/che_close/c_myBossInfo.php
index f12bee51..c4fa16a7 100644
--- a/che_close/c_myBossInfo.php
+++ b/che_close/c_myBossInfo.php
@@ -252,5 +252,3 @@ if($btn == "추방") {
echo "";
-?>
-
diff --git a/che_close/c_nationrule.php b/che_close/c_nationrule.php
index 9744f007..77aeb108 100644
--- a/che_close/c_nationrule.php
+++ b/che_close/c_nationrule.php
@@ -18,5 +18,3 @@ MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
echo "";
-?>
-
diff --git a/che_close/c_tournament.php b/che_close/c_tournament.php
index 157dc74a..6c1fe646 100644
--- a/che_close/c_tournament.php
+++ b/che_close/c_tournament.php
@@ -3,6 +3,7 @@
include "lib.php";
include "func.php";
+
//로그인 검사
CheckLogin();
$connect = dbConn();
diff --git a/che_close/c_troop.php b/che_close/c_troop.php
index 5dbdfb79..0da27a5f 100644
--- a/che_close/c_troop.php
+++ b/che_close/c_troop.php
@@ -54,5 +54,3 @@ if($btn == "부 대 창 설" && $name != "" && $me[troop] == 0) {
echo "";
MYDB_close($connect);
-?>
-
diff --git a/che_close/c_vacation.php b/che_close/c_vacation.php
index b4062169..4f161d1b 100644
--- a/che_close/c_vacation.php
+++ b/che_close/c_vacation.php
@@ -16,5 +16,3 @@ $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""
echo "";
-?>
-
diff --git a/che_close/config.php b/che_close/config.php
index a1daf139..c60c8bb5 100644
--- a/che_close/config.php
+++ b/che_close/config.php
@@ -1,6 +1,6 @@
-
+*/
\ No newline at end of file
diff --git a/che_close/d_ally.php b/che_close/d_ally.php
index 3e6b36f4..21c29d87 100644
--- a/che_close/d_ally.php
+++ b/che_close/d_ally.php
@@ -116,5 +116,3 @@ pushGenLog($you, $youlog);
echo "";
-?>
-
diff --git a/che_close/d_cancel.php b/che_close/d_cancel.php
index 94281351..7dd03327 100644
--- a/che_close/d_cancel.php
+++ b/che_close/d_cancel.php
@@ -95,5 +95,3 @@ pushHistory($connect, $history);
echo "";
-?>
-
diff --git a/che_close/d_cease.php b/che_close/d_cease.php
index 76c125f7..88dfd30c 100644
--- a/che_close/d_cease.php
+++ b/che_close/d_cease.php
@@ -100,5 +100,3 @@ pushHistory($connect, $history);
echo "";
-?>
-
diff --git a/che_close/d_merge.php b/che_close/d_merge.php
index d57c213e..9a202e95 100644
--- a/che_close/d_merge.php
+++ b/che_close/d_merge.php
@@ -134,5 +134,3 @@ pushHistory($connect, $history);
echo "";
-?>
-
diff --git a/che_close/d_scout.php b/che_close/d_scout.php
index 9900e98f..e427359d 100644
--- a/che_close/d_scout.php
+++ b/che_close/d_scout.php
@@ -159,6 +159,3 @@ pushAllLog($alllog);
pushHistory($connect, $history);
echo "";
-
-?>
-
diff --git a/che_close/d_setting/_common.php b/che_close/d_setting/_common.php
index 90e4756f..57949e8d 100644
--- a/che_close/d_setting/_common.php
+++ b/che_close/d_setting/_common.php
@@ -7,4 +7,3 @@ require_once(ROOT.W.F_CONFIG.W.APP.PHP);
require_once(ROOT.W.F_FUNC.W.FUNC.PHP);
CustomHeader();
-?>
diff --git a/che_close/d_surrender.php b/che_close/d_surrender.php
index 729fe7fa..d6b37480 100644
--- a/che_close/d_surrender.php
+++ b/che_close/d_surrender.php
@@ -124,5 +124,4 @@ pushHistory($connect, $history);
echo "";
-?>
diff --git a/che_close/data/connected.php b/che_close/data/connected.php
index caaabefa..6702e873 100644
--- a/che_close/data/connected.php
+++ b/che_close/data/connected.php
@@ -1 +1 @@
-
+
-
diff --git a/che_close/event_2.php b/che_close/event_2.php
index 94bcc518..b104b92b 100644
--- a/che_close/event_2.php
+++ b/che_close/event_2.php
@@ -253,5 +253,3 @@ function RegGeneral3($connect,$turnterm,$gencount,$nation,$level,$name,$leader,$
) or Error(__LINE__.MYDB_error($connect),"");
}
-?>
-
diff --git a/che_close/event_3.php b/che_close/event_3.php
index 48fd3d51..a613f347 100644
--- a/che_close/event_3.php
+++ b/che_close/event_3.php
@@ -114,5 +114,3 @@ function RegGeneral3($connect,$turnterm,$gencount,$nation,$level,$name,$leader,$
) or Error(__LINE__.MYDB_error($connect),"");
}
-?>
-
diff --git a/che_close/event_4.php b/che_close/event_4.php
index 9d3b1c10..0b4ec99d 100644
--- a/che_close/event_4.php
+++ b/che_close/event_4.php
@@ -143,5 +143,3 @@ function RegGeneral4($connect,$turnterm,$gencount,$nation,$level,$name,$leader,$
) or Error(__LINE__.MYDB_error($connect),"");
}
-?>
-
diff --git a/che_close/func.php b/che_close/func.php
index 31577742..7ef2380e 100644
--- a/che_close/func.php
+++ b/che_close/func.php
@@ -7416,4 +7416,3 @@ function Submit($url, $msg="", $msg2="") {
";
}
-?>
diff --git a/che_close/func_auction.php b/che_close/func_auction.php
index 9ffd729c..065d6919 100644
--- a/che_close/func_auction.php
+++ b/che_close/func_auction.php
@@ -345,4 +345,3 @@ function processAuction($connect) {
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
}
-?>
diff --git a/che_close/func_history.php b/che_close/func_history.php
index bd18360c..210eca7c 100644
--- a/che_close/func_history.php
+++ b/che_close/func_history.php
@@ -128,4 +128,3 @@ function LogHistory($connect, $isFirst=0) {
if(STEP_LOG) pushStepLog(date('Y-m-d H:i:s').', LogHistory Finish');
return true;
}
-?>
diff --git a/che_close/func_http.php b/che_close/func_http.php
index 09dd69d3..c809b579 100644
--- a/che_close/func_http.php
+++ b/che_close/func_http.php
@@ -285,4 +285,3 @@ class HTTP{
}
}
}
-?>
\ No newline at end of file
diff --git a/che_close/func_npc.php b/che_close/func_npc.php
index 9c8f7d1d..c1444023 100644
--- a/che_close/func_npc.php
+++ b/che_close/func_npc.php
@@ -1861,4 +1861,3 @@ function RiceBillRate($connect, $nation, $rate, $rice_rate, $type, $rice) {
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
}
-?>
diff --git a/che_close/func_process.php b/che_close/func_process.php
index 7c25f4ff..abcc8493 100644
--- a/che_close/func_process.php
+++ b/che_close/func_process.php
@@ -6145,4 +6145,3 @@ function process_99($connect, &$general) {
pushGenLog($general, $log);
}
-?>
diff --git a/che_close/func_string.php b/che_close/func_string.php
index 6c8c0c27..c84011af 100644
--- a/che_close/func_string.php
+++ b/che_close/func_string.php
@@ -301,4 +301,3 @@ class _String {
}
}
-?>
diff --git a/che_close/install2_ok.php b/che_close/install2_ok.php
index 9c83711c..1441a8a7 100644
--- a/che_close/install2_ok.php
+++ b/che_close/install2_ok.php
@@ -345,4 +345,3 @@ function insertCity($connect, $name, $level, $pop2, $agri2, $comm2, $secu2, $def
) or Error(__LINE__.MYDB_error($connect),"");
}
-?>
diff --git a/che_close/install3_ok.php b/che_close/install3_ok.php
index 3d4f74b0..4a5fd495 100644
--- a/che_close/install3_ok.php
+++ b/che_close/install3_ok.php
@@ -6,5 +6,5 @@ $connect=dbConn();
LogHistory($connect, 1);
-echo "";
-?>
+//echo "";
+echo "index.php"; //TODO:replace
diff --git a/che_close/install_ok.php b/che_close/install_ok.php
index 3d0326c3..9ae5d345 100644
--- a/che_close/install_ok.php
+++ b/che_close/install_ok.php
@@ -83,7 +83,7 @@ if(!isTable($connect, "history",$dbname)) @MYDB_query($history_schema, $connect)
// 파일로 DB 정보 저장
$file=@fopen("d_setting/set.php","w") or Error("set.php 파일 생성 실패
디렉토리의 퍼미션을 707로 주십시요","");
-@fwrite($file,"\n") or Error("set.php 파일 생성 실패
디렉토리의 퍼미션을 707로 주십시요","");
+@fwrite($file,"
디렉토리의 퍼미션을 707로 주십시요","");
@fclose($file);
@mkdir("data",0707);
@chmod("data",0707);
@@ -93,5 +93,4 @@ $temp=MYDB_fetch_array(MYDB_query("select count(*) from general where level = '1
MYDB_close($connect);
-echo "";
-?>
+echo "install2.php"; //TODO:location.replace 살려두기
diff --git a/che_close/join_post.php b/che_close/join_post.php
index 52384fb3..52d6e10f 100644
--- a/che_close/join_post.php
+++ b/che_close/join_post.php
@@ -271,5 +271,3 @@ if($id_num) {
");
echo("");
}
-
-?>
diff --git a/che_close/join_post.php.orig b/che_close/join_post.php.orig
index ed10c24b..c796b36b 100644
--- a/che_close/join_post.php.orig
+++ b/che_close/join_post.php.orig
@@ -272,4 +272,3 @@ if($id_num) {
echo("");
}
-?>
diff --git a/che_close/join_token.php b/che_close/join_token.php
index 87042ec3..992b5b88 100644
--- a/che_close/join_token.php
+++ b/che_close/join_token.php
@@ -54,5 +54,3 @@ $response['intel'] = $abil['intel'];
usleep(100*1000);
echo json_encode($response);
-
-?>
\ No newline at end of file
diff --git a/che_close/lib.php b/che_close/lib.php
index 7166d844..f6159ad3 100644
--- a/che_close/lib.php
+++ b/che_close/lib.php
@@ -181,4 +181,3 @@ function PrintElapsedTime() {
$_endTime = round(getMicroTime() - $_startTime, 3);
echo "
| 경과시간 : {$_endTime}초 |