unmanaged codestyle update

This commit is contained in:
Amberstone 2024-09-23 11:41:17 +09:00
parent 0fa4762041
commit 529957883c
Signed by: amber
GPG key ID: 094B0E55F98D8BF1
6 changed files with 30 additions and 52 deletions

View file

@ -10,13 +10,12 @@ $theme_5 = "#727F99";
$theme_6 = "#7488B2"; $theme_6 = "#7488B2";
$title = G5_VERSION . " 라이센스 확인 1/3"; $title = G5_VERSION . " 라이센스 확인 1/3";
include_once "./install.inc.php";
?>
<?php include_once "./install.inc.php";
if ($exists_data_dir && $write_data_dir) { if ($exists_data_dir && $write_data_dir) {
// 필수 모듈 체크 // 필수 모듈 체크
require_once('./library.check.php'); include_once "./library.check.php";
?> ?>
<div class="ins_inner"> <div class="ins_inner">
<p> <p>
@ -55,8 +54,6 @@ if ($exists_data_dir && $write_data_dir) {
} }
</script> </script>
<?php <?php
} // if }
?>
<?php
include_once "./install.inc2.php"; include_once "./install.inc2.php";
?>

View file

@ -38,9 +38,7 @@ if (!$title)
<?php <?php
exit; exit;
} }
?>
<?php
$exists_data_dir = true; $exists_data_dir = true;
// data 디렉토리가 있는가? // data 디렉토리가 있는가?
if (!is_dir($data_path)) { if (!is_dir($data_path)) {
@ -59,9 +57,7 @@ if (!$title)
<?php <?php
$exists_data_dir = false; $exists_data_dir = false;
} }
?>
<?php
$write_data_dir = true; $write_data_dir = true;
// data 디렉토리에 파일 생성 가능한지 검사. // data 디렉토리에 파일 생성 가능한지 검사.
if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') { if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
@ -94,4 +90,3 @@ if (!$title)
} }
} }
} }
?>

View file

@ -1,4 +1,6 @@
<div id="ins_ft"> <?php
?><div id="ins_ft">
<strong>AVOCADO EDITION</strong> <strong>AVOCADO EDITION</strong>
<p>GPL! OPEN SOURCE GNUBOARD</p> <p>GPL! OPEN SOURCE GNUBOARD</p>
</div> </div>

View file

