명장 일람, 명예의 전당 코드 재구현. 연감 등에 이전 국가 기록 남기도록 설정

This commit is contained in:
2018-06-26 00:32:43 +09:00
parent 356eb8a8b5
commit e74851b289
14 changed files with 378 additions and 489 deletions
+6 -1
View File
@@ -6,6 +6,7 @@ include "func.php";
$year = Util::getReq('year', 'int');
$month = Util::getReq('month', 'int');
$serverID = Util::getReq('server_id', 'string', null);
extractMissingPostToGlobals();
@@ -26,13 +27,17 @@ if(!$year || !$month) {
}
if(!$serverID){
$serverID = UniqueConst::$serverID;
}
//로그인 검사
$session = Session::requireGameLogin([])->setReadOnly();
$db = DB::db();
$connect=$db->get();
$map = $db->queryFirstField('SELECT map FROM history WHERE year=%i AND month=%i', $year, $month);
$map = $db->queryFirstField('SELECT map FROM history WHERE server_id=%s AND year=%i AND month=%i', $serverID, $year, $month);
if(!$map){
Json::die([