forked from devsam/core
지도 뻗는 문제 해결. commandlist 일부 문제 해결
This commit is contained in:
+7
-1
@@ -4,7 +4,8 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLogin(1);
|
||||
$session = Session::Instance()->loginGame()->setReadOnly();
|
||||
|
||||
$connect = dbConn();
|
||||
|
||||
?>
|
||||
@@ -15,6 +16,11 @@ $connect = dbConn();
|
||||
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
|
||||
<link rel=stylesheet href=css/common.css type=text/css>
|
||||
<script type="text/javascript">
|
||||
<?php
|
||||
if(!$session->isLoggedIn()){
|
||||
echo 'window.parent.location.href = "../";';
|
||||
}
|
||||
?>
|
||||
function myclock() {
|
||||
lastday = new Array(31,28,31,30,31,30,31,31,30,31,30,31);
|
||||
|
||||
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace sammo;
|
||||
class MapRequest{
|
||||
public $year;
|
||||
public $month;
|
||||
@@ -101,7 +101,7 @@ function getWorldMap($req){
|
||||
if($myNation){
|
||||
//굳이 타국 도시에 있는 아국 장수 리스트를 뽑을 이유가 없음. 일단 다 뽑자.
|
||||
$shownByGeneralList =
|
||||
array_map('Util::toInt',
|
||||
array_map('\\sammo\\Util::toInt',
|
||||
$db->queryFirstColumn('select distinct `city` from `general` where `nation` = %i',
|
||||
$myNation));
|
||||
}
|
||||
@@ -112,7 +112,7 @@ function getWorldMap($req){
|
||||
$cityList = [];
|
||||
foreach($db->query('select `city`, `level`, `state`, `nation`, `region`, `supply` from `city`') as $r){
|
||||
$cityList[] =
|
||||
array_map('Util::toInt', [$r['city'], $r['level'], $r['state'], $r['nation'], $r['region'], $r['supply']]);
|
||||
array_map('\\sammo\\Util::toInt', [$r['city'], $r['level'], $r['state'], $r['nation'], $r['region'], $r['supply']]);
|
||||
}
|
||||
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user