@ -10,7 +10,6 @@ include_once "../config.php";
$title = G5_VERSION . " 초기환경설정 2/3"; $title = G5_VERSION . " 초기환경설정 2/3";
include_once "./install.inc.php"; include_once "./install.inc.php";
if (!isset($_POST['agree']) || $_POST['agree'] != '동의함') { if (!isset($_POST['agree']) || $_POST['agree'] != '동의함') {
echo "<div class=\"ins_inner\"><p>라이센스(License) 내용에 동의하셔야 설치를 계속하실 수 있습니다.</p>" . PHP_EOL; echo "<div class=\"ins_inner\"><p>라이센스(License) 내용에 동의하셔야 설치를 계속하실 수 있습니다.</p>" . PHP_EOL;
echo "<div class=\"inner_btn\"><a href=\"./\">뒤로가기</a></div></div>" . PHP_EOL; echo "<div class=\"inner_btn\"><a href=\"./\">뒤로가기</a></div></div>" . PHP_EOL;
@ -146,7 +145,6 @@ if (!isset($_POST['agree']) || $_POST['agree'] != '동의함') {
return true; return true;
} }
</script> </script>
<?php
include_once "./install.inc2.php";
<?php
include_once "./install.inc2.php";
?>

View file

@ -106,7 +106,7 @@ unset($row);
//------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------
// config 테이블 설정 // config 테이블 설정
$sql = " insert into `{$table_prefix}config` $sql = "INSERT INTO `{$table_prefix}config`
set cf_title = '" . G5_VERSION . "', set cf_title = '" . G5_VERSION . "',
cf_admin = '$admin_id', cf_admin = '$admin_id',
cf_admin_email = '$admin_email', cf_admin_email = '$admin_email',
@ -174,15 +174,15 @@ unset($row);
sql_query($sql, true, $dblink); sql_query($sql, true, $dblink);
// 1:1문의 설정 // 1:1문의 설정
$sql = " insert into `{$table_prefix}qa_config` $sql = "INSERT INTO `{$table_prefix}qa_config`
( qa_title, qa_category, qa_skin, qa_mobile_skin, qa_use_email, qa_req_email, qa_use_hp, qa_req_hp, qa_use_editor, qa_subject_len, qa_mobile_subject_len, qa_page_rows, qa_mobile_page_rows, qa_image_width, qa_upload_size, qa_insert_content ) ( qa_title, qa_category, qa_skin, qa_mobile_skin, qa_use_email, qa_req_email, qa_use_hp, qa_req_hp, qa_use_editor, qa_subject_len, qa_mobile_subject_len, qa_page_rows, qa_mobile_page_rows, qa_image_width, qa_upload_size, qa_insert_content )
values values
( '1:1문의', '회원|포인트', 'basic', 'basic', '1', '0', '1', '0', '1', '60', '30', '15', '15', '600', '1048576', '' ) "; ( '1:1문의', '회원|포인트', 'basic', 'basic', '1', '0', '1', '0', '1', '60', '30', '15', '15', '600', '1048576', '' ) ";
sql_query($sql, true, $dblink); sql_query($sql, true, $dblink);
// 관리자 회원가입 // 관리자 회원가입
$sql = " insert into `{$table_prefix}member` $sql = "INSERT INTO `{$table_prefix}member`
set mb_id = '{$admin_id}', SET mb_id = '{$admin_id}',
mb_password = '" . get_encrypt_string($admin_pass) . "', mb_password = '" . get_encrypt_string($admin_pass) . "',
mb_name = '{$admin_name}', mb_name = '{$admin_name}',
mb_nick = '{$admin_name}', mb_nick = '{$admin_name}',
@ -203,7 +203,6 @@ unset($row);
gr_device = 'both'"; gr_device = 'both'";
sql_query($sql, true, $dblink); sql_query($sql, true, $dblink);
// 디자인 설정 파일
function g5_path_temp() function g5_path_temp()
{ {
$result['path'] = str_replace('\\', '/', dirname(__FILE__)); $result['path'] = str_replace('\\', '/', dirname(__FILE__));
@ -353,7 +352,7 @@ unset($row);
<li>DB설정 파일 생성 완료 (<?php echo $file ?>)</li> <li>DB설정 파일 생성 완료 (<?php echo $file ?>)</li>
<?php <?php
// data 디렉토리 및 하위 디렉토리에서는 .htaccess .htpasswd .php .phtml .html .htm .inc .cgi .pl 파일을 실행할수 없게함. // data 디렉토리 및 하위 디렉토리에서는 .htaccess .htpasswd .php .phtml .html .htm .inc .cgi .pl .phar 파일을 실행할수 없게함.
$f = fopen($data_path . '/.htaccess', 'w'); $f = fopen($data_path . '/.htaccess', 'w');
$str = <<<EOD $str = <<<EOD
<FilesMatch "\.(htaccess|htpasswd|[Pp][Hh][Pp]|[Pp]?[Hh][Tt][Mm][Ll]?|[Ii][Nn][Cc]|[Cc][Gg][Ii]|[Pp][Ll]|[Pp][Hh][Aa][Rr])"> <FilesMatch "\.(htaccess|htpasswd|[Pp][Hh][Pp]|[Pp]?[Hh][Tt][Mm][Ll]?|[Ii][Nn][Cc]|[Cc][Gg][Ii]|[Pp][Ll]|[Pp][Hh][Aa][Rr])">
@ -365,14 +364,11 @@ EOD;
fclose($f); fclose($f);
//------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------
// CSS 설정 파일 생성 // CSS 설정 파일 생성
$css_data_path = $g5_path['path'] . "/css"; $css_data_path = $g5_path['path'] . "/css";
$css_data_url = $g5_path['url'] . "/css"; $css_data_url = $g5_path['url'] . "/css";
@mkdir($css_data_path, G5_DIR_PERMISSION); @mkdir($css_data_path, G5_DIR_PERMISSION);
@chmod($css_data_path, G5_DIR_PERMISSION); @chmod($css_data_path, G5_DIR_PERMISSION);
$file = '../' . G5_CSS_DIR . '/_design.config.css'; $file = '../' . G5_CSS_DIR . '/_design.config.css';
$file_path = $css_data_path . '/_design.config.css'; $file_path = $css_data_path . '/_design.config.css';
@unlink($file_path); @unlink($file_path);
@ -387,32 +383,22 @@ EOD;
fwrite($f, $css); fwrite($f, $css);
fclose($f); fclose($f);
@chmod($file, G5_FILE_PERMISSION); @chmod($file, G5_FILE_PERMISSION);
?> ?>
</li> </li>
</ol> </ol>
<p>축하합니다. <?php echo G5_VERSION ?> 설치가 완료되었습니다.</p> <p>축하합니다. <?php echo G5_VERSION ?> 설치가 완료되었습니다.</p>
</div> </div>
<div class="ins_inner"> <div class="ins_inner">
<h2>환경설정 변경은 다음의 과정을 따르십시오.</h2> <h2>환경설정 변경은 다음의 과정을 따르십시오.</h2>
<ol> <ol>
<li>메인화면으로 이동</li> <li>메인화면으로 이동</li>
<li>관리자 로그인</li> <li>관리자 로그인</li>
<li>관리자 모드 접속</li> <li>관리자 모드 접속</li>
<li>환경설정 메뉴의 기본환경설정 페이지로 이동</li> <li>환경설정 메뉴의 기본환경설정 페이지로 이동</li>
</ol> </ol>
<div class="inner_btn"> <div class="inner_btn">
<a href="../adm/">아보카도 에디션 관리자 페이지로 이동</a> <a href="../adm/">아보카도 에디션 관리자 페이지로 이동</a>
</div> </div>
</div> </div>
<?php <?php
include_once "./install.inc2.php"; include_once "./install.inc2.php";
?>

View file

@ -1,6 +1,6 @@
<?php <?php
if (!defined('_GNUBOARD_')) if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가 exit;
if (!extension_loaded('gd') || !function_exists('gd_info')) { if (!extension_loaded('gd') || !function_exists('gd_info')) {
echo '<script>' . PHP_EOL; echo '<script>' . PHP_EOL;