업데이트 서버 코드 추가
- VersionGit 양식 변경 - 서버 입구 버전 표기 - FileTail 추가 Vscode에서 che, kwe, pwe, twe 무시
This commit is contained in:
@@ -17,6 +17,8 @@ $result = [];
|
||||
$server = [];
|
||||
|
||||
|
||||
$rootServer = end(AppConf::getList())->getShortName();
|
||||
|
||||
foreach (AppConf::getList() as $setting) {
|
||||
$serverColor = $setting->getColor();
|
||||
$serverKorName = $setting->getKorName();
|
||||
@@ -28,18 +30,24 @@ foreach (AppConf::getList() as $setting) {
|
||||
$state = [
|
||||
'valid'=>false,
|
||||
'run'=>false,
|
||||
'installed'=>false,
|
||||
'version'=>$setting->getVersion(),
|
||||
'reason'=>'디렉토리 없음'
|
||||
];
|
||||
} elseif (!file_exists($serverPath.'/index.php')) {
|
||||
$state = [
|
||||
'valid'=>false,
|
||||
'run'=>false,
|
||||
'installed'=>false,
|
||||
'version'=>$setting->getVersion(),
|
||||
'reason'=>'index.php 없음'
|
||||
];
|
||||
} elseif (!$setting->isExists()) {
|
||||
$state = [
|
||||
'valid'=>false,
|
||||
'run'=>false,
|
||||
'installed'=>true,
|
||||
'version'=>$setting->getVersion(),
|
||||
'reason'=>'설정 파일 없음'
|
||||
];
|
||||
} elseif (!$setting->isRunning()) {
|
||||
@@ -47,6 +55,8 @@ foreach (AppConf::getList() as $setting) {
|
||||
$state = [
|
||||
'valid'=>true,
|
||||
'run'=>false,
|
||||
'installed'=>true,
|
||||
'version'=>$setting->getVersion(),
|
||||
'reason'=>'폐쇄됨'
|
||||
];
|
||||
} else {
|
||||
@@ -54,6 +64,8 @@ foreach (AppConf::getList() as $setting) {
|
||||
$state = [
|
||||
'valid'=>true,
|
||||
'run'=>true,
|
||||
'installed'=>true,
|
||||
'version'=>$setting->getVersion(),
|
||||
'reason'=>'운영중'
|
||||
];
|
||||
}
|
||||
@@ -62,6 +74,7 @@ foreach (AppConf::getList() as $setting) {
|
||||
'name' => $serverDir,
|
||||
'korName' => $serverKorName,
|
||||
'color' => $serverColor,
|
||||
'isRoot' => $serverDir == $rootServer
|
||||
]);
|
||||
$server[] = $state;
|
||||
}
|
||||
|
||||
@@ -1,19 +1,21 @@
|
||||
<table id="server_admin_table">
|
||||
<caption class="bg2 section_title with_border">서 버 관 리</caption>
|
||||
<colgroup>
|
||||
<col style="width:80px;">
|
||||
<col style="width:65px;">
|
||||
<col style="width:135px;">
|
||||
<col>
|
||||
<col style="width:50px;"><!--폐쇄-->
|
||||
<col style="width:50px;"><!--오픈-->
|
||||
<col style="width:50px;"><!--리셋-->
|
||||
<col style="width:45px;"><!--폐쇄-->
|
||||
<col style="width:45px;"><!--오픈-->
|
||||
<col style="width:45px;"><!--리셋-->
|
||||
<col style="width:70px;"><!--하드리셋-->
|
||||
<col style="width:100px;"><!--폐쇄중 로그인-->
|
||||
<col style="width:70px;"><!--서버119-->
|
||||
<col style="width:65px;"><!--서버119-->
|
||||
<col style="width:70px;"><!--업데이트-->
|
||||
</colgroup>
|
||||
<thead>
|
||||
<th class="bg1">서버</th>
|
||||
<th class="bg1">상태</th>
|
||||
<th class="bg1">버전</th>
|
||||
<th class="bg1" colspan="7">명령 선택</th>
|
||||
</thead>
|
||||
<tbody id="server_admin_list">
|
||||
|
||||
Reference in New Issue
Block a user