세션 시작 방식을 Session 클래스를 이용하도록 변경

This commit is contained in:
2018-04-01 00:28:55 +09:00
parent 0b584c7b0d
commit 3ea95da4a6
6 changed files with 80 additions and 70 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ if(!isset($post['genlist']) || !isset($post['msg'])){
$destMailbox = $post['dest_mailbox'];
$msg = $post['msg'];
$datetime = new DateTime();
$datetime = new \DateTime();
$date = $datetime->format('Y-m-d H:i:s');
//로그인 검사
@@ -120,7 +120,7 @@ if($destMailbox == 9999) {
// 개인 메세지
} elseif($destMailbox > 0) {
$last_msg = new DateTime(Util::array_get($_SESSION['last_msg'], '0000-00-00'));
$last_msg = new \DateTime(Util::array_get($_SESSION['last_msg'], '0000-00-00'));
$msg_interval = $datetime->getTimestamp() - $last_msg->getTimestamp();
//NOTE: 여기서 유저 레벨을 구별할 코드가 필요할까?