diff --git a/.gitignore b/.gitignore index 2385195c..a24fca92 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,8 @@ pwe/.htaccess twe/.htaccess hwe/.htaccess +d_shared + d_pic/*.jpg d_pic/*.gif d_pic/*.png diff --git a/css/config.css b/css/config.css index 5fe433c8..10e622c5 100644 --- a/css/config.css +++ b/css/config.css @@ -100,9 +100,6 @@ button { font-family: '맑은 고딕'; font-size: 13px; } -.bg0 { background-image:url('/images/back_walnut.jpg'); } -.bg1 { background-image:url('/images/back_green.jpg'); } -.bg2 { background-image:url('/images/back_blue.jpg'); } .font0 { font-size: 10px; } .font1 { font-size: 13px; } diff --git a/f_install/j_setup_db.php b/f_install/j_setup_db.php index 26087fad..5fda24eb 100644 --- a/f_install/j_setup_db.php +++ b/f_install/j_setup_db.php @@ -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'); diff --git a/hwe/_119.php b/hwe/_119.php index e283489c..a94fa63b 100644 --- a/hwe/_119.php +++ b/hwe/_119.php @@ -12,7 +12,8 @@ if($session->userGrade < 5) {