Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e551c360ef | ||
|
|
ce6bbf7cb5 | ||
|
|
e7a18f3a25 | ||
|
|
449e8afb4c | ||
|
|
b72985cb6b |
+2
-2
@@ -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>
|
||||
<body oncontextmenu='return false'>
|
||||
관리자가 아닙니다.<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>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -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>
|
||||
<body oncontextmenu='return false'>
|
||||
관리자가 아닙니다.<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>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -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>
|
||||
<body oncontextmenu='return false'>
|
||||
관리자가 아닙니다.<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>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -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>
|
||||
<body oncontextmenu='return false'>
|
||||
특별회원이 아닙니다.<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>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -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>
|
||||
<body oncontextmenu='return false'>
|
||||
관리자가 아닙니다.<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>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -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>
|
||||
<body oncontextmenu='return false'>
|
||||
관리자가 아닙니다.<br>
|
||||
";
|
||||
banner();
|
||||
@@ -47,7 +47,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>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -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>
|
||||
<body oncontextmenu='return false'>
|
||||
관리자가 아닙니다.<br>
|
||||
";
|
||||
banner();
|
||||
@@ -40,7 +40,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>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>정렬순서 :
|
||||
|
||||
@@ -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>
|
||||
<body oncontextmenu='return false'>
|
||||
관리자가 아닙니다.<br>
|
||||
";
|
||||
banner();
|
||||
@@ -43,7 +43,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>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -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>
|
||||
<body oncontextmenu='return false'>
|
||||
관리자가 아닙니다.<br>
|
||||
";
|
||||
banner();
|
||||
@@ -43,7 +43,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>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -1057,7 +1057,7 @@ input { background-color:black;color:white; }
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -26,7 +26,7 @@ if($con >= 2) { printLimitMsg($me[turntime]); exit(); }
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -14,7 +14,7 @@ increaseRefresh($connect, "왕조일람", 2);
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -14,7 +14,7 @@ increaseRefresh($connect, "왕조일람", 2);
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -32,7 +32,7 @@ $sel[$type] = "selected";
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>정렬순서 :
|
||||
|
||||
@@ -13,7 +13,7 @@ increaseRefresh($connect, "명예의전당", 2);
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -68,7 +68,7 @@ if($me[skin] < 1) {
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -26,7 +26,7 @@ if($con >= 2) { printLimitMsg($me[turntime]); exit(); }
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -19,7 +19,7 @@ $sel[$type] = "selected";
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>정렬순서 :
|
||||
|
||||
@@ -27,7 +27,7 @@ if($con >= 2) { printLimitMsg($me[turntime]); exit(); }
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -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>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -34,7 +34,7 @@ function captureKey(e) {
|
||||
</script>
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -48,7 +48,7 @@ if($msg2 == "") $msg2 = "-";
|
||||
<link rel=stylesheet href=stylesheet.php type=text/css>
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -62,7 +62,7 @@ if($me[skin] < 1) {
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -48,7 +48,7 @@ select { font-family:'굴림'; line-height:100%; }
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -28,7 +28,7 @@ if($me[skin] < 1) {
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -79,7 +79,7 @@ function turn(type) {
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -28,7 +28,7 @@ if($me[skin] < 1) {
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -42,7 +42,7 @@ if($me[skin] < 1) {
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -50,7 +50,7 @@ if($me[skin] < 1) {
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -45,7 +45,7 @@ if($me[skin] < 1) {
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>정렬순서 :
|
||||
|
||||
@@ -37,7 +37,7 @@ function out() {
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -34,7 +34,7 @@ if($me[skin] < 1) {
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>정렬순서 :
|
||||
|
||||
@@ -35,7 +35,7 @@ if($me[skin] < 1) {
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>정렬순서 :
|
||||
|
||||
@@ -24,7 +24,7 @@ if($me[level] == 0) {
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -49,7 +49,7 @@ function go(type) {
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -23,7 +23,7 @@ if($me[skin] < 1) {
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -14,7 +14,7 @@ increaseRefresh($connect, "국법", 1);
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -44,7 +44,7 @@ select { font-family:'굴림'; line-height:100%; }
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -27,7 +27,7 @@ if($me[skin] < 1) {
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -51,7 +51,7 @@ function myclock() {
|
||||
</script>
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
<body OnLoad='myclock()'>
|
||||
<body OnLoad='myclock()' oncontextmenu='return false'>
|
||||
<?
|
||||
myCommandList($connect);
|
||||
|
||||
|
||||
@@ -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>
|
||||
<body oncontextmenu='return false'>
|
||||
관리자가 아닙니다.<br>
|
||||
";
|
||||
banner();
|
||||
|
||||
@@ -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>
|
||||
<body oncontextmenu='return false'>
|
||||
관리자가 아닙니다.<br>
|
||||
";
|
||||
banner();
|
||||
|
||||
@@ -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>
|
||||
<body oncontextmenu='return false'>
|
||||
관리자가 아닙니다.<br>
|
||||
";
|
||||
banner();
|
||||
|
||||
@@ -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>
|
||||
<body oncontextmenu='return false'>
|
||||
관리자가 아닙니다.<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>
|
||||
<body oncontextmenu='return false'>
|
||||
이미 있습니다.<br>
|
||||
";
|
||||
banner();
|
||||
|
||||
+1
-1
@@ -193,7 +193,7 @@ function printLimitMsg($turntime) {
|
||||
require('analytics.php');
|
||||
echo "
|
||||
</head>
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<font size=4><b>
|
||||
접속 제한중입니다. 1턴 이내에 너무 많은 갱신을 하셨습니다. (다음 접속 가능 시각 : {$turntime})<br>
|
||||
(자신의 턴이 되면 다시 접속 가능합니다. 당신의 건강을 위해 잠시 쉬어보시는 것은 어떨까요? ^^)<br>
|
||||
|
||||
@@ -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>
|
||||
<body oncontextmenu='return false'>
|
||||
서버가 제대로 초기화되지 않았습니다.<br>
|
||||
";
|
||||
banner();
|
||||
|
||||
@@ -3,6 +3,7 @@ include "lib.php";
|
||||
include "func.php";
|
||||
|
||||
$connect=dbConn();
|
||||
requireUserLevel($connect, 5);
|
||||
|
||||
LogHistory($connect, 1);
|
||||
|
||||
|
||||
+1
-1
@@ -173,7 +173,7 @@ jQuery(function($){
|
||||
</script>
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
+8
-17
@@ -141,23 +141,14 @@ if($id_num) {
|
||||
}
|
||||
$city = $city[city];
|
||||
|
||||
|
||||
$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;
|
||||
}
|
||||
}
|
||||
$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);
|
||||
|
||||
$leader = $leader + $pleader;
|
||||
$power = $power + $ppower;
|
||||
|
||||
+1
-1
@@ -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 < $reqLevel limit 1";
|
||||
$query = "select count(*) as cnt from general where userlevel < 4 limit 1";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$cnt = MYDB_fetch_array($result);
|
||||
|
||||
|
||||
+1
-1
@@ -120,7 +120,7 @@ function turn(type) {
|
||||
</script>
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
|
||||
<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
@@ -3,7 +3,7 @@ include "lib.php";
|
||||
|
||||
if($graphic == 2) {
|
||||
echo "
|
||||
<body bgcolor=black leftmargin=0 marginwidth=0 topmargin=0 marginheight=0>
|
||||
<body bgcolor=black leftmargin=0 marginwidth=0 topmargin=0 marginheight=0 oncontextmenu='return false' onselectstart='return false' ondragstart='return false'>
|
||||
<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>
|
||||
<body bgcolor=black leftmargin=0 marginwidth=0 topmargin=0 marginheight=0 oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -14,7 +14,7 @@ $connect = dbconn();
|
||||
<link rel=stylesheet href=stylesheet.php type=text/css>
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
|
||||
<?
|
||||
$query = "select no,nation,skin from general where user_id='$_SESSION[p_id]'";
|
||||
|
||||
@@ -12,7 +12,7 @@ $connect=dbConn();
|
||||
<link rel=stylesheet href=stylesheet.php type=text/css>
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
Regular → Executable
+157
-132
@@ -1,12 +1,129 @@
|
||||
<?
|
||||
|
||||
function getGame($connect) {
|
||||
$query = "select * from game where no='1'";
|
||||
return MYDB_fetch_array(MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""));
|
||||
}
|
||||
function getOriginCity($connect, $general) {
|
||||
$query = "select city, level from city where city='$general[city]'";
|
||||
return MYDB_fetch_array(MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""));
|
||||
}
|
||||
|
||||
function getNation($connect, $general) {
|
||||
$query = "select nation,level,name,history,capital,tech,type from nation where nation='$general[nation]'";
|
||||
return MYDB_fetch_array(MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""));
|
||||
}
|
||||
|
||||
function getDestination($connect, $city) {
|
||||
$query = "select nation,level,name,history,rice,capital,tech,type from nation where nation='$city[nation]'";
|
||||
return MYDB_fetch_array(MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""));
|
||||
}
|
||||
|
||||
function getGeneralCount($connect, $nation) {
|
||||
$query = "select no from general where nation='$nation'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$generalCount = MYDB_num_rows($result);
|
||||
if($generalCount < 10) {
|
||||
$generalCount = 10;
|
||||
}
|
||||
return $generalCount;
|
||||
}
|
||||
|
||||
function getOpposeCount($connect, $city) {
|
||||
// 목표 도시내에 목표 국가 소속 장수 중, 병사가 있는 능력치합+병사수 순으로 훈,사 60, 80 이상
|
||||
$query = "select no,name,turntime,personal,special2,crew,crewtype,atmos,train,intel,intel2,book,power,power2,weap,injury,leader,leader2,horse,item,explevel,level,rice,leader+power+intel+weap+horse+book+crew/100 as sum,dex0,dex10,dex20,dex30,dex40 from general where city='$city[city]' and nation='$city[nation]' and nation!=0 and crew>'0' and rice>round(crew/100) and ((train>=60 and atmos>=60 and mode=1) or (train>=80 and atmos>=80 and mode=2)) order by sum desc";
|
||||
return MYDB_num_rows(MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""));
|
||||
}
|
||||
|
||||
function getBonusAtmosBasedOnItem($connect, $general) {
|
||||
$bonusAtmos = 0;
|
||||
if($general[item] == 3) {
|
||||
//탁주 사용
|
||||
$bonusAtmos += 3;
|
||||
$query = "update general set item=0 where no='$general[no]'";
|
||||
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$log[count($log)] = "<C>●</><C>".getItemName($general[item])."</>(을)를 사용!";
|
||||
$general[item] = 0;
|
||||
} elseif($general[item] >= 14 && $general[item] <= 16) {
|
||||
//의적주, 두강주, 보령압주 사용
|
||||
$bonusAtmos += 5;
|
||||
} elseif($general[item] >= 19 && $general[item] <= 20) {
|
||||
//춘화첩, 초선화 사용
|
||||
$bonusAtmos += 7;
|
||||
}
|
||||
return $bonusAtmos;
|
||||
}
|
||||
|
||||
function getBonusTrainBasedOnItem($connect, $general) {
|
||||
$bonusTrain = 0;
|
||||
if($general[item] == 4) {
|
||||
//청주 사용
|
||||
$bonusTrain += 3;
|
||||
$query = "update general set item=0 where no='$general[no]'";
|
||||
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$log[count($log)] = "<C>●</><C>".getItemName($general[item])."</>(을)를 사용!";
|
||||
$general[item] = 0;
|
||||
} elseif($general[item] >= 12 && $general[item] <= 13) {
|
||||
//과실주, 이강주 사용
|
||||
$bonusTrain += 5;
|
||||
} elseif($general[item] >= 17 && $general[item] <= 18) {
|
||||
//철벽서, 단결도 사용
|
||||
$bonusTrain += 7;
|
||||
}
|
||||
return $bonusTrain;
|
||||
}
|
||||
|
||||
function getBonusAtmosBasedOnCity($connect, $city, $nation) {
|
||||
$bonusAtmos = 0;
|
||||
// 수도 보정
|
||||
if($nation[capital] == $city[city]) {
|
||||
$bonusAtmos += 5;
|
||||
}
|
||||
// 출병도시가 진이면 공격자 공격보정
|
||||
if($city[level] == 2) {
|
||||
$bonusAtmos += 5;
|
||||
}
|
||||
|
||||
return bonusAtmos;
|
||||
}
|
||||
|
||||
function getBonusTrainBasedOnCity($connect, $city) {
|
||||
$bonusTrain = 0;
|
||||
// 방어도시가 수진이면 방어자 방어보정
|
||||
if($city[level] == 1) {
|
||||
$bonusTrain += 5;
|
||||
}
|
||||
// 방어도시가 관이면 방어자 방어보정
|
||||
if($city[level] == 3) {
|
||||
$bonusTrain += 5;
|
||||
}
|
||||
|
||||
return bonusTrain;
|
||||
}
|
||||
|
||||
function updateTechBasedOnDeath($deathCount, $nation, $game, $genCount, $connect) {
|
||||
// 죽은수 기술로 누적
|
||||
$num = round($deathCount * 0.01);
|
||||
|
||||
// 국가보정
|
||||
if($nation[type] == 3 || $nation[type] == 13) {
|
||||
$num *= 1.1;
|
||||
}
|
||||
if($nation[type] == 5 || $nation[type] == 6 || $nation[type] == 7 || $nation[type] == 8 || $nation[type] == 12) {
|
||||
$num *= 0.9;
|
||||
}
|
||||
|
||||
// 부드러운 기술 제한
|
||||
if(TechLimit($game[startyear], $game[year], $nation[tech])) { $num = floor($num/4); }
|
||||
$query = "update nation set totaltech=totaltech+'$num',tech=totaltech/'$genCount' where nation='$nation[nation]'";
|
||||
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
}
|
||||
|
||||
function processWar($connect, $general, $city) {
|
||||
global $_armperphase, $_maximumatmos, $_maximumtrain, $_dexLimit, $_basegold, $_baserice;
|
||||
$date = substr($general[turntime],11,5);
|
||||
|
||||
$query = "select * from game where no='1'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$game = MYDB_fetch_array($result);
|
||||
$date = substr($general[turntime],11,5);
|
||||
$game = getGame($connect);
|
||||
|
||||
$deadAmount[att] = 0;
|
||||
$deadAmount[def] = 0;
|
||||
@@ -16,83 +133,26 @@ function processWar($connect, $general, $city) {
|
||||
// 특기보정 : 돌격
|
||||
if($general[special2] == 60) { $warphase += 1; }
|
||||
|
||||
$genAtmos = 0;
|
||||
if($general[item] == 3) {
|
||||
//탁주 사용
|
||||
$genAtmos += 3;
|
||||
$query = "update general set item=0 where no='$general[no]'";
|
||||
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$log[count($log)] = "<C>●</><C>".getItemName($general[item])."</>(을)를 사용!";
|
||||
$general[item] = 0;
|
||||
} elseif($general[item] >= 14 && $general[item] <= 16) {
|
||||
//의적주, 두강주, 보령압주 사용
|
||||
$genAtmos += 5;
|
||||
} elseif($general[item] >= 19 && $general[item] <= 20) {
|
||||
//춘화첩, 초선화 사용
|
||||
$genAtmos += 7;
|
||||
}
|
||||
$genTrain = 0;
|
||||
if($general[item] == 4) {
|
||||
//청주 사용
|
||||
$genTrain += 3;
|
||||
$query = "update general set item=0 where no='$general[no]'";
|
||||
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$log[count($log)] = "<C>●</><C>".getItemName($general[item])."</>(을)를 사용!";
|
||||
$general[item] = 0;
|
||||
} elseif($general[item] >= 12 && $general[item] <= 13) {
|
||||
//과실주, 이강주 사용
|
||||
$genTrain += 5;
|
||||
} elseif($general[item] >= 17 && $general[item] <= 18) {
|
||||
//철벽서, 단결도 사용
|
||||
$genTrain += 7;
|
||||
}
|
||||
$genAtmos = getBonusAtmosBasedOnItem($connect, $general);
|
||||
$genAtmos += getBonusAtmosBasedOnCity($connect, $originCity, $nation);
|
||||
|
||||
$genTrain = getBonusTrainBasedOnItem($connect, $general);
|
||||
$oppTrain = getBonusTrainBasedOnCity($connect, $city);
|
||||
|
||||
// 우선 스케일링
|
||||
$city[def] *= 10;
|
||||
$city[wall] *= 10;
|
||||
|
||||
$query = "select level from city where city='$general[city]'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$originCity = MYDB_fetch_array($result);
|
||||
|
||||
$query = "select nation,level,name,history,capital,tech,type from nation where nation='$general[nation]'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$nation = MYDB_fetch_array($result);
|
||||
|
||||
$query = "select nation,level,name,history,rice,capital,tech,type from nation where nation='$city[nation]'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$destnation = MYDB_fetch_array($result);
|
||||
|
||||
//장수수 구함
|
||||
$query = "select no from general where nation='$general[nation]'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$gencount = MYDB_num_rows($result);
|
||||
if($gencount < 10) $gencount = 10;
|
||||
//장수수 구함
|
||||
$query = "select no from general where nation='$destnation[nation]'";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$destgencount = MYDB_num_rows($result);
|
||||
if($destgencount < 10) $destgencount = 10;
|
||||
|
||||
$genAtmosBonus = 0; $genTrainBonus = 0;
|
||||
$oppAtmosBonus = 0; $oppTrainBonus = 0;
|
||||
//공격자 수도보정
|
||||
if($nation[capital] == $general[city]) { $genAtmosBonus += 5; }
|
||||
//방어자 수도보정
|
||||
//if($destnation[capital] == $city[city]) { $oppTrainBonus += 5; }
|
||||
//관,진,수진 보정
|
||||
if($city[level] == 1) { $oppTrainBonus += 5; } // 방어도시가 수진이면 방어자 방어보정
|
||||
if($originCity[level] == 2) { $genAtmosBonus += 5; } // 출병도시가 진이면 공격자 공격보정
|
||||
if($city[level] == 3) { $oppTrainBonus += 5; } // 방어도시가 관이면 방어자 방어보정
|
||||
$originCity = getOriginCity($connect, $general);
|
||||
$nation = getNation($connect, $general);
|
||||
$destnation = getDestination($connect, $city);
|
||||
|
||||
$gencount = getGeneralCount($connect, $nation[nation]);
|
||||
$destgencount = getGeneralCount($connect, $destnation[nation]);
|
||||
$opposecount = getOpposeCount($connect, $city);
|
||||
|
||||
$alllog[count($alllog)] = "<C>●</>{$game[month]}월:<D><b>$nation[name]</b></>의 <Y>$general[name]</>(이)가 <G><b>$city[name]</b></>(으)로 진격합니다.";
|
||||
$log[count($log)] = "<C>●</>{$game[month]}월:<G><b>$city[name]</b></>(으)로 <M>진격</>합니다. <1>$date</>";
|
||||
// $history[count($history)] = "<C>●</>{$game[year]}년 {$game[month]}월:<O><b>【전투】</b></><D><b>$nation[name]</b></>(이)가 <D><b>$destnation[name]</b></>의 <G><b>$city[name]</b></>(으)로 <M>진격</>합니다.";
|
||||
|
||||
// 목표 도시내에 목표 국가 소속 장수 중, 병사가 있는 능력치합+병사수 순으로 훈,사 60, 80 이상
|
||||
$query = "select no,name,turntime,personal,special2,crew,crewtype,atmos,train,intel,intel2,book,power,power2,weap,injury,leader,leader2,horse,item,explevel,level,rice,leader+power+intel+weap+horse+book+crew/100 as sum,dex0,dex10,dex20,dex30,dex40 from general where city='$city[city]' and nation='$city[nation]' and nation!=0 and crew>'0' and rice>round(crew/100) and ((train>=60 and atmos>=60 and mode=1) or (train>=80 and atmos>=80 and mode=2)) order by sum desc";
|
||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$opposecount = MYDB_num_rows($result);
|
||||
|
||||
$exp = 0; //병사 소진 시킨 만큼
|
||||
$opexp = 0;
|
||||
@@ -160,8 +220,8 @@ function processWar($connect, $general, $city) {
|
||||
if($myCrew <= 0) { $myCrew = rand() % 90 + 10; }
|
||||
|
||||
//훈련 사기따라
|
||||
$myCrew = getCrew($myCrew, $game[city_rate]+$oppAtmosBonus, CharTrain($general[train]+$genTrain+$genTrainBonus, $general[personal]));
|
||||
$cityCrew = getCrew($cityCrew, CharAtmos($general[atmos]+$genAtmos+$genAtmosBonus, $general[personal]), $game[city_rate]+$oppTrainBonus);
|
||||
$myCrew = getCrew($myCrew, $game[city_rate], CharTrain($general[train]+$genTrain, $general[personal]));
|
||||
$cityCrew = getCrew($cityCrew, CharAtmos($general[atmos]+$genAtmos, $general[personal]), $game[city_rate]+$oppTrain);
|
||||
//숙련도 따라
|
||||
$genDexAtt = getGenDex($general, $general[crewtype]);
|
||||
$genDexDef = getGenDex($general, 40);
|
||||
@@ -241,11 +301,11 @@ function processWar($connect, $general, $city) {
|
||||
}
|
||||
}
|
||||
} elseif($general[crewtype] == 40) { // 정란
|
||||
$cityCrew = $cityCrew * 1.8;
|
||||
$cityCrew = $cityCrew * 1.5;
|
||||
} elseif($general[crewtype] == 41) { // 충차
|
||||
$cityCrew = $cityCrew * 2.4;
|
||||
$cityCrew = $cityCrew * 2.0;
|
||||
} elseif($general[crewtype] == 42) { // 벽력거
|
||||
$cityCrew = $cityCrew * 1.8;
|
||||
$cityCrew = $cityCrew * 1.5;
|
||||
}
|
||||
//군주 공격 보정 10%
|
||||
if($general[level] == 12) {
|
||||
@@ -407,36 +467,19 @@ function processWar($connect, $general, $city) {
|
||||
// 숙련도 증가
|
||||
addGenDex($connect, $general[no], $general[atmos], $general[train], $general[crewtype], $mykillnum);
|
||||
addGenDex($connect, $general[no], $general[atmos], $general[train], 40, $mydeathnum);
|
||||
// 죽은수 기술로 누적
|
||||
$num = round($mydeathnum * 0.01);
|
||||
// 국가보정
|
||||
if($nation[type] == 3 || $nation[type] == 13) { $num *= 1.1; }
|
||||
if($nation[type] == 5 || $nation[type] == 6 || $nation[type] == 7 || $nation[type] == 8 || $nation[type] == 12) { $num *= 0.9; }
|
||||
// 부드러운 기술 제한
|
||||
if(TechLimit($game[startyear], $game[year], $nation[tech])) { $num = floor($num/4); }
|
||||
$query = "update nation set totaltech=totaltech+'$num',tech=totaltech/'$gencount' where nation='$nation[nation]'";
|
||||
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
// 죽은수 기술로 누적
|
||||
$num = round($mykillnum * 0.01);
|
||||
// 국가보정
|
||||
if($destnation[type] == 3 || $destnation[type] == 13) { $num *= 1.1; }
|
||||
if($destnation[type] == 5 || $destnation[type] == 6 || $destnation[type] == 7 || $destnation[type] == 8 || $destnation[type] == 12) { $num *= 0.9; }
|
||||
// 부드러운 기술 제한
|
||||
if(TechLimit($game[startyear], $game[year], $destnation[tech])) { $num = floor($num/4); }
|
||||
$query = "update nation set totaltech=totaltech+'$num',tech=totaltech/'$destgencount' where nation='$destnation[nation]'";
|
||||
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
//양국 평균 기술가격
|
||||
//$techRatio = (getTechCost($nation[tech]) + getTechCost($destnation[tech])) / 2;
|
||||
$techRatio = 1.0;
|
||||
|
||||
updateTechBasedOnDeath($mydeathnum, $nation, $game, $genCount, $connect);
|
||||
updateTechBasedOnDeath($mykillnum, $destnation, $game, $destGenCount, $connect);
|
||||
|
||||
// 죽은수 도시 재정으로 누적 60%
|
||||
$num = round(($mykillnum+$mydeathnum) * 0.6 * $techRatio);
|
||||
$num = round(($mykillnum+$mydeathnum) * 0.6);
|
||||
// 국가보정
|
||||
if($destnation[type] == 1) { $num *= 1.1; }
|
||||
if($destnation[type] == 9 || $destnation[type] == 10) { $num *= 0.9; }
|
||||
$query = "update city set dead=dead+'$num',def='$city[def]',wall='$city[wall]',agri='$city[agri]',comm='$city[comm]',secu='$city[secu]' where city='$city[city]'";
|
||||
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
// 죽은수 도시 재정으로 누적 40%
|
||||
$num = round(($mykillnum+$mydeathnum) * 0.4 * $techRatio);
|
||||
$num = round(($mykillnum+$mydeathnum) * 0.4);
|
||||
// 국가보정
|
||||
if($nation[type] == 1) { $num *= 1.1; }
|
||||
if($nation[type] == 9 || $nation[type] == 10) { $num *= 0.9; }
|
||||
@@ -502,6 +545,7 @@ function processWar($connect, $general, $city) {
|
||||
//춘화첩, 초선화 사용
|
||||
$oppAtmos += 7;
|
||||
}
|
||||
|
||||
$oppTrain = 0;
|
||||
if($oppose[item] == 4) {
|
||||
//청주 사용
|
||||
@@ -537,9 +581,8 @@ function processWar($connect, $general, $city) {
|
||||
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
$log[count($log)] = "<C>●</><C>".getItemName($general[item])."</>(을)를 사용!";
|
||||
$general[item] = 0;
|
||||
} elseif($general[weap] == 10 || $general[weap] == 14 || $general[weap] == 18 || $general[weap] == 22) {
|
||||
// $log[count($log)] = "<C>●</><C>".getWeapName($general[weap])."</>(을)를 사용!";
|
||||
}
|
||||
|
||||
$log[count($log)] = "<C>●</>상대를 <C>저격</>했다!";
|
||||
$batlog[count($batlog)] = "<C>●</>상대를 <C>저격</>했다!";
|
||||
$opplog[count($opplog)] = "<C>●</>상대에게 <R>저격</>당했다!";
|
||||
@@ -609,8 +652,8 @@ function processWar($connect, $general, $city) {
|
||||
if($myCrew <= 0) { $myCrew = rand() % 90 + 10; }
|
||||
if($opCrew <= 0) { $opCrew = rand() % 90 + 10; }
|
||||
//훈련 사기따라
|
||||
$myCrew = getCrew($myCrew, CharAtmos($oppose[atmos]+$oppAtmos+$oppAtmosBonus, $oppose[personal]), CharTrain($general[train]+$genTrain+$genTrainBonus, $general[personal]));
|
||||
$opCrew = getCrew($opCrew, CharAtmos($general[atmos]+$genAtmos+$genAtmosBonus, $general[personal]), CharTrain($oppose[train]+$oppTrain+$oppTrainBonus, $oppose[personal]));
|
||||
$myCrew = getCrew($myCrew, CharAtmos($oppose[atmos]+$oppAtmos, $oppose[personal]), CharTrain($general[train]+$genTrain, $general[personal]));
|
||||
$opCrew = getCrew($opCrew, CharAtmos($general[atmos]+$genAtmos, $general[personal]), CharTrain($oppose[train]+$oppTrain, $oppose[personal]));
|
||||
//숙련도 따라
|
||||
$genDexAtt = getGenDex($general, $general[crewtype]);
|
||||
$genDexDef = getGenDex($general, $oppose[crewtype]);
|
||||
@@ -906,8 +949,8 @@ function processWar($connect, $general, $city) {
|
||||
// 특기보정: 돌격
|
||||
if($oppose[crewtype] == 43 && $general[special2] != 60) { // 목우
|
||||
$r = 0;
|
||||
$r += $oppose[atmos] + $oppAtmos + $oppAtmosBonus;
|
||||
$r += $oppose[train] + $oppTrain + $oppTrainBonus;
|
||||
$r += $oppose[atmos] + $oppAtmos;
|
||||
$r += $oppose[train] + $oppTrain;
|
||||
$ratio = rand() % 400; // 최대 50% 저지
|
||||
if($ratio < $r && $opAvoid == 1) {
|
||||
$batlog[count($batlog)] = "<C>●</><R>저지</>당했다!</>";
|
||||
@@ -1248,15 +1291,8 @@ function processWar($connect, $general, $city) {
|
||||
// 숙련도 증가
|
||||
addGenDex($connect, $oppose[no], $oppose[atmos], $oppose[train], $oppose[crewtype], $opkillnum * 0.9);
|
||||
addGenDex($connect, $oppose[no], $oppose[atmos], $oppose[train], $general[crewtype], $opdeathnum * 0.9);
|
||||
// 죽은수 기술로 누적
|
||||
$num = round($mydeathnum * 0.01);
|
||||
// 국가보정
|
||||
if($nation[type] == 3 || $nation[type] == 13) { $num *= 1.1; }
|
||||
if($nation[type] == 5 || $nation[type] == 6 || $nation[type] == 7 || $nation[type] == 8 || $nation[type] == 12) { $num *= 0.9; }
|
||||
// 부드러운 기술 제한
|
||||
if(TechLimit($game[startyear], $game[year], $nation[tech])) { $num = floor($num/4); }
|
||||
$query = "update nation set totaltech=totaltech+'$num',tech=totaltech/'$gencount' where nation='$nation[nation]'";
|
||||
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
|
||||
updateTechBasedOnDeath($mydeathnum, $nation, $game, $genCount, $connect);
|
||||
|
||||
// 장수 부상
|
||||
$ratio = rand() % 100;
|
||||
@@ -1271,27 +1307,18 @@ function processWar($connect, $general, $city) {
|
||||
// 숙련도 증가
|
||||
addGenDex($connect, $general[no], $general[atmos], $general[train], $general[crewtype], $mykillnum);
|
||||
addGenDex($connect, $general[no], $general[atmos], $general[train], $oppose[crewtype], $mydeathnum);
|
||||
// 죽은수 기술로 누적
|
||||
$num = round($opdeathnum * 0.01);
|
||||
// 국가보정
|
||||
if($destnation[type] == 3 || $destnation[type] == 13) { $num *= 1.1; }
|
||||
if($destnation[type] == 5 || $destnation[type] == 6 || $destnation[type] == 7 || $destnation[type] == 8 || $destnation[type] == 12) { $num *= 0.9; }
|
||||
// 부드러운 기술 제한
|
||||
if(TechLimit($game[startyear], $game[year], $destnation[tech])) { $num = floor($num/4); }
|
||||
$query = "update nation set totaltech=totaltech+'$num',tech=totaltech/'$destgencount' where nation='$destnation[nation]'";
|
||||
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
//양국 평균 기술가격
|
||||
//$techRatio = (getTechCost($nation[tech]) + getTechCost($destnation[tech])) / 2;
|
||||
$techRatio = 1.0;
|
||||
|
||||
updateTechBasedOnDeath($opdeathnum, $destnation, $game, $destGenCount, $connect);
|
||||
|
||||
// 죽은수 도시 재정으로 누적 60%
|
||||
$num = round(($mykillnum+$mydeathnum) * 0.6 * $techRatio);
|
||||
$num = round(($mykillnum+$mydeathnum) * 0.6);
|
||||
// 국가보정
|
||||
if($destnation[type] == 1) { $num *= 1.1; }
|
||||
if($destnation[type] == 9 || $destnation[type] == 10) { $num *= 0.9; }
|
||||
$query = "update city set dead=dead+'$num' where city='$city[city]'";
|
||||
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||
// 죽은수 도시 재정으로 누적 40%
|
||||
$num = round(($mykillnum+$mydeathnum) * 0.4 * $techRatio);
|
||||
$num = round(($mykillnum+$mydeathnum) * 0.4);
|
||||
// 국가보정
|
||||
if($nation[type] == 1) { $num *= 1.1; }
|
||||
if($nation[type] == 9 || $nation[type] == 10) { $num *= 0.9; }
|
||||
@@ -1381,8 +1408,6 @@ function processWar($connect, $general, $city) {
|
||||
unset($opplog);
|
||||
unset($oppbatlog);
|
||||
unset($oppbatres);
|
||||
// $alllog[count($alllog)] = "<C>●</>{$game[month]}월:<Y>$general[name]</>(이)가 }<G>$city[name]</> 공략에 실패했습니다. <1>$date</>";
|
||||
// $log[count($log)] = "<C>●</> <G>$city[name]</> 공략에 실패했습니다. <1>$date</>";
|
||||
break;
|
||||
} else {
|
||||
// 무승부일때 로그 남김
|
||||
|
||||
@@ -117,7 +117,7 @@ function starter($name, $type=0) {
|
||||
require('analytics.php');
|
||||
echo "
|
||||
</head>
|
||||
<body>
|
||||
<body oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
@@ -31,7 +31,7 @@ $connect = dbConn();
|
||||
<? require('analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body onLoad='changeGen()'>
|
||||
<body onLoad='changeGen()' oncontextmenu='return false'>
|
||||
<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>
|
||||
|
||||
+2
-2
@@ -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"');
|
||||
|
||||
?>
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ font { font-family:'맑은 고딕'; line-height:110%; }
|
||||
<? require('../i_banner/analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false">
|
||||
<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>
|
||||
|
||||
@@ -39,7 +39,7 @@ font { font-family:'맑은 고딕'; line-height:110%; }
|
||||
<? require('../i_banner/analytics.php'); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false">
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user