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