From fe53fb93599efa2c569d0f215d65b8861a65583b Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 8 Apr 2018 13:14:28 +0900 Subject: [PATCH] =?UTF-8?q?(=EA=B8=B0=EB=B6=84=EC=83=81=EC=9D=98=20?= =?UTF-8?q?=EC=9D=B4=EC=9C=A0=EB=A1=9C)=20<=3F=3D$value;=3F>=EB=A5=BC=20=20=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/_admin8.php | 42 ++++---- hwe/a_history.php | 10 +- hwe/a_vote.php | 2 +- hwe/b_auction.php | 97 +++++++++++------ hwe/b_battleCenter.php | 39 +++---- hwe/b_betting.php | 202 ++++++++++++++++++++++------------- hwe/b_dipcenter.php | 96 ++++++++++------- hwe/b_diplomacy.php | 4 +- hwe/b_genList.php | 71 ++++++------ hwe/b_myCityInfo.php | 84 +++++++++------ hwe/b_myGenInfo.php | 30 +++--- hwe/b_myPage.php | 6 +- hwe/b_tournament.php | 231 ++++++++++++++++++++++++++-------------- hwe/index.php | 104 ++++++++++++------ hwe/join.php | 26 ++--- hwe/select_npc.php | 6 +- i_entrance/entrance.php | 12 +-- i_other/help.php | 144 ++++++++++++------------- i_other/screenshot.php | 26 ++--- 19 files changed, 732 insertions(+), 500 deletions(-) diff --git a/hwe/_admin8.php b/hwe/_admin8.php index 2627df51..ef50ec47 100644 --- a/hwe/_admin8.php +++ b/hwe/_admin8.php @@ -6,7 +6,7 @@ include "func.php"; //로그인 검사 $session = Session::requireGameLogin()->setReadOnly(); -if($session->userGrade < 5) { +if ($session->userGrade < 5) { echo " @@ -28,11 +28,11 @@ if($session->userGrade < 5) { $db = DB::db(); $connect=$db->get(); -if($btn == '정렬하기') { +if ($btn == '정렬하기') { $gen = 0; } -if($type == 0) { +if ($type == 0) { $type = 0; } $sel[$type] = "selected"; @@ -51,7 +51,7 @@ $sel[$type] = "selected";
정렬순서 :
@@ -68,31 +68,31 @@ $sel[$type] = "selected"; 교 전"; break; case 1: $state = "선포중"; break; case 2: $state = "통 상"; break; @@ -105,34 +105,36 @@ for($i=0; $i < $dipcount; $i++) { $date = date('Y-m-d H:i:s'); $note = ""; - if($dip['fixed'] != "") { - if($dip['state'] == 7) { + if ($dip['fixed'] != "") { + if ($dip['state'] == 7) { $note .= $dip['fixed']; } else { $note .= "{$dip['fixed']}"; } - if($dip['reserved'] != "" || $dip2['reserved'] != "") { + if ($dip['reserved'] != "" || $dip2['reserved'] != "") { $note .= "
"; } } - if($dip['reserved'] != "") { - if($dip['showing'] >= $date) { + if ($dip['reserved'] != "") { + if ($dip['showing'] >= $date) { $note .= "아국측 제의: {$dip['reserved']}"; } else { $note .= "아국측 제의: {$dip['reserved']}"; } - if($dip2['reserved'] != "") { + if ($dip2['reserved'] != "") { $note .= "
"; } } - if($dip2['reserved'] != "") { - if($dip2['showing'] >= $date) { + if ($dip2['reserved'] != "") { + if ($dip2['showing'] >= $date) { $note .= "상대측 제의: {$dip2['reserved']}"; } else { $note .= "상대측 제의: {$dip2['reserved']}"; } } - if($note == "") { $note = " "; } + if ($note == "") { + $note = " "; + } echo " diff --git a/hwe/a_history.php b/hwe/a_history.php index b33b364f..ecd2e9d3 100644 --- a/hwe/a_history.php +++ b/hwe/a_history.php @@ -109,13 +109,13 @@ $history = MYDB_fetch_array($result); 중 원 지 도 - - - - - + + + + 중 원 정 세 diff --git a/hwe/a_vote.php b/hwe/a_vote.php index c1e5cadd..72be15ac 100644 --- a/hwe/a_vote.php +++ b/hwe/a_vote.php @@ -48,7 +48,7 @@ function captureKey(e) { - + userGrade >= 5) { diff --git a/hwe/b_auction.php b/hwe/b_auction.php index 2cd0b8a7..3a2b29af 100644 --- a/hwe/b_auction.php +++ b/hwe/b_auction.php @@ -13,34 +13,41 @@ $connect=$db->get(); increaseRefresh("거래장", 2); $query = "select no,special,con,turntime from general where owner='{$userID}'"; -$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); $query = "select conlimit from game limit 1"; -$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); $con = checkLimit($me['con'], $admin['conlimit']); -if($con >= 2) { printLimitMsg($me['turntime']); exit(); } +if ($con >= 2) { + printLimitMsg($me['turntime']); + exit(); +} $query = "select no from auction where no1='{$me['no']}'"; -$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); +$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $tradeCount = MYDB_num_rows($result); $query = "select no from auction where no2='{$me['no']}'"; -$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); +$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $bidCount = MYDB_num_rows($result); $btCount = $tradeCount + $bidCount; -if($session->userGrade >= 5 || ($me['special'] != 30 && $btCount < 1) || ($me['special'] == 30 && $btCount < 3)) { +if ($session->userGrade >= 5 || ($me['special'] != 30 && $btCount < 1) || ($me['special'] == 30 && $btCount < 3)) { $btn = "submit"; } else { $btn = "hidden"; } -if($msg == "") $msg = "-"; -if($msg2 == "") $msg2 = "-"; +if ($msg == "") { + $msg = "-"; +} +if ($msg2 == "") { + $msg2 = "-"; +} ?> @@ -73,21 +80,35 @@ if($msg2 == "") $msg2 = "-"; 0 && $auction['amount'] * 2 <= $auction['value'] && $auction['stuff'] == 0) { $radio = " disabled"; $alert = ""; $alert2 = ""; } - elseif($auction['no2'] > 0 && $auction['topv'] <= $auction['value']) { $radio = " disabled"; $alert = ""; $alert2 = ""; } - elseif($chk == 0) { $radio = " checked"; $chk = 1; } + $radio = ""; + $alert = ""; + $alert2 = ""; + if ($auction['no1'] == $me['no']) { + $radio = " disabled"; + } elseif ($auction['no2'] > 0 && $auction['amount'] * 2 <= $auction['value'] && $auction['stuff'] == 0) { + $radio = " disabled"; + $alert = ""; + $alert2 = ""; + } elseif ($auction['no2'] > 0 && $auction['topv'] <= $auction['value']) { + $radio = " disabled"; + $alert = ""; + $alert2 = ""; + } elseif ($chk == 0) { + $radio = " checked"; + $chk = 1; + } $pv = round($auction['value'] * 100 / $auction['amount']) / 100 + 0.001; $pv = substr($pv, 0, 4); - if($auction['stuff'] != 0) { $pv = '-'; } + if ($auction['stuff'] != 0) { + $pv = '-'; + } echo " @@ -107,13 +128,13 @@ for($i=0; $i < $count; $i++) { ?> - + @@ -126,7 +147,7 @@ for($i=0; $i < $count; $i++) {  판매량:  시작가:  즉구가: - name=btn value='판매' onclick='return confirm("정말 판매하시겠습니까?");'> + name=btn value='판매' onclick='return confirm("정말 판매하시겠습니까?");'> @@ -157,21 +178,35 @@ for($i=0; $i < $count; $i++) { 0 && $auction['amount'] >= $auction['value'] * 2 && $auction['stuff'] == 0) { $radio = " disabled"; $alert = ""; $alert2 = ""; } - elseif($auction['no2'] > 0 && $auction['topv'] >= $auction['value']) { $radio = " disabled"; $alert = ""; $alert2 = ""; } - elseif($chk == 0) { $radio = " checked"; $chk = 1; } + $radio = ""; + $alert = ""; + $alert2 = ""; + if ($auction['no1'] == $me['no']) { + $radio = " disabled"; + } elseif ($auction['no2'] > 0 && $auction['amount'] >= $auction['value'] * 2 && $auction['stuff'] == 0) { + $radio = " disabled"; + $alert = ""; + $alert2 = ""; + } elseif ($auction['no2'] > 0 && $auction['topv'] >= $auction['value']) { + $radio = " disabled"; + $alert = ""; + $alert2 = ""; + } elseif ($chk == 0) { + $radio = " checked"; + $chk = 1; + } $pv = round($auction['value'] * 100 / $auction['amount']) / 100 + 0.001; $pv = substr($pv, 0, 4); - if($auction['stuff'] != 0) { $pv = '-'; } + if ($auction['stuff'] != 0) { + $pv = '-'; + } echo " @@ -191,13 +226,13 @@ for($i=0; $i < $count; $i++) { ?> - + @@ -210,7 +245,7 @@ for($i=0; $i < $count; $i++) {  구입량:  시작가:  즉구가: - name=btn value='구매' onclick='return confirm("정말 구매하시겠습니까?");'> + name=btn value='구매' onclick='return confirm("정말 구매하시겠습니까?");'> @@ -226,7 +261,7 @@ for($i=0; $i < $count; $i++) {
설 문 조 사 (금과 추첨으로 유니크템 증정!)
설 문 조 사 (금과 추첨으로 유니크템 증정!)
{$auction['no']}
등록결과
입찰등록  지불할 금액: - name=btn value='구매시도' onclick='return confirm("정말 입찰하시겠습니까?");'> + name=btn value='구매시도' onclick='return confirm("정말 입찰하시겠습니까?");'>
{$auction['no']}
등록결과
입찰등록  수령할 금액: - name=btn value='판매시도' onclick='return confirm("정말 입찰하시겠습니까?");'> + name=btn value='판매시도' onclick='return confirm("정말 입찰하시겠습니까?");'>
최 근 기 록
- +
도 움 말
diff --git a/hwe/b_battleCenter.php b/hwe/b_battleCenter.php index 4c99e851..6ca6b8d0 100644 --- a/hwe/b_battleCenter.php +++ b/hwe/b_battleCenter.php @@ -15,41 +15,44 @@ increaseRefresh("감찰부", 2); checkTurn(); $query = "select conlimit from game limit 1"; -$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); $query = "select nation from general where no='$gen'"; -$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); +$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $general = MYDB_fetch_array($result); $query = "select no,nation,level,con,turntime,belong from general where owner='{$userID}'"; -$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); $query = "select secretlimit from nation where nation='{$me['nation']}'"; -$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); +$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $nation = MYDB_fetch_array($result); $con = checkLimit($me['con'], $admin['conlimit']); -if($con >= 2) { printLimitMsg($me['turntime']); exit(); } +if ($con >= 2) { + printLimitMsg($me['turntime']); + exit(); +} //재야인 경우 $meLevel = $me['level']; -if($meLevel == 0 || ($meLevel == 1 && $me['belong'] < $nation['secretlimit'])) { +if ($meLevel == 0 || ($meLevel == 1 && $me['belong'] < $nation['secretlimit'])) { echo "수뇌부가 아니거나 사관년도가 부족합니다."; exit(); } //잘못된 접근 -if($general['nation'] != $me['nation']) { +if ($general['nation'] != $me['nation']) { $gen = 0; } -if($btn == '정렬하기') { +if ($btn == '정렬하기') { $gen = 0; } -if($type == 0) { +if ($type == 0) { $type = 0; } $sel[$type] = "selected"; @@ -72,31 +75,31 @@ $sel[$type] = "selected"; 정렬순서 : 대상장수 :
- - + +
()
16강 상황
(전체 금액 : / 내 투자 금액 : )
()
16강 상황
(전체 금액 : / 내 투자 금액 : )
=60 order by grp, grp_no"; -$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); -for($i=0; $i < 1; $i++) { +$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); +for ($i=0; $i < 1; $i++) { $general = MYDB_fetch_array($result); - if($general['name'] == "") { $general['name'] = "-"; } - if($general['npc'] >= 2) { $general['name'] = "".$general['name'].""; } - elseif($general['npc'] == 1) { $general['name'] = "".$general['name'].""; } + if ($general['name'] == "") { + $general['name'] = "-"; + } + if ($general['npc'] >= 2) { + $general['name'] = "".$general['name'].""; + } elseif ($general['npc'] == 1) { + $general['name'] = "".$general['name'].""; + } echo ""; } @@ -83,18 +93,29 @@ echo " "; $query = "select npc,name,win from tournament where grp>=50 order by grp, grp_no"; -$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); -for($i=0; $i < 1; $i++) { $cent[$i] = ""; } -for($i=0; $i < 2; $i++) { +$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); +for ($i=0; $i < 1; $i++) { + $cent[$i] = ""; +} +for ($i=0; $i < 2; $i++) { $general = MYDB_fetch_array($result); - if($general['name'] == "") { $general['name'] = "-"; } - if($general['npc'] >= 2) { $general['name'] = "".$general['name'].""; } - elseif($general['npc'] == 1) { $general['name'] = "".$general['name'].""; } - if($general['win'] > 0) { $line[$i] = ""; $cent[floor($i/2)] = ""; } - else { $line[$i] = ""; } + if ($general['name'] == "") { + $general['name'] = "-"; + } + if ($general['npc'] >= 2) { + $general['name'] = "".$general['name'].""; + } elseif ($general['npc'] == 1) { + $general['name'] = "".$general['name'].""; + } + if ($general['win'] > 0) { + $line[$i] = ""; + $cent[floor($i/2)] = ""; + } else { + $line[$i] = ""; + } $gen[$i] = $general['name']; } -for($i=0; $i < 1; $i++) { +for ($i=0; $i < 1; $i++) { $cent[$i] = $cent[$i]."┻".""; $line[$i*2] = $line[$i*2]."┏━━━━━━━━━━━━━━━━━━━━━━━━━━━".""; $line[$i*2+1] = $line[$i*2+1]."━━━━━━━━━━━━━━━━━━━━━━━━━━━┓".""; @@ -104,7 +125,7 @@ echo " "; -for($i=0; $i < 2; $i++) { +for ($i=0; $i < 2; $i++) { echo ""; } @@ -113,18 +134,29 @@ echo " "; $query = "select npc,name,win from tournament where grp>=40 order by grp, grp_no"; -$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); -for($i=0; $i < 2; $i++) { $cent[$i] = ""; } -for($i=0; $i < 4; $i++) { +$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); +for ($i=0; $i < 2; $i++) { + $cent[$i] = ""; +} +for ($i=0; $i < 4; $i++) { $general = MYDB_fetch_array($result); - if($general['name'] == "") { $general['name'] = "-"; } - if($general['npc'] >= 2) { $general['name'] = "".$general['name'].""; } - elseif($general['npc'] == 1) { $general['name'] = "".$general['name'].""; } - if($general['win'] > 0) { $line[$i] = ""; $cent[floor($i/2)] = ""; } - else { $line[$i] = ""; } + if ($general['name'] == "") { + $general['name'] = "-"; + } + if ($general['npc'] >= 2) { + $general['name'] = "".$general['name'].""; + } elseif ($general['npc'] == 1) { + $general['name'] = "".$general['name'].""; + } + if ($general['win'] > 0) { + $line[$i] = ""; + $cent[floor($i/2)] = ""; + } else { + $line[$i] = ""; + } $gen[$i] = $general['name']; } -for($i=0; $i < 2; $i++) { +for ($i=0; $i < 2; $i++) { $cent[$i] = $cent[$i]."┻".""; $line[$i*2] = $line[$i*2]."┏━━━━━━━━━━━━━".""; $line[$i*2+1] = $line[$i*2+1]."━━━━━━━━━━━━━┓".""; @@ -134,7 +166,7 @@ echo " "; -for($i=0; $i < 4; $i++) { +for ($i=0; $i < 4; $i++) { echo ""; } @@ -143,18 +175,29 @@ echo " "; $query = "select npc,name,win from tournament where grp>=30 order by grp, grp_no"; -$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); -for($i=0; $i < 4; $i++) { $cent[$i] = ""; } -for($i=0; $i < 8; $i++) { +$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); +for ($i=0; $i < 4; $i++) { + $cent[$i] = ""; +} +for ($i=0; $i < 8; $i++) { $general = MYDB_fetch_array($result); - if($general['name'] == "") { $general['name'] = "-"; } - if($general['npc'] >= 2) { $general['name'] = "".$general['name'].""; } - elseif($general['npc'] == 1) { $general['name'] = "".$general['name'].""; } - if($general['win'] > 0) { $line[$i] = ""; $cent[floor($i/2)] = ""; } - else { $line[$i] = ""; } + if ($general['name'] == "") { + $general['name'] = "-"; + } + if ($general['npc'] >= 2) { + $general['name'] = "".$general['name'].""; + } elseif ($general['npc'] == 1) { + $general['name'] = "".$general['name'].""; + } + if ($general['win'] > 0) { + $line[$i] = ""; + $cent[floor($i/2)] = ""; + } else { + $line[$i] = ""; + } $gen[$i] = $general['name']; } -for($i=0; $i < 4; $i++) { +for ($i=0; $i < 4; $i++) { $cent[$i] = $cent[$i]."┻".""; $line[$i*2] = $line[$i*2]."┏━━━━━━".""; $line[$i*2+1] = $line[$i*2+1]."━━━━━━┓".""; @@ -164,7 +207,7 @@ echo " "; -for($i=0; $i < 8; $i++) { +for ($i=0; $i < 8; $i++) { echo ""; } @@ -173,18 +216,29 @@ echo " "; $query = "select npc,name,win from tournament where grp>=20 order by grp, grp_no"; -$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); -for($i=0; $i < 8; $i++) { $cent[$i] = ""; } -for($i=0; $i < 16; $i++) { +$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); +for ($i=0; $i < 8; $i++) { + $cent[$i] = ""; +} +for ($i=0; $i < 16; $i++) { $general = MYDB_fetch_array($result); - if($general['name'] == "") { $general['name'] = "-"; } - if($general['npc'] >= 2) { $general['name'] = "".$general['name'].""; } - elseif($general['npc'] == 1) { $general['name'] = "".$general['name'].""; } - if($general['win'] > 0) { $line[$i] = ""; $cent[floor($i/2)] = ""; } - else { $line[$i] = ""; } + if ($general['name'] == "") { + $general['name'] = "-"; + } + if ($general['npc'] >= 2) { + $general['name'] = "".$general['name'].""; + } elseif ($general['npc'] == 1) { + $general['name'] = "".$general['name'].""; + } + if ($general['win'] > 0) { + $line[$i] = ""; + $cent[floor($i/2)] = ""; + } else { + $line[$i] = ""; + } $gen[$i] = $general['name']; } -for($i=0; $i < 8; $i++) { +for ($i=0; $i < 8; $i++) { $cent[$i] = $cent[$i]."┻".""; $line[$i*2] = $line[$i*2]."┏━━".""; $line[$i*2+1] = $line[$i*2+1]."━━┓".""; @@ -194,23 +248,25 @@ echo " "; -for($i=0; $i < 16; $i++) { +for ($i=0; $i < 16; $i++) { echo ""; } $query = "select bet0,bet1,bet2,bet3,bet4,bet5,bet6,bet7,bet8,bet9,bet10,bet11,bet12,bet13,bet14,bet15 from general where owner='{$userID}'"; -$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); -for($i=0; $i < 16; $i++) { +for ($i=0; $i < 16; $i++) { $myBet[$i] = $me["bet{$i}"]; } -for($i=0; $i < 16; $i++) { +for ($i=0; $i < 16; $i++) { $bet[$i] = @round($admin['bet'] / $admin["bet{$i}"], 2); - if($bet[$i] == 0) { $bet[$i] = "∞"; } + if ($bet[$i] == 0) { + $bet[$i] = "∞"; + } } -for($i=0; $i < 16; $i++) { +for ($i=0; $i < 16; $i++) { $gold[$i] = round($myBet[$i] * $bet[$i]); } ?> @@ -222,7 +278,7 @@ for($i=0; $i < 16; $i++) { echo " "; -for($i=0; $i < 16; $i++) { +for ($i=0; $i < 16; $i++) { echo ""; } ?> @@ -233,7 +289,7 @@ for($i=0; $i < 16; $i++) { {$myBet[$i]}"; } ?> @@ -244,7 +300,7 @@ for($i=0; $i < 16; $i++) { {$gold[$i]}"; } @@ -252,12 +308,12 @@ echo " "; -if($admin['tournament'] == 6) { +if ($admin['tournament'] == 6) { echo " "; - for($i=0; $i < 16; $i++) { + for ($i=0; $i < 16; $i++) { echo " "; - for($i=0; $i < 16; $i++) { + for ($i=0; $i < 16; $i++) { echo " "; } @@ -301,12 +357,12 @@ if($admin['tournament'] == 6) { @@ -315,8 +371,8 @@ for($i=0; $i < 4; $i++) { "; $query = "select npc,name,leader,power,intel,leader+power+intel as total,{$type3[$i]}p as prize,{$type3[$i]}w+{$type3[$i]}d+{$type3[$i]}l as game,{$type3[$i]}w as win,{$type3[$i]}d as draw,{$type3[$i]}l as lose,{$type3[$i]}g as gl from general order by gl desc, game desc, win desc, draw desc, lose, no limit 0,30"; - $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); - for($k=1; $k <= 30; $k++) { + $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); + for ($k=1; $k <= 30; $k++) { $general = MYDB_fetch_array($result); printRow($k, $general['npc'], $general['name'], $general[$type4[$i]], $general['game'], $general['win'], $general['draw'], $general['lose'], $general['gl'], $general['prize'], 0); } diff --git a/hwe/b_dipcenter.php b/hwe/b_dipcenter.php index befcdd53..3db07515 100644 --- a/hwe/b_dipcenter.php +++ b/hwe/b_dipcenter.php @@ -13,27 +13,35 @@ $connect=$db->get(); increaseRefresh("내무부", 1); $query = "select conlimit from game limit 1"; -$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); $query = "select no,nation,level,con,turntime,belong from general where owner='{$userID}'"; -$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); $query = "select secretlimit from nation where nation='{$me['nation']}'"; -$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); +$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $nation = MYDB_fetch_array($result); $con = checkLimit($me['con'], $admin['conlimit']); -if($con >= 2) { printLimitMsg($me['turntime']); exit(); } +if ($con >= 2) { + printLimitMsg($me['turntime']); + exit(); +} -if($me['level'] == 0 || ($me['level'] == 1 && $me['belong'] < $nation['secretlimit'])) { +if ($me['level'] == 0 || ($me['level'] == 1 && $me['belong'] < $nation['secretlimit'])) { echo "수뇌부가 아니거나 사관년도가 부족합니다."; exit(); } -if($me['level'] >= 5) { $btn = "submit"; $read = ""; } -else { $btn = "hidden"; $read = "readonly"; } +if ($me['level'] >= 5) { + $btn = "submit"; + $read = ""; +} else { + $btn = "hidden"; + $read = "readonly"; +} ?> @@ -63,20 +71,20 @@ else { $btn = "hidden"; $read = "readonly"; } @@ -94,17 +102,17 @@ for($i=0; $i < $nationcount; $i++) { } $query = "select state,term,fixed,reserved,showing from diplomacy where me='{$me['nation']}' and you='{$nation['nation']}'"; - $result2 = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); + $result2 = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $dip = MYDB_fetch_array($result2); $query = "select reserved,showing from diplomacy where you='{$me['nation']}' and me='{$nation['nation']}'"; - $result2 = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); + $result2 = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $dip2 = MYDB_fetch_array($result2); //속령수 $query = "select city from city where nation='{$nation['nation']}'"; - $result2 = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); + $result2 = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $citycount = MYDB_num_rows($result2); - switch($dip['state']) { + switch ($dip['state']) { case 0: $state = "교 전"; break; case 1: $state = "선포중"; break; case 2: $state = "통 상"; break; @@ -119,37 +127,39 @@ for($i=0; $i < $nationcount; $i++) { $year = floor($term / 12); $month = $term % 12; - if($month == 0) { + if ($month == 0) { $month = 12; $year--; } $date = date('Y-m-d H:i:s'); $note = ""; - if($dip['fixed'] != "") { - if($dip['state'] == 7) { + if ($dip['fixed'] != "") { + if ($dip['state'] == 7) { $note .= $dip['fixed']; } else { $note .= "{$dip['fixed']}"; } - if($dip['reserved'] != "" || $dip2['reserved'] != "") { + if ($dip['reserved'] != "" || $dip2['reserved'] != "") { $note .= "
"; } } - if($dip['showing'] >= $date) { - if($dip['reserved'] != "") { + if ($dip['showing'] >= $date) { + if ($dip['reserved'] != "") { $note .= "아국측 제의: ".$dip['reserved']; - if($dip2['reserved'] != "") { + if ($dip2['reserved'] != "") { $note .= "
"; } } } - if($dip2['showing'] >= $date) { - if($dip2['reserved'] != "") { + if ($dip2['showing'] >= $date) { + if ($dip2['reserved'] != "") { $note .= "상대측 제의: ".$dip2['reserved']; } } - if($note == "") { $note = " "; } + if ($note == "") { + $note = " "; + } echo "
@@ -158,7 +168,7 @@ for($i=0; $i < $nationcount; $i++) { "; - if($dip['term'] != 0) { + if ($dip['term'] != 0) { echo" "; @@ -176,11 +186,11 @@ echo " "; $query = "select nation,name,color,type,msg,gold,rice,bill,rate,scout,war,scoutmsg,secretlimit from nation where nation='{$me['nation']}'"; -$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); +$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $nation = MYDB_fetch_array($result); $query = "select gold_rate,rice_rate from game limit 1"; -$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); // 금 수지 $deadIncome = getDeadIncome($nation['nation'], $nation['type'], $admin['gold_rate']); @@ -197,18 +207,24 @@ $budgetgold = $nation['gold'] + $goldincome - $goldoutcome + $deadIncome; $budgetrice = $nation['rice'] + $riceincome - $riceoutcome; $budgetgolddiff = $goldincome - $goldoutcome + $deadIncome; $budgetricediff = $riceincome - $riceoutcome; -if($budgetgolddiff > 0) { $budgetgolddiff = "+{$budgetgolddiff}"; } -else { $budgetgolddiff = "$budgetgolddiff"; } -if($budgetricediff > 0) { $budgetricediff = "+{$budgetricediff}"; } -else { $budgetricediff = "$budgetricediff"; } +if ($budgetgolddiff > 0) { + $budgetgolddiff = "+{$budgetgolddiff}"; +} else { + $budgetgolddiff = "$budgetgolddiff"; +} +if ($budgetricediff > 0) { + $budgetricediff = "+{$budgetricediff}"; +} else { + $budgetricediff = "$budgetricediff"; +} ?>
{$general['name']}
{$gen[$i]}
{$gen[$i]}
{$gen[$i]}
{$gen[$i]}
{$bet[$i]}
장수{$type2[$i]}
{$nation['gennum']} $citycount $state{$dip['term']} 개월 {$year}年 {$month}月
- - + + @@ -254,20 +270,20 @@ echo " ?> - + - + - +
국 가 방 침 & 임관 권유 메세지
국가 방침 maxlength=500 style=color:white;background-color:black;width:830; name=msg value=''> name=btn value=국가방침>
임관 권유 maxlength=500 style=color:white;background-color:black;width:830; name=scoutmsg value=''> name=btn value=임관권유>
국가 방침 maxlength=500 style=color:white;background-color:black;width:830; name=msg value=''> name=btn value=국가방침>
임관 권유 maxlength=500 style=color:white;background-color:black;width:830; name=scoutmsg value=''> name=btn value=임관권유>
900 x 200px 넘는 크기를 점유할 시 통보없이 제한될 수 있습니다.
예 산 & 정 책
세율 (5 ~ 30%)    name=rate style=text-align:right;color:white;background-color:black; size=3 maxlength=3 value=>% name=btn value=세율> name=rate style=text-align:right;color:white;background-color:black; size=3 maxlength=3 value=>% name=btn value=세율> 봉급 지급율 (20 ~ 200%)    name=bill style=text-align:right;color:white;background-color:black; size=3 maxlength=3 value=>% name=btn value=지급율> name=bill style=text-align:right;color:white;background-color:black; size=3 maxlength=3 value=>% name=btn value=지급율>
기밀 권한 (1 ~ 99년)    name=secretlimit style=text-align:right;color:white;background-color:black; size=3 maxlength=3 value=>년 name=btn value=기밀권한> name=secretlimit style=text-align:right;color:white;background-color:black; size=3 maxlength=3 value=>년 name=btn value=기밀권한> 임관&전쟁 변경 가능 무제한
"; } else { @@ -275,7 +291,7 @@ if($nation['scout'] == 0) { "; } -if($nation['war'] == 0) { +if ($nation['war'] == 0) { echo " "; } else { diff --git a/hwe/b_diplomacy.php b/hwe/b_diplomacy.php index ff5402ac..4776b6b1 100644 --- a/hwe/b_diplomacy.php +++ b/hwe/b_diplomacy.php @@ -80,7 +80,7 @@ $(function(){

- + @@ -144,7 +144,7 @@ for($i=0; $i < $nationcount; $i++) { "; } ?> - +
align=center bgcolor=blue>외 교 현 황
align=center bgcolor=blue>외 교 현 황
align=center>불가침 : @, 통합 : , 합병 : , 통상 : ㆍ, 선포 : , 교전 :
align=center>불가침 : @, 통합 : , 합병 : , 통상 : ㆍ, 선포 : , 교전 :
get(); increaseRefresh("암행부", 2); $query = "select conlimit from game limit 1"; -$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); $query = "select no,nation,level,con,turntime,belong from general where owner='{$userID}'"; -$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); $query = "select level,secretlimit from nation where nation='{$me['nation']}'"; -$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); +$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $nation = MYDB_fetch_array($result); $con = checkLimit($me['con'], $admin['conlimit']); -if($con >= 2) { printLimitMsg($me['turntime']); exit(); } +if ($con >= 2) { + printLimitMsg($me['turntime']); + exit(); +} -if($me['level'] == 0 || ($me['level'] == 1 && $me['belong'] < $nation['secretlimit'])) { +if ($me['level'] == 0 || ($me['level'] == 1 && $me['belong'] < $nation['secretlimit'])) { echo "수뇌부가 아니거나 사관년도가 부족합니다."; exit(); } -if($type == 0) { +if ($type == 0) { $type = 7; } $sel[$type] = "selected"; @@ -40,7 +43,9 @@ $sel[$type] = "selected"; ?> - + 암행부 @@ -53,29 +58,29 @@ $sel[$type] = "selected"; 암 행 부
정렬순서 : 삭턴 턴 "; -for($j=0; $j < $gencount; $j++) { +for ($j=0; $j < $gencount; $j++) { $general = MYDB_fetch_array($genresult); $city = CityConst::byID($general['city'])->name; $troop = $troopName[$general['troop']] == "" ? "-" : $troopName[$general['troop']]; - if($general['level'] == 12) { + if ($general['level'] == 12) { $lbonus = $nation['level'] * 2; - } elseif($general['level'] >= 5) { + } elseif ($general['level'] >= 5) { $lbonus = $nation['level']; } else { $lbonus = 0; } - if($lbonus > 0) { + if ($lbonus > 0) { $lbonus = "+{$lbonus}"; } else { $lbonus = ""; } - if($general['injury'] > 0) { + if ($general['injury'] > 0) { $leader = floor($general['leader'] * (100 - $general['injury'])/100); $power = floor($general['power'] * (100 - $general['injury'])/100); $intel = floor($general['intel'] * (100 - $general['injury'])/100); @@ -137,11 +142,15 @@ for($j=0; $j < $gencount; $j++) { $intel = "{$general['intel']}"; } - if($general['npc'] >= 2) { $name = "{$general['name']}"; } - elseif($general['npc'] == 1) { $name = "{$general['name']}"; } - else { $name = "{$general['name']}"; } + if ($general['npc'] >= 2) { + $name = "{$general['name']}"; + } elseif ($general['npc'] == 1) { + $name = "{$general['name']}"; + } else { + $name = "{$general['name']}"; + } - switch($general['mode']) { + switch ($general['mode']) { case 0: $mode = "×"; break; case 1: $mode = "○"; break; case 2: $mode = "◎"; break; @@ -160,7 +169,7 @@ for($j=0; $j < $gencount; $j++) { {$general['crew']} {$general['train']} {$general['atmos']}"; - if($general['npc'] >= 2) { + if ($general['npc'] >= 2) { echo " NPC 장수"; @@ -170,7 +179,7 @@ for($j=0; $j < $gencount; $j++) { "; $turn = getTurn($general, 1, 0); - for($i=0; $i < 5; $i++) { + for ($i=0; $i < 5; $i++) { $turn[$i] = StringUtil::subStringForWidth($turn[$i], 0, 20); $k = $i+1; echo " @@ -181,7 +190,7 @@ for($j=0; $j < $gencount; $j++) { {$general['killturn']} - ".substr($general['turntime'],14,5)." + ".substr($general['turntime'], 14, 5)." "; } echo " diff --git a/hwe/b_myCityInfo.php b/hwe/b_myCityInfo.php index c65609c3..50f5624d 100644 --- a/hwe/b_myCityInfo.php +++ b/hwe/b_myCityInfo.php @@ -13,15 +13,15 @@ $connect=$db->get(); increaseRefresh("세력도시", 1); $query = "select no,nation,level from general where owner='{$userID}'"; -$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); -if($me['level'] == 0) { +if ($me['level'] == 0) { echo "재야입니다."; exit(); } -if($type == 0) { +if ($type == 0) { $type = 10; } $sel[$type] = "selected"; @@ -42,30 +42,30 @@ $sel[$type] = "selected"; 세 력 도 시
정렬순서 :
[{$city['name']}]
"; } + if ($city['city'] == $nation['capital']) { + $city['name'] = "[{$city['name']}]"; + } $query = "select name from general where no='{$city['gen1']}'"; // 태수 - $genresult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); + $genresult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $gen1 = MYDB_fetch_array($genresult); $query = "select name from general where no='{$city['gen2']}'"; // 군사 - $genresult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); + $genresult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $gen2 = MYDB_fetch_array($genresult); $query = "select name from general where no='{$city['gen3']}'"; // 시중 - $genresult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); + $genresult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $gen3 = MYDB_fetch_array($genresult); - if($type == 10 && $city['region'] != $region) { + if ($type == 10 && $city['region'] != $region) { echo "
"; $region = $city['region']; - } elseif($type == 11 && $city['level'] != $level) { + } elseif ($type == 11 && $city['level'] != $level) { echo "
"; $level = $city['level']; } - if($city['trade'] == 0) { + if ($city['trade'] == 0) { $city['trade'] = "- "; } @@ -136,24 +138,36 @@ for($j=0; $j < $citycount; $j++) { 인구 ".round($city['pop']/$city['pop2']*100, 2)." % 태수 - ";echo $gen1['name']==''?"-":"{$gen1['name']}";echo " + "; + echo $gen1['name']==''?"-":"{$gen1['name']}"; + echo " 군사 - ";echo $gen2['name']==''?"-":"{$gen2['name']}";echo " + "; + echo $gen2['name']==''?"-":"{$gen2['name']}"; + echo " 시중 - ";echo $gen3['name']==''?"-":"{$gen3['name']}";echo " + "; + echo $gen3['name']==''?"-":"{$gen3['name']}"; + echo " 장수 "; $query = "select npc,name from general where city='{$city['city']}' and nation='{$me['nation']}'"; // 장수 목록 - $genresult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); + $genresult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $gencount = MYDB_num_rows($genresult); - if($gencount == 0) echo "-"; - for($i=0; $i < $gencount; $i++) { + if ($gencount == 0) { + echo "-"; + } + for ($i=0; $i < $gencount; $i++) { $general = MYDB_fetch_array($genresult); - if($general['npc'] >= 2) { echo "{$general['name']}, "; } - elseif($general['npc'] == 1) { echo "{$general['name']}, "; } - else { echo "{$general['name']}, "; } + if ($general['npc'] >= 2) { + echo "{$general['name']}, "; + } elseif ($general['npc'] == 1) { + echo "{$general['name']}, "; + } else { + echo "{$general['name']}, "; + } } echo " diff --git a/hwe/b_myGenInfo.php b/hwe/b_myGenInfo.php index 9112cece..3cbaf5a8 100644 --- a/hwe/b_myGenInfo.php +++ b/hwe/b_myGenInfo.php @@ -43,21 +43,21 @@ $sel[$type] = "selected"; 세 력 장 수
정렬순서 :
diff --git a/hwe/b_myPage.php b/hwe/b_myPage.php index 749f1974..00c6e913 100644 --- a/hwe/b_myPage.php +++ b/hwe/b_myPage.php @@ -86,11 +86,11 @@ function go(type) { >○(훈사60) >× 】

-      name=btn style=background-color:;color:white;width:160;height:30;font-size:13px; value=설정저장>
-     ∞설정저장은 이달중 회 남았습니다.

+      name=btn style=background-color:;color:white;width:160;height:30;font-size:13px; value=설정저장>
+     ∞설정저장은 이달중 회 남았습니다.

    휴 가 신 청
-     ;color:white;width:160;height:30;font-size:13px; value=휴가신청 onclick='go(0)'> +     ;color:white;width:160;height:30;font-size:13px; value=휴가신청 onclick='go(0)'> diff --git a/hwe/b_tournament.php b/hwe/b_tournament.php index 2174e7ce..d413085a 100644 --- a/hwe/b_tournament.php +++ b/hwe/b_tournament.php @@ -14,17 +14,20 @@ increaseRefresh("토너먼트", 1); checkTurn(); $query = "select no,tournament,con,turntime from general where owner='{$userID}'"; -$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); $query = "select conlimit,tournament,phase,tnmt_msg,tnmt_type,develcost,tnmt_trig from game limit 1"; -$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); $con = checkLimit($me['con'], $admin['conlimit']); -if($con >= 2) { printLimitMsg($me['turntime']); exit(); } +if ($con >= 2) { + printLimitMsg($me['turntime']); + exit(); +} -switch($admin['tnmt_type']) { +switch ($admin['tnmt_type']) { case 0: $tnmt_type = "전력전"; $tp = "tot"; $tp2 = "종합"; $tp3 = "total"; break; case 1: $tnmt_type = "통솔전"; $tp = "ldr"; $tp2 = "통솔"; $tp3 = "leader"; break; case 2: $tnmt_type = "일기토"; $tp = "pwr"; $tp2 = "무력"; $tp3 = "power"; break; @@ -34,7 +37,9 @@ case 3: $tnmt_type = "설전"; $tp = "itl"; $tp2 = " ?> - + 토너먼트 @@ -44,9 +49,9 @@ table { font-family:'맑은 고딕'; line-height:110%; } font { font-family:'맑은 고딕'; line-height:110%; } input { font-family:'맑은 고딕'; line-height:110%; height:20px } select { font-family:'굴림'; line-height:100%; } -#bg0 { background-image:url(/back_walnut.jpg); } -#bg1 { background-image:url(/back_green.jpg); } -#bg2 { background-image:url(/back_blue.jpg); } +#bg0 { background-image:url(/back_walnut.jpg); } +#bg1 { background-image:url(/back_green.jpg); } +#bg2 { background-image:url(/back_blue.jpg); } @@ -57,14 +62,14 @@ select { font-family:'굴림'; line-height:100%; } userGrade >= 5) { +if ($session->userGrade >= 5) { echo " "; -} elseif($me['no'] > 0 && $me['tournament'] == 0 && $admin['tournament'] == 1) { +} elseif ($me['no'] > 0 && $me['tournament'] == 0 && $admin['tournament'] == 1) { echo ""; } else { echo ""; @@ -165,8 +175,8 @@ $str1 = getTournament($admin['tournament']); $str2 = getTournamentTime(); $str3 = getTournamentTerm(); ?> - - + + "; $query = "select npc,name,win from tournament where grp>=60 order by grp, grp_no"; -$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); -for($i=0; $i < 1; $i++) { +$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); +for ($i=0; $i < 1; $i++) { $general = MYDB_fetch_array($result); - if($general['name'] == "") { $general['name'] = "-"; } - if($general['npc'] >= 2) { $general['name'] = "".$general['name'].""; } - elseif($general['npc'] == 1) { $general['name'] = "".$general['name'].""; } + if ($general['name'] == "") { + $general['name'] = "-"; + } + if ($general['npc'] >= 2) { + $general['name'] = "".$general['name'].""; + } elseif ($general['npc'] == 1) { + $general['name'] = "".$general['name'].""; + } echo ""; } @@ -192,18 +207,29 @@ echo " "; $query = "select npc,name,win from tournament where grp>=50 order by grp, grp_no"; -$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); -for($i=0; $i < 1; $i++) { $cent[$i] = ""; } -for($i=0; $i < 2; $i++) { +$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); +for ($i=0; $i < 1; $i++) { + $cent[$i] = ""; +} +for ($i=0; $i < 2; $i++) { $general = MYDB_fetch_array($result); - if($general['name'] == "") { $general['name'] = "-"; } - if($general['npc'] >= 2) { $general['name'] = "".$general['name'].""; } - elseif($general['npc'] == 1) { $general['name'] = "".$general['name'].""; } - if($general['win'] > 0) { $line[$i] = ""; $cent[floor($i/2)] = ""; } - else { $line[$i] = ""; } + if ($general['name'] == "") { + $general['name'] = "-"; + } + if ($general['npc'] >= 2) { + $general['name'] = "".$general['name'].""; + } elseif ($general['npc'] == 1) { + $general['name'] = "".$general['name'].""; + } + if ($general['win'] > 0) { + $line[$i] = ""; + $cent[floor($i/2)] = ""; + } else { + $line[$i] = ""; + } $gen[$i] = $general['name']; } -for($i=0; $i < 1; $i++) { +for ($i=0; $i < 1; $i++) { $cent[$i] = $cent[$i]."┻".""; $line[$i*2] = $line[$i*2]."┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━".""; $line[$i*2+1] = $line[$i*2+1]."━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓".""; @@ -213,7 +239,7 @@ echo " "; -for($i=0; $i < 2; $i++) { +for ($i=0; $i < 2; $i++) { echo ""; } @@ -222,18 +248,29 @@ echo " "; $query = "select npc,name,win from tournament where grp>=40 order by grp, grp_no"; -$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); -for($i=0; $i < 2; $i++) { $cent[$i] = ""; } -for($i=0; $i < 4; $i++) { +$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); +for ($i=0; $i < 2; $i++) { + $cent[$i] = ""; +} +for ($i=0; $i < 4; $i++) { $general = MYDB_fetch_array($result); - if($general['name'] == "") { $general['name'] = "-"; } - if($general['npc'] >= 2) { $general['name'] = "".$general['name'].""; } - elseif($general['npc'] == 1) { $general['name'] = "".$general['name'].""; } - if($general['win'] > 0) { $line[$i] = ""; $cent[floor($i/2)] = ""; } - else { $line[$i] = ""; } + if ($general['name'] == "") { + $general['name'] = "-"; + } + if ($general['npc'] >= 2) { + $general['name'] = "".$general['name'].""; + } elseif ($general['npc'] == 1) { + $general['name'] = "".$general['name'].""; + } + if ($general['win'] > 0) { + $line[$i] = ""; + $cent[floor($i/2)] = ""; + } else { + $line[$i] = ""; + } $gen[$i] = $general['name']; } -for($i=0; $i < 2; $i++) { +for ($i=0; $i < 2; $i++) { $cent[$i] = $cent[$i]."┻".""; $line[$i*2] = $line[$i*2]."┏━━━━━━━━━━━━━━━━━━".""; $line[$i*2+1] = $line[$i*2+1]."━━━━━━━━━━━━━━━━━━┓".""; @@ -243,7 +280,7 @@ echo " "; -for($i=0; $i < 4; $i++) { +for ($i=0; $i < 4; $i++) { echo ""; } @@ -252,18 +289,29 @@ echo " "; $query = "select npc,name,win from tournament where grp>=30 order by grp, grp_no"; -$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); -for($i=0; $i < 4; $i++) { $cent[$i] = ""; } -for($i=0; $i < 8; $i++) { +$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); +for ($i=0; $i < 4; $i++) { + $cent[$i] = ""; +} +for ($i=0; $i < 8; $i++) { $general = MYDB_fetch_array($result); - if($general['name'] == "") { $general['name'] = "-"; } - if($general['npc'] >= 2) { $general['name'] = "".$general['name'].""; } - elseif($general['npc'] == 1) { $general['name'] = "".$general['name'].""; } - if($general['win'] > 0) { $line[$i] = ""; $cent[floor($i/2)] = ""; } - else { $line[$i] = ""; } + if ($general['name'] == "") { + $general['name'] = "-"; + } + if ($general['npc'] >= 2) { + $general['name'] = "".$general['name'].""; + } elseif ($general['npc'] == 1) { + $general['name'] = "".$general['name'].""; + } + if ($general['win'] > 0) { + $line[$i] = ""; + $cent[floor($i/2)] = ""; + } else { + $line[$i] = ""; + } $gen[$i] = $general['name']; } -for($i=0; $i < 4; $i++) { +for ($i=0; $i < 4; $i++) { $cent[$i] = $cent[$i]."┻".""; $line[$i*2] = $line[$i*2]."┏━━━━━━━━━".""; $line[$i*2+1] = $line[$i*2+1]."━━━━━━━━━┓".""; @@ -273,7 +321,7 @@ echo " "; -for($i=0; $i < 8; $i++) { +for ($i=0; $i < 8; $i++) { echo ""; } @@ -282,18 +330,29 @@ echo " "; $query = "select npc,name,win from tournament where grp>=20 order by grp, grp_no"; -$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); -for($i=0; $i < 8; $i++) { $cent[$i] = ""; } -for($i=0; $i < 16; $i++) { +$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); +for ($i=0; $i < 8; $i++) { + $cent[$i] = ""; +} +for ($i=0; $i < 16; $i++) { $general = MYDB_fetch_array($result); - if($general['name'] == "") { $general['name'] = "-"; } - if($general['npc'] >= 2) { $general['name'] = "".$general['name'].""; } - elseif($general['npc'] == 1) { $general['name'] = "".$general['name'].""; } - if($general['win'] > 0) { $line[$i] = ""; $cent[floor($i/2)] = ""; } - else { $line[$i] = ""; } + if ($general['name'] == "") { + $general['name'] = "-"; + } + if ($general['npc'] >= 2) { + $general['name'] = "".$general['name'].""; + } elseif ($general['npc'] == 1) { + $general['name'] = "".$general['name'].""; + } + if ($general['win'] > 0) { + $line[$i] = ""; + $cent[floor($i/2)] = ""; + } else { + $line[$i] = ""; + } $gen[$i] = $general['name']; } -for($i=0; $i < 8; $i++) { +for ($i=0; $i < 8; $i++) { $cent[$i] = $cent[$i]."┻".""; $line[$i*2] = $line[$i*2]."┏━━━━".""; $line[$i*2+1] = $line[$i*2+1]."━━━━┓".""; @@ -303,7 +362,7 @@ echo " "; -for($i=0; $i < 16; $i++) { +for ($i=0; $i < 16; $i++) { echo ""; } @@ -311,17 +370,19 @@ echo" "; $query = "select tournament,bet0,bet1,bet2,bet3,bet4,bet5,bet6,bet7,bet8,bet9,bet10,bet11,bet12,bet13,bet14,bet15,bet0+bet1+bet2+bet3+bet4+bet5+bet6+bet7+bet8+bet9+bet10+bet11+bet12+bet13+bet14+bet15 as bet from game limit 1"; -$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); +$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $betting = MYDB_fetch_array($result); -for($i=0; $i < 16; $i++) { +for ($i=0; $i < 16; $i++) { $bet[$i] = @round($betting['bet'] / $betting["bet{$i}"], 2); - if($bet[$i] == 0) { $bet[$i] = "∞"; } + if ($bet[$i] == 0) { + $bet[$i] = "∞"; + } } echo " "; -for($i=0; $i < 16; $i++) { +for ($i=0; $i < 16; $i++) { echo ""; } @@ -333,15 +394,17 @@ echo " "; -if($admin['tournament'] >= 7 || $admin['tournament'] == 0) { printFighting($admin['tournament'], $admin['phase']); } +if ($admin['tournament'] >= 7 || $admin['tournament'] == 0) { + printFighting($admin['tournament'], $admin['phase']); +} echo " "; -$num = Array("一", "二", "三", "四", "五", "六", "七", "八"); +$num = array("一", "二", "三", "四", "五", "六", "七", "八"); -for($i=0; $i < 8; $i++) { +for ($i=0; $i < 8; $i++) { $grp = $i + 10; echo " "; $query = "select npc,name,ldr,pwr,itl,ldr+pwr+itl as tot,prmt,win+draw+lose as game,win,draw,lose,gl,win*3+draw as gd from tournament where grp='$grp' order by gd desc, gl desc, seq"; - $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); - for($k=1; $k <= 4; $k++) { + $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); + for ($k=1; $k <= 4; $k++) { $general = MYDB_fetch_array($result); printRow($k, $general['npc'], $general['name'], $general[$tp], $general['game'], $general['win'], $general['draw'], $general['lose'], $general['gd'], $general['gl'], $general['prmt']); } @@ -360,12 +423,14 @@ for($i=0; $i < 8; $i++) { "; } echo ""; -if($admin['tournament'] == 4 || $admin['tournament'] == 5) { printFighting($admin['tournament'], $admin['phase']); } +if ($admin['tournament'] == 4 || $admin['tournament'] == 5) { + printFighting($admin['tournament'], $admin['phase']); +} echo " "; -for($i=0; $i < 8; $i++) { +for ($i=0; $i < 8; $i++) { $grp = $i; echo " "; $query = "select npc,name,ldr,pwr,itl,ldr+pwr+itl as tot,prmt,win+draw+lose as game,win,draw,lose,gl,win*3+draw as gd from tournament where grp='$grp' order by gd desc, gl desc, seq"; - $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); - for($k=1; $k <= 8; $k++) { + $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); + for ($k=1; $k <= 8; $k++) { $general = MYDB_fetch_array($result); printRow($k, $general['npc'], $general['name'], $general[$tp], $general['game'], $general['win'], $general['draw'], $general['lose'], $general['gd'], $general['gl'], $general['prmt']); } @@ -384,7 +449,9 @@ for($i=0; $i < 8; $i++) { "; } -if($admin['tournament'] == 2 || $admin['tournament'] == 3) { printFighting($admin['tournament'], $admin['phase']); } +if ($admin['tournament'] == 2 || $admin['tournament'] == 3) { + printFighting($admin['tournament'], $admin['phase']); +} ?> diff --git a/hwe/index.php b/hwe/index.php index c623e485..083a79df 100644 --- a/hwe/index.php +++ b/hwe/index.php @@ -12,7 +12,7 @@ increaseRefresh("메인", 1); $db = DB::db(); $connect=$db->get(); -if(!$userID){ +if (!$userID) { header('Location:..'); die(); } @@ -26,19 +26,19 @@ $me = $db->queryFirstRow( checkTurn(); //그새 사망이면 -if($me === null) { +if ($me === null) { $session->logoutGame(); header('Location: ../'); die(); } -if(!$session->generalID){ +if (!$session->generalID) { $session = Session::requireGameLogin(); } $session->setReadOnly(); $userID = Session::getUserID(); -if($me['newmsg'] == 1 || $me['newvote'] == 1) { +if ($me['newmsg'] == 1 || $me['newvote'] == 1) { $db->update('general', [ 'newmsg'=>0, 'newvote'=>0 @@ -46,15 +46,18 @@ if($me['newmsg'] == 1 || $me['newvote'] == 1) { } $query = "select develcost,online,conlimit,tournament,tnmt_type,turnterm,scenario,scenario_text,extended_general,fiction,npcmode,vote from game limit 1"; -$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); $query = "select plock from plock limit 1"; -$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); +$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $plock = MYDB_fetch_array($result); $con = checkLimit($me['con'], $admin['conlimit']); -if($con >= 2) { printLimitMsg($me['turntime']); exit(); } +if ($con >= 2) { + printLimitMsg($me['turntime']); + exit(); +} $scenario = $admin['scenario_text']; ?> @@ -89,18 +92,30 @@ $(function(){
"; - switch($admin['tnmt_trig']) { + switch ($admin['tnmt_trig']) { case 0: $sel[0] = "selected"; break; case 1: $sel[1] = "selected"; break; case 2: $sel[2] = "selected"; break; @@ -75,7 +80,7 @@ if($session->userGrade >= 5) { case 7: $sel[7] = "selected"; break; } - if($admin['tournament'] == 0) { + if ($admin['tournament'] == 0) { echo " - "; } - else { + "; + } else { echo ""; } - switch($admin['tournament']) { + switch ($admin['tournament']) { case 1: echo "
운영자 메세지 :
()
운영자 메세지 :
()
16강 승자전
{$general['name']}
{$gen[$i]}
{$gen[$i]}
{$gen[$i]}
{$gen[$i]}
{$bet[$i]}
조별 본선 순위
@@ -350,8 +413,8 @@ for($i=0; $i < 8; $i++) {
장수{$tp2}
조별 예선 순위
@@ -374,8 +439,8 @@ for($i=0; $i < 8; $i++) {
장수{$tp2}
- + @@ -113,22 +128,25 @@ if($valid == 1) { - - + + @@ -145,10 +166,13 @@ echo " "; $query = "select no from auction"; -$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); +$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $auctionCount = MYDB_num_rows($result); -if($auctionCount > 0) { echo "{$auctionCount}건 거래 진행중"; } -else { echo "진행중 거래 없음"; } +if ($auctionCount > 0) { + echo "{$auctionCount}건 거래 진행중"; +} else { + echo "진행중 거래 없음"; +} echo " @@ -157,20 +181,23 @@ echo " $vote = explode("|", $admin['vote']); $vote[0] = Tag2Code($vote[0]); -if($vote[0] == "") { echo "진행중 설문 없음"; } -else { echo "설문 진행중 : $vote[0]"; } +if ($vote[0] == "") { + echo "진행중 설문 없음"; +} else { + echo "설문 진행중 : $vote[0]"; +} echo " "; ?> - + - + userGrade >= 5) { +if ($session->userGrade >= 5) { echo " @@ -296,9 +323,16 @@ echo banner(); diff --git a/hwe/join.php b/hwe/join.php index e4626a63..6ab066d8 100644 --- a/hwe/join.php +++ b/hwe/join.php @@ -7,7 +7,7 @@ include "func.php"; $session = Session::requireLogin()->setReadOnly(); $userID = Session::getUserID(); -if(!$userID) { +if (!$userID) { MessageBox("잘못된 접근입니다!!!"); echo ""; exit(1); @@ -16,7 +16,7 @@ if(!$userID) { //회원 테이블에서 정보확인 $member = RootDB::db()->queryFirstRow("select no,name,picture,imgsvr,grade from MEMBER where no= %i", $userID); -if(!$member) { +if (!$member) { MessageBox("잘못된 접근입니다!!!"); echo ""; exit(1); @@ -32,7 +32,7 @@ $connect=$db->get(); 장수생성 - + "; echo ""; exit(); @@ -204,12 +204,12 @@ if($gencount >= $admin['maxgeneral']) { "; } else { @@ -232,7 +232,7 @@ for($i=0; $i < $nationcount; $i++) { = 1 && $member['grade'] >= 1 && $member['picture'] != "") { +if ($admin['show_img_level'] >= 1 && $member['grade'] >= 1 && $member['picture'] != "") { $imageTemp = GetImageURL($member['imgsvr']); echo " @@ -275,15 +275,15 @@ if($admin['show_img_level'] >= 1 && $member['grade'] >= 1 && $member['picture'] - + - + - + diff --git a/hwe/select_npc.php b/hwe/select_npc.php index b36c03b8..0e7ec033 100644 --- a/hwe/select_npc.php +++ b/hwe/select_npc.php @@ -88,7 +88,7 @@ if($admin['show_img_level'] >= 3) { ?> - + -= 5): ?> += 5): ?> - + @@ -42,8 +42,8 @@ $userGrade = $session->userGrade;
= 5){ - echo $templates->render('global_panel',['notice'=>$notice]); +if ($userGrade >= 5) { + echo $templates->render('global_panel', ['notice'=>$notice]); } ?> @@ -94,8 +94,8 @@ if($userGrade >= 5){
= 5){ - echo $templates->render('server_panel',[]); +if ($userGrade >= 5) { + echo $templates->render('server_panel', []); } ?> diff --git a/i_other/help.php b/i_other/help.php index 61e56801..6bf034a8 100644 --- a/i_other/help.php +++ b/i_other/help.php @@ -20,9 +20,9 @@ $images = IMAGES; body { color:white; background-color:black; border-width:1; border-color:gray; } table { font-family:'맑은 고딕'; line-height:110%; } font { font-family:'맑은 고딕'; line-height:110%; } -#bg0 { background-image:url(/back_walnut.jpg); } -#bg1 { background-image:url(/back_blue.jpg); } -#bg2 { background-image:url(/back_green.jpg); } +#bg0 { background-image:url(/back_walnut.jpg); } +#bg1 { background-image:url(/back_blue.jpg); } +#bg2 { background-image:url(/back_green.jpg); } .intro { font-size: 15px; @@ -62,22 +62,22 @@ font { font-family:'맑은 고딕'; line-height:110%; }
삼국지 모의전투 PHP 유기체서버 ()삼국지 모의전투 PHP 유기체서버 ()
{$scenario}
전체 접속자 수 : 턴당 갱신횟수 : 전체 접속자 수 : 턴당 갱신횟수 :
서버 가동중"; } -else { echo "서버 동결중"; } +if ($plock['plock'] == 0) { + echo "서버 가동중"; +} else { + echo "서버 동결중"; +} echo " "; -switch($admin['tnmt_type']) { +switch ($admin['tnmt_type']) { case 0: $str = "전력전"; break; case 1: $str = "통솔전"; break; case 2: $str = "일기토"; break; @@ -136,8 +154,11 @@ case 3: $str = "설전"; break; } $str2 = getTournament($admin['tournament']); $str3 = getTournamentTime(); -if($admin['tournament'] == 0) { echo "현재 토너먼트 경기 없음"; } -else { echo "{$str} {$str2} {$str3}↑"; } +if ($admin['tournament'] == 0) { + echo "현재 토너먼트 경기 없음"; +} else { + echo "{$str} {$str2} {$str3}↑"; +} echo "
접속중인 국가:
접속중인 국가:
【 국가방침 】
【 접속자 】
【 접속자 】
@@ -217,13 +244,13 @@ if($session->userGrade >= 5) { - ;color:white;width:50;font-size:13px; value='반복' onclick='refreshing(this, 2,0)'>;color:white;width:80;font-size:13px; value='▼미루기' onclick='refreshing(this, 2,1)'>;color:white;width:80;font-size:13px; value='▲당기기' onclick='refreshing(this, 2,2)'> + ;color:white;width:50;font-size:13px; value='반복' onclick='refreshing(this, 2,0)'>;color:white;width:80;font-size:13px; value='▼미루기' onclick='refreshing(this, 2,1)'>;color:white;width:80;font-size:13px; value='▲당기기' onclick='refreshing(this, 2,2)'>
- ;color:white;width:110;font-size:13px; value='실 행' onclick='refreshing(this, 3,form2)'>;color:white;width:110;font-size:13px; value='갱 신' onclick='refreshing(this, 0,0)'>;color:white;width:160;font-size:13px; value='로그아웃' onclick=location.replace('logout_process.php')>
+ ;color:white;width:110;font-size:13px; value='실 행' onclick='refreshing(this, 3,form2)'>;color:white;width:110;font-size:13px; value='갱 신' onclick='refreshing(this, 0,0)'>;color:white;width:160;font-size:13px; value='로그아웃' onclick=location.replace('logout_process.php')>
임관 권유 메세지
{$nation['name']}-
통솔
무력
지력
능력치 조정
장수/1001.jpg border=0 name=picture width=64 height=64>/1001.jpg border=0 name=picture width=64 height=64>
- - - - - - - - + + + + + + + +
;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='시작하기' onclick=location.replace('help.php?category=0')>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='회원가입' onclick=location.replace('help.php?category=1')>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='접속관리' onclick=location.replace('help.php?category=2')>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='캐릭터생성' onclick=location.replace('help.php?category=3')>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='명령입력' onclick=location.replace('help.php?category=4')>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='인터페이스' onclick=location.replace('help.php?category=5')>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='일반장수' onclick=location.replace('help.php?category=6')>;color:white;width:123px;height:50px;font-weight:bold;font-size:13px; value='FAQ' onclick=location.replace('help.php?category=7')>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='시작하기' onclick=location.replace('help.php?category=0')>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='회원가입' onclick=location.replace('help.php?category=1')>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='접속관리' onclick=location.replace('help.php?category=2')>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='캐릭터생성' onclick=location.replace('help.php?category=3')>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='명령입력' onclick=location.replace('help.php?category=4')>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='인터페이스' onclick=location.replace('help.php?category=5')>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='일반장수' onclick=location.replace('help.php?category=6')>;color:white;width:123px;height:50px;font-weight:bold;font-size:13px; value='FAQ' onclick=location.replace('help.php?category=7')>
+if ($category == 0) { + ?> @@ -87,7 +87,7 @@ if($category == 0) {
◈ 우선 예약턴제 전략 웹게임인 『체섭』의 컨셉 & 모토를 이해해봅시다.

-/help_01_01.jpg class=leftFloat> +/help_01_01.jpg class=leftFloat> 『웹게임』이란?
  온라인게임과 달리 특별한 프로그램 설치 없이도 인터넷 브라우저상에서 바로 즐길 수 있는 게임들을 칭합니다. 그렇기 때문에 어딜가든 인터넷이 되는 곳이라면 언제든지 접속해서 플레이가 가능합니다. 심지어 모바일기기(휴대폰, PMP)에서도 가능합니다!

@@ -102,7 +102,7 @@ if($category == 0) {
  체섭 입문을 권유하는 분들이 항상 하는 말씀 : 하루 5분 투자만으로도 가능한 게임!

-/help_01_03.jpg class=rightFloat> +/help_01_03.jpg class=rightFloat> 『삼국지 모의전투』?
  동양인들이 열광하는 중국 삼국시대(서기 184년~280년)를 배경으로 하여, 유저 자신이 한명의 장수가 되어 다른 장수들과 각축을 벌이며 중원에서 활약하는 게임입니다.

@@ -115,7 +115,7 @@ if($category == 0) {
  일반 MMORPG에서 길드장, 혈맹장을 즐겨 하신분들이라면 체섭에서의 수뇌부나 군주를 하면서 휘하 장수들을 거느리며 통솔하는 것에서 재미를 찾을 수 있을지도 모릅니다!

-/help_01_02.jpg class=leftFloat> +/help_01_02.jpg class=leftFloat>   힘들이지 않고 여유롭게, 캐릭터를 육성하거나 전투하는 재미를 찾을 수 있습니다!

  온라인 게임을 하면서도 뭔지 모르게 외롭다거나, 심심하거나, 멍때리며 칼질만 하는 당신을 발견했다면... 삼모전만의 매력인 IRC 채팅(공개채널, 국가채널 등)을 즐기며 여유로운 게임을 겸해보세요! 몇시간이 훌쩍 지나는 것을 체험할 수 있습니다!
@@ -128,8 +128,8 @@ if($category == 0) { +} elseif ($category == 1) { + ?>
시 작 하 기
@@ -137,7 +137,7 @@ if($category == 0) {
회 원 가 입
◈ 회원 가입을 해봅시다!

-/help_02_01.jpg class=leftFloat> +/help_02_01.jpg class=leftFloat>   아직 회원가입을 하지 않았다면 계정생성을 눌러봅시다.

  원하는 ID를 입력합니다.
@@ -146,7 +146,7 @@ if($category == 0) {
  확인을 위해 다시한번 PW를 입력합니다.

-/help_02_02.jpg class=rightFloat> +/help_02_02.jpg class=rightFloat>   비밀번호는 가입하는 순간 암호화되어 저장되므로 운영자도 알 수 없습니다. 그래서 비밀번호 찾기 기능이 없지요. 비밀번호를 잊었을 경우, 운영자에게 요청하여 초기화는 가능합니다. 안심하셔도 좋습니다.

  주민등록번호를 입력합니다.
@@ -171,8 +171,8 @@ if($category == 0) { + } elseif ($category == 2) { + ?> @@ -180,16 +180,16 @@ if($category == 0) {
접 속 관 리
◈ 웹게임에서 로그인은 굉장히 중요한 부분입니다. 잘 읽어주세요~

-/help_03_01.jpg class=leftFloat> +/help_03_01.jpg class=leftFloat>   로그인하는 순간 IP같은 몇가지 접속 정보가 서버에 기록됩니다. 특히 공공장소에서 접속 장소를 명시하지 않고 접속하는 경우, 멀티로 판단되어 캐릭터가 블럭되는 경우가 있으므로 주의해주세요!

  한 가정에서 형과 동생, 직장에서 직장 동료들과 함께 플레이하는 경우는 특히 접속장소를 잘 적어주세요.

 예시) 자택/형, 삼모대학 도서관, 62사단 사지방 등

-

/help_03_02.jpg> -/help_03_03.jpg> -/help_03_04.jpg>

+

/help_03_02.jpg> +/help_03_03.jpg> +/help_03_04.jpg>

  위처럼, 한 IP에서 여러명이 접속해야하는 경우는 항상 멀티후보로 분류되므로 조심해야 합니다. 동생이 형의 계정으로 접속하여 대신 명령을 해준다든지(이하 대턴입력) 하는 등의 행동은 여러가지 분석정보에 의해서 적발될 수 있습니다.

  한 IP에서 다수가 접속해야 하는 경우는 정황판단에 의해서 언제든지 블럭대상이 될 수 있음을 명심하시고, 블럭당할시에 이의제기는 받지 않습니다. 그만큼 확실히 멀티나 대턴이 확실하다고 판단되는 경우를 적발합니다.
@@ -204,8 +204,8 @@ if($category == 0) { + } elseif ($category == 3) { + ?> @@ -213,7 +213,7 @@ if($category == 0) {
캐 릭 터 생 성 & 계 정 관 리
◈ 각 서버의 특징을 알아봅시다.

-/help_04_01.jpg class=leftFloat> +/help_04_01.jpg class=leftFloat>   온라인 게임을 해보셨다면 익숙한 서버 선택 화면입니다. 체섭은 크게 유저들만 활동하는 메이져 서버인 체섭과 NPC들과 어울릴 수 있는 마이너 서버인 퀘풰퉤훼섭으로 분류됩니다. 마이너 서버들은 본래 테스트 서버 목적이므로 언제든지 리셋, 폐쇄될 수 있습니다.

  체섭은 180년에 모두 공백지인 상태에서 유저들끼리 경쟁하는 가장 기본적인 방법의 삼모전입니다. 활동 유저도 가장 많고 그만큼 치열합니다. 대신 눈에 띄는 활약을 했다면 『명예의 전당』과 『왕조일람』에 그 명성을 영원히 남길 수 있습니다!
@@ -227,7 +227,7 @@ if($category == 0) {   훼섭은 퉤섭과 비슷한 스타일이지만 고속진행이 특징입니다. 아침에 시작해서 밤에 통일되는 쾌속 서버! 휴가나 방학에 즐기면 좋습니다.

-/help_04_02.jpg class=rightFloat> +/help_04_02.jpg class=rightFloat> ◈ 원하는 서버에 캐릭터를 생성해 봅시다.

  마음에 드는 서버에서 장수생성을 클릭해봅시다. 저는 퉤섭을 찍어볼게요~
@@ -245,13 +245,13 @@ if($category == 0) {   장수생성을 누릅시다.

  다시 로그인 해봅시다. 캐릭터가 생성되었군요!
-/help_04_03.jpg class=leftFloat> +/help_04_03.jpg class=leftFloat>

◈ 자신의 계정을 관리하는 방법을 알아봅시다.

-/help_04_04.jpg class=leftFloat> -/help_04_05.jpg class=rightFloat> +/help_04_04.jpg class=leftFloat> +/help_04_05.jpg class=rightFloat>   플레이에 들어가기에 앞서 계정관리를 살펴봅시다. 계정관리의 비번&전콘을 눌러봅시다.

  비밀번호를 변경할 수 있습니다.
@@ -270,8 +270,8 @@ if($category == 0) { + } elseif ($category == 4) { + ?> @@ -279,11 +279,11 @@ if($category == 0) {
명 령 입 력
◈ 가장 기본이 되는 턴입력을 해봅시다.

-/help_05_01.jpg class=leftFloat> +/help_05_01.jpg class=leftFloat>   중간에 보이는 세로 스크롤창에서 클릭, 드래그, Ctrl+클릭, Shift+클릭을 해봅시다. 클릭은 1개만 선택됩니다.

-/help_05_03.jpg class=rightFloat> -/help_05_02.jpg class=rightFloat> +/help_05_03.jpg class=rightFloat> +/help_05_02.jpg class=rightFloat>   1턴 부분에서 버튼을 누른 후, 떼지 말고 5턴 부분까지 끌어봅시다. 여러개가 선택됩니다. 드래그라고 하지요.

  이번엔 1턴을 클릭해봅시다. 그리고 Ctrl키를 누른 상태에서 3턴, 6턴을 눌러봅시다. 떨어져있는 여러가지를 선택할 수 있답니다.
@@ -291,7 +291,7 @@ if($category == 0) {   이번엔 1턴 부분을 클릭해봅시다. 그리고 Shift키를 누른 상태에서 5턴 부분을 클릭해 봅시다. 드래그와 비슷한 기능이죠? 이처럼 여러가지 방법을 사용해서 예약할 턴을 선택할 수 있습니다.

-/help_05_04.jpg class=leftFloat> +/help_05_04.jpg class=leftFloat>   간단하게 1턴, 3턴을 골라봅시다.

  우측에 보이는 콤보박스를 클릭하면 명령 목록이 쭉 나열됩니다. 휠이나 스크롤바를 사용하여 아래로 쭉 내려봅시다. ===개인=== 탭에 가장 먼저 보이는 견문을 선택합니다. @@ -300,7 +300,7 @@ if($category == 0) {
  가장 우측에 보이는 곳에 1, 3번째 칸에 견문이 입력되었을겁니다. 이처럼 원하는 턴을 선택하고, 원하는 명령을 선택하고, 실행을 눌러서 원하는 명령을 원하는 턴에 입력하는게 가장 기본적인 플레이 방법입니다.

-/help_05_05.jpg class=leftFloat> +/help_05_05.jpg class=leftFloat>   우측에 보이는 정보창(이하 예턴창)에서는 턴 순서, 게임시간, 실제시간, 명령이 보이게 됩니다. 방금 입력한대로 따르면 1턴이 197년 9월이고 실제 시간으로는 21시 30분에 실행된다는 뜻이네요^^

  이처럼 자신의 턴시간에 자신이 예약해둔 명령이 실행되는 형태로 게임이 진행됩니다. 예약턴을 지정해놓고 잠을 자도 되고, 일을 해도 되고, IRC에 가서 전략을 토론하거나 잡담을 해도 되며, 심지어 멍때려도 됩니다!
@@ -308,7 +308,7 @@ if($category == 0) {
◈ 고급 턴 입력 스킬을 공부해 봅시다.

-/help_05_06.jpg class=leftFloat> +/help_05_06.jpg class=leftFloat>   1턴에 견문을 입력해봅시다.

  2턴에 요양을 입력해봅시다.
@@ -319,7 +319,7 @@ if($category == 0) {
  이번엔 전체턴에 견문을 입력해봅시다. 1~24턴까지 견문이 입력될겁니다.

-/help_05_07.jpg class=leftFloat> +/help_05_07.jpg class=leftFloat>   반복&수정에서 5턴 미루기를 선택해 봅시다. 1~5턴이 휴식으로 된것을 볼 수 있습니다.

  무슨 기능인지 눈치 채셨나요? 현재 입력된 1~24턴이 그대로 5칸이 6~24턴으로 밀리게 되고 공백칸은 휴식으로 채워지게 됩니다. 전체 턴 순서는 유지하면서도 끼워넣거나 할때 편리하게 이용할 수 있습니다. 당기기도 비슷한 기능이랍니다. 직접 해보세요!
@@ -336,8 +336,8 @@ if($category == 0) { + } elseif ($category == 5) { + ?> @@ -345,7 +345,7 @@ if($category == 0) {
인 터 페 이 스
◈ 올턴 견문을 입력해놓으셨나요? 그럼 이제 각종 정보를 구경해볼까요?

-/help_06_01.jpg class=leftFloat> +/help_06_01.jpg class=leftFloat> 세력도
  전체 지도와 장수동향, 정세동향을 볼 수 있습니다. 여기 나오는 정보들은 최신 소식이 가장 위에 나오는 형태이므로 아래에서 위로(↑방향) 읽는 것이 시간순서가 되겠지요^^

@@ -395,7 +395,7 @@ if($category == 0) {   현재 서버내의 접속현황을 확인할 수 있습니다.

-/help_06_03.jpg class=rightFloat> +/help_06_03.jpg class=rightFloat>   1. 현재 토너먼트 진행상황을 알 수 있습니다.
  2. 서버의 과부하 상황을 알 수 있습니다.
  3. 서버의 시나리오 종류를 알 수 있습니다.
@@ -416,7 +416,7 @@ if($category == 0) {   18. 1~24턴의 예약턴 표시

-/help_06_04.jpg class=rightFloat> +/help_06_04.jpg class=rightFloat>   소속 국가 정보 : 현재는 재야이므로 당연히 없겠죠? ^^ (일반장수 튜토리얼)
  내 장수 정보 표시
  캐릭터의 얼굴입니다.
@@ -446,7 +446,7 @@ if($category == 0) {   벌점 : 갱신(클릭)량에 따라서 벌점이 쌓입니다. 너무 무리한 갱신은 서버에 무리를 줄 수 있으므로 벌점이 너무 높으면 안되겠죠. 일반적으로 플레이하는 유저라면 신경쓰지 않아도 됩니다.

-/help_06_05.jpg class=rightFloat> +/help_06_05.jpg class=rightFloat>   1. 국가정보창들 : 일반장수 튜토리얼 참고
  2. 장수동향 : 전체 장수들의 눈에 띄는 동향들이 표시됩니다.
  3. 개인기록 : 내 캐릭터의 명령 실행 결과들이 표시됩니다.
@@ -460,27 +460,27 @@ if($category == 0) {

◈ 인터페이스 구경 잘 하셨나요? ^^ 그럼 이제 갱신 버튼을 눌러볼까요?
-/help_06_06.jpg class=leftFloat> +/help_06_06.jpg class=leftFloat>
  음? 뭐가 바뀐거지? 잘 살펴보시면 명령목록이 구경하시는동안 시간만큼 수행되어서 당겨진 것을 볼 수 있을겁니다. 5분턴 서버 기준으로 20분정도 구경을 하셨다면 약 4턴이 실행되었겠군요^^

-/help_06_07.jpg class=rightFloat> +/help_06_07.jpg class=rightFloat>   개인기록을 보시면 4턴이 실행된동안의 결과가 기록되어있습니다. 하하핫! 동네 장사를 이겼군요!.

  오오~ 레벨업 하는 모습도 보이는군요.

-/help_06_08.jpg class=leftFloat> +/help_06_08.jpg class=leftFloat>

-/help_06_09.jpg class=rightFloat> +/help_06_09.jpg class=rightFloat>   자, 재야에서도 볼 수 있는 중원 정보를 눌러봅시다.

  각 국가별로 외교상황이나 장수 숫자를 살펴볼 수 있습니다. 한눈에 전체 정세를 파악할 때 유용하겠죠?

-/help_06_10.jpg class=rightFloat> +/help_06_10.jpg class=rightFloat>   현재도시를 눌러봅시다.

  현재 자신이 소재하고 있는 도시의 정보를 볼 수 있습니다. 흠... 각종 수치들을 보니 아직 이 도시는 개발이 더딘 것 같군요. 뭐 우리나라가 아니므로 패스~
@@ -490,7 +490,7 @@ if($category == 0) {   아악... 제 능력치가 빨간색인걸 보니 현재 부상을 입은 상태이군요. ㅠㅠ

-/help_06_11.jpg class=rightFloat> +/help_06_11.jpg class=rightFloat>   이번엔 내정보&설정을 눌러봅시다.

  오. 좀 더 자세한 정보가 보이는군요. 명성과 계급, 전투기록과 숙련도도 볼 수 있군요. 개인기록도 더 오래전 것까지 볼 수 있구요. 전투 결과나 자신의 열전(역사)도 볼 수 있답니다.
@@ -507,8 +507,8 @@ if($category == 0) { + } elseif ($category == 6) { + ?> @@ -516,17 +516,17 @@ if($category == 0) { @@ -81,7 +77,7 @@ case 7: echo "독 특 한   커 뮤 니 티"; break;
일 반 장 수
◈ 국가에 임관하여 일반장수가 되어서 국가를 강성하게 만들어 봅시다!

-/help_07_01.jpg class=rightFloat> +/help_07_01.jpg class=rightFloat>   1턴에 임관을 실행해봅시다.

  화면이 전환되면서 각국의 홍보문구가 나타납니다. 홍보문구를 보고 마음에 드는 국가를 선택해서 임관 버튼을 눌러봅시다. 손권을 돕고 싶으니 吳을 선택!

-/help_07_02.jpg class=leftFloat> +/help_07_02.jpg class=leftFloat>   1턴에 【吳】(으)로 임관이라고 입력된게 보이죠? 지루하게 어떻게 기다리느냐구요? 나중에 중요 장수가 되거나 수뇌부, 군주가 되면 정신이 없을정도로 시간이 촉박할겁니다. ㅎㅎ 이리저리 구경하면서 임관이 되길 기다려봅시다.

  1턴이 실행될즈음 중원정보나 현재도시를 들락날락 하거나 갱신 버튼을 눌러보면 임관명령 결과가 보이게 됩니다. 잘 임관 되었군요.

-/help_07_03.jpg class=leftFloat> +/help_07_03.jpg class=leftFloat>   이제 한 국가의 소속 장수이므로 신분도 일반이 되었고 국가를 강성하게 만들기 위해서 열심히 일을 해봅시다. 국가는 열심히 일한 장수들을 위해서 1월마다 자금을, 7월마다 군량을 지급하게 됩니다. 이 돈을 가지고 내정도 하고, 나중에 전쟁이 벌어지면 병사도 모으게 됩니다. 혹은 여유자금을 가지고 아이템을 구입하거나 베팅장에 투자를 할 수도 있습니다!(응?)

  임관을 하게 되면 자동으로 수도(깃발에 별표시)로 이동하게 되는데요. 흠. 도시정보를 보니 농업, 수비가 부족하군요. 전체 선택후 명령목록에서 농업이나 수비를 선택합시다. 이 장수는 무력보다 지력이 높으므로 지력이 중요한 농지개간을 선택합니다. 실행을 누르면 올턴 농지개간이 입력!
@@ -536,7 +536,7 @@ if($category == 0) {   국가방침에서 장수들에게 방침을 정해준다면 그대로 따르는것이 더 좋겠죠? 국가는 일사불란하게 장수들이 움직일 때 더욱 강성해지는 법!

-/help_07_04.jpg class=rightFloat> +/help_07_04.jpg class=rightFloat>   이제 국가 정보가 나타나는군요. 살펴볼까요?
  국가명
  성향 : 국가의 성향입니다. 성향마다 장점과 단점이 존재합니다.
@@ -576,8 +576,8 @@ if($category == 0) { + } elseif ($category == 7) { + ?> @@ -620,7 +620,7 @@ if($category == 0) {   특수병은 강력한 전투력 대신 자금과 군량 소모가 큰 특징이 있답니다.
  이민족병은 준수한 전투력과 더불어 자금과 군량 소모가 적은 특징이 있답니다.
  지역병은 일반병과 비슷한 능력에 기동력이나 회피율이 뛰어난 특징이 있답니다.
-/help_08_01.jpg class=rightFloat> +/help_08_01.jpg class=rightFloat>   ---------- 보병계열 ----------
    보병 : 특별한 조건이 없이 만들 수 있어요.
   청주병 : 중원지역에서 생산이 가능해요.
@@ -760,19 +760,19 @@ if($category == 0) {
F A Q
- - - - - - - - + + + + + + + +
;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='시작하기' onclick=location.replace('help.php?category=0')>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='회원가입' onclick=location.replace('help.php?category=1')>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='접속관리' onclick=location.replace('help.php?category=2')>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='캐릭터생성' onclick=location.replace('help.php?category=3')>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='명령입력' onclick=location.replace('help.php?category=4')>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='인터페이스' onclick=location.replace('help.php?category=5')>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='일반장수' onclick=location.replace('help.php?category=6')>;color:white;width:123px;height:50px;font-weight:bold;font-size:13px; value='FAQ' onclick=location.replace('help.php?category=7')>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='시작하기' onclick=location.replace('help.php?category=0')>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='회원가입' onclick=location.replace('help.php?category=1')>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='접속관리' onclick=location.replace('help.php?category=2')>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='캐릭터생성' onclick=location.replace('help.php?category=3')>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='명령입력' onclick=location.replace('help.php?category=4')>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='인터페이스' onclick=location.replace('help.php?category=5')>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='일반장수' onclick=location.replace('help.php?category=6')>;color:white;width:123px;height:50px;font-weight:bold;font-size:13px; value='FAQ' onclick=location.replace('help.php?category=7')>
diff --git a/i_other/screenshot.php b/i_other/screenshot.php index b820d9c0..4a1737cd 100644 --- a/i_other/screenshot.php +++ b/i_other/screenshot.php @@ -15,14 +15,12 @@ if($sel == 0) $sel = 1; 스크린샷 @@ -53,13 +49,13 @@ font { font-family:'맑은 고딕'; line-height:110%; }
- /screenshot_01.jpg style=border-style:ridge;width:125px;height:75px; onclick=location.replace('screenshot.php?sel=1')> - /screenshot_02.jpg style=border-style:ridge;width:125px;height:75px; onclick=location.replace('screenshot.php?sel=2')> - /screenshot_03.jpg style=border-style:ridge;width:125px;height:75px; onclick=location.replace('screenshot.php?sel=3')> - /screenshot_04.jpg style=border-style:ridge;width:125px;height:75px; onclick=location.replace('screenshot.php?sel=4')> - /screenshot_05.jpg style=border-style:ridge;width:125px;height:75px; onclick=location.replace('screenshot.php?sel=5')> - /screenshot_06.jpg style=border-style:ridge;width:125px;height:75px; onclick=location.replace('screenshot.php?sel=6')> - /screenshot_07.jpg style=border-style:ridge;width:125px;height:75px; onclick=location.replace('screenshot.php?sel=7')> + /screenshot_01.jpg style=border-style:ridge;width:125px;height:75px; onclick=location.replace('screenshot.php?sel=1')> + /screenshot_02.jpg style=border-style:ridge;width:125px;height:75px; onclick=location.replace('screenshot.php?sel=2')> + /screenshot_03.jpg style=border-style:ridge;width:125px;height:75px; onclick=location.replace('screenshot.php?sel=3')> + /screenshot_04.jpg style=border-style:ridge;width:125px;height:75px; onclick=location.replace('screenshot.php?sel=4')> + /screenshot_05.jpg style=border-style:ridge;width:125px;height:75px; onclick=location.replace('screenshot.php?sel=5')> + /screenshot_06.jpg style=border-style:ridge;width:125px;height:75px; onclick=location.replace('screenshot.php?sel=6')> + /screenshot_07.jpg style=border-style:ridge;width:125px;height:75px; onclick=location.replace('screenshot.php?sel=7')>
- /screenshot_0.jpg style=border-style:ridge;> + /screenshot_0.jpg style=border-style:ridge;>