From ee2bcb5329438df4bbaf8dad842d85b46b7ef8b4 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 8 Apr 2018 17:17:49 +0900 Subject: [PATCH] =?UTF-8?q?d=5Fshared/common.css=EB=A5=BC=20=EC=B0=B8?= =?UTF-8?q?=EC=A1=B0=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ css/config.css | 3 --- f_install/j_setup_db.php | 44 ++++++++++++++++++++++++++++++++------- hwe/_119.php | 6 ++++-- hwe/_admin1.php | 6 ++++-- hwe/_admin2.php | 6 ++++-- hwe/_admin4.php | 6 ++++-- hwe/_admin5.php | 6 ++++-- hwe/_admin6.php | 6 ++++-- hwe/_admin7.php | 6 ++++-- hwe/_admin8.php | 6 ++++-- hwe/_simul.php | 3 ++- hwe/a_bestGeneral.php | 3 ++- hwe/a_emperior.php | 3 ++- hwe/a_emperior2.php | 3 ++- hwe/a_genList.php | 3 ++- hwe/a_hallOfFame.php | 3 ++- hwe/a_history.php | 3 ++- hwe/a_kingdomList.php | 3 ++- hwe/a_npcList.php | 3 ++- hwe/a_status.php | 1 + hwe/a_traffic.php | 3 ++- hwe/a_vote.php | 3 ++- hwe/b_auction.php | 3 ++- hwe/b_battleCenter.php | 3 ++- hwe/b_chiefboard.php | 3 ++- hwe/b_chiefcenter.php | 3 ++- hwe/b_dipcenter.php | 3 ++- hwe/b_diplomacy.php | 1 + hwe/b_genList.php | 3 ++- hwe/b_myBossInfo.php | 3 ++- hwe/b_myCityInfo.php | 3 ++- hwe/b_myGenInfo.php | 3 ++- hwe/b_myKingdomInfo.php | 3 ++- hwe/b_myPage.php | 3 ++- hwe/b_nationboard.php | 3 ++- hwe/b_nationrule.php | 3 ++- hwe/b_troop.php | 3 ++- hwe/commandlist.php | 3 ++- hwe/css/common.css | 20 ------------------ hwe/css/main.css | 2 +- hwe/func_legacy.php | 3 ++- hwe/index.php | 3 ++- hwe/join.php | 1 + hwe/processing.php | 3 ++- hwe/select_npc.php | 3 ++- hwe/templates/error.php | 1 + i_entrance/entrance.php | 1 + i_entrance/user_info.html | 1 + 49 files changed, 138 insertions(+), 77 deletions(-) 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) { 관리메뉴 - + + 관리자가 아닙니다.
@@ -39,7 +40,8 @@ $plock = MYDB_fetch_array($result); 삼국지 모의전투 PHP (유기체서버) - + +
diff --git a/hwe/_admin1.php b/hwe/_admin1.php index f735b3f6..1855a5a4 100644 --- a/hwe/_admin1.php +++ b/hwe/_admin1.php @@ -12,7 +12,8 @@ if($session->userGrade < 5) { 관리메뉴 - + + 관리자가 아닙니다.
@@ -35,7 +36,8 @@ $admin = getAdmin(); 게임관리 - + + diff --git a/hwe/_admin2.php b/hwe/_admin2.php index 2bead54c..ee68de3e 100644 --- a/hwe/_admin2.php +++ b/hwe/_admin2.php @@ -12,7 +12,8 @@ if($session->userGrade < 5) { 관리메뉴 - + + 관리자가 아닙니다.
@@ -37,7 +38,8 @@ $admin = MYDB_fetch_array($result); 회원관리 - + +
diff --git a/hwe/_admin4.php b/hwe/_admin4.php index 7f6cadb0..d000476a 100644 --- a/hwe/_admin4.php +++ b/hwe/_admin4.php @@ -12,7 +12,8 @@ if($session->userGrade < 5) { 관리메뉴 - + + 관리자가 아닙니다.
@@ -37,7 +38,8 @@ $admin = MYDB_fetch_array($result); 멀티관리 - + +
diff --git a/hwe/_admin5.php b/hwe/_admin5.php index 35919788..bb81025e 100644 --- a/hwe/_admin5.php +++ b/hwe/_admin5.php @@ -16,7 +16,8 @@ if($session->userGrade < 5) { 관리메뉴 - + + 관리자가 아닙니다.
@@ -50,7 +51,8 @@ $admin = MYDB_fetch_array($result); 일제정보 - + +
diff --git a/hwe/_admin6.php b/hwe/_admin6.php index e7812699..b4aa8606 100644 --- a/hwe/_admin6.php +++ b/hwe/_admin6.php @@ -12,7 +12,8 @@ if($session->userGrade < 5) { 관리메뉴 - + + 관리자가 아닙니다.
@@ -39,7 +40,8 @@ $sel[$type] = "selected"; 접속정보 - + +
diff --git a/hwe/_admin7.php b/hwe/_admin7.php index 05d8f0b4..592ff262 100644 --- a/hwe/_admin7.php +++ b/hwe/_admin7.php @@ -12,7 +12,8 @@ if($session->userGrade < 5) { 관리메뉴 - + + 관리자가 아닙니다.
@@ -42,7 +43,8 @@ $sel[$type] = "selected"; 로그정보 - + +
diff --git a/hwe/_admin8.php b/hwe/_admin8.php index ef50ec47..6ba93902 100644 --- a/hwe/_admin8.php +++ b/hwe/_admin8.php @@ -12,7 +12,8 @@ if ($session->userGrade < 5) { 관리메뉴 - + + 관리자가 아닙니다.
@@ -42,7 +43,8 @@ $sel[$type] = "selected"; 외교정보 - + +
diff --git a/hwe/_simul.php b/hwe/_simul.php index 8d060bd7..a6842bcd 100644 --- a/hwe/_simul.php +++ b/hwe/_simul.php @@ -1128,7 +1128,8 @@ switch($dex240) { 전투시뮬레이션 - + +