접속 가중치 개념 삭제.
This commit is contained in:
@@ -7,7 +7,7 @@ session_start();
|
|||||||
session_destroy();
|
session_destroy();
|
||||||
|
|
||||||
$username = mb_strtolower(Util::getReq('username'), 'utf-8');
|
$username = mb_strtolower(Util::getReq('username'), 'utf-8');
|
||||||
$password = Util::getReq('password');
|
$password = Util::getReq('password', 'string');
|
||||||
$nickname = Util::getReq('nickname');
|
$nickname = Util::getReq('nickname');
|
||||||
|
|
||||||
if(!$username || !$password || !$nickname){
|
if(!$username || !$password || !$nickname){
|
||||||
@@ -17,7 +17,7 @@ if(!$username || !$password || !$nickname){
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(strlen($password)!=128){
|
if(strlen((string)$password)!=128){
|
||||||
Json::die([
|
Json::die([
|
||||||
'result'=>false,
|
'result'=>false,
|
||||||
'reason'=>'올바르지 않은 비밀번호 해시 포맷입니다.'
|
'reason'=>'올바르지 않은 비밀번호 해시 포맷입니다.'
|
||||||
|
|||||||
@@ -23,10 +23,10 @@ if(!$v->validate()){
|
|||||||
}
|
}
|
||||||
|
|
||||||
$log = Util::getReq('log');
|
$log = Util::getReq('log');
|
||||||
$starttime = Util::getReq('starttime', 'string', (new DateTime())->format('Y-m-d H:i:s'));
|
$starttime = Util::getReq('starttime', 'string', (new \DateTime())->format('Y-m-d H:i:s'));
|
||||||
$maxgeneral = Util::getReq('maxgeneral', 'int', 500);
|
$maxgeneral = Util::getReq('maxgeneral', 'int', GameConst::$defaultMaxGeneral);
|
||||||
$maxnation = Util::getReq('maxnation', 'int', 55);
|
$maxnation = Util::getReq('maxnation', 'int', GameConst::$defaultMaxNation);
|
||||||
|
$startyear = Util::getReq('startyear', 'int', GameConst::$defaultStartYear);
|
||||||
|
|
||||||
$db = DB::db();
|
$db = DB::db();
|
||||||
$connect=$db->get();
|
$connect=$db->get();
|
||||||
|
|||||||
+1
-8
@@ -28,7 +28,7 @@ if($session->userGrade < 5) {
|
|||||||
$db = DB::db();
|
$db = DB::db();
|
||||||
$connect=$db->get();
|
$connect=$db->get();
|
||||||
|
|
||||||
$query = "select conlimit,conweight from game limit 1";
|
$query = "select conlimit from game limit 1";
|
||||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||||
$admin = MYDB_fetch_array($result);
|
$admin = MYDB_fetch_array($result);
|
||||||
?>
|
?>
|
||||||
@@ -49,13 +49,6 @@ $admin = MYDB_fetch_array($result);
|
|||||||
<td width=80 align=center>접속제한</td>
|
<td width=80 align=center>접속제한</td>
|
||||||
<td width=713 align=center><input type=submit name=btn value='전체 접속허용'><input type=submit name=btn value='전체 접속제한'></td>
|
<td width=713 align=center><input type=submit name=btn value='전체 접속허용'><input type=submit name=btn value='전체 접속제한'></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<td width=80 align=center>제한등급</td>
|
|
||||||
<td width=713 align=center>
|
|
||||||
<input type=text size=3 maxlength=3 name=conweight value=<?=$admin['conweight'];?> style=color:white;background-color:black;font-size:13px;>
|
|
||||||
<input type=submit name=btn value='접속가중치'>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
</table>
|
||||||
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg0>
|
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg0>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -27,10 +27,6 @@ switch($btn) {
|
|||||||
$query = "update general set con=1000";
|
$query = "update general set con=1000";
|
||||||
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||||
break;
|
break;
|
||||||
case "접속가중치":
|
|
||||||
$query = "update game set conweight='$conweight'";
|
|
||||||
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
|
||||||
break;
|
|
||||||
case "블럭 해제":
|
case "블럭 해제":
|
||||||
DB::db()->query('update general set block=0 where no IN %li', $genlist);
|
DB::db()->query('update general set block=0 where no IN %li', $genlist);
|
||||||
break;
|
break;
|
||||||
|
|||||||
+1
-2
@@ -1358,10 +1358,9 @@ function updateTraffic() {
|
|||||||
function CheckOverhead() {
|
function CheckOverhead() {
|
||||||
//서버정보
|
//서버정보
|
||||||
$db = DB::db();
|
$db = DB::db();
|
||||||
$admin = $db->queryFirstRow('SELECT conweight, turnterm, conlimit from GAME LIMIT 1');
|
$admin = $db->queryFirstRow('SELECT turnterm, conlimit from GAME LIMIT 1');
|
||||||
|
|
||||||
$con = $admin['turnterm'] * 6;
|
$con = $admin['turnterm'] * 6;
|
||||||
$con *= $admin['conweight'] / 100;
|
|
||||||
|
|
||||||
|
|
||||||
if($con != $admin['conlimit']){
|
if($con != $admin['conlimit']){
|
||||||
|
|||||||
@@ -78,4 +78,6 @@ class GameConst
|
|||||||
public static $defaultMaxNation = 55;
|
public static $defaultMaxNation = 55;
|
||||||
/** @var int 초기 최대 천재 수 */
|
/** @var int 초기 최대 천재 수 */
|
||||||
public static $defaultMaxGenius = 5;
|
public static $defaultMaxGenius = 5;
|
||||||
|
/** @var int 초기 시작 년도. 실제 값은 시나리오에서 정해지므로 딱히 의미는 없음. */
|
||||||
|
public static $defaultStartYear = 180;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -363,7 +363,6 @@ CREATE TABLE `game` (
|
|||||||
`maxonline` INT(9) NULL DEFAULT '1',
|
`maxonline` INT(9) NULL DEFAULT '1',
|
||||||
`maxrefresh` INT(9) NULL DEFAULT '1',
|
`maxrefresh` INT(9) NULL DEFAULT '1',
|
||||||
`conlimit` INT(9) NULL DEFAULT '5',
|
`conlimit` INT(9) NULL DEFAULT '5',
|
||||||
`conweight` INT(3) NULL DEFAULT '100',
|
|
||||||
`develcost` INT(4) NULL DEFAULT '20',
|
`develcost` INT(4) NULL DEFAULT '20',
|
||||||
`online` INT(9) NULL DEFAULT '0',
|
`online` INT(9) NULL DEFAULT '0',
|
||||||
`onlinenation` VARCHAR(256) NULL DEFAULT '',
|
`onlinenation` VARCHAR(256) NULL DEFAULT '',
|
||||||
|
|||||||
Reference in New Issue
Block a user