From 172e4f39d92bbc607c0fb7ac59157c610fafd9c6 Mon Sep 17 00:00:00 2001 From: Arcturus Date: Thu, 26 Sep 2024 10:22:31 +0900 Subject: [PATCH] fix css installation failed --- AvocadoEdition_Light/install/install.css | 12 ++++++ AvocadoEdition_Light/install/install.inc.php | 43 +++++++++++++++----- 2 files changed, 45 insertions(+), 10 deletions(-) diff --git a/AvocadoEdition_Light/install/install.css b/AvocadoEdition_Light/install/install.css index b42a56e..c62352f 100644 --- a/AvocadoEdition_Light/install/install.css +++ b/AvocadoEdition_Light/install/install.css @@ -164,3 +164,15 @@ h1 { padding: 10px 0 0; text-align: right } + +/* extra */ +pre { + padding: 4px; + background: #0d1117; + color: #f0f6fc; + font-size: 14px; + font-family: monospace; + user-select: all; + margin: 2px 0; + border-radius: 4px; +} diff --git a/AvocadoEdition_Light/install/install.inc.php b/AvocadoEdition_Light/install/install.inc.php index f921867..234ac29 100644 --- a/AvocadoEdition_Light/install/install.inc.php +++ b/AvocadoEdition_Light/install/install.inc.php @@ -2,6 +2,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 $data_path = '../' . G5_DATA_DIR; +$css_path = '../' . G5_CSS_DIR; if (!$title) $title = G5_VERSION . " 설치"; @@ -30,7 +31,7 @@ if (!$title)

프로그램이 이미 설치되어 있습니다.

-

프로그램이 이미 설치되어 있습니다.
새로 설치하시려면 다음 파일을 삭제 하신 후 새로고침 하십시오.

+

프로그램이 이미 설치되어 있습니다.
새로 설치하시려면 다음 파일을 삭제 하신 후 새로고침 하십시오.

@@ -47,10 +48,10 @@ if (!$title)

- 루트 디렉토리에 아래로 디렉토리를 생성하여 주십시오.
- (common.php 파일이 있는곳이 루트 디렉토리 입니다.)

- $> mkdir

- 윈도우의 경우 data 폴더를 하나 생성해 주시기 바랍니다.

+ 루트 디렉토리에 아래로 디렉토리를 생성하여 주십시오.
+ (common.php 파일이 있는곳이 루트 디렉토리 입니다.)

+ $> mkdir

+ 윈도우의 경우 data 폴더를 하나 생성해 주시기 바랍니다.

위 명령 실행후 브라우저를 새로고침 하십시오.

@@ -59,7 +60,9 @@ if (!$title) } $write_data_dir = true; - // data 디렉토리에 파일 생성 가능한지 검사. + + // check datadir and css path + if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') { $sapi_type = php_sapi_name(); if (substr($sapi_type, 0, 3) == 'cgi') { @@ -67,8 +70,10 @@ if (!$title) ?>

- 디렉토리의 퍼미션을 705로 변경하여 주십시오.

- $> chmod 705 또는 chmod uo+rx

+ 디렉토리의 퍼미션을 705로 변경하여 주십시오.
+

#> chmod 705 
+ 또는
+
#> chmod uo+rx 

위 명령 실행후 브라우저를 새로고침 하십시오.

@@ -76,12 +81,30 @@ if (!$title) $write_data_dir = false; } } else { + if (!(is_readable($data_path) && is_writeable($data_path) && is_executable($data_path))) { ?>

- 디렉토리의 퍼미션을 707로 변경하여 주십시오.

- $> chmod 707 또는 chmod uo+rwx

+ 디렉토리의 퍼미션을 707로 변경하여 주십시오.
+

#> chmod 707 
+ 또는
+
#> chmod uo+rwx 

+ 위 명령 실행후 브라우저를 새로고침 하십시오. +

+
+ +
+

+ 디렉토리의 퍼미션을 707로 변경하여 주십시오.
+

#> chmod 707 
+ 또는
+
#> chmod uo+rwx 

위 명령 실행후 브라우저를 새로고침 하십시오.