10 Commits
92 changed files with 1154 additions and 375 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ if($me[userlevel] < 5) {
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel=stylesheet href=stylesheet.php type=text/css>
</head>
<body oncontextmenu='return false'>
<body>
관리자가 아닙니다.<br>
";
banner();
@@ -42,7 +42,7 @@ $plock = MYDB_fetch_array($result);
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel=stylesheet href=stylesheet.php type=text/css>
</head>
<body oncontextmenu='return false'>
<body>
<form action=_119_b.php method=post>
시간조정 : <input type=text size=3 name=minute><input type=submit name=btn value='분당김'><input type=submit name=btn value='분지연'> 최종갱신 : <?=$admin[turntime];?><br>
시간조정 : <input type=text size=3 name=minute2><input type=submit name=btn value='토너분당김'><input type=submit name=btn value='토너분지연'> 토너먼트 : <?=$admin[tnmt_time];?><br>
+4
View File
@@ -2,6 +2,10 @@
include "lib.php";
include "func.php";
$btn = Util::getReq('btn');
$minute = Util::getReq('minute', 'int');
$minute2 = Util::getReq('minute2', 'int');
$connect=dbConn();
$query = "select userlevel from general where user_id='$_SESSION[p_id]'";
+2 -2
View File
@@ -17,7 +17,7 @@ if($me[userlevel] < 5) {
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel=stylesheet href=stylesheet.php type=text/css>
</head>
<body oncontextmenu='return false'>
<body>
관리자가 아닙니다.<br>
";
banner();
@@ -36,7 +36,7 @@ $admin = getAdmin($connect);
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel=stylesheet href=stylesheet.php type=text/css>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>게 임 관 리<br><? backButton(); ?></td></tr>
</table>
+9
View File
@@ -1,6 +1,15 @@
<?
include "lib.php";
include "func.php";
$msg = Util::getReq('msg');
$btn = Util::getReq('btn');
$log = Util::getReq('log');
$starttime = Util::getReq('starttime', 'string', date('Y-m-d H:i:s'));
$maxgeneral = Util::getReq('maxgeneral', 'int');
$maxnation = Util::getReq('maxnation', 'int');
$startyear = Util::getReq('startyear', 'int');
//로그인 검사
CheckLogin();
$connect = dbConn();
+2 -2
View File
@@ -17,7 +17,7 @@ if($me[userlevel] < 5) {
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel=stylesheet href=stylesheet.php type=text/css>
</head>
<body oncontextmenu='return false'>
<body>
관리자가 아닙니다.<br>
";
banner();
@@ -38,7 +38,7 @@ $admin = MYDB_fetch_array($result);
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel=stylesheet href=stylesheet.php type=text/css>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>회 원 관 리<br><? backButton(); ?></td></tr>
</table>
+4
View File
@@ -1,6 +1,10 @@
<?
include "lib.php";
include "func.php";
$btn = Util::getReq('btn');
$weap = Util::getReq('weap', 'int');
//로그인 검사
CheckLogin();
$connect = dbConn();
+2 -2
View File
@@ -21,7 +21,7 @@ if($me[userlevel] < 4) {
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel=stylesheet href=stylesheet.php type=text/css>
</head>
<body oncontextmenu='return false'>
<body>
특별회원이 아닙니다.<br>
";
banner();
@@ -39,7 +39,7 @@ if($me[userlevel] < 4) {
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel=stylesheet href=stylesheet.php type=text/css>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>특 별 회 원<br><? backButton(); ?></td></tr>
</table>
+6
View File
@@ -1,6 +1,12 @@
<?
include "lib.php";
include "func.php";
$btn = Util::getReq('btn');
$notice = Util::getReq('notice');
$genlist = Util::getReq('genlist', 'array_int');
$msg = Util::getReq('msg');
//로그인 검사
CheckLogin();
$connect = dbConn();
+2 -2
View File
@@ -17,7 +17,7 @@ if($me[userlevel] < 5) {
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel=stylesheet href=stylesheet.php type=text/css>
</head>
<body oncontextmenu='return false'>
<body>
관리자가 아닙니다.<br>
";
banner();
@@ -38,7 +38,7 @@ $admin = MYDB_fetch_array($result);
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel=stylesheet href=stylesheet.php type=text/css>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>멀 티 관 리<br><? backButton(); ?></td></tr>
</table>
+5
View File
@@ -1,6 +1,11 @@
<?
include "lib.php";
include "func.php";
$btn = Util::getReq('btn');
$genlist = Util::getReq('genlist', 'array_int');
$msg = Util::getReq('msg');
//로그인 검사
CheckLogin();
$connect = dbConn();
+13 -8
View File
@@ -1,6 +1,17 @@
<?
include "lib.php";
include "func.php";
$type = Util::getReq('type', 'int', 0);
$type2 = Util::getReq('type2', 'int', 0);
if($type < 0 || $type > 17){
$type = 0;
}
if($type2 < 0 || $type2 > 6){
$type2 = 0;
}
//로그인 검사
CheckLogin();
$connect = dbConn();
@@ -17,7 +28,7 @@ if($me[userlevel] < 5) {
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel=stylesheet href=stylesheet.php type=text/css>
</head>
<body oncontextmenu='return false'>
<body>
관리자가 아닙니다.<br>
";
banner();
@@ -28,12 +39,6 @@ if($me[userlevel] < 5) {
exit();
}
if($type == 0) {
$type = 0;
}
if($type2 == 0) {
$type2 = 0;
}
$sel[$type] = "selected";
$sel2[$type2] = "selected";
@@ -47,7 +52,7 @@ $admin = MYDB_fetch_array($result);
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel=stylesheet href=stylesheet.php type=text/css>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>일 제 정 보<br><? closeButton(); ?></td></tr>
<tr><td>
+4
View File
@@ -1,6 +1,10 @@
<?
include "lib.php";
include "func.php";
$btn = Util::getReq('btn');
$nation = Util::getReq('nation', 'int');
//로그인 검사
CheckLogin();
$connect = dbConn();
+8 -2
View File
@@ -1,6 +1,12 @@
<?
include "lib.php";
include "func.php";
$type = Util::getReq('type', 'int', 0);
if($type < 0 || $type > 4){
$type = 0;
}
//로그인 검사
CheckLogin();
$connect = dbConn();
@@ -17,7 +23,7 @@ if($me[userlevel] < 5) {
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel=stylesheet href=stylesheet.php type=text/css>
</head>
<body oncontextmenu='return false'>
<body>
관리자가 아닙니다.<br>
";
banner();
@@ -40,7 +46,7 @@ $sel[$type] = "selected";
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel=stylesheet href=stylesheet.php type=text/css>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>접 속 정 보<br><? closeButton(); ?></td></tr>
<tr><td><form name=form1 method=post>정렬순서 :
+12 -5
View File
@@ -1,6 +1,16 @@
<?
include "lib.php";
include "func.php";
$btn = Util::getReq('btn');
$gen = Util::getReq('gen', 'int', 0);
$type = Util::getReq('type', 'int', 0);
if($type < 0 || $type > 3){
$type = 0;
}
//로그인 검사
CheckLogin();
$connect = dbConn();
@@ -17,7 +27,7 @@ if($me[userlevel] < 5) {
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel=stylesheet href=stylesheet.php type=text/css>
</head>
<body oncontextmenu='return false'>
<body>
관리자가 아닙니다.<br>
";
banner();
@@ -32,9 +42,6 @@ if($btn == '정렬하기') {
$gen = 0;
}
if($type == 0) {
$type = 0;
}
$sel[$type] = "selected";
?>
<html>
@@ -43,7 +50,7 @@ $sel[$type] = "selected";
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel=stylesheet href=stylesheet.php type=text/css>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>로 그 정 보<br><? closeButton(); ?></td></tr>
<tr><td>
+7 -5
View File
@@ -1,6 +1,11 @@
<?
include "lib.php";
include "func.php";
$btn = Util::getReq('btn');
$gen = Util::getReq('gen', 'int', 0);
$type = 0;
//로그인 검사
CheckLogin();
$connect = dbConn();
@@ -17,7 +22,7 @@ if($me[userlevel] < 5) {
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel=stylesheet href=stylesheet.php type=text/css>
</head>
<body oncontextmenu='return false'>
<body>
관리자가 아닙니다.<br>
";
banner();
@@ -32,9 +37,6 @@ if($btn == '정렬하기') {
$gen = 0;
}
if($type == 0) {
$type = 0;
}
$sel[$type] = "selected";
?>
<html>
@@ -43,7 +45,7 @@ $sel[$type] = "selected";
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel=stylesheet href=stylesheet.php type=text/css>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>외 교 정 보<br><? closeButton(); ?></td></tr>
<tr><td>
+646 -223
View File
@@ -22,120 +22,6 @@ if($me[userlevel] < 3) {
exit();
}
$nationInfos = array(
array(0, '방랑군'),
array(1, '호족'),
array(2, '군벌'),
array(3, '주자사'),
array(4, '주목'),
array(5, '공'),
array(6, '왕'),
array(7, '황제'),
);
$genPriv = array(
array(1, '일반'),
array(2, '시중'),
array(3, '군사'),
array(4, '태수'),
array(5, '제3모사'),
array(6, '제3장군'),
array(7, '제2모사'),
array(8, '제2장군'),
array(9, '제1모사'),
array(10, '제1장군'),
array(11, '참모'),
array(12, '군주'),
);
$dexInfos = array(
array(0, 0, 'F-'),
array(1, 2500, 'F'),
array(2, 7500, 'F+'),
array(3, 15000, 'E-'),
array(4, 25000, 'E'),
array(5, 37500, 'E+'),
array(6, 52500, 'D-'),
array(7, 70000, 'D'),
array(8, 90000, 'D+'),
array(9, 112500, 'C-'),
array(10, 137500, 'C'),
array(11, 165000, 'C+'),
array(12, 195000, 'B-'),
array(13, 227500, 'B'),
array(14, 262500, 'B+'),
array(15, 300000, 'A-'),
array(16, 340000, 'A'),
array(17, 382500, 'A+'),
array(18, 427500, 'S-'),
array(19, 475000, 'S'),
array(20, 525000, 'S+'),
array(21, 577500, 'SS-'),
array(22, 632500, 'SS'),
array(23, 690000, 'SS+'),
array(24, 750000, 'SSS-'),
array(25, 812500, 'SSS'),
array(26, 877500, 'SSS+'),
array(27, 945000, 'Z-'),
array(28, 1015000, 'Z'),
array(29, 1087500, 'Z+'),
array(30, 1162500, '?')
);
$armTypeInfo = array(
array(0, '보병'),
array(1, '청주병'),
array(2, '수병'),
array(3, '자객병'),
array(4, '근위병'),
array(5, '등갑병'),
array(10, '궁병'),
array(11, '궁기병'),
array(12, '연노병'),
array(13, '강궁병'),
array(14, '석궁병'),
array(20, '기병'),
array(21, '백마병'),
array(22, '중장기병'),
array(23, '돌격기병'),
array(24, '철기병'),
array(25, '수렵기병'),
array(26, '맹수병'),
array(27, '호표기병'),
array(30, '귀병'),
array(31, '신귀병'),
array(32, '백귀병'),
array(33, '흑귀병'),
array(34, '악귀병'),
array(35, '남귀병'),
array(36, '황귀병'),
array(37, '천귀병'),
array(38, '마귀병'),
array(40, '정란'),
array(41, '충차'),
array(42, '벽력거'),
array(43, '목우'),
);
function findInvList($niddle, $target, $keyIdx=0, $isExactKey=false){
//바이너리 서치 안해
foreach($target as $idx => $values){
if($isExactKey && $values[$keyIdx] == $item){
return $values;
}
if(!$isExactKey && $item < $values[$keyIdx]){
return $target[$idx - 1];
}
}
//이건 일부러.
return $target[0];
}
$mydeathnumSum = 0;
$mykillnumSum = 0;
$expSum = 0;
@@ -827,26 +713,333 @@ if($isgen == "장수공격" || $isgen == "성벽공격" || $isgen == "장수평
$atmos3 = $game[city_rate];
}
if(!isset($level1)) $level1=0;
if(!isset($level2)) $level2=0;
switch($level1) {
case 12: $sellevel1[12] = "selected"; break;
case 11: $sellevel1[11] = "selected"; break;
case 10: $sellevel1[10] = "selected"; break;
case 9: $sellevel1[9] = "selected"; break;
case 8: $sellevel1[8] = "selected"; break;
case 7: $sellevel1[7] = "selected"; break;
case 6: $sellevel1[6] = "selected"; break;
case 5: $sellevel1[5] = "selected"; break;
case 1: $sellevel1[1] = "selected"; break;
}
switch($level2) {
case 12: $sellevel2[12] = "selected"; break;
case 11: $sellevel2[11] = "selected"; break;
case 10: $sellevel2[10] = "selected"; break;
case 9: $sellevel2[9] = "selected"; break;
case 8: $sellevel2[8] = "selected"; break;
case 7: $sellevel2[7] = "selected"; break;
case 6: $sellevel2[6] = "selected"; break;
case 5: $sellevel2[5] = "selected"; break;
case 1: $sellevel2[1] = "selected"; break;
}
if(!isset($type1)) $type1=0;
if(!isset($type2)) $type2=0;
$tch1 = isset($tech1)?min(max(0, floor($tech1/1000)), 13):0;
$tch2 = isset($tech2)?min(max(0, floor($tech2/1000)), 13):0;
$dx10 = findInvList(isset($dex10)?$dex10:0, $dexInfos, 1, false);
$dx110 = findInvList(isset($dex110)?$dex110:0, $dexInfos, 1, false);
$dx120 = findInvList(isset($dex120)?$dex120:0, $dexInfos, 1, false);
$dx130 = findInvList(isset($dex130)?$dex130:0, $dexInfos, 1, false);
$dx140 = findInvList(isset($dex140)?$dex140:0, $dexInfos, 1, false);
$dx20 = findInvList(isset($dex20)?$dex20:0, $dexInfos, 1, false);
$dx210 = findInvList(isset($dex210)?$dex210:0, $dexInfos, 1, false);
$dx220 = findInvList(isset($dex220)?$dex220:0, $dexInfos, 1, false);
$dx230 = findInvList(isset($dex230)?$dex230:0, $dexInfos, 1, false);
$dx240 = findInvList(isset($dex240)?$dex240:0, $dexInfos, 1, false);
switch($type1) {
case 0: $sel1[0] = "selected"; break;
case 1: $sel1[1] = "selected"; break;
case 2: $sel1[2] = "selected"; break;
case 3: $sel1[3] = "selected"; break;
case 4: $sel1[4] = "selected"; break;
case 5: $sel1[5] = "selected"; break;
case 10: $sel1[10] = "selected"; break;
case 11: $sel1[11] = "selected"; break;
case 12: $sel1[12] = "selected"; break;
case 13: $sel1[13] = "selected"; break;
case 14: $sel1[14] = "selected"; break;
case 20: $sel1[20] = "selected"; break;
case 21: $sel1[21] = "selected"; break;
case 22: $sel1[22] = "selected"; break;
case 23: $sel1[23] = "selected"; break;
case 24: $sel1[24] = "selected"; break;
case 25: $sel1[25] = "selected"; break;
case 26: $sel1[26] = "selected"; break;
case 27: $sel1[27] = "selected"; break;
case 30: $sel1[30] = "selected"; break;
case 31: $sel1[31] = "selected"; break;
case 32: $sel1[32] = "selected"; break;
case 33: $sel1[33] = "selected"; break;
case 34: $sel1[34] = "selected"; break;
case 35: $sel1[35] = "selected"; break;
case 36: $sel1[36] = "selected"; break;
case 37: $sel1[37] = "selected"; break;
case 38: $sel1[38] = "selected"; break;
case 40: $sel1[40] = "selected"; break;
case 41: $sel1[41] = "selected"; break;
case 42: $sel1[42] = "selected"; break;
case 43: $sel1[43] = "selected"; break;
}
switch($type2) {
case 0: $sel2[0] = "selected"; break;
case 1: $sel2[1] = "selected"; break;
case 2: $sel2[2] = "selected"; break;
case 3: $sel2[3] = "selected"; break;
case 4: $sel2[4] = "selected"; break;
case 5: $sel2[5] = "selected"; break;
case 10: $sel2[10] = "selected"; break;
case 11: $sel2[11] = "selected"; break;
case 12: $sel2[12] = "selected"; break;
case 13: $sel2[13] = "selected"; break;
case 14: $sel2[14] = "selected"; break;
case 20: $sel2[20] = "selected"; break;
case 21: $sel2[21] = "selected"; break;
case 22: $sel2[22] = "selected"; break;
case 23: $sel2[23] = "selected"; break;
case 24: $sel2[24] = "selected"; break;
case 25: $sel2[25] = "selected"; break;
case 26: $sel2[26] = "selected"; break;
case 27: $sel2[27] = "selected"; break;
case 30: $sel2[30] = "selected"; break;
case 31: $sel2[31] = "selected"; break;
case 32: $sel2[32] = "selected"; break;
case 33: $sel2[33] = "selected"; break;
case 34: $sel2[34] = "selected"; break;
case 35: $sel2[35] = "selected"; break;
case 36: $sel2[36] = "selected"; break;
case 37: $sel2[37] = "selected"; break;
case 38: $sel2[38] = "selected"; break;
case 40: $sel2[40] = "selected"; break;
case 41: $sel2[41] = "selected"; break;
case 42: $sel2[42] = "selected"; break;
case 43: $sel2[43] = "selected"; break;
}
switch($tech1) {
case 0: $tch1[0] = "selected"; break;
case 1000: $tch1[1] = "selected"; break;
case 2000: $tch1[2] = "selected"; break;
case 3000: $tch1[3] = "selected"; break;
case 4000: $tch1[4] = "selected"; break;
case 5000: $tch1[5] = "selected"; break;
case 6000: $tch1[6] = "selected"; break;
case 7000: $tch1[7] = "selected"; break;
case 8000: $tch1[8] = "selected"; break;
case 9000: $tch1[9] = "selected"; break;
case 10000: $tch1[10] = "selected"; break;
}
switch($tech2) {
case 0: $tch2[0] = "selected"; break;
case 1000: $tch2[1] = "selected"; break;
case 2000: $tch2[2] = "selected"; break;
case 3000: $tch2[3] = "selected"; break;
case 4000: $tch2[4] = "selected"; break;
case 5000: $tch2[5] = "selected"; break;
case 6000: $tch2[6] = "selected"; break;
case 7000: $tch2[7] = "selected"; break;
case 8000: $tch2[8] = "selected"; break;
case 9000: $tch2[9] = "selected"; break;
case 10000: $tch2[10] = "selected"; break;
}
switch($dex10) {
case 0: $dx10[0] = "selected"; break;
case 2500: $dx10[1] = "selected"; break;
case 7500: $dx10[2] = "selected"; break;
case 15000: $dx10[3] = "selected"; break;
case 25000: $dx10[4] = "selected"; break;
case 37500: $dx10[5] = "selected"; break;
case 52500: $dx10[6] = "selected"; break;
case 70000: $dx10[7] = "selected"; break;
case 90000: $dx10[8] = "selected"; break;
case 112500: $dx10[9] = "selected"; break;
case 137500: $dx10[10] = "selected"; break;
case 165000: $dx10[11] = "selected"; break;
case 195000: $dx10[12] = "selected"; break;
case 227500: $dx10[13] = "selected"; break;
case 262500: $dx10[14] = "selected"; break;
case 300000: $dx10[15] = "selected"; break;
case 340000: $dx10[16] = "selected"; break;
case 382500: $dx10[17] = "selected"; break;
case 427500: $dx10[18] = "selected"; break;
}
switch($dex110) {
case 0: $dx110[0] = "selected"; break;
case 2500: $dx110[1] = "selected"; break;
case 7500: $dx110[2] = "selected"; break;
case 15000: $dx110[3] = "selected"; break;
case 25000: $dx110[4] = "selected"; break;
case 37500: $dx110[5] = "selected"; break;
case 52500: $dx110[6] = "selected"; break;
case 70000: $dx110[7] = "selected"; break;
case 90000: $dx110[8] = "selected"; break;
case 112500: $dx110[9] = "selected"; break;
case 137500: $dx110[10] = "selected"; break;
case 165000: $dx110[11] = "selected"; break;
case 195000: $dx110[12] = "selected"; break;
case 227500: $dx110[13] = "selected"; break;
case 262500: $dx110[14] = "selected"; break;
case 300000: $dx110[15] = "selected"; break;
case 340000: $dx110[16] = "selected"; break;
case 382500: $dx110[17] = "selected"; break;
case 427500: $dx110[18] = "selected"; break;
}
switch($dex120) {
case 0: $dx120[0] = "selected"; break;
case 2500: $dx120[1] = "selected"; break;
case 7500: $dx120[2] = "selected"; break;
case 15000: $dx120[3] = "selected"; break;
case 25000: $dx120[4] = "selected"; break;
case 37500: $dx120[5] = "selected"; break;
case 52500: $dx120[6] = "selected"; break;
case 70000: $dx120[7] = "selected"; break;
case 90000: $dx120[8] = "selected"; break;
case 112500: $dx120[9] = "selected"; break;
case 137500: $dx120[10] = "selected"; break;
case 165000: $dx120[11] = "selected"; break;
case 195000: $dx120[12] = "selected"; break;
case 227500: $dx120[13] = "selected"; break;
case 262500: $dx120[14] = "selected"; break;
case 300000: $dx120[15] = "selected"; break;
case 340000: $dx120[16] = "selected"; break;
case 382500: $dx120[17] = "selected"; break;
case 427500: $dx120[18] = "selected"; break;
}
switch($dex130) {
case 0: $dx130[0] = "selected"; break;
case 2500: $dx130[1] = "selected"; break;
case 7500: $dx130[2] = "selected"; break;
case 15000: $dx130[3] = "selected"; break;
case 25000: $dx130[4] = "selected"; break;
case 37500: $dx130[5] = "selected"; break;
case 52500: $dx130[6] = "selected"; break;
case 70000: $dx130[7] = "selected"; break;
case 90000: $dx130[8] = "selected"; break;
case 112500: $dx130[9] = "selected"; break;
case 137500: $dx130[10] = "selected"; break;
case 165000: $dx130[11] = "selected"; break;
case 195000: $dx130[12] = "selected"; break;
case 227500: $dx130[13] = "selected"; break;
case 262500: $dx130[14] = "selected"; break;
case 300000: $dx130[15] = "selected"; break;
case 340000: $dx130[16] = "selected"; break;
case 382500: $dx130[17] = "selected"; break;
case 427500: $dx130[18] = "selected"; break;
}
switch($dex140) {
case 0: $dx140[0] = "selected"; break;
case 2500: $dx140[1] = "selected"; break;
case 7500: $dx140[2] = "selected"; break;
case 15000: $dx140[3] = "selected"; break;
case 25000: $dx140[4] = "selected"; break;
case 37500: $dx140[5] = "selected"; break;
case 52500: $dx140[6] = "selected"; break;
case 70000: $dx140[7] = "selected"; break;
case 90000: $dx140[8] = "selected"; break;
case 112500: $dx140[9] = "selected"; break;
case 137500: $dx140[10] = "selected"; break;
case 165000: $dx140[11] = "selected"; break;
case 195000: $dx140[12] = "selected"; break;
case 227500: $dx140[13] = "selected"; break;
case 262500: $dx140[14] = "selected"; break;
case 300000: $dx140[15] = "selected"; break;
case 340000: $dx140[16] = "selected"; break;
case 382500: $dx140[17] = "selected"; break;
case 427500: $dx140[18] = "selected"; break;
}
switch($dex20) {
case 0: $dx20[0] = "selected"; break;
case 2500: $dx20[1] = "selected"; break;
case 7500: $dx20[2] = "selected"; break;
case 15000: $dx20[3] = "selected"; break;
case 25000: $dx20[4] = "selected"; break;
case 37500: $dx20[5] = "selected"; break;
case 52500: $dx20[6] = "selected"; break;
case 70000: $dx20[7] = "selected"; break;
case 90000: $dx20[8] = "selected"; break;
case 112500: $dx20[9] = "selected"; break;
case 137500: $dx20[10] = "selected"; break;
case 165000: $dx20[11] = "selected"; break;
case 195000: $dx20[12] = "selected"; break;
case 227500: $dx20[13] = "selected"; break;
case 262500: $dx20[14] = "selected"; break;
case 300000: $dx20[15] = "selected"; break;
case 340000: $dx20[16] = "selected"; break;
case 382500: $dx20[17] = "selected"; break;
case 427500: $dx20[18] = "selected"; break;
}
switch($dex210) {
case 0: $dx210[0] = "selected"; break;
case 2500: $dx210[1] = "selected"; break;
case 7500: $dx210[2] = "selected"; break;
case 15000: $dx210[3] = "selected"; break;
case 25000: $dx210[4] = "selected"; break;
case 37500: $dx210[5] = "selected"; break;
case 52500: $dx210[6] = "selected"; break;
case 70000: $dx210[7] = "selected"; break;
case 90000: $dx210[8] = "selected"; break;
case 112500: $dx210[9] = "selected"; break;
case 137500: $dx210[10] = "selected"; break;
case 165000: $dx210[11] = "selected"; break;
case 195000: $dx210[12] = "selected"; break;
case 227500: $dx210[13] = "selected"; break;
case 262500: $dx210[14] = "selected"; break;
case 300000: $dx210[15] = "selected"; break;
case 340000: $dx210[16] = "selected"; break;
case 382500: $dx210[17] = "selected"; break;
case 427500: $dx210[18] = "selected"; break;
}
switch($dex220) {
case 0: $dx220[0] = "selected"; break;
case 2500: $dx220[1] = "selected"; break;
case 7500: $dx220[2] = "selected"; break;
case 15000: $dx220[3] = "selected"; break;
case 25000: $dx220[4] = "selected"; break;
case 37500: $dx220[5] = "selected"; break;
case 52500: $dx220[6] = "selected"; break;
case 70000: $dx220[7] = "selected"; break;
case 90000: $dx220[8] = "selected"; break;
case 112500: $dx220[9] = "selected"; break;
case 137500: $dx220[10] = "selected"; break;
case 165000: $dx220[11] = "selected"; break;
case 195000: $dx220[12] = "selected"; break;
case 227500: $dx220[13] = "selected"; break;
case 262500: $dx220[14] = "selected"; break;
case 300000: $dx220[15] = "selected"; break;
case 340000: $dx220[16] = "selected"; break;
case 382500: $dx220[17] = "selected"; break;
case 427500: $dx220[18] = "selected"; break;
}
switch($dex230) {
case 0: $dx230[0] = "selected"; break;
case 2500: $dx230[1] = "selected"; break;
case 7500: $dx230[2] = "selected"; break;
case 15000: $dx230[3] = "selected"; break;
case 25000: $dx230[4] = "selected"; break;
case 37500: $dx230[5] = "selected"; break;
case 52500: $dx230[6] = "selected"; break;
case 70000: $dx230[7] = "selected"; break;
case 90000: $dx230[8] = "selected"; break;
case 112500: $dx230[9] = "selected"; break;
case 137500: $dx230[10] = "selected"; break;
case 165000: $dx230[11] = "selected"; break;
case 195000: $dx230[12] = "selected"; break;
case 227500: $dx230[13] = "selected"; break;
case 262500: $dx230[14] = "selected"; break;
case 300000: $dx230[15] = "selected"; break;
case 340000: $dx230[16] = "selected"; break;
case 382500: $dx230[17] = "selected"; break;
case 427500: $dx230[18] = "selected"; break;
}
switch($dex240) {
case 0: $dx240[0] = "selected"; break;
case 2500: $dx240[1] = "selected"; break;
case 7500: $dx240[2] = "selected"; break;
case 15000: $dx240[3] = "selected"; break;
case 25000: $dx240[4] = "selected"; break;
case 37500: $dx240[5] = "selected"; break;
case 52500: $dx240[6] = "selected"; break;
case 70000: $dx240[7] = "selected"; break;
case 90000: $dx240[8] = "selected"; break;
case 112500: $dx240[9] = "selected"; break;
case 137500: $dx240[10] = "selected"; break;
case 165000: $dx240[11] = "selected"; break;
case 195000: $dx240[12] = "selected"; break;
case 227500: $dx240[13] = "selected"; break;
case 262500: $dx240[14] = "selected"; break;
case 300000: $dx240[15] = "selected"; break;
case 340000: $dx240[16] = "selected"; break;
case 382500: $dx240[17] = "selected"; break;
case 427500: $dx240[18] = "selected"; break;
}
?>
@@ -855,10 +1048,16 @@ $dx240 = findInvList(isset($dex240)?$dex240:0, $dexInfos, 1, false);
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<title>전투시뮬레이션</title>
<link rel=stylesheet href=stylesheet.php type=text/css>
<?php require('analytics.php'); ?>
<style type="text/css">
<!--
select { background-color:black;color:white; }
input { background-color:black;color:white; }
-->
</style>
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<form method=post action=_simul.php>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr id=bg1>
@@ -866,87 +1065,135 @@ $dx240 = findInvList(isset($dex240)?$dex240:0, $dexInfos, 1, false);
<td>상대장수</td>
<td>상대성벽</td>
</tr>
<tr>
<td>군주 지위
<select name='nation_level1' size='1'>
<?php foreach($nationInfos as $nationInfo): ?>
<option <?=($nation_level1==$nationInfo[0])?'selected=selected':''?> value=<?=$nationInfo[0]?>><?=$nationInfo[1]?></option>
<?php endforeach; ?>
</td>
<td>군주 지위
<select name='nation_level1' size='1'>
<?php foreach($nationInfos as $nationInfo): ?>
<option <?=($nation_level1==$nationInfo[0])?'selected=selected':''?> value=<?=$nationInfo[0]?>><?=$nationInfo[1]?></option>
<?php endforeach; ?>
</td>
<td>년도(성벽 강도)
<input type="text" size=3 maxlength=3 name="year" value="<?=isset($year)?$year:180?>">
</td>
</tr>
<tr>
<td>관직
<select name=level1 size=1>
<?php foreach($genPriv as $gen): ?>
<option <?=($level1==$gen[0])?'selected=selected':''?> value=<?=$gen[0]?>><?=$gen[1]?></option>
<?php endforeach; ?>
<option <?=$sellevel1[1];?> value=1>일반</option>
<option <?=$sellevel1[5];?> value=5>제3모사</option>
<option <?=$sellevel1[6];?> value=6>제3장군</option>
<option <?=$sellevel1[7];?> value=7>제2모사</option>
<option <?=$sellevel1[8];?> value=8>제2장군</option>
<option <?=$sellevel1[9];?> value=9>제1모사</option>
<option <?=$sellevel1[10];?> value=10>제1장군</option>
<option <?=$sellevel1[11];?> value=11>참모</option>
<option <?=$sellevel1[12];?> value=12>군주</option>
</select>
</td>
<td>관직
<select name=level2 size=1>
<?php foreach($genPriv as $gen): ?>
<option <?=($level2==$gen[0])?'selected=selected':''?> value=<?=$gen[0]?>><?=$gen[1]?></option>
<?php endforeach; ?>
<option <?=$sellevel2[1];?> value=1>일반</option>
<option <?=$sellevel2[5];?> value=5>제3모사</option>
<option <?=$sellevel2[6];?> value=6>제3장군</option>
<option <?=$sellevel2[7];?> value=7>제2모사</option>
<option <?=$sellevel2[8];?> value=8>제2장군</option>
<option <?=$sellevel2[9];?> value=9>제1모사</option>
<option <?=$sellevel2[10];?> value=10>제1장군</option>
<option <?=$sellevel2[11];?> value=11>참모</option>
<option <?=$sellevel2[12];?> value=12>군주</option>
</select>
</td>
<td>-</td>
<tr>
<td>Lv <input size=2 maxlength=2 name=explevel1 value=<?=$explevel1?>></td>
<td>Lv <input size=2 maxlength=2 name=explevel2 value=<?=$explevel2?>></td>
<td>Lv <input size=2 maxlength=2 name=explevel1 value=<?=$explevel1;?>></td>
<td>Lv <input size=2 maxlength=2 name=explevel2 value=<?=$explevel2;?>></td>
<td>-</td>
</tr>
<tr>
<td>통솔 <input size=3 maxlength=3 name=leader1 value=<?=$leader1?>></td>
<td>통솔 <input size=3 maxlength=3 name=leader2 value=<?=$leader2?>></td>
<td>통솔 <input size=3 maxlength=3 name=leader1 value=<?=$leader1;?>></td>
<td>통솔 <input size=3 maxlength=3 name=leader2 value=<?=$leader2;?>></td>
<td>-</td>
</tr>
<tr>
<td>무력 <input size=3 maxlength=3 name=power1 value=<?=$power1?>></td>
<td>무력 <input size=3 maxlength=3 name=power2 value=<?=$power2?>></td>
<td>무력 <input size=3 maxlength=3 name=power1 value=<?=$power1;?>></td>
<td>무력 <input size=3 maxlength=3 name=power2 value=<?=$power2;?>></td>
<td>-</td>
</tr>
<tr>
<td>지력 <input size=3 maxlength=3 name=intel1 value=<?=$intel1?>></td>
<td>지력 <input size=3 maxlength=3 name=intel2 value=<?=$intel2?>></td>
<td>지력 <input size=3 maxlength=3 name=intel1 value=<?=$intel1;?>></td>
<td>지력 <input size=3 maxlength=3 name=intel2 value=<?=$intel2;?>></td>
<td>-</td>
</tr>
<tr>
<td>병종
<select name=type1 size=1>
<?php foreach($armTypeInfo as $armType): ?>
<?php if($armType[0] % 10 == 0): ?>
<?php if($armType[0]!=0): ?>
</optgroup>
<?php endif; ?>
<optgroup label='<?=$armType[1]?>'>
<?php endif; ?>
<option <?=($type1==$armType[0])?'selected="seletected"':''?> value='<?=$armType[0]?>'><?=$armType[1]?></option>
<?php endforeach; ?>
</optgroup>
<option value=0>--------</option>
<option <?=$sel1[0];?> value=0>보병</option>
<option <?=$sel1[1];?> value=1>청주병</option>
<option <?=$sel1[2];?> value=2>수병</option>
<option <?=$sel1[3];?> value=3>자객병</option>
<option <?=$sel1[4];?> value=4>근위병</option>
<option <?=$sel1[5];?> value=5>등갑병</option>
<option value=0>--------</option>
<option <?=$sel1[10];?> value=10>궁병</option>
<option <?=$sel1[11];?> value=11>궁기병</option>
<option <?=$sel1[12];?> value=12>연노병</option>
<option <?=$sel1[13];?> value=13>강궁병</option>
<option <?=$sel1[14];?> value=14>석궁병</option>
<option value=0>--------</option>
<option <?=$sel1[20];?> value=20>기병</option>
<option <?=$sel1[21];?> value=21>백마병</option>
<option <?=$sel1[22];?> value=22>중장기병</option>
<option <?=$sel1[23];?> value=23>돌격기병</option>
<option <?=$sel1[24];?> value=24>철기병</option>
<option <?=$sel1[25];?> value=25>수렵기병</option>
<option <?=$sel1[26];?> value=26>맹수병</option>
<option <?=$sel1[27];?> value=27>호표기병</option>
<option value=0>--------</option>
<option <?=$sel1[30];?> value=30>귀병</option>
<option <?=$sel1[31];?> value=31>신귀병</option>
<option <?=$sel1[32];?> value=32>백귀병</option>
<option <?=$sel1[33];?> value=33>흑귀병</option>
<option <?=$sel1[34];?> value=34>악귀병</option>
<option <?=$sel1[35];?> value=35>남귀병</option>
<option <?=$sel1[36];?> value=36>황귀병</option>
<option <?=$sel1[37];?> value=37>천귀병</option>
<option <?=$sel1[38];?> value=38>마귀병</option>
<option value=0>--------</option>
<option <?=$sel1[40];?> value=40>정란</option>
<option <?=$sel1[41];?> value=41>충차</option>
<option <?=$sel1[42];?> value=42>벽력거</option>
<option <?=$sel1[43];?> value=43>목우</option>
</select>
</td>
<td>병종
<select name=type2 size=1>
<?php foreach($armTypeInfo as $armType): ?>
<?php if($armType[0] % 10 == 0): ?>
<?php if($armType[0]!=0): ?>
</optgroup>
<?php endif; ?>
<optgroup label='<?=$armType[1]?>'>
<?php endif; ?>
<option <?=($type2==$armType[0])?'selected="seletected"':''?> value='<?=$armType[0]?>'><?=$armType[1]?></option>
<?php endforeach; ?>
</optgroup>
<option value=0>--------</option>
<option <?=$sel2[0];?> value=0>보병</option>
<option <?=$sel2[1];?> value=1>청주병</option>
<option <?=$sel2[2];?> value=2>수병</option>
<option <?=$sel2[3];?> value=3>자객병</option>
<option <?=$sel2[4];?> value=4>근위병</option>
<option <?=$sel2[5];?> value=5>등갑병</option>
<option value=0>--------</option>
<option <?=$sel2[10];?> value=10>궁병</option>
<option <?=$sel2[11];?> value=11>궁기병</option>
<option <?=$sel2[12];?> value=12>연노병</option>
<option <?=$sel2[13];?> value=13>강궁병</option>
<option <?=$sel2[14];?> value=14>석궁병</option>
<option value=0>--------</option>
<option <?=$sel2[20];?> value=20>기병</option>
<option <?=$sel2[21];?> value=21>백마병</option>
<option <?=$sel2[22];?> value=22>중장기병</option>
<option <?=$sel2[23];?> value=23>돌격기병</option>
<option <?=$sel2[24];?> value=24>철기병</option>
<option <?=$sel2[25];?> value=25>수렵기병</option>
<option <?=$sel2[26];?> value=26>맹수병</option>
<option <?=$sel2[27];?> value=27>호표기병</option>
<option value=0>--------</option>
<option <?=$sel2[30];?> value=30>귀병</option>
<option <?=$sel2[31];?> value=31>신귀병</option>
<option <?=$sel2[32];?> value=32>백귀병</option>
<option <?=$sel2[33];?> value=33>흑귀병</option>
<option <?=$sel2[34];?> value=34>악귀병</option>
<option <?=$sel2[35];?> value=35>남귀병</option>
<option <?=$sel2[36];?> value=36>황귀병</option>
<option <?=$sel2[37];?> value=37>천귀병</option>
<option <?=$sel2[38];?> value=38>마귀병</option>
<option value=0>--------</option>
<option <?=$sel2[40];?> value=40>정란</option>
<option <?=$sel2[41];?> value=41>충차</option>
<option <?=$sel2[42];?> value=42>벽력거</option>
<option <?=$sel2[43];?> value=43>목우</option>
</select>
</td>
<td>성벽 <input size=4 maxlength=4 name=wall value=<?=$wall;?>></td>
@@ -969,16 +1216,32 @@ $dx240 = findInvList(isset($dex240)?$dex240:0, $dexInfos, 1, false);
<tr>
<td>기술
<select name=tech1 size=1>
<?php for($tch=0;$tch<=13;$tch++): ?>
<option <?=($tch1==$tch)?'selected="selected"':''?> value='<?=$tch*1000?>'><?=$tch?>등급</option>
<?php endfor; ?>
<option <?=$tch1[0];?> value=0>0등급</option>
<option <?=$tch1[1];?> value=1000>1등급</option>
<option <?=$tch1[2];?> value=2000>2등급</option>
<option <?=$tch1[3];?> value=3000>3등급</option>
<option <?=$tch1[4];?> value=4000>4등급</option>
<option <?=$tch1[5];?> value=5000>5등급</option>
<option <?=$tch1[6];?> value=6000>6등급</option>
<option <?=$tch1[7];?> value=7000>7등급</option>
<option <?=$tch1[8];?> value=8000>8등급</option>
<option <?=$tch1[9];?> value=9000>9등급</option>
<option <?=$tch1[10];?> value=10000>10등급</option>
</select>
</td>
<td>기술
<select name=tech2 size=1>
<?php for($tch=0;$tch<=13;$tch++): ?>
<option <?=($tch2==$tch)?'selected="selected"':''?> value='<?=$tch*1000?>'><?=$tch?>등급</option>
<?php endfor; ?>
<option <?=$tch2[0];?> value=0>0등급</option>
<option <?=$tch2[1];?> value=1000>1등급</option>
<option <?=$tch2[2];?> value=2000>2등급</option>
<option <?=$tch2[3];?> value=3000>3등급</option>
<option <?=$tch2[4];?> value=4000>4등급</option>
<option <?=$tch2[5];?> value=5000>5등급</option>
<option <?=$tch2[6];?> value=6000>6등급</option>
<option <?=$tch2[7];?> value=7000>7등급</option>
<option <?=$tch2[8];?> value=8000>8등급</option>
<option <?=$tch2[9];?> value=9000>9등급</option>
<option <?=$tch2[10];?> value=10000>10등급</option>
</select>
</td>
<td>-</td>
@@ -986,64 +1249,224 @@ $dx240 = findInvList(isset($dex240)?$dex240:0, $dexInfos, 1, false);
<tr>
<td>보
<select name=dex10 size=1>
<?php foreach($dexInfos as $dexInfo): ?>
<option <?=($dx10 == $dexInfo[0])?'selected="selected"':''?> value=<?=$dexInfo[1]?>><?=$dexInfo[2]?></option>
<?php endforeach; ?>
<option <?=$dx10[0];?> value=0>F</option>
<option <?=$dx10[1];?> value=2500>E-</option>
<option <?=$dx10[2];?> value=7500>E</option>
<option <?=$dx10[3];?> value=15000>E+</option>
<option <?=$dx10[4];?> value=25000>D-</option>
<option <?=$dx10[5];?> value=37500>D</option>
<option <?=$dx10[6];?> value=52500>D+</option>
<option <?=$dx10[7];?> value=70000>C-</option>
<option <?=$dx10[8];?> value=90000>C</option>
<option <?=$dx10[9];?> value=112500>C+</option>
<option <?=$dx10[10];?> value=137500>B-</option>
<option <?=$dx10[11];?> value=165000>B</option>
<option <?=$dx10[12];?> value=195000>B+</option>
<option <?=$dx10[13];?> value=227500>A-</option>
<option <?=$dx10[14];?> value=262500>A</option>
<option <?=$dx10[15];?> value=300000>A+</option>
<option <?=$dx10[16];?> value=340000>S</option>
<option <?=$dx10[17];?> value=382500>SS</option>
<option <?=$dx10[18];?> value=427500>SSS</option>
</select>
<select name=dex110 size=1>
<?php foreach($dexInfos as $dexInfo): ?>
<option <?=($dx110 == $dexInfo[0])?'selected="selected"':''?> value=<?=$dexInfo[1]?>><?=$dexInfo[2]?></option>
<?php endforeach; ?>
<option <?=$dx110[0];?> value=0>F</option>
<option <?=$dx110[1];?> value=2500>E-</option>
<option <?=$dx110[2];?> value=7500>E</option>
<option <?=$dx110[3];?> value=15000>E+</option>
<option <?=$dx110[4];?> value=25000>D-</option>
<option <?=$dx110[5];?> value=37500>D</option>
<option <?=$dx110[6];?> value=52500>D+</option>
<option <?=$dx110[7];?> value=70000>C-</option>
<option <?=$dx110[8];?> value=90000>C</option>
<option <?=$dx110[9];?> value=112500>C+</option>
<option <?=$dx110[10];?> value=137500>B-</option>
<option <?=$dx110[11];?> value=165000>B</option>
<option <?=$dx110[12];?> value=195000>B+</option>
<option <?=$dx110[13];?> value=227500>A-</option>
<option <?=$dx110[14];?> value=262500>A</option>
<option <?=$dx110[15];?> value=300000>A+</option>
<option <?=$dx110[16];?> value=340000>S</option>
<option <?=$dx110[17];?> value=382500>SS</option>
<option <?=$dx110[18];?> value=427500>SSS</option>
</select>
<select name=dex120 size=1>
<?php foreach($dexInfos as $dexInfo): ?>
<option <?=($dx120 == $dexInfo[0])?'selected="selected"':''?> value=<?=$dexInfo[1]?>><?=$dexInfo[2]?></option>
<?php endforeach; ?>
<option <?=$dx120[0];?> value=0>F</option>
<option <?=$dx120[1];?> value=2500>E-</option>
<option <?=$dx120[2];?> value=7500>E</option>
<option <?=$dx120[3];?> value=15000>E+</option>
<option <?=$dx120[4];?> value=25000>D-</option>
<option <?=$dx120[5];?> value=37500>D</option>
<option <?=$dx120[6];?> value=52500>D+</option>
<option <?=$dx120[7];?> value=70000>C-</option>
<option <?=$dx120[8];?> value=90000>C</option>
<option <?=$dx120[9];?> value=112500>C+</option>
<option <?=$dx120[10];?> value=137500>B-</option>
<option <?=$dx120[11];?> value=165000>B</option>
<option <?=$dx120[12];?> value=195000>B+</option>
<option <?=$dx120[13];?> value=227500>A-</option>
<option <?=$dx120[14];?> value=262500>A</option>
<option <?=$dx120[15];?> value=300000>A+</option>
<option <?=$dx120[16];?> value=340000>S</option>
<option <?=$dx120[17];?> value=382500>SS</option>
<option <?=$dx120[18];?> value=427500>SSS</option>
</select>
<select name=dex130 size=1>
<?php foreach($dexInfos as $dexInfo): ?>
<option <?=($dx130 == $dexInfo[0])?'selected="selected"':''?> value=<?=$dexInfo[1]?>><?=$dexInfo[2]?></option>
<?php endforeach; ?>
<option <?=$dx130[0];?> value=0>F</option>
<option <?=$dx130[1];?> value=2500>E-</option>
<option <?=$dx130[2];?> value=7500>E</option>
<option <?=$dx130[3];?> value=15000>E+</option>
<option <?=$dx130[4];?> value=25000>D-</option>
<option <?=$dx130[5];?> value=37500>D</option>
<option <?=$dx130[6];?> value=52500>D+</option>
<option <?=$dx130[7];?> value=70000>C-</option>
<option <?=$dx130[8];?> value=90000>C</option>
<option <?=$dx130[9];?> value=112500>C+</option>
<option <?=$dx130[10];?> value=137500>B-</option>
<option <?=$dx130[11];?> value=165000>B</option>
<option <?=$dx130[12];?> value=195000>B+</option>
<option <?=$dx130[13];?> value=227500>A-</option>
<option <?=$dx130[14];?> value=262500>A</option>
<option <?=$dx130[15];?> value=300000>A+</option>
<option <?=$dx130[16];?> value=340000>S</option>
<option <?=$dx130[17];?> value=382500>SS</option>
<option <?=$dx130[18];?> value=427500>SSS</option>
</select>
<select name=dex140 size=1>
<?php foreach($dexInfos as $dexInfo): ?>
<option <?=($dx140 == $dexInfo[0])?'selected="selected"':''?> value=<?=$dexInfo[1]?>><?=$dexInfo[2]?></option>
<?php endforeach; ?>
<option <?=$dx140[0];?> value=0>F</option>
<option <?=$dx140[1];?> value=2500>E-</option>
<option <?=$dx140[2];?> value=7500>E</option>
<option <?=$dx140[3];?> value=15000>E+</option>
<option <?=$dx140[4];?> value=25000>D-</option>
<option <?=$dx140[5];?> value=37500>D</option>
<option <?=$dx140[6];?> value=52500>D+</option>
<option <?=$dx140[7];?> value=70000>C-</option>
<option <?=$dx140[8];?> value=90000>C</option>
<option <?=$dx140[9];?> value=112500>C+</option>
<option <?=$dx140[10];?> value=137500>B-</option>
<option <?=$dx140[11];?> value=165000>B</option>
<option <?=$dx140[12];?> value=195000>B+</option>
<option <?=$dx140[13];?> value=227500>A-</option>
<option <?=$dx140[14];?> value=262500>A</option>
<option <?=$dx140[15];?> value=300000>A+</option>
<option <?=$dx140[16];?> value=340000>S</option>
<option <?=$dx140[17];?> value=382500>SS</option>
<option <?=$dx140[18];?> value=427500>SSS</option>
</select>
</td>
<td>보
<select name=dex20 size=1>
<?php foreach($dexInfos as $dexInfo): ?>
<option <?=($dx20 == $dexInfo[0])?'selected="selected"':''?> value=<?=$dexInfo[1]?>><?=$dexInfo[2]?></option>
<?php endforeach; ?>
<option <?=$dx20[0];?> value=0>F</option>
<option <?=$dx20[1];?> value=2500>E-</option>
<option <?=$dx20[2];?> value=7500>E</option>
<option <?=$dx20[3];?> value=15000>E+</option>
<option <?=$dx20[4];?> value=25000>D-</option>
<option <?=$dx20[5];?> value=37500>D</option>
<option <?=$dx20[6];?> value=52500>D+</option>
<option <?=$dx20[7];?> value=70000>C-</option>
<option <?=$dx20[8];?> value=90000>C</option>
<option <?=$dx20[9];?> value=112500>C+</option>
<option <?=$dx20[10];?> value=137500>B-</option>
<option <?=$dx20[11];?> value=165000>B</option>
<option <?=$dx20[12];?> value=195000>B+</option>
<option <?=$dx20[13];?> value=227500>A-</option>
<option <?=$dx20[14];?> value=262500>A</option>
<option <?=$dx20[15];?> value=300000>A+</option>
<option <?=$dx20[16];?> value=340000>S</option>
<option <?=$dx20[17];?> value=382500>SS</option>
<option <?=$dx20[18];?> value=427500>SSS</option>
</select>
<select name=dex210 size=1>
<?php foreach($dexInfos as $dexInfo): ?>
<option <?=($dx210 == $dexInfo[0])?'selected="selected"':''?> value=<?=$dexInfo[1]?>><?=$dexInfo[2]?></option>
<?php endforeach; ?>
<option <?=$dx210[0];?> value=0>F</option>
<option <?=$dx210[1];?> value=2500>E-</option>
<option <?=$dx210[2];?> value=7500>E</option>
<option <?=$dx210[3];?> value=15000>E+</option>
<option <?=$dx210[4];?> value=25000>D-</option>
<option <?=$dx210[5];?> value=37500>D</option>
<option <?=$dx210[6];?> value=52500>D+</option>
<option <?=$dx210[7];?> value=70000>C-</option>
<option <?=$dx210[8];?> value=90000>C</option>
<option <?=$dx210[9];?> value=112500>C+</option>
<option <?=$dx210[10];?> value=137500>B-</option>
<option <?=$dx210[11];?> value=165000>B</option>
<option <?=$dx210[12];?> value=195000>B+</option>
<option <?=$dx210[13];?> value=227500>A-</option>
<option <?=$dx210[14];?> value=262500>A</option>
<option <?=$dx210[15];?> value=300000>A+</option>
<option <?=$dx210[16];?> value=340000>S</option>
<option <?=$dx210[17];?> value=382500>SS</option>
<option <?=$dx210[18];?> value=427500>SSS</option>
</select>
<select name=dex220 size=1>
<?php foreach($dexInfos as $dexInfo): ?>
<option <?=($dx220 == $dexInfo[0])?'selected="selected"':''?> value=<?=$dexInfo[1]?>><?=$dexInfo[2]?></option>
<?php endforeach; ?>
<option <?=$dx220[0];?> value=0>F</option>
<option <?=$dx220[1];?> value=2500>E-</option>
<option <?=$dx220[2];?> value=7500>E</option>
<option <?=$dx220[3];?> value=15000>E+</option>
<option <?=$dx220[4];?> value=25000>D-</option>
<option <?=$dx220[5];?> value=37500>D</option>
<option <?=$dx220[6];?> value=52500>D+</option>
<option <?=$dx220[7];?> value=70000>C-</option>
<option <?=$dx220[8];?> value=90000>C</option>
<option <?=$dx220[9];?> value=112500>C+</option>
<option <?=$dx220[10];?> value=137500>B-</option>
<option <?=$dx220[11];?> value=165000>B</option>
<option <?=$dx220[12];?> value=195000>B+</option>
<option <?=$dx220[13];?> value=227500>A-</option>
<option <?=$dx220[14];?> value=262500>A</option>
<option <?=$dx220[15];?> value=300000>A+</option>
<option <?=$dx220[16];?> value=340000>S</option>
<option <?=$dx220[17];?> value=382500>SS</option>
<option <?=$dx220[18];?> value=427500>SSS</option>
</select>
<select name=dex230 size=1>
<?php foreach($dexInfos as $dexInfo): ?>
<option <?=($dx230 == $dexInfo[0])?'selected="selected"':''?> value=<?=$dexInfo[1]?>><?=$dexInfo[2]?></option>
<?php endforeach; ?>
<option <?=$dx230[0];?> value=0>F</option>
<option <?=$dx230[1];?> value=2500>E-</option>
<option <?=$dx230[2];?> value=7500>E</option>
<option <?=$dx230[3];?> value=15000>E+</option>
<option <?=$dx230[4];?> value=25000>D-</option>
<option <?=$dx230[5];?> value=37500>D</option>
<option <?=$dx230[6];?> value=52500>D+</option>
<option <?=$dx230[7];?> value=70000>C-</option>
<option <?=$dx230[8];?> value=90000>C</option>
<option <?=$dx230[9];?> value=112500>C+</option>
<option <?=$dx230[10];?> value=137500>B-</option>
<option <?=$dx230[11];?> value=165000>B</option>
<option <?=$dx230[12];?> value=195000>B+</option>
<option <?=$dx230[13];?> value=227500>A-</option>
<option <?=$dx230[14];?> value=262500>A</option>
<option <?=$dx230[15];?> value=300000>A+</option>
<option <?=$dx230[16];?> value=340000>S</option>
<option <?=$dx230[17];?> value=382500>SS</option>
<option <?=$dx230[18];?> value=427500>SSS</option>
</select>
<select name=dex240 size=1>
<?php foreach($dexInfos as $dexInfo): ?>
<option <?=($dx240 == $dexInfo[0])?'selected="selected"':''?> value=<?=$dexInfo[1]?>><?=$dexInfo[2]?></option>
<?php endforeach; ?>
<option <?=$dx240[0];?> value=0>F</option>
<option <?=$dx240[1];?> value=2500>E-</option>
<option <?=$dx240[2];?> value=7500>E</option>
<option <?=$dx240[3];?> value=15000>E+</option>
<option <?=$dx240[4];?> value=25000>D-</option>
<option <?=$dx240[5];?> value=37500>D</option>
<option <?=$dx240[6];?> value=52500>D+</option>
<option <?=$dx240[7];?> value=70000>C-</option>
<option <?=$dx240[8];?> value=90000>C</option>
<option <?=$dx240[9];?> value=112500>C+</option>
<option <?=$dx240[10];?> value=137500>B-</option>
<option <?=$dx240[11];?> value=165000>B</option>
<option <?=$dx240[12];?> value=195000>B+</option>
<option <?=$dx240[13];?> value=227500>A-</option>
<option <?=$dx240[14];?> value=262500>A</option>
<option <?=$dx240[15];?> value=300000>A+</option>
<option <?=$dx240[16];?> value=340000>S</option>
<option <?=$dx240[17];?> value=382500>SS</option>
<option <?=$dx240[18];?> value=427500>SSS</option>
</select>
</td>
<td>-</td>
+7 -4
View File
@@ -1,6 +1,9 @@
<?
include "lib.php";
include "func.php";
$btn = Util::getReq('btn');
//로그인 검사
CheckLogin();
$connect = dbConn();
@@ -26,7 +29,7 @@ if($con >= 2) { printLimitMsg($me[turntime]); exit(); }
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>명 장 일 람<br><? closeButton(); ?></td></tr>
</table>
@@ -129,7 +132,7 @@ for($i=0; $i < 21; $i++) {
echo "<td align=center>&nbsp;</td>";
} else {
$imageTemp = GetImageURL($gen[imgsvr]);
echo "<td align=center><img src={$imageTemp}/{$pic[$k]}></img></td>";
echo "<td align=center><img width='64' height='64' src={$imageTemp}/{$pic[$k]}></img></td>";
}
}
@@ -207,7 +210,7 @@ for($i=0; $i < 4; $i++) {
echo "<td align=center>&nbsp;</td>";
} else {
$imageTemp = GetImageURL($gen[imgsvr]);
echo "<td align=center><img src={$imageTemp}/{$pic[$k]}></img></td>";
echo "<td align=center><img width='64' height='64' src={$imageTemp}/{$pic[$k]}></img></td>";
}
}
@@ -248,7 +251,7 @@ for($i=0; $i < 4; $i++) {
echo "<td align=center>&nbsp;</td>";
} else {
$imageTemp = GetImageURL($gen[imgsvr]);
echo "<td align=center><img src={$imageTemp}/{$pic[$k]}></img></td>";
echo "<td align=center><img width='64' height='64' src={$imageTemp}/{$pic[$k]}></img></td>";
}
}
+4 -1
View File
@@ -1,6 +1,9 @@
<?
include "lib.php";
include "func.php";
$select = Util::getReq('select', 'int', 0);
$connect = dbConn();
increaseRefresh($connect, "왕조일람", 2);
?>
@@ -14,7 +17,7 @@ increaseRefresh($connect, "왕조일람", 2);
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style="font-size:13;word-break:break-all;color:white;background-color:black" id=bg0>
<tr><td>역 대 왕 조<br>
<input type=button value='창 닫기' onclick=window.close()><br>
+4 -1
View File
@@ -1,6 +1,9 @@
<?
include "lib.php";
include "func.php";
$select = Util::getReq('select', 'int', 0);
$connect = dbConn();
increaseRefresh($connect, "왕조일람", 2);
?>
@@ -14,7 +17,7 @@ increaseRefresh($connect, "왕조일람", 2);
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>역 대 왕 조<br>
<input type=button value='창 닫기' onclick=window.close()><br>
+8 -2
View File
@@ -1,6 +1,12 @@
<?
include "lib.php";
include "func.php";
$type = Util::getReq('type', 'int', 9);
if ($type <= 0 || $type > 16) {
$type = 9;
}
//로그인 검사
CheckLogin();
$connect = dbConn();
@@ -32,7 +38,7 @@ $sel[$type] = "selected";
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>장 수 일 람<br><? closeButton(); ?></td></tr>
<tr><td><form name=form1 method=post>정렬순서 :
@@ -148,7 +154,7 @@ for($j=0; $j < $gencount; $j++) {
$imageTemp = GetImageURL($general[imgsvr]);
echo "
<tr>
<td align=center><img src={$imageTemp}/{$general[picture]}></img></td>
<td align=center><img width='64' height='64' src={$imageTemp}/{$general[picture]}></img></td>
<td align=center>$name</td>
<td align=center>$general[age]세</td>
<td align=center>".getGenChar($general[personal])."</td>
+2 -2
View File
@@ -13,7 +13,7 @@ increaseRefresh($connect, "명예의전당", 2);
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=Font-size:13;word-break:break-all; id=bg0>
<tr><td>명 예 의 전 당<br><? closeButton(); ?></td></tr>
</table>
@@ -65,7 +65,7 @@ for($i=0; $i < 21; $i++) {
echo "<td align=center>&nbsp;</td>";
} else {
$imageTemp = GetImageURL($gen[imgsvr]);
echo "<td align=center><img src={$imageTemp}/{$pic[$k]}></img></td>";
echo "<td align=center><img width='64' height='64' src={$imageTemp}/{$pic[$k]}></img></td>";
}
*/
}
+7 -3
View File
@@ -3,6 +3,10 @@ $yearmonth = $_POST['yearmonth'];
include "lib.php";
include "func.php";
$btn = Util::getReq('btn');
$yearmonth = Util::getReq('yearmonth', 'int');
//로그인 검사
CheckLogin();
$connect = dbConn();
@@ -33,8 +37,8 @@ if(!$yearmonth) {
$year = $admin['year'];
$month = $admin['month'] - 1;
} else {
$year = substr($yearmonth, 0, 3) - 0;
$month = substr($yearmonth, 3, 2) - 0;
$year = intdiv($yearmonth, 100);
$month = $yearmonth % 100;
if($btn == "◀◀ 이전달") {
$month -= 1;
@@ -68,7 +72,7 @@ if($me[skin] < 1) {
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>연 감<br><? closeButton(); ?></td></tr>
<tr><td>
+1 -1
View File
@@ -26,7 +26,7 @@ if($con >= 2) { printLimitMsg($me[turntime]); exit(); }
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>세 력 일 람<br><? closeButton(); ?></td></tr>
</table>
+4 -2
View File
@@ -4,9 +4,11 @@ include "func.php";
$connect = dbConn();
increaseRefresh($connect, "빙의일람", 2);
if($type == 0) {
$type = Util::getReq('type', 'int', 1);
if($type <= 0 || $type > 8){
$type = 1;
}
$sel[$type] = "selected";
?>
@@ -19,7 +21,7 @@ $sel[$type] = "selected";
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>빙 의 일 람<br><? closeButton(); ?></td></tr>
<tr><td><form name=form1 method=post>정렬순서 :
+1 -1
View File
@@ -27,7 +27,7 @@ if($con >= 2) { printLimitMsg($me[turntime]); exit(); }
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1200 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>세 력 도<br><? closeButton(); ?></td></tr>
</table>
+1 -1
View File
@@ -38,7 +38,7 @@ if($game[maxonline] < $curonline) { $game[maxonline] = $curonline; }
<link rel=stylesheet href=stylesheet.php type=text/css>
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>트 래 픽 정 보<br><? closeButton(); ?></td></tr>
</table>
+1 -1
View File
@@ -34,7 +34,7 @@ function captureKey(e) {
</script>
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>설 문 조 사<br><? closeButton(); ?></td></tr>
</table>
+5 -1
View File
@@ -1,6 +1,10 @@
<?
include "lib.php";
include "func.php";
$msg = Util::getReq('msg');
$msg2 = Util::getReq('msg2');
//로그인 검사
CheckLogin();
$connect = dbConn();
@@ -48,7 +52,7 @@ if($msg2 == "") $msg2 = "-";
<link rel=stylesheet href=stylesheet.php type=text/css>
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>거 래 장<br><? closeButton(); ?></td></tr>
<tr><td align=center id=bg2><font color=orange size=6><b>거 래 장</b></font><input type=button value='갱신' onclick=location.replace('b_auction.php')></td></tr>
+10 -1
View File
@@ -1,6 +1,15 @@
<?
include "lib.php";
include "func.php";
$btn = Util::getReq('btn');
$gen = Util::getReq('gen', 'int', 0);
$type = Util::getReq('type', 'int', 0);
if ($type < 0 || $type > 3) {
$type = 0;
}
//로그인 검사
CheckLogin();
$connect = dbConn();
@@ -62,7 +71,7 @@ if($me[skin] < 1) {
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>감 찰 부<br><? closeButton(); ?></td></tr>
<tr><td>
+1 -1
View File
@@ -48,7 +48,7 @@ select { font-family:'굴림'; line-height:100%; }
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1120 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>베 팅 장<br><? closeButton(); ?></td></tr>
</table>
+1 -1
View File
@@ -28,7 +28,7 @@ if($me[skin] < 1) {
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>기 밀 실<br><? backButton(); ?></td></tr>
<form name=form1 method=post action=c_chiefboard.php>
+1 -1
View File
@@ -79,7 +79,7 @@ function turn(type) {
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>사 령 부<input type=button value='갱신' onclick=location.replace('b_chiefcenter.php')><br><? backButton(); ?></td></tr>
</table>
+5 -2
View File
@@ -1,6 +1,9 @@
<?
include "lib.php";
include "func.php";
$citylist = Util::getReq('citylist', 'int');
//로그인 검사
CheckLogin();
$connect = dbConn();
@@ -28,7 +31,7 @@ if($me[skin] < 1) {
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>도 시 정 보<br><? backButton(); ?></td></tr>
</table>
@@ -280,7 +283,7 @@ for($j=0; $j < $gencount; $j++) {
$imageTemp = GetImageURL($general[imgsvr]);
echo "
<tr>
<td align=center"; echo $me[skin]==2?" background={$imageTemp}/{$general[picture]}":""; echo " height=64></td>
<td align=center"; echo $me[skin]==2?" style='background:no-repeat center url(\"{$imageTemp}/{$general['picture']}\");background-size:64px;'":""; echo " height=64></td>
<td align=center>$general[name]</td>
<td align=center>$leader</td>
<td align=center>$power</td>
+1 -1
View File
@@ -42,7 +42,7 @@ if($me[skin] < 1) {
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>내 무 부<br><? backButton(); ?></td></tr>
</table>
+1 -1
View File
@@ -50,7 +50,7 @@ if($me[skin] < 1) {
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>중 원 정 보<br><? backButton(); ?></td></tr>
</table>
+7 -1
View File
@@ -1,6 +1,12 @@
<?
include "lib.php";
include "func.php";
$type = Util::getReq('type', 'int', 7);
if ($type <= 0 || $type > 8) {
$type = 7;
}
//로그인 검사
CheckLogin();
$connect = dbConn();
@@ -45,7 +51,7 @@ if($me[skin] < 1) {
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>암 행 부<br><? closeButton(); ?></td></tr>
<tr><td><form name=form1 method=post>정렬순서 :
+3 -3
View File
@@ -37,7 +37,7 @@ function out() {
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>인 사 부<br><? backButton(); ?></td></tr>
</table>
@@ -82,10 +82,10 @@ for($i=12; $i >= $lv; $i-=2) {
echo "
<tr>
<td width=98 align=center id=bg1><font size=4>".getLevel($i1, $nation[level])."</font></td>
<td width=64 height=64 background={$imageTemp1}/{$level[$i1][picture]}>&nbsp;</td>
<td width=64 height=64 style='background:no-repeat center url(\"{$imageTemp1}/{$level[$i1]['picture']}\");background-size:64px;'>&nbsp;</td>
<td width=332><font size=4>";echo $level[$i1][name]==''?"-":$level[$i1][name]; echo " ({$level[$i1][belong]}년)</font></td>
<td width=98 align=center id=bg1><font size=4>".getLevel($i2, $nation[level])."</font></td>
<td width=64 height=64 background={$imageTemp2}/{$level[$i2][picture]}>&nbsp;</td>
<td width=64 height=64 style='background:no-repeat center url(\"{$imageTemp2}/{$level[$i2]['picture']}\");background-size:64px;'>&nbsp;</td>
<td width=332><font size=4>";echo $level[$i2][name]==''?"-":$level[$i2][name]; echo " ({$level[$i2][belong]}년)</font></td>
</tr>
";
+7 -1
View File
@@ -1,6 +1,12 @@
<?
include "lib.php";
include "func.php";
$type = Util::getReq('type', 'int', 10);
if ($type <= 0 || $type > 12) {
$type = 10;
}
//로그인 검사
CheckLogin();
$connect = dbConn();
@@ -34,7 +40,7 @@ if($me[skin] < 1) {
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>세 력 도 시<br><? backButton(); ?></td></tr>
<tr><td><form name=form1 method=post>정렬순서 :
+8 -2
View File
@@ -1,6 +1,12 @@
<?
include "lib.php";
include "func.php";
$type = Util::getReq('type', 'int', 1);
if($type <= 0 || $type > 15) {
$type = 1;
}
//로그인 검사
CheckLogin();
$connect = dbConn();
@@ -35,7 +41,7 @@ if($me[skin] < 1) {
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>세 력 장 수<br><? backButton(); ?></td></tr>
<tr><td><form name=form1 method=post>정렬순서 :
@@ -139,7 +145,7 @@ for($j=0; $j < $gencount; $j++) {
$imageTemp = GetImageURL($general[imgsvr]);
echo "
<tr>
<td align=center"; echo $me[skin]>0?" background={$imageTemp}/{$general[picture]}":""; echo " height=64></td>
<td align=center"; echo $me[skin]>0?" style='background:no-repeat center url(\"{$imageTemp}/{$general['picture']}\");background-size:64px;'":""; echo " height=64></td>
<td align=center>$name</td>
<td align=center>"; echo getLevel($general[level], $nation[level]); echo "</td>
<td align=center>".getDed($general[dedication])."</td>
+1 -1
View File
@@ -24,7 +24,7 @@ if($me[level] == 0) {
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>세 력 정 보<br><? backButton(); ?></td></tr>
</table>
+24 -1
View File
@@ -1,6 +1,29 @@
<?
include "lib.php";
include "func.php";
$btn = Util::getReq('btn');
$map = Util::getReq('map', 'int', 0);
$mode = Util::getReq('mode', 'int', 2);
$tnmt = Util::getReq('tnmt', 'int', 1);
$skin = Util::getReq('skin', 'int', 1);
if($map < 0 || $map > 2){
$map = 0;
}
if($mode < 0 || $mode > 2){
$mode = 2;
}
if($tnmt < 0 || $tnmt > 1){
$tnmt = 1;
}
if($skin < 0 || $skin > 17){
$skin = 1;
}
//로그인 검사
CheckLogin();
$connect = dbConn();
@@ -49,7 +72,7 @@ function go(type) {
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>내 정 보<br><? backButton(); ?></td></tr>
</table>
+1 -1
View File
@@ -23,7 +23,7 @@ if($me[skin] < 1) {
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>회 의 실<br><? backButton(); ?></td></tr>
<form name=form1 method=post action=c_nationboard.php>
+1 -1
View File
@@ -14,7 +14,7 @@ increaseRefresh($connect, "국법", 1);
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>국 법<br><? backButton(); ?></td></tr>
<tr><td>
+1 -1
View File
@@ -44,7 +44,7 @@ select { font-family:'굴림'; line-height:100%; }
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=2000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>삼모전 토너먼트<br><? closeButton(); ?></td></tr>
</table>
+3 -3
View File
@@ -27,7 +27,7 @@ if($me[skin] < 1) {
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>부 대 편 성<br><? backButton(); ?></td></tr>
</table>
@@ -78,7 +78,7 @@ for($i=0; $i < $troopcount; $i++) {
<tr>
<td align=center rowspan=2><input "; echo $i==0?"checked ":""; echo "type=radio name=troop value='{$troop[troop]}'></td>
<td align=center >$troop[name]<br>【 $cityname 】</td>
<td height=64 background={$imageTemp}/{$picture}>&nbsp;</td>
<td height=64 style='background:no-repeat center url(\"{$imageTemp}/{$picture}\");background-size:64px;'>&nbsp;</td>
<td rowspan=2 width=662>$genlist</td>
<td rowspan=2>$turn</td>
</tr>
@@ -89,7 +89,7 @@ for($i=0; $i < $troopcount; $i++) {
<tr>
<td align=center rowspan=2>&nbsp;</td>
<td align=center >$troop[name]<br>【 $cityname 】</td>
<td height=64 background={$imageTemp}/{$picture}>&nbsp;</td>
<td height=64 style='background:no-repeat center url(\"{$imageTemp}/{$picture}\");background-size:64px;'>&nbsp;</td>
<td rowspan=2 width=662>$genlist</td>
<td rowspan=2>";
+10
View File
@@ -1,6 +1,16 @@
<?
include "lib.php";
include "func.php";
$btn = Util::getReq('btn');
$amount = Util::getReq('amount', 'int');
$cost = Util::getReq('cost', 'int');
$topv = Util::getReq('topv', 'int');
$value = Util::getReq('value', 'int');
$term = Util::getReq('term', 'int');
$stuff = Util::getReq('stuff', 'int');
$sel = Util::getReq('sel', 'int');
//로그인 검사
CheckLogin();
$connect = dbConn();
+1 -1
View File
@@ -23,7 +23,7 @@ $me = MYDB_fetch_array($result);
for($i=0; $i < 16; $i++) {
if(${"btn{$i}"} == "베팅!") {
$gold = ${"gold{$i}"};
$gold = (int)${"gold{$i}"};
$mebet = $me["bet{$i}"];
if($gold >= 10 && $gold <= 1000) {
if($gold + 500 <= $me[gold] && $gold + $mebet <= 1000 && $gold + $me[bet] <= 1000) {
+6
View File
@@ -3,6 +3,12 @@
include "lib.php";
include "func.php";
$title = Util::getReq('title');
$msg = Util::getReq('msg');
$num = Util::getReq('num', 'int');
$reply = Util::getReq('reply');
//로그인 검사
CheckLogin();
$connect = dbConn();
+8
View File
@@ -3,6 +3,14 @@
include "lib.php";
include "func.php";
$btn = Util::getReq('btn');
$msg = Util::getReq('msg');
$scoutmsg = Util::getReq('scoutmsg');
$rate = Util::getReq('rate', 'int');
$bill = Util::getReq('bill', 'int');
$secretlimit = Util::getReq('secretlimit', 'int');
//로그인 검사
CheckLogin();
$connect = dbConn();
+11
View File
@@ -3,6 +3,17 @@
include "lib.php";
include "func.php";
$turn = Util::getReq('turn', 'array_int');
$command = Util::getReq('command', 'int', 0);
$cost = Util::getReq('cost', 'int');
$name = Util::getReq('name');
$nationname = Util::getReq('nationname', 'string', '');
$note = Util::getReq('note', 'string', '');
$double = Util::getReq('double', 'int', 0);
$third = Util::getReq('third', 'int', 0);
$fourth = Util::getReq('fourth', 'int', 0);
//로그인 검사
CheckLogin();
$connect = dbConn();
+4
View File
@@ -3,6 +3,10 @@
include "lib.php";
include "func.php";
$msg = Util::getReq('msg');
$genlist = Util::getReq('genlist', 'int');
//로그인 검사
CheckLogin(1);
$connect = dbConn();
+17
View File
@@ -3,6 +3,13 @@
include "lib.php";
include "func.php";
$btn = Util::getReq('btn');
$level = Util::getReq('level', 'int');
$genlist = Util::getReq('genlist', 'int');
$outlist = Util::getReq('outlist', 'int');
$citylist = Util::getReq('citylist', 'int');
//로그인 검사
CheckLogin();
$connect = dbConn();
@@ -25,6 +32,11 @@ if($btn == "임명") {
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
if(!$general){
echo "<script>location.replace('b_myBossInfo.php');</script>";
exit();
}
//임명할사람이 군주이면 불가, 내가 수뇌부이어야함, 공석아닌때는 국가가 같아야함
if($general[level] == 12 || $meLevel < 5 || ($general[nation] != $me[nation] && $genlist != 0)) {
echo "<script>location.replace('b_myBossInfo.php');</script>";
@@ -35,6 +47,11 @@ if($btn == "임명") {
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$general = MYDB_fetch_array($result);
if(!$general){
echo "<script>location.replace('b_myBossInfo.php');</script>";
exit();
}
//추방할사람이 군주이면 불가, 내가 수뇌부이어야함, 공석아닌때는 국가가 같아야함
if($general[level] == 12 || $meLevel < 5 || ($general[nation] != $me[nation] && $outlist != 0)) {
echo "<script>location.replace('b_myBossInfo.php');</script>";
+5
View File
@@ -3,6 +3,11 @@
include "lib.php";
include "func.php";
$title = Util::getReq('title');
$msg = Util::getReq('msg');
$num = Util::getReq('num', 'int');
//로그인 검사
CheckLogin();
$connect = dbConn();
+3
View File
@@ -3,6 +3,9 @@
include "lib.php";
include "func.php";
$msg = Util::getReq('msg');
//로그인 검사
CheckLogin();
$connect = dbConn();
+12
View File
@@ -3,6 +3,18 @@
include "lib.php";
include "func.php";
// $btn, $msg
$btn = Util::getReq('btn');
$msg = Util::getReq('msg');
//관리자용
$auto = Util::getReq('auto', 'int');
$type = Util::getReq('type', 'int');
$gen = Util::getReq('gen', 'int');
$sel = Util::getReq('sel', 'int');
$trig = Util::getReq('trig', 'int');
//로그인 검사
CheckLogin();
$connect = dbConn();
+6
View File
@@ -3,6 +3,12 @@
include "lib.php";
include "func.php";
$btn = Util::getReq('btn');
$name = Util::getReq('name');
$gen = Util::getReq('gen', 'int');
$troop = Util::getReq('troop', 'int');
//로그인 검사
CheckLogin();
$connect = dbConn();
+7
View File
@@ -1,6 +1,13 @@
<?
include "lib.php";
include "func.php";
$btn = Util::getReq('btn');
$sel = Util::getReq('sel', 'int');
$comment = Util::getReq('comment');
$title = Util::getReq('title');
$str = Util::getReq('str');
//로그인 검사
CheckLogin();
$connect = dbConn();
+1 -1
View File
@@ -51,7 +51,7 @@ function myclock() {
</script>
<? require('analytics.php'); ?>
</head>
<body OnLoad='myclock()' oncontextmenu='return false'>
<body OnLoad='myclock()'>
<?
myCommandList($connect);
+5
View File
@@ -1,6 +1,11 @@
<?
include "lib.php";
include "func.php";
$ok = Util::getReq('ok');
$when = Util::getReq('when', 'int');
$gen = Util::getReq('gen', 'int');
//로그인 검사
CheckLogin(1);
$connect = dbConn();
+4
View File
@@ -1,6 +1,10 @@
<?
include "lib.php";
include "func.php";
$ok = Util::getReq('ok');
$gen = Util::getReq('gen', 'int');
//로그인 검사
CheckLogin(1);
$connect = dbConn();
+4
View File
@@ -1,6 +1,10 @@
<?
include "lib.php";
include "func.php";
$ok = Util::getReq('ok');
$gen = Util::getReq('gen', 'int');
//로그인 검사
CheckLogin(1);
$connect = dbConn();
+4
View File
@@ -1,6 +1,10 @@
<?
include "lib.php";
include "func.php";
$ok = Util::getReq('ok');
$gen = Util::getReq('gen', 'int');
//로그인 검사
CheckLogin(1);
$connect = dbConn();
+3
View File
@@ -1,6 +1,9 @@
<?
include "lib.php";
include "func.php";
$gen = Util::getReq('gen', 'int');
//로그인 검사
CheckLogin(1);
$connect = dbConn();
+4
View File
@@ -1,6 +1,10 @@
<?
include "lib.php";
include "func.php";
$ok = Util::getReq('ok');
$gen = Util::getReq('gen', 'int');
//로그인 검사
CheckLogin(1);
$connect = dbConn();
+1 -1
View File
@@ -21,7 +21,7 @@ if($me[userlevel] < 5) {
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel=stylesheet href=stylesheet.php type=text/css>
</head>
<body oncontextmenu='return false'>
<body>
관리자가 아닙니다.<br>
";
banner();
+1 -1
View File
@@ -21,7 +21,7 @@ if($me[userlevel] < 5) {
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel=stylesheet href=stylesheet.php type=text/css>
</head>
<body oncontextmenu='return false'>
<body>
관리자가 아닙니다.<br>
";
banner();
+1 -1
View File
@@ -21,7 +21,7 @@ if($me[userlevel] < 5) {
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel=stylesheet href=stylesheet.php type=text/css>
</head>
<body oncontextmenu='return false'>
<body>
관리자가 아닙니다.<br>
";
banner();
+2 -2
View File
@@ -21,7 +21,7 @@ if($me[userlevel] < 5) {
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel=stylesheet href=stylesheet.php type=text/css>
</head>
<body oncontextmenu='return false'>
<body>
관리자가 아닙니다.<br>
";
banner();
@@ -45,7 +45,7 @@ if($general[no] > 0) {
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel=stylesheet href=stylesheet.php type=text/css>
</head>
<body oncontextmenu='return false'>
<body>
이미 있습니다.<br>
";
banner();
+97 -5
View File
@@ -7,6 +7,98 @@ include "func_auction.php";
include "func_string.php";
include "func_history.php";
class Util{
private function __construct(){
}
private static function _parseReq($value, $type)
{
if (is_array($value)) {
if ($type === 'array_int') {
return array_map('intval', $value);
}
if ($type === 'array_string') {
return array_map(function ($item) {
return (string)$item;
}, $value);
}
if ($type === 'array') {
return $value;
}
throw new \InvalidArgumentException('지원할 수 없는 type 지정. array 가 붙은 type이어야 합니다');
}
if ($type === 'bool') {
$value = strtolower($value);
if ($value === 'false' || $value === 'no' || $value === 'n' || $value === 'x' || $value === 'null') {
return false;
}
return !!$value;
}
if ($type === 'int') {
return (int)$value;
}
if ($type === 'float') {
return (float)$value;
}
if ($type === 'string') {
return (string)$value;
}
throw new \InvalidArgumentException('올바르지 않은 type 지정');
}
/**
* $_POST, $_GET에서 값을 가져오는 함수. Util::array_get($_POST[$name]) 축약 가능.
* 타입이 복잡해질 경우 함수를 통하지 않고 json으로 요청할 것을 권장.
*
* @param string $name 가져오고자 하는 key 이름.
* @param string $type 가져오고자 하는 type. [string, int, float, bool, array, array_string, array_int]
* @param mixed $ifNotExists 만약 $_POST와 $_GET에 값이 없을 경우 반환하는 변수. 값은 $type을 검사하지 않음.
* @return int|float|string|array|null
* @throws \InvalidArgumentException
*/
public static function getReq($name, $type = 'string', $ifNotExists = null)
{
if (isset($_POST[$name])) {
$value = $_POST[$name];
} elseif (isset($_GET[$name])) {
$value = $_GET[$name];
} else {
return $ifNotExists;
}
return static::_parseReq($value, $type);
}
/**
* $_POST에서 값을 가져오는 함수. Util::array_get($_POST[$name]) 축약 가능. $_GET에서도 가져올 있다면 getReq 사용.
* 타입이 복잡해질 경우 함수를 통하지 않고 json으로 요청할 것을 권장.
*
* @param string $name 가져오고자 하는 key 이름.
* @param string $type 가져오고자 하는 type. [string, int, float, bool, array, array_string, array_int]
* @param mixed $ifNotExists 만약 $_GET과 $_POST에 값이 없을 경우 반환하는 변수. 값은 $type을 검사하지 않음.
* @return int|float|string|array|null
* @throws \InvalidArgumentException
*/
public static function getPost($name, $type = 'string', $ifNotExists = null)
{
if (isset($_POST[$name])) {
$value = $_POST[$name];
} else {
return $ifNotExists;
}
return static::_parseReq($value, $type);
}
}
/// 0.0~1.0 사이의 랜덤 float
function randF(){
return mt_rand() / mt_getrandmax();
@@ -193,7 +285,7 @@ function printLimitMsg($turntime) {
require('analytics.php');
echo "
</head>
<body oncontextmenu='return false'>
<body>
<font size=4><b>
접속 제한중입니다. 1 이내에 너무 많은 갱신을 하셨습니다. (다음 접속 가능 시각 : {$turntime})<br>
(자신의 턴이 되면 다시 접속 가능합니다. 당신의 건강을 위해 잠시 쉬어보시는 것은 어떨까요? ^^)<br>
@@ -2690,7 +2782,7 @@ function generalInfo($connect, $no, $skin) {
$general[mode] = unfont($general[mode]);
}
$weapImage = "{$images}/weap{$general[crewtype]}.jpg";
$weapImage = "{$images}/weap{$general[crewtype]}.png";
if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; };
$imageTemp = GetImageURL($general[imgsvr]);
echo "<table width=498 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg2>
@@ -2718,7 +2810,7 @@ function generalInfo($connect, $no, $skin) {
<td align=center colspan=2><font size=1>$bookname</font></td>
</tr>
<tr>
<td align=center height=64 rowspan=3"; echo $skin>0?" background={$weapImage}":""; echo ">&nbsp;</td>
<td align=center height=64 rowspan=3"; echo $skin>0?" style='background:no-repeat center url(\"{$weapImage}\");background-size:64px;background-color:#222222;'":""; echo ">&nbsp;</td>
<td align=center id=bg1><b>자금</b></td>
<td align=center colspan=2>$general[gold]</td>
<td align=center id=bg1><b>군량</b></td>
@@ -3480,7 +3572,7 @@ function ShowMsg($skin, $bgcolor, $type, $picture, $imgsvr, $me, $mycolor, $you,
} else {
$imageTemp = GetImageURL($imgsvr);
$naming = "[<font color=$mycolor>$me</font>{$sign}<font color=$youcolor>$you</font>]";
$picture = "<img src={$imageTemp}/{$picture}>";
$picture = "<img width='64' height='64' src={$imageTemp}/{$picture}>";
}
if($site != "") {
$form = "<form name=scout method=post action={$site}>";
@@ -3529,7 +3621,7 @@ function msgprint($connect, $msg, $name, $picture, $imgsvr, $when, $num, $type)
<td width=148 align=center id=bg1>$when</td>
</tr>
<tr>
<td width=64 height=64 valign=top><img src={$imageTemp}/{$picture} width=64 height=64 border=0></td>
<td width=64 height=64 valign=top><img width='64' height='64' src={$imageTemp}/{$picture} border=0></td>
<td width=932 colspan=2>$message[1]</td>
</tr>";
for($i=0; $i < $count; $i++) {
+1 -1
View File
@@ -1,7 +1,7 @@
<?
include "lib.php";
$justReset = isset($_GET['just_reset'])?intval($_GET['just_reset']):0;
$justReset = Util::getReq('just_reset', 'int', 0);
if(file_exists("d_setting/set.php")){
//DB 리셋만 하려는 것인지 검사 필요.
+1 -1
View File
@@ -17,7 +17,7 @@ if($me['cnt']) {
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel=stylesheet href=stylesheet.php type=text/css>
</head>
<body oncontextmenu='return false'>
<body>
서버가 제대로 초기화되지 않았습니다.<br>
";
banner();
-1
View File
@@ -3,7 +3,6 @@ include "lib.php";
include "func.php";
$connect=dbConn();
requireUserLevel($connect, 5);
LogHistory($connect, 1);
+1 -1
View File
@@ -3,7 +3,7 @@ include "lib.php";
include "schema.sql";
include "func.php";
$justReset = isset($_POST['just_reset'])?intval($_POST['just_reset']):0;
$justReset = Util::getReq('just_reset', 'int', 0);
if(file_exists("d_setting/set.php")){
+2 -2
View File
@@ -173,7 +173,7 @@ jQuery(function($){
</script>
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>장 수 생 성<br><? backButton(); ?></td></tr>
</table>
@@ -236,7 +236,7 @@ if($admin[img] >= 1 && $member[grade] >= 1 && $member[picture] != "") {
<tr>
<td align=right id=bg1>전콘 사용 여부</td>
<td width=64 height=64>
<img src={$imageTemp}/{$member[picture]} border=0>
<img width='64' height='64' src={$imageTemp}/{$member[picture]} border=0>
</td>
<td>
<input type=checkbox name=pic value=1 checked>사용
+19 -10
View File
@@ -6,8 +6,8 @@ $id = $_POST[id];
$pw = $_POST[pw];
$name = $_POST[name];
$name = _String::NoSpecialCharacter($name);
$pic = $_POST[pic];
$character = $_POST[character];
$pic = (int)$_POST[pic];
$character = (int)$_POST[character];
$leader = floor($_POST['leader']);
$power = floor($_POST['power']);
@@ -141,14 +141,23 @@ if($id_num) {
}
$city = $city[city];
$total = 3 + rand() % 3;
$pleader = rand() % 100;
$ppower = rand() % 100;
$pintel = rand() % 100;
$rate = $pleader + $ppower + $pintel;
$pleader = floor($pleader / $rate * $total + 0.5);
$ppower = floor($ppower / $rate * $total + 0.5);
$pintel = floor($pintel / $rate * $total + 0.5);
$pleader = 0;
$ppower = 0;
$pintel = 0;
for($statBonusCnt = 3 + rand() % 3; $statBonusCnt > 0; $statBonusCnt--){
switch(ChooseRandomItem(array($leader, $power, $intel))){
case 0:
$pleader++;
break;
case 1:
$ppower++;
break;
case 2:
$pintel++;
break;
}
}
$leader = $leader + $pleader;
$power = $power + $ppower;
+3 -3
View File
@@ -53,8 +53,8 @@ $_basegold = 0; // 기본 국고
$_baserice = 2000; // 기본 병량
$_taxrate = 0.01; // 군량 매매시 세율
$image1 = "../d_pic";
$images = "/images";
$image = "/image";
$images = "/image/game";
$image = "/image/icons";
unset($member);
unset($setup);
@@ -173,7 +173,7 @@ function requireUserLevel($connect, $reqLevel=5){
$p_id = isset($_SESSION['p_id'])?$_SESSION['p_id']:null;
if(!$p_id){
$query = "select count(*) as cnt from general where userlevel < 4 limit 1";
$query = "select count(*) as cnt from general where userlevel < $reqLevel limit 1";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$cnt = MYDB_fetch_array($result);
+1 -1
View File
@@ -120,7 +120,7 @@ function turn(type) {
</script>
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<div style="position:absolute; top:15px; left:50%; margin-left: -567px; width: 52px; height: 52px; border: 1px solid white;">심의</div>
<? $banner_id = $_SESSION[p_id]; ?>
+2 -2
View File
@@ -3,7 +3,7 @@ include "lib.php";
if($graphic == 2) {
echo "
<body bgcolor=black leftmargin=0 marginwidth=0 topmargin=0 marginheight=0 oncontextmenu='return false' onselectstart='return false' ondragstart='return false'>
<body bgcolor=black leftmargin=0 marginwidth=0 topmargin=0 marginheight=0>
<font color=white>
지 도 생 략<br>
(개인설정 또는 과부하로 인한 서버의 긴급모드)
@@ -65,7 +65,7 @@ function hideLayer() {
</script>
<? require('analytics.php'); ?>
</head>
<body bgcolor=black leftmargin=0 marginwidth=0 topmargin=0 marginheight=0 oncontextmenu='return false'>
<body bgcolor=black leftmargin=0 marginwidth=0 topmargin=0 marginheight=0>
<div id=city_name class=balloon style=background-color:1EA4FF;position:absolute;visibility:hidden;z-index:6;>
<table border=1 cellspacing=0 cellpadding=0>
<form name=city_form>
+1 -1
View File
@@ -14,7 +14,7 @@ $connect = dbconn();
<link rel=stylesheet href=stylesheet.php type=text/css>
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<?
$query = "select no,nation,skin from general where user_id='$_SESSION[p_id]'";
+1 -1
View File
@@ -12,7 +12,7 @@ $connect=dbConn();
<link rel=stylesheet href=stylesheet.php type=text/css>
<? require('analytics.php'); ?>
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td align=center id=bg1>삼국지 모의전투 PHP (유기체서버)</td></tr>
<tr>
+5
View File
@@ -1,6 +1,11 @@
<?
include "lib.php";
include "func.php";
$turn = Util::getReq('turn', 'array_int');
$sel = Util::getReq('sel', 'int');
$commandtype = Util::getReq('commandtype', 'int');
//로그인 검사
CheckLogin(1);
$connect = dbConn();
+5 -5
View File
@@ -241,11 +241,11 @@ function processWar($connect, $general, $city) {
}
}
} elseif($general[crewtype] == 40) { // 정란
$cityCrew = $cityCrew * 1.5;
$cityCrew = $cityCrew * 1.8;
} elseif($general[crewtype] == 41) { // 충차
$cityCrew = $cityCrew * 2.0;
$cityCrew = $cityCrew * 2.4;
} elseif($general[crewtype] == 42) { // 벽력거
$cityCrew = $cityCrew * 1.5;
$cityCrew = $cityCrew * 1.8;
}
//군주 공격 보정 10%
if($general[level] == 12) {
@@ -1473,10 +1473,10 @@ function CriticalRatio3($general) {
$ratio = max($mainstat - 65, 0);
if ($crewtype >= 3) {
$ratio /= 2;
$ratio *= 0.4;
}
else{
$ratio *= 0.7;
$ratio *= 0.5;
}
$ratio = round($ratio);
+25 -21
View File
@@ -1,6 +1,10 @@
<?
include "lib.php";
include "func.php";
$commandtype = Util::getReq('commandtype', 'int', 0);
$turn = Util::getReq('turn', 'array_int', array(0));
//로그인 검사
CheckLogin();
$connect = dbConn();
@@ -117,7 +121,7 @@ function starter($name, $type=0) {
require('analytics.php');
echo "
</head>
<body oncontextmenu='return false'>
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td align=center id=bg1>$name</td></tr>
<tr><td>
@@ -395,11 +399,11 @@ function calc(cost, formnum) {
$ric = round($ric);
$cst = round($cst);
$l = $color[$i];
$weapImage = "{$images}/weap{$i}.jpg";
$weapImage = "{$images}/weap{$i}.png";
if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; }
echo "
<tr height=64 bgcolor=$l>
<td background={$weapImage} align=center></td>
<td style='background:no-repeat center url(\"{$weapImage}\");background-size:64px;background-color:#222222;' align=center></td>
<td align=center>".getTypename($i)."</td>
<td align=center>{$att}</td>
<td align=center>{$def}</td>
@@ -445,11 +449,11 @@ function calc(cost, formnum) {
$ric = round($ric);
$cst = round($cst);
$l = $color[$i];
$weapImage = "{$images}/weap{$i}.jpg";
$weapImage = "{$images}/weap{$i}.png";
if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; }
echo "
<tr height=64 bgcolor=$l>
<td background={$weapImage} align=center></td>
<td style='background:no-repeat center url(\"{$weapImage}\");background-size:64px;background-color:#222222;' align=center></td>
<td align=center>".getTypename($i)."</td>
<td align=center>{$att}</td>
<td align=center>{$def}</td>
@@ -495,11 +499,11 @@ function calc(cost, formnum) {
$ric = round($ric);
$cst = round($cst);
$l = $color[$i];
$weapImage = "{$images}/weap{$i}.jpg";
$weapImage = "{$images}/weap{$i}.png";
if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; }
echo "
<tr height=64 bgcolor=$l>
<td background={$weapImage} align=center></td>
<td style='background:no-repeat center url(\"{$weapImage}\");background-size:64px;background-color:#222222;' align=center></td>
<td align=center>".getTypename($i)."</td>
<td align=center>{$att}</td>
<td align=center>{$def}</td>
@@ -545,11 +549,11 @@ function calc(cost, formnum) {
$ric = round($ric);
$cst = round($cst);
$l = $color[$i];
$weapImage = "{$images}/weap{$i}.jpg";
$weapImage = "{$images}/weap{$i}.png";
if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; }
echo "
<tr height=64 bgcolor=$l>
<td background={$weapImage} align=center></td>
<td style='background:no-repeat center url(\"{$weapImage}\");background-size:64px;background-color:#222222;' align=center></td>
<td align=center>".getTypename($i)."</td>
<td align=center>{$att}</td>
<td align=center>{$def}</td>
@@ -595,11 +599,11 @@ function calc(cost, formnum) {
$ric = round($ric);
$cst = round($cst);
$l = $color[$i];
$weapImage = "{$images}/weap{$i}.jpg";
$weapImage = "{$images}/weap{$i}.png";
if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; }
echo "
<tr height=64 bgcolor=$l>
<td background={$weapImage} align=center></td>
<td style='background:no-repeat center url(\"{$weapImage}\");background-size:64px;background-color:#222222;' align=center></td>
<td align=center>".getTypename($i)."</td>
<td align=center>{$att}</td>
<td align=center>{$def}</td>
@@ -829,11 +833,11 @@ function calc(cost, formnum) {
$ric = round($ric);
$cst = round($cst);
$l = $color[$i];
$weapImage = "{$images}/weap{$i}.jpg";
$weapImage = "{$images}/weap{$i}.png";
if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; }
echo "
<tr height=64 bgcolor=$l>
<td background={$weapImage} align=center></td>
<td style='background:no-repeat center url(\"{$weapImage}\");background-size:64px;background-color:#222222;' align=center></td>
<td align=center>".getTypename($i)."</td>
<td align=center>{$att}</td>
<td align=center>{$def}</td>
@@ -879,11 +883,11 @@ function calc(cost, formnum) {
$ric = round($ric);
$cst = round($cst);
$l = $color[$i];
$weapImage = "{$images}/weap{$i}.jpg";
$weapImage = "{$images}/weap{$i}.png";
if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; }
echo "
<tr height=64 bgcolor=$l>
<td background={$weapImage} align=center></td>
<td style='background:no-repeat center url(\"{$weapImage}\");background-size:64px;background-color:#222222;' align=center></td>
<td align=center>".getTypename($i)."</td>
<td align=center>{$att}</td>
<td align=center>{$def}</td>
@@ -929,11 +933,11 @@ function calc(cost, formnum) {
$ric = round($ric);
$cst = round($cst);
$l = $color[$i];
$weapImage = "{$images}/weap{$i}.jpg";
$weapImage = "{$images}/weap{$i}.png";
if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; }
echo "
<tr height=64 bgcolor=$l>
<td background={$weapImage} align=center></td>
<td style='background:no-repeat center url(\"{$weapImage}\");background-size:64px;background-color:#222222;' align=center></td>
<td align=center>".getTypename($i)."</td>
<td align=center>{$att}</td>
<td align=center>{$def}</td>
@@ -979,11 +983,11 @@ function calc(cost, formnum) {
$ric = round($ric);
$cst = round($cst);
$l = $color[$i];
$weapImage = "{$images}/weap{$i}.jpg";
$weapImage = "{$images}/weap{$i}.png";
if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; }
echo "
<tr height=64 bgcolor=$l>
<td background={$weapImage} align=center></td>
<td style='background:no-repeat center url(\"{$weapImage}\");background-size:64px;background-color:#222222;' align=center></td>
<td align=center>".getTypename($i)."</td>
<td align=center>{$att}</td>
<td align=center>{$def}</td>
@@ -1029,11 +1033,11 @@ function calc(cost, formnum) {
$ric = round($ric);
$cst = round($cst);
$l = $color[$i];
$weapImage = "{$images}/weap{$i}.jpg";
$weapImage = "{$images}/weap{$i}.png";
if($admin[img] < 2) { $weapImage = "{$image}/default.jpg"; }
echo "
<tr height=64 bgcolor=$l>
<td background={$weapImage} align=center></td>
<td style='background:no-repeat center url(\"{$weapImage}\");background-size:64px;background-color:#222222;' align=center></td>
<td align=center>".getTypename($i)."</td>
<td align=center>{$att}</td>
<td align=center>{$def}</td>
+2 -2
View File
@@ -31,7 +31,7 @@ $connect = dbConn();
<? require('analytics.php'); ?>
</head>
<body onLoad='changeGen()' oncontextmenu='return false'>
<body onLoad='changeGen()'>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td>장 수 선 택<br><? backButton(); ?></td></tr>
</table>
@@ -92,7 +92,7 @@ if($admin[img] >= 3) {
?>
<tr>
<td width=498 align=right rowspan=2 height=64 id=bg1>장수</td>
<td width=498><img src=<?=$image;?>/1001.jpg border=0 name=picture width=64 height=64></td>
<td width=498><img width='64' height='64' src=<?=$image;?>/1001.jpg border=0 name=picture></td>
</tr>
<?
}
+1 -1
View File
@@ -4,7 +4,7 @@ include "func.php";
$id = $_POST[id];
$pw = $_POST[pw];
$face = $_POST[face];
$face = (int)$_POST[face];
$pwTemp = substr($pw, 0, 32);
+4
View File
@@ -1,6 +1,10 @@
<?
include "lib.php";
include "func.php";
$type = Util::getReq('type', 'int', 0);
$sel = Util::getReq('sel', 'int', 1);
//로그인 검사
CheckLogin(1);
$connect = dbConn();
+3 -3
View File
@@ -48,9 +48,9 @@ button {
font-family: '맑은 고딕';
font-size: 13px;
}
.bg0 { background-image:url(/images/back_walnut.jpg); }
.bg1 { background-image:url(/images/back_green.jpg); }
.bg2 { background-image:url(/images/back_blue.jpg); }
.bg0 { background-image:url(/image/game/back_walnut.jpg); }
.bg1 { background-image:url(/image/game/back_green.jpg); }
.bg2 { background-image:url(/image/game/back_blue.jpg); }
.font0 { font-size: 10px; }
.font1 { font-size: 13px; }
+4 -4
View File
@@ -5,8 +5,8 @@ ob_start();
// 주요 환경변수들
define(W, '/');
define(IMAGE, '../../image');
define(IMAGES, '../../images');
define(IMAGE, '/image/icons');
define(IMAGES, '/image/game');
//define(IMAGE, 'http://115.68.28.99/image');
//define(IMAGES, 'http://115.68.28.99/images');
@@ -49,7 +49,7 @@ define(INSTALL, 'install');
define(SLEEP, 'sleep');
//define(BLOCKBODY, '');
define(BLOCKBODY, 'oncontextmenu="return false" onselectstart="return false" ondragstart="return false"');
define(BLOCKBODY, '');
//define(BLOCKBODY, 'oncontextmenu="return false" onselectstart="return false" ondragstart="return false"');
?>
+3 -3
View File
@@ -4,10 +4,10 @@
// $_POST['notice'] : 공지
// $_POST['server'] : 서버 인덱스
// $_POST['select'] : 0: 폐쇄, 1: 리셋, 2: 오픈
$action = $_POST['action'];
$action = (int)$_POST['action'];
$notice = $_POST['notice'];
$server = $_POST['server'];
$select = $_POST['select'];
$server = (int)$_POST['server'];
$select = (int)$_POST['select'];
require_once('_common.php');
require_once(ROOT.W.F_FUNC.W.'class._JSON.php');
+2 -2
View File
@@ -2,8 +2,8 @@
// 외부 파라미터
// $_POST['select'] : 처리종류
// $_POST['no'] : NO
$select = $_POST['select'];
$no = $_POST['no'];
$select = (int)$_POST['select'];
$no = (int)$_POST['no'];
require_once('_common.php');
require_once(ROOT.W.F_FUNC.W.'class._JSON.php');
+1 -1
View File
@@ -53,7 +53,7 @@ font { font-family:'맑은 고딕'; line-height:110%; }
<? require('../i_banner/analytics.php'); ?>
</head>
<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false">
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td><font size=5 color=skyblue><b>도 움 말</b></font></td></tr>
</table>
+1 -1
View File
@@ -39,7 +39,7 @@ font { font-family:'맑은 고딕'; line-height:110%; }
<? require('../i_banner/analytics.php'); ?>
</head>
<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false">
<body>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13;word-break:break-all; id=bg0>
<tr><td><font size=5 color=skyblue><b>스 크 린 샷</b></font></td></tr>
</table>