서버 관리 창에 에러 로그 보기 버튼 추가

This commit is contained in:
2018-07-23 23:44:48 +09:00
parent 05c515b2da
commit a311db4555
4 changed files with 15 additions and 3 deletions
+2
View File
@@ -6,6 +6,8 @@ include "func.php";
$btn = Util::getReq('btn');
$weap = Util::getReq('weap', 'int');
$genlist = Util::getReq('genlist', 'array_int');
$msg = Util::getReq('msg', 'string');
extractMissingPostToGlobals();
-2
View File
@@ -19,8 +19,6 @@ $username = Util::getReq('db_id');
$password = Util::getReq('db_pw');
$dbName = Util::getReq('db_name');
extractMissingPostToGlobals();
if(!$host || !$port || !$username || !$password || !$dbName){
Json::die([
'result'=>false,
+4 -1
View File
@@ -1,5 +1,8 @@
<table id="server_admin_table">
<caption class="bg2 section_title with_border"> </caption>
<caption class="bg2 section_title with_border">
<a id="showErrorLog" href="../showErrorLog.php" style="display:none;" class="btn btn-primary btn-sm" role="button">에러 로그 확인</a>
</caption>
<colgroup>
<col style="width:65px;">
<col style="width:135px;">
+9
View File
@@ -77,6 +77,11 @@ function serverUpdate(caller){
function drawServerAdminList(serverList){
var $table = $('#server_admin_list');
var $showErrorLog = $('#showErrorLog');
if(serverList.grade >= 5){
$showErrorLog.show();
}
$.each(serverList.server, function(idx, server){
console.log(server);
var status = '';
@@ -103,7 +108,10 @@ function drawServerAdminList(serverList){
$tr.find('.valid_if_installed').prop('disabled', true);
}
var aclByServer = serverList.acl[server.name];
$.each(aclByServer, function(idx, action){
console.log(action);
if(action == 'update' || action == 'fullUpdate'){
@@ -111,6 +119,7 @@ function drawServerAdminList(serverList){
return true;
}
$tr.find('.serv_act_update').prop('disabled', false);
$showErrorLog.show();
}
else if(action == 'openClose'){
if(!server.valid){