From 8fa3af0fb88613f6c486ae57277e40287ca65f2f Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 20 Jan 2018 04:00:59 +0900 Subject: [PATCH] =?UTF-8?q?warning=20=ED=99=95=EC=9D=B8=EC=9D=84=20?= =?UTF-8?q?=EC=9C=84=ED=95=B4=20=EA=B0=80=EB=8A=A5=ED=95=9C=20=EB=AA=A8?= =?UTF-8?q?=EB=93=A0=20replace=20=ED=83=9C=EA=B7=B8=EB=A5=BC=20=EB=AC=B4?= =?UTF-8?q?=ED=9A=A8=ED=99=94=ED=95=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit index.php에 대한 iframe 일부 삭제 --- f_config/SESSION.php | 4 +++- f_func/func.js | 6 ++++-- i_entrance/manage/iconPost.php | 3 +++ i_entrance/member/Get.php | 2 +- index.php | 6 ++++++ twe/_119_b.php | 5 +++-- twe/_admin1_submit.php | 5 +++-- twe/_admin2_submit.php | 5 +++-- twe/_admin3_submit.php | 5 +++-- twe/_admin4_submit.php | 5 +++-- twe/_admin5_submit.php | 5 +++-- twe/b_myPage.php | 5 ++++- twe/c_betting.php | 5 +++-- twe/c_chiefboard.php | 2 +- twe/c_dipcenter.php | 5 +++-- twe/c_double.php | 15 ++++++++++----- twe/c_msgsubmit.php | 9 ++++++--- twe/c_myBossInfo.php | 8 +++++--- twe/c_nationboard.php | 2 +- twe/c_nationrule.php | 2 +- twe/c_tournament.php | 2 +- twe/c_vacation.php | 2 +- twe/c_vote.php | 2 +- twe/event_4.php | 3 ++- twe/func.php | 16 ++++++++++++---- twe/index.php | 4 ++++ twe/install2_ok.php | 2 +- twe/install3_ok.php | 2 +- twe/install_ok.php | 3 ++- twe/join.php | 6 ++++-- twe/join_post.php | 3 ++- twe/login_process.php | 9 ++++++--- twe/logout_process.php | 2 +- twe/npc_login_process.php | 9 ++++++--- twe/preprocessing.php | 6 +++++- twe/processing.php | 3 ++- twe/reset.php | 3 ++- twe/scenario_1.php | 4 ++-- twe/scenario_10.php | 4 ++-- twe/scenario_11.php | 4 ++-- twe/scenario_12.php | 4 ++-- twe/scenario_2.php | 4 ++-- twe/scenario_20.php | 4 ++-- twe/scenario_21.php | 4 ++-- twe/scenario_22.php | 3 ++- twe/scenario_23.php | 4 ++-- twe/scenario_24.php | 3 ++- twe/scenario_25.php | 4 ++-- twe/scenario_26.php | 4 ++-- twe/scenario_27.php | 4 ++-- twe/scenario_28.php | 4 ++-- twe/scenario_3.php | 4 ++-- twe/scenario_4.php | 4 ++-- twe/scenario_5.php | 4 ++-- twe/scenario_6.php | 4 ++-- twe/scenario_7.php | 4 ++-- twe/scenario_8.php | 4 ++-- twe/scenario_9.php | 3 ++- twe/select_npc_post.php | 3 ++- twe/start.php | 4 +++- twe/turn.php | 9 +++++++-- twe/turn_pop_core.php | 3 ++- twe/turn_push_core.php | 3 ++- 63 files changed, 180 insertions(+), 104 deletions(-) diff --git a/f_config/SESSION.php b/f_config/SESSION.php index 2a50f81f..c619ac35 100644 --- a/f_config/SESSION.php +++ b/f_config/SESSION.php @@ -6,8 +6,10 @@ $SESSION = new _Session(); if($SESSION->IsLoggedIn() == false) { // echo(''); - echo(''); + header ("Location: ".ROOT.W.'i_login/login.php'); exit(1); + //echo(''); + //exit(1); } diff --git a/f_func/func.js b/f_func/func.js index 3139228f..d5c2b1f1 100644 --- a/f_func/func.js +++ b/f_func/func.js @@ -7,11 +7,13 @@ function Open(url) { } function Replace(url) { - location.replace(url); + //location.replace(url); + console.log('this',url); } function ReplaceFrame(url) { - window.top.location.replace(url); + //window.top.location.replace(url); + console.log('top',url); } function ImportStyle(href) { diff --git a/i_entrance/manage/iconPost.php b/i_entrance/manage/iconPost.php index a77e3e20..56769534 100644 --- a/i_entrance/manage/iconPost.php +++ b/i_entrance/manage/iconPost.php @@ -72,8 +72,11 @@ if(!is_uploaded_file($image['tmp_name'])) { sleep(1); +/* echo ""; +*/ +echo ROOT.W.I.ENTRANCE.W.ENTRANCE.PHP;//TODO:debug all and replace diff --git a/i_entrance/member/Get.php b/i_entrance/member/Get.php index 48347bd3..69200ba6 100644 --- a/i_entrance/member/Get.php +++ b/i_entrance/member/Get.php @@ -7,7 +7,7 @@ require_once('_common.php'); require_once(ROOT.W.F_FUNC.W.'class._JSON.php'); require_once(ROOT.W.F_CONFIG.W.DB.PHP); require_once(ROOT.W.F_CONFIG.W.SESSION.PHP); -require_once(ROOT.W.E_LIB.W.UTIL.PHP); +require_once(ROOT.W.E_LIB.W.'util.php'); $rs = $DB->Select('GRADE', 'MEMBER', "NO='{$SESSION->NoMember()}'"); $member = $DB->Get($rs); diff --git a/index.php b/index.php index 4173b042..a59956f6 100644 --- a/index.php +++ b/index.php @@ -1,3 +1,8 @@ + @@ -12,3 +17,4 @@ +*/ \ No newline at end of file diff --git a/twe/_119_b.php b/twe/_119_b.php index eb8e746e..dbf7ab7f 100644 --- a/twe/_119_b.php +++ b/twe/_119_b.php @@ -9,7 +9,8 @@ $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"" $me = MYDB_fetch_array($result); if($me['userlevel'] < 5) { - echo ""; + //echo ""; + echo '_119.php';//TODO:debug all and replace } switch($btn) { @@ -54,4 +55,4 @@ case "락풀기": } //echo ""; -echo '_119.php';//TODO:replace +echo '_119.php';//TODO:debug all and replace diff --git a/twe/_admin1_submit.php b/twe/_admin1_submit.php index 8f032a9a..c88de998 100644 --- a/twe/_admin1_submit.php +++ b/twe/_admin1_submit.php @@ -12,7 +12,8 @@ $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"" $me = MYDB_fetch_array($result); if($me['userlevel'] < 5) { - echo ""; + //echo ""; + echo '_admin1.php';//TODO:debug all and replace } switch($btn) { @@ -176,5 +177,5 @@ switch($btn) { } //echo ""; -echo '_admin1.php';//TODO:replace +echo '_admin1.php';//TODO:debug all and replace diff --git a/twe/_admin2_submit.php b/twe/_admin2_submit.php index 354f26bf..99d56b30 100644 --- a/twe/_admin2_submit.php +++ b/twe/_admin2_submit.php @@ -10,7 +10,8 @@ $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"" $me = MYDB_fetch_array($result); if($me['userlevel'] < 5) { - echo ""; + //echo ""; + echo '_admin2.php';//TODO:debug all and replace } switch($btn) { @@ -428,5 +429,5 @@ switch($btn) { } //echo ""; -echo '_admin2.php';//TODO:replace +echo '_admin2.php';//TODO:debug all and replace diff --git a/twe/_admin3_submit.php b/twe/_admin3_submit.php index 5b2da323..0ba212e1 100644 --- a/twe/_admin3_submit.php +++ b/twe/_admin3_submit.php @@ -12,7 +12,8 @@ $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"" $me = MYDB_fetch_array($result); if($me['userlevel'] < 4) { - echo ""; + //echo ""; + echo '_admin3.php';//TODO:debug all and replace } switch($btn) { @@ -130,5 +131,5 @@ switch($btn) { } //echo ""; -echo '_admin3.php';//TODO:replace +echo '_admin3.php';//TODO:debug all and replace diff --git a/twe/_admin4_submit.php b/twe/_admin4_submit.php index ef8b543f..d70b8da2 100644 --- a/twe/_admin4_submit.php +++ b/twe/_admin4_submit.php @@ -10,7 +10,8 @@ $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"" $me = MYDB_fetch_array($result); if($me['userlevel'] < 5) { - echo ""; + //echo ""; + echo '_admin4.php';//TODO:debug all and replace } switch($btn) { @@ -103,5 +104,5 @@ switch($btn) { } //echo ""; -echo '_admin4.php'; //TODO:replace +echo '_admin4.php'; //TODO:debug all and replace diff --git a/twe/_admin5_submit.php b/twe/_admin5_submit.php index c99f6fce..cfbda22e 100644 --- a/twe/_admin5_submit.php +++ b/twe/_admin5_submit.php @@ -10,7 +10,8 @@ $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"" $me = MYDB_fetch_array($result); if($me['userlevel'] < 5) { - echo ""; + //echo ""; + echo '_admin5.php';//TODO:debug all and replace } switch($btn) { @@ -26,6 +27,6 @@ switch($btn) { } //echo ""; -echo '_admin5.php';//TODO:replace +echo '_admin5.php';//TODO:debug all and replace diff --git a/twe/b_myPage.php b/twe/b_myPage.php index 3099287d..77da7517 100644 --- a/twe/b_myPage.php +++ b/twe/b_myPage.php @@ -43,7 +43,10 @@ if($me['skin'] < 1) { type=text/css> diff --git a/twe/c_betting.php b/twe/c_betting.php index 06a4e4e0..01d7c7d4 100644 --- a/twe/c_betting.php +++ b/twe/c_betting.php @@ -13,7 +13,8 @@ $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"" $admin = MYDB_fetch_array($result); if($admin['tournament'] != 6) { - echo ""; + //echo ""; + echo 'b_betting.php';//TODO:debug all and replace exit(); } @@ -38,5 +39,5 @@ for($i=0; $i < 16; $i++) { ?> - + b_betting.php diff --git a/twe/c_chiefboard.php b/twe/c_chiefboard.php index 2615e896..cc493a2d 100644 --- a/twe/c_chiefboard.php +++ b/twe/c_chiefboard.php @@ -43,7 +43,7 @@ if(CheckBlock($connect) != 1 && CheckBlock($connect) != 3) { } //echo ""; -echo 'b_chiefboard.php';//TODO:replace +echo 'b_chiefboard.php';//TODO:debug all and replace ?> diff --git a/twe/c_dipcenter.php b/twe/c_dipcenter.php index c369612b..cc932de1 100644 --- a/twe/c_dipcenter.php +++ b/twe/c_dipcenter.php @@ -15,7 +15,8 @@ $btn = $_POST['btn']; //내가 수뇌부이어야함 if($me['level'] < 5) { - echo ""; + //echo ""; + echo 'b_myBossInfo.php';//TODO:debug all and replace exit(); } @@ -57,6 +58,6 @@ if($btn == "국가방침") { } //echo ""; -echo 'b_dipcenter.php';//TODO:replace +echo 'b_dipcenter.php';//TODO:debug all and replace diff --git a/twe/c_double.php b/twe/c_double.php index ba3734ca..56e76755 100644 --- a/twe/c_double.php +++ b/twe/c_double.php @@ -40,7 +40,8 @@ if($command == 46) { } $query = "update general set {$str} where user_id='{$_SESSION['p_id']}'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); - echo ""; + //echo ""; + echo 'main.php';//TODO:debug all and replace //통합제의 } elseif($command == 53) { $query = "select nation,level from general where user_id='{$_SESSION['p_id']}'"; @@ -66,7 +67,8 @@ if($command == 46) { $query = "update nation set {$str} where nation='{$me['nation']}'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); } - echo ""; + //echo ""; + echo 'b_chiefcenter.php';//TODO:debug all and replace //불가침 } elseif($command == 61) { $query = "select nation,level from general where user_id='{$_SESSION['p_id']}'"; @@ -91,7 +93,8 @@ if($command == 46) { $query = "update nation set {$str} where nation='{$me['nation']}'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); } - echo ""; + //echo ""; + echo 'b_chiefcenter.php';//TODO:debug all and replace //포상, 몰수, 발령, 항복권고, 원조 //선전포고, 종전, 파기, 초토화, 천도, 증축, 감축 //백성동원, 수몰, 허보, 피장파장, 의병모집, 이호경식, 급습 @@ -112,7 +115,8 @@ if($command == 46) { $query = "update nation set {$str} where nation='{$me['nation']}'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); } - echo ""; + //echo ""; + echo 'b_chiefcenter.php';//TODO:debug all and replace } else { $count = sizeof($turn); $str = "con=con"; @@ -121,7 +125,8 @@ if($command == 46) { } $query = "update general set {$str} where user_id='{$_SESSION['p_id']}'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); - echo ""; + //echo ""; + echo 'main.php';//TODO:debug all and replace } diff --git a/twe/c_msgsubmit.php b/twe/c_msgsubmit.php index a0f14079..4779a914 100644 --- a/twe/c_msgsubmit.php +++ b/twe/c_msgsubmit.php @@ -22,7 +22,10 @@ $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"" $me = MYDB_fetch_array($result); $con = checkLimit($me['userlevel'], $me['con'], $admin['conlimit']); -if($con >= 2) { echo ""; exit(); } +if($con >= 2) { + //echo ""; exit(); + echo 'main.php';//TODO:debug all and replace + } $msg = str_replace("|", "", $msg); $msg = trim($msg); @@ -124,6 +127,6 @@ if($genlist == 9999 && str_replace(" ", "", $msg) != "") { fclose($fp); } -echo ""; -//echo 'msglist.php';//TODO:replace +//echo ""; +echo 'msglist.php';//TODO:debug all and replace diff --git a/twe/c_myBossInfo.php b/twe/c_myBossInfo.php index b2d46c2f..f2095184 100644 --- a/twe/c_myBossInfo.php +++ b/twe/c_myBossInfo.php @@ -27,7 +27,8 @@ if($btn == "임명") { //임명할사람이 군주이면 불가, 내가 수뇌부이어야함, 공석아닌때는 국가가 같아야함 if($general['level'] == 12 || $meLevel < 5 || ($general['nation'] != $me['nation'] && $genlist != 0)) { - echo ""; + //echo ""; + echo 'b_myBossInfo.php';//TODO:debug all and replace exit(); } } elseif($btn == "추방") { @@ -37,7 +38,8 @@ if($btn == "임명") { //추방할사람이 군주이면 불가, 내가 수뇌부이어야함, 공석아닌때는 국가가 같아야함 if($general['level'] == 12 || $meLevel < 5 || ($general['nation'] != $me['nation'] && $outlist != 0)) { - echo ""; + //echo ""; + echo 'b_myBossInfo.php';//TODO:debug all and replace exit(); } } @@ -251,6 +253,6 @@ if($btn == "추방") { } //echo ""; -echo 'b_myBossInfo.php';//TODO:replace +echo 'b_myBossInfo.php';//TODO:debug all and replace diff --git a/twe/c_nationboard.php b/twe/c_nationboard.php index 4b55d19f..21879aaf 100644 --- a/twe/c_nationboard.php +++ b/twe/c_nationboard.php @@ -43,7 +43,7 @@ if(CheckBlock($connect) != 1 && CheckBlock($connect) != 3) { } //echo ""; -echo 'b_nationboard.php';//TODO:replace +echo 'b_nationboard.php';//TODO:debug all and replace ?> diff --git a/twe/c_nationrule.php b/twe/c_nationrule.php index bc7b8327..0918a692 100644 --- a/twe/c_nationrule.php +++ b/twe/c_nationrule.php @@ -17,5 +17,5 @@ $query = "update nation set rule='$msg' where nation='{$me['nation']}'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); //echo ""; -echo 'b_nationrule.php';//TODO:replace +echo 'b_nationrule.php';//TODO:debug all and replace diff --git a/twe/c_tournament.php b/twe/c_tournament.php index 14fd7148..ae6a9563 100644 --- a/twe/c_tournament.php +++ b/twe/c_tournament.php @@ -202,5 +202,5 @@ if($btn == "자동개최설정" && $me['userlevel'] >= 5) { } ?> - + b_tournament.php diff --git a/twe/c_vacation.php b/twe/c_vacation.php index dcc23100..3479b2a0 100644 --- a/twe/c_vacation.php +++ b/twe/c_vacation.php @@ -15,5 +15,5 @@ $query = "update general set killturn='{$admin['killturn']}' where user_id='{$_S $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); //echo ""; -echo 'b_myPage.php'; //TODO:replace +echo 'b_myPage.php'; //TODO:debug all and replace diff --git a/twe/c_vote.php b/twe/c_vote.php index 6623d7be..d43f6caf 100644 --- a/twe/c_vote.php +++ b/twe/c_vote.php @@ -73,5 +73,5 @@ if($btn == "수정" && $me['userlevel'] >= 5) { } ?> - + a_vote.php diff --git a/twe/event_4.php b/twe/event_4.php index 0379269a..df66037d 100644 --- a/twe/event_4.php +++ b/twe/event_4.php @@ -92,7 +92,8 @@ pushAllLog($log); $history[count($history)] = "●{$admin['year']}년 {$admin['month']}월:【이벤트】NPC 유기체가 등장합니다. 의병장과 NPC들의 지능 개선을 위해 NPC 두뇌를 체험합니다. 크게 신경쓰진 마세요."; pushHistory($connect, $history); -echo ""; +//echo ""; +echo './';//TODO:debug all and replace function RegGeneral4($connect,$turnterm,$gencount,$nation,$level,$name,$leader,$power,$intel,$personal,$specage,$specage2,$msg="") { $name = "ⓝ".$name; diff --git a/twe/func.php b/twe/func.php index 7b898a65..283c1bf1 100644 --- a/twe/func.php +++ b/twe/func.php @@ -112,8 +112,14 @@ function GetImageURL($imgsvr) { function CheckLogin($type=0) { if($_SESSION['p_id'] == "") { - if($type == 0) { echo ""; } - else { echo ""; } + if($type == 0) { + //echo ""; + echo 'start.php';//TODO:debug all and replace + } + else { + echo 'main.php';//TODO:debug all and replace + //echo ""; + } exit(); } } @@ -7390,7 +7396,8 @@ function command_Single($connect, $turn, $command) { } $query = "update general set {$str} where user_id='{$_SESSION['p_id']}'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); - echo ""; + //echo ""; + echo 'commandlist.php';//TODO:debug all and replace } @@ -7410,7 +7417,8 @@ function command_Chief($connect, $turn, $command) { $query = "update nation set {$str} where nation='{$me['nation']}'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); } - echo ""; + //echo ""; + echo 'b_chiefcenter.php';//TODO:debug all and replace } function command_Other($connect, $turn, $commandtype) { diff --git a/twe/index.php b/twe/index.php index 3e8e5e49..95992a56 100644 --- a/twe/index.php +++ b/twe/index.php @@ -1,3 +1,6 @@ + 삼국지 모의전투 유기체서버 @@ -7,3 +10,4 @@ +*/ \ No newline at end of file diff --git a/twe/install2_ok.php b/twe/install2_ok.php index 1c9a3955..6ae3940f 100644 --- a/twe/install2_ok.php +++ b/twe/install2_ok.php @@ -302,7 +302,7 @@ insertCity($connect, "파양", 1, 103700, 2000, 2200, 2000, 3800, 3800, 7, insertCity($connect, "탐라", 1, 113000, 2200, 2100, 2000, 4300, 4100, 8, "31|33|34|62"); // 93 : 탐라 insertCity($connect, "유구", 1, 92100, 1700, 1800, 2000, 3700, 3700, 8, "59|69"); // 94 : 유구 -//TODO:replace +//TODO:debug all and replace switch($scenario) { case 0: echo "index.php"; break; case 1: echo "scenario_1.php"; break; diff --git a/twe/install3_ok.php b/twe/install3_ok.php index 5ff3b1d3..92681649 100644 --- a/twe/install3_ok.php +++ b/twe/install3_ok.php @@ -7,4 +7,4 @@ $connect=dbConn(); LogHistory($connect, 1); //echo ""; -echo 'index.php'; //TODO:replace +echo 'index.php'; //TODO:debug all and replace diff --git a/twe/install_ok.php b/twe/install_ok.php index 490d3b17..fa2d7615 100644 --- a/twe/install_ok.php +++ b/twe/install_ok.php @@ -99,4 +99,5 @@ $temp=MYDB_fetch_array(MYDB_query("select count(*) from general where level = '1 MYDB_close($connect); -echo ""; +//echo ""; +echo 'install2.php';//TODO:debug all and replace diff --git a/twe/join.php b/twe/join.php index 77771c14..00469055 100644 --- a/twe/join.php +++ b/twe/join.php @@ -67,7 +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"); + //location.replace("index.php"); + echo 'index.php';//TODO:debug all and replace } else { $("#leader").text(data.leader); $("#power").text(data.power); @@ -77,7 +78,8 @@ function updateToken(type) { dataType: 'json', error: function(jqXHR, textStatus, errorThrown) { alert(jqXHR.status+", "+jqXHR.statusText+", "+jqXHR.responseText); - location.replace("index.php"); + //location.replace("index.php"); + echo 'index.php';//TODO:debug all and replace } }); } diff --git a/twe/join_post.php b/twe/join_post.php index d1074408..f2bdfcc3 100644 --- a/twe/join_post.php +++ b/twe/join_post.php @@ -269,6 +269,7 @@ if($id_num) { echo(""); - echo(""); + //echo(""); + echo 'index.php';//TODO:debug all and replace } diff --git a/twe/login_process.php b/twe/login_process.php index 32f5f541..5f02be3a 100644 --- a/twe/login_process.php +++ b/twe/login_process.php @@ -26,10 +26,12 @@ $me = MYDB_fetch_array($result); if(!$member) { MessageBox("아이디나 암호가 올바르지 않습니다!!!"); - echo ""; + //echo ""; + echo 'index.php';//TODO:debug all and replace } elseif(!$me) { MessageBox("캐릭터가 없습니다!!!"); - echo ""; + //echo ""; + echo 'index.php';//TODO:debug all and replace } else { switch($me['block']) { case 1: @@ -52,7 +54,8 @@ if(!$member) { $query="update general set logcnt=logcnt+1,ip='{$_SESSION['p_ip']}',lastconnect='$date',conmsg='$conmsg' where user_id='{$_SESSION['p_id']}'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); - echo ""; + //echo ""; + echo './';//TODO:debug all and replace $date = date('Y_m_d H:i:s'); $date2 = substr($date, 0, 10); diff --git a/twe/logout_process.php b/twe/logout_process.php index 03172f8f..1d246fb6 100644 --- a/twe/logout_process.php +++ b/twe/logout_process.php @@ -20,7 +20,7 @@ $conmsg = $me['conmsg']; session_destroy(); //echo ""; -echo 'start.php';//TODO:replace +echo 'start.php';//TODO:debug all and replace /* diff --git a/twe/npc_login_process.php b/twe/npc_login_process.php index 5f40f7f6..9358d137 100644 --- a/twe/npc_login_process.php +++ b/twe/npc_login_process.php @@ -21,10 +21,12 @@ $me = MYDB_fetch_array($result); if(!$me2) { MessageBox("캐릭터가 없습니다!!!"); - echo ""; + //echo ""; + echo 'index.php';//TODO:debug all and replace } elseif(!$me) { MessageBox("아이디나 암호가 올바르지 않습니다!!!"); - echo ""; + //echo ""; + echo 'index.php';//TODO:debug all and replace } else { switch($me['block']) { case 1: @@ -47,7 +49,8 @@ if(!$me2) { $query="update general set logcnt=logcnt+1,ip='{$_SESSION['p_ip']}',lastconnect='$date',conmsg='$conmsg' where user_id='{$_SESSION['p_id']}'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); - echo ""; + //echo ""; + echo './';//TODO:debug all and replace $date2 = substr($date, 0, 10); $fp = fopen("logs/_{$date2}-login.txt", "a"); diff --git a/twe/preprocessing.php b/twe/preprocessing.php index 7eb12b68..f49a538b 100644 --- a/twe/preprocessing.php +++ b/twe/preprocessing.php @@ -15,7 +15,11 @@ $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"" $me = MYDB_fetch_array($result); $con = checkLimit($me['userlevel'], $me['con'], $admin['conlimit']); -if($con >= 2) { echo ""; exit(); } +if($con >= 2) { + //echo ""; + echo 'main.php';//TODO:debug all and replace + exit(); + } $count = sizeof($turn); for($i=0; $i < $count; $i++) { diff --git a/twe/processing.php b/twe/processing.php index 4e71454d..bcf340dd 100644 --- a/twe/processing.php +++ b/twe/processing.php @@ -155,7 +155,8 @@ function command_99($connect, $turn) { MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); } } - echo ""; + //echo ""; + echo 'b_chiefcenter.php';//TODO:debug all and replace } function GetExplain() { diff --git a/twe/reset.php b/twe/reset.php index 98d01c04..5f3e777b 100644 --- a/twe/reset.php +++ b/twe/reset.php @@ -77,4 +77,5 @@ $temp=MYDB_fetch_array(MYDB_query("select count(*) from general where level = '1 MYDB_close($connect); -echo ""; +//echo ""; +echo 'install2.php';//TODO:debug all and replace \ No newline at end of file diff --git a/twe/scenario_1.php b/twe/scenario_1.php index 16aa9cc5..f8df828a 100644 --- a/twe/scenario_1.php +++ b/twe/scenario_1.php @@ -790,5 +790,5 @@ $history[count($history)] = "●184년 1월:【역사모드1】< $history[count($history)] = "●184년 1월:【황건적】전국 각지에서 황건적이 들고 일어서고 있습니다."; pushHistory($connect, $history); -echo ""; - +//echo ""; +echo 'install3_ok.php';//TODO:debug all and replace diff --git a/twe/scenario_10.php b/twe/scenario_10.php index 82def41a..1b7d730e 100644 --- a/twe/scenario_10.php +++ b/twe/scenario_10.php @@ -896,5 +896,5 @@ $history[count($history)] = "●225년 1월:【이벤트】location.replace('install3_ok.php');"; - +//echo ""; +echo 'install3_ok.php';//TODO:debug all and replace diff --git a/twe/scenario_11.php b/twe/scenario_11.php index bb6220b6..92db624e 100644 --- a/twe/scenario_11.php +++ b/twe/scenario_11.php @@ -895,5 +895,5 @@ $history[count($history)] = "●228년 1월:【이벤트】location.replace('install3_ok.php');"; - +//echo ""; +echo 'install3_ok.php';//TODO:debug all and replace diff --git a/twe/scenario_12.php b/twe/scenario_12.php index 81000489..49948a76 100644 --- a/twe/scenario_12.php +++ b/twe/scenario_12.php @@ -1179,5 +1179,5 @@ $history[count($history)] = "●191년 1월:【시나리오】●191년 1월:【시나리오】병주에는 유비가 합세한 공손찬이 위용을 뽐냅니다!"; pushHistory($connect, $history); -echo ""; - +//echo ""; +echo 'install3_ok.php';//TODO:debug all and replace diff --git a/twe/scenario_2.php b/twe/scenario_2.php index 4cd917fa..be280095 100644 --- a/twe/scenario_2.php +++ b/twe/scenario_2.php @@ -1709,5 +1709,5 @@ $history[count($history)] = "●190년 1월:【연합】location.replace('install3_ok.php');"; - +//echo ""; +echo 'install3_ok.php';//TODO:debug all and replace diff --git a/twe/scenario_20.php b/twe/scenario_20.php index 1a2a9183..6c0b6de2 100644 --- a/twe/scenario_20.php +++ b/twe/scenario_20.php @@ -744,5 +744,5 @@ $history[count($history)] = "●180년 1월:【가상모드1】 $history[count($history)] = "●180년 1월:【이벤트】당대의 대표 세력들이 등장합니다."; pushHistory($connect, $history); -echo ""; - +//echo ""; +echo 'install3_ok.php';//TODO:debug all and replace diff --git a/twe/scenario_21.php b/twe/scenario_21.php index 165a92b1..9e3f674e 100644 --- a/twe/scenario_21.php +++ b/twe/scenario_21.php @@ -772,5 +772,5 @@ $history[count($history)] = "●180년 1월:【가상모드1】 $history[count($history)] = "●180년 1월:【이벤트】당대의 대표 세력들이 등장합니다."; pushHistory($connect, $history); -echo ""; - +//echo ""; +echo 'install3_ok.php';//TODO:debug all and replace diff --git a/twe/scenario_22.php b/twe/scenario_22.php index 2b77b622..3e6fb3c3 100644 --- a/twe/scenario_22.php +++ b/twe/scenario_22.php @@ -113,7 +113,8 @@ $history[count($history)] = "●179년 1월:【가상모드2】 $history[count($history)] = "●179년 1월:【이벤트】삼모전 역대 훼신들이 등장합니다."; pushHistory($connect, $history); -echo ""; +//echo ""; +echo 'install3_ok.php';//TODO:debug all and replace function RegGeneral2($connect,$turnterm,$gencount,$name,$leader,$power,$intel,$personal,$special,$msg="") { $name = "ⓝ".$name; diff --git a/twe/scenario_23.php b/twe/scenario_23.php index 156fbed0..34292ba4 100644 --- a/twe/scenario_23.php +++ b/twe/scenario_23.php @@ -748,5 +748,5 @@ $history[count($history)] = "●180년 1월:【가상모드3】 $history[count($history)] = "●180년 1월:【이벤트】출연 가능한 모든 장수들이 재야로 등장하는 가상 시나리오."; pushHistory($connect, $history); -echo ""; - +//echo ""; +echo 'install3_ok.php';//TODO:debug all and replace diff --git a/twe/scenario_24.php b/twe/scenario_24.php index a15084d9..d0f9e671 100644 --- a/twe/scenario_24.php +++ b/twe/scenario_24.php @@ -245,7 +245,8 @@ $history[count($history)] = "●180년 1월:【가상모드4】 $history[count($history)] = "●180년 1월:【이벤트】오랑캐에 맞서 버텨내야 합니다!"; pushHistory($connect, $history); -echo ""; +//echo ""; +echo 'install3_ok.php';//TODO:debug all and replace function RegGeneral2($connect,$turnterm,$gencount,$name,$leader,$power,$intel,$personal,$special,$msg="") { $name = "ⓝ".$name; diff --git a/twe/scenario_25.php b/twe/scenario_25.php index c3cc8cd0..9f2c5487 100644 --- a/twe/scenario_25.php +++ b/twe/scenario_25.php @@ -314,5 +314,5 @@ $history[count($history)] = "●180년 1월:【가상모드5】 $history[count($history)] = "●180년 1월:【이벤트】진정한 영웅들만이 재야로 등장하는 가상 시나리오."; pushHistory($connect, $history); -echo ""; - +//echo ""; +echo 'install3_ok.php';//TODO:debug all and replace diff --git a/twe/scenario_26.php b/twe/scenario_26.php index d174771a..b1f3e1ff 100644 --- a/twe/scenario_26.php +++ b/twe/scenario_26.php @@ -311,5 +311,5 @@ $history[count($history)] = "●180년 1월:【가상모드6】 $history[count($history)] = "●180년 1월:【이벤트】영웅은 없다! 오직 내가 영웅일 뿐이다!"; pushHistory($connect, $history); -echo ""; - +//echo ""; +echo 'install3_ok.php';//TODO:debug all and replace diff --git a/twe/scenario_27.php b/twe/scenario_27.php index 5d18462b..1c6d4bde 100644 --- a/twe/scenario_27.php +++ b/twe/scenario_27.php @@ -589,5 +589,5 @@ $history[count($history)] = "●180년 1월:【가상모드7】 $history[count($history)] = "●180년 1월:【이벤트】올해의 가요대상은!"; pushHistory($connect, $history); -echo ""; - +//echo ""; +echo 'install3_ok.php';//TODO:debug all and replace diff --git a/twe/scenario_28.php b/twe/scenario_28.php index 36dfb9b8..936d50e0 100644 --- a/twe/scenario_28.php +++ b/twe/scenario_28.php @@ -418,5 +418,5 @@ $history[count($history)] = "●180년 1월:【가상모드8】 $history[count($history)] = "●180년 1월:【이벤트】삼모전에 확밀아가 빙의됩니다!"; pushHistory($connect, $history); -echo ""; - +//echo ""; +echo 'install3_ok.php';//TODO:debug all and replace diff --git a/twe/scenario_3.php b/twe/scenario_3.php index ca2b3c2d..4e81ea84 100644 --- a/twe/scenario_3.php +++ b/twe/scenario_3.php @@ -1750,5 +1750,5 @@ $history[count($history)] = "●194년 1월:【이벤트】 $history[count($history)] = "●194년 1월:【이벤트】강동에서는 손책이 웅크리고 있습니다."; pushHistory($connect, $history); -echo ""; - +//echo ""; +echo 'install3_ok.php';//TODO:debug all and replace diff --git a/twe/scenario_4.php b/twe/scenario_4.php index 1ad99bda..a342c13f 100644 --- a/twe/scenario_4.php +++ b/twe/scenario_4.php @@ -1287,5 +1287,5 @@ $history[count($history)] = "●196년 1월:【이벤트】location.replace('install3_ok.php');"; - +//echo ""; +echo 'install3_ok.php';//TODO:debug all and replace diff --git a/twe/scenario_5.php b/twe/scenario_5.php index 5ce25929..c963da75 100644 --- a/twe/scenario_5.php +++ b/twe/scenario_5.php @@ -993,5 +993,5 @@ $history[count($history)] = "●200년 1월:【이벤트】location.replace('install3_ok.php');"; - +//echo ""; +echo 'install3_ok.php';//TODO:debug all and replace diff --git a/twe/scenario_6.php b/twe/scenario_6.php index b9ff513d..8f30586c 100644 --- a/twe/scenario_6.php +++ b/twe/scenario_6.php @@ -1039,5 +1039,5 @@ $history[count($history)] = "●202년 1월:【이벤트】location.replace('install3_ok.php');"; - +//echo ""; +echo 'install3_ok.php';//TODO:debug all and replace diff --git a/twe/scenario_7.php b/twe/scenario_7.php index ad6b89e2..cd6053d2 100644 --- a/twe/scenario_7.php +++ b/twe/scenario_7.php @@ -1091,5 +1091,5 @@ $history[count($history)] = "●207년 1월:【이벤트】location.replace('install3_ok.php');"; - +//echo ""; +echo 'install3_ok.php';//TODO:debug all and replace diff --git a/twe/scenario_8.php b/twe/scenario_8.php index 40ea4158..206ceae5 100644 --- a/twe/scenario_8.php +++ b/twe/scenario_8.php @@ -943,5 +943,5 @@ $history[count($history)] = "●213년 1월:【이벤트】 $history[count($history)] = "●213년 1월:【이벤트】형주에 일었던 피바람은 익주에서 다시 불어오고 있습니다."; pushHistory($connect, $history); -echo ""; - +//echo ""; +echo 'install3_ok.php';//TODO:debug all and replace diff --git a/twe/scenario_9.php b/twe/scenario_9.php index 8768603a..c4113784 100644 --- a/twe/scenario_9.php +++ b/twe/scenario_9.php @@ -867,5 +867,6 @@ $history[count($history)] = "●219년 1월:【이벤트】location.replace('install3_ok.php');"; +//echo ""; +echo 'install3_ok.php';//TODO:debug all and replace diff --git a/twe/select_npc_post.php b/twe/select_npc_post.php index 9c480a16..1e22b9e3 100644 --- a/twe/select_npc_post.php +++ b/twe/select_npc_post.php @@ -121,6 +121,7 @@ if($admin['npcmode'] != 1) { window.alert('정상적으로 회원 가입되었습니다. ID : $id'); "); echo(""); - echo(""); + //echo(""); + echo 'index.php';//TODO:debug all and replace } diff --git a/twe/start.php b/twe/start.php index 54dd5924..83358cc6 100644 --- a/twe/start.php +++ b/twe/start.php @@ -1,3 +1,5 @@ - + +../ diff --git a/twe/turn.php b/twe/turn.php index 61c76a91..ad9e5410 100644 --- a/twe/turn.php +++ b/twe/turn.php @@ -15,7 +15,11 @@ $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"" $me = MYDB_fetch_array($result); $con = checkLimit($me['userlevel'], $me['con'], $admin['conlimit']); -if($con >= 2) { echo ""; exit(); } +if($con >= 2) { + //echo ""; + echo 'main.php';//TODO:debug all and replace + exit(); + } switch($type) { case 0: @@ -84,4 +88,5 @@ case 2: break; } -echo ""; +//echo ""; +echo 'commandlist.php';//TODO:debug all and replace diff --git a/twe/turn_pop_core.php b/twe/turn_pop_core.php index 6c2adf2d..0ade6768 100644 --- a/twe/turn_pop_core.php +++ b/twe/turn_pop_core.php @@ -11,4 +11,5 @@ $me = MYDB_fetch_array($result); updateCommand($connect, $me['no'], 2); -echo ""; +//echo ""; +echo 'b_chiefcenter.php';//TODO:debug all and replace diff --git a/twe/turn_push_core.php b/twe/turn_push_core.php index d8b8aea4..1848b853 100644 --- a/twe/turn_push_core.php +++ b/twe/turn_push_core.php @@ -11,5 +11,6 @@ $me = MYDB_fetch_array($result); backupdateCommand($connect, $me['no'], 2); -echo ""; +//echo ""; +echo 'b_chiefcenter.php';//TODO:debug all and replace