d_shared/common.css를 참조하도록 추가

This commit is contained in:
2018-04-08 17:17:49 +09:00
parent bc7efae08c
commit ee2bcb5329
49 changed files with 138 additions and 77 deletions
+37 -7
View File
@@ -55,6 +55,13 @@ if(file_exists(ROOT.'/d_log') && !is_dir(ROOT.'/d_log')){
]);
}
if(file_exists(ROOT.'/d_shared') && !is_dir(ROOT.'/d_shared')){
Json::die([
'result'=>false,
'reason'=>'d_shared 가 디렉토리가 아닙니다'
]);
}
if(!file_exists(ROOT.'/d_setting')){
Json::die([
'result'=>false,
@@ -62,6 +69,29 @@ if(!file_exists(ROOT.'/d_setting')){
]);
}
if (!file_exists(ROOT.'/d_log') || !file_exists(ROOT.'/d_shared') || !file_exists(AppConf::getUserIconPathFS())) {
if (!is_writable(ROOT)) {
Json::die([
'result'=>false,
'reason'=>'하위 디렉토리 생성 권한이 없습니다'
]);
}
//기본 파일 생성
if(!file_exists(AppConf::getUserIconPathFS())){
mkdir(AppConf::getUserIconPathFS());
}
if(!file_exists(ROOT.'/d_log')){
mkdir(ROOT.'/d_log');
}
if(!file_exists(ROOT.'/d_shared')){
mkdir(ROOT.'/d_shared');
}
}
if(!is_writable(AppConf::getUserIconPathFS())){
Json::die([
'result'=>false,
@@ -76,6 +106,13 @@ if(!is_writable(ROOT.'/d_log')){
]);
}
if(!is_writable(ROOT.'/d_shared')){
Json::die([
'result'=>false,
'reason'=>'d_shared 디렉토리의 쓰기 권한이 없습니다'
]);
}
if(!is_writable(ROOT.'/d_setting')){
Json::die([
'result'=>false,
@@ -83,14 +120,7 @@ if(!is_writable(ROOT.'/d_setting')){
]);
}
//기본 파일 생성
if(!file_exists(AppConf::getUserIconPathFS())){
mkdir(AppConf::getUserIconPathFS());
}
if(!file_exists(ROOT.'/d_log')){
mkdir(ROOT.'/d_log');
}
if(!file_exists(ROOT.'/d_log/.htaccess')){
@file_put_contents(ROOT.'/d_log/.htaccess', 'Deny from all');