입구 사소한 버그 수정
- 관리자 페이지가 html여도 되므로 html로 변경
This commit is contained in:
@@ -1,19 +1,3 @@
|
|||||||
<?php
|
|
||||||
namespace sammo;
|
|
||||||
|
|
||||||
require_once('_common.php');
|
|
||||||
|
|
||||||
$session = Session::requireLogin();
|
|
||||||
$db = RootDB::db();
|
|
||||||
$userGrade = $session->userGrade;
|
|
||||||
|
|
||||||
$session->setReadOnly();
|
|
||||||
|
|
||||||
if($userGrade < 6){
|
|
||||||
header('Location:'.ROOT);
|
|
||||||
die();
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
@@ -3,7 +3,7 @@ namespace sammo;
|
|||||||
|
|
||||||
require_once('_common.php');
|
require_once('_common.php');
|
||||||
|
|
||||||
$session = Session::requireLogin();
|
$session = Session::requireLogin()->setReadOnly();
|
||||||
|
|
||||||
$templates = new \League\Plates\Engine('templates');
|
$templates = new \League\Plates\Engine('templates');
|
||||||
|
|
||||||
|
|||||||
@@ -1,18 +1,24 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace sammo;
|
namespace sammo;
|
||||||
|
|
||||||
// 외부 파라미터
|
|
||||||
|
|
||||||
require_once('_common.php');
|
require_once('_common.php');
|
||||||
$session = Session::requireLogin();
|
|
||||||
|
$session = Session::Instance()->setReadOnly();
|
||||||
|
|
||||||
|
if($session->userGrade < 5){
|
||||||
|
Json::die([
|
||||||
|
'result'=>false,
|
||||||
|
'reason'=>'권한이 부족합니다.'
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
$result = [];
|
$result = [];
|
||||||
|
|
||||||
session_write_close();
|
|
||||||
|
|
||||||
foreach (AppConf::getList() as $setting) {
|
foreach (AppConf::getList() as $setting) {
|
||||||
$serverColor = $setting->getColor();
|
$serverColor = $setting->getColor();
|
||||||
$serverKorname = $setting->getKorName();
|
$serverKorName = $setting->getKorName();
|
||||||
|
|
||||||
$serverPath = $setting->getBasePath();
|
$serverPath = $setting->getBasePath();
|
||||||
$serverDir = $setting->getShortName();
|
$serverDir = $setting->getShortName();
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="admin_userlist">
|
<div id="admin_userlist">
|
||||||
<div class="bg2 section_title with_border">회 원 관 리</div>
|
<div class="bg2 section_title with_border">회 원 관 리</div>
|
||||||
<div class="center_ordered_items with_border bg0">
|
<div class="center_ordered_items with_border bg0">
|
||||||
<a href="admin_userlist.php"><button class="with_skin" type="button">회원 관리</button></a>
|
<a href="admin_userlist.html"><button class="with_skin" type="button">회원 관리</button></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="center_ordered_items with_border bg0">
|
<div class="center_ordered_items with_border bg0">
|
||||||
<textarea cols="80" rows="3" id="notice_edit" name="notice"><?=$notice?></textarea>
|
<textarea cols="80" rows="3" id="notice_edit" name="notice"><?=$notice?></textarea>
|
||||||
|
|||||||
+1
-1
@@ -106,7 +106,7 @@ function modifyServerStatus(caller, action) {
|
|||||||
}
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type:'post',
|
type:'post',
|
||||||
url:'j_server_change_status.php.php',
|
url:'j_server_change_status.php',
|
||||||
dataType:'json',
|
dataType:'json',
|
||||||
data:{
|
data:{
|
||||||
server: server,
|
server: server,
|
||||||
|
|||||||
Reference in New Issue
Block a user