isGameLoggedIn 추가
This commit is contained in:
+2
-2
@@ -4,7 +4,7 @@ namespace sammo;
|
|||||||
include "lib.php";
|
include "lib.php";
|
||||||
include "func.php";
|
include "func.php";
|
||||||
//로그인 검사
|
//로그인 검사
|
||||||
$session = Session::requireGameLogin()->setReadOnly();
|
$session = Session::getInstance()->setReadOnly();
|
||||||
|
|
||||||
$db = DB::db();
|
$db = DB::db();
|
||||||
$connect=$db->get();
|
$connect=$db->get();
|
||||||
@@ -19,7 +19,7 @@ $connect=$db->get();
|
|||||||
<?=WebUtil::printCSS('css/common.css')?>
|
<?=WebUtil::printCSS('css/common.css')?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
<?php
|
<?php
|
||||||
if(!$session->isLoggedIn()){
|
if(!$session->isGameLoggedIn()){
|
||||||
echo 'window.parent.location.href = "../";';
|
echo 'window.parent.location.href = "../";';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
+1
-1
@@ -15,7 +15,7 @@ $defaultPost = [
|
|||||||
];
|
];
|
||||||
$post = WebUtil::parseJsonPost() + $defaultPost;
|
$post = WebUtil::parseJsonPost() + $defaultPost;
|
||||||
|
|
||||||
if(!$session->isLoggedIn() || !$session->generalID){
|
if(!$session->isGameLoggedIn()){
|
||||||
$post['neutralView'] = true;
|
$post['neutralView'] = true;
|
||||||
$post['showMe'] = false;
|
$post['showMe'] = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -329,6 +329,15 @@ class Session
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function isGameLoggedIn()
|
||||||
|
{
|
||||||
|
if ($this->generalID) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function __destruct()
|
public function __destruct()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user