g4s 13-04-26일자 코드 반영
This commit is contained in:
@ -96,6 +96,7 @@ CREATE TABLE IF NOT EXISTS `g4s_board` (
|
||||
`bo_notice` text NOT NULL,
|
||||
`bo_upload_count` tinyint(4) NOT NULL default '0',
|
||||
`bo_use_email` tinyint(4) NOT NULL default '0',
|
||||
`bo_use_cert` enum('none','cert','adult') NOT NULL DEFAULT 'none',
|
||||
`bo_sort_field` varchar(255) NOT NULL default '',
|
||||
`bo_1_subj` varchar(255) NOT NULL default '',
|
||||
`bo_2_subj` varchar(255) NOT NULL default '',
|
||||
@ -275,8 +276,9 @@ CREATE TABLE IF NOT EXISTS `g4s_config` (
|
||||
`cf_mobile_search_skin` varchar(255) NOT NULL default'',
|
||||
`cf_mobile_connect_skin` varchar(255) NOT NULL default'',
|
||||
`cf_mobile_member_skin` varchar(255) NOT NULL default'',
|
||||
`cf_gcaptcha_mp3` varchar(255) NOT NULL default'',
|
||||
`cf_kcpcert_site_cd` varchar(255) NOT NULL default '',
|
||||
`cf_adult_check` tinyint(4) NOT NULL default '0',
|
||||
`cf_kcpcert_use` tinyint(4) NOT NULL default '0',
|
||||
`cf_1_subj` varchar(255) NOT NULL default '',
|
||||
`cf_2_subj` varchar(255) NOT NULL default '',
|
||||
`cf_3_subj` varchar(255) NOT NULL default '',
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
<?
|
||||
<?php
|
||||
$title = "그누보드4s 설치 3단계 중 1단계 라이센스 확인";
|
||||
include_once ('../config.php');
|
||||
include_once ('./install.inc.php');
|
||||
?>
|
||||
|
||||
<?
|
||||
<?php
|
||||
if ($exists_data_dir && $write_data_dir) {
|
||||
?>
|
||||
<p>
|
||||
@ -12,7 +12,7 @@ if ($exists_data_dir && $write_data_dir) {
|
||||
라이센스에 동의하시는 경우에만 설치가 진행됩니다.
|
||||
</p>
|
||||
|
||||
<textarea name="textarea" id="idx_license" readonly><?=implode('', file('../LICENSE.txt'));?></textarea>
|
||||
<textarea name="textarea" id="idx_license" readonly><?php echo implode('', file('../LICENSE.txt')); ?></textarea>
|
||||
|
||||
<form action="./install_config.php" method="post" onsubmit="return frm_submit(this);">
|
||||
<div id="idx_agree">
|
||||
@ -36,7 +36,7 @@ function frm_submit(f)
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
<?
|
||||
<?php
|
||||
} // if
|
||||
?>
|
||||
|
||||
|
||||
@ -1,15 +1,14 @@
|
||||
<?
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
$data_path = '../'.G4_DATA_DIR;
|
||||
|
||||
if (!$title) $title = "그누보드4s 설치";
|
||||
?>
|
||||
|
||||
<!doctype html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title><?=$title?></title>
|
||||
<title><?php echo $title ?></title>
|
||||
<style>
|
||||
body {margin:0;padding:0;background:#f7f7f7}
|
||||
h1 {margin:50px auto 30px;width:540px;font-size:1.4em}
|
||||
@ -34,50 +33,51 @@ td span {display:block;margin:0 0 5px;color:#666;font-size:0.9em}
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1><?=$title?></h1>
|
||||
<h1><?php echo $title ?></h1>
|
||||
|
||||
<div id="wrapper">
|
||||
|
||||
<?
|
||||
<?php
|
||||
// 파일이 존재한다면 설치할 수 없다.
|
||||
$dbconfig_file = $data_path.'/'.G4_DBCONFIG_FILE;
|
||||
if (file_exists($dbconfig_file)) {
|
||||
?>
|
||||
<p>프로그램이 이미 설치되어 있습니다.<br />새로 설치하시려면 다음 파일을 삭제 하신 후 새로고침 하십시오.</p>
|
||||
<ul>
|
||||
<li><?=$dbconfig_file?></li>
|
||||
<li><?php echo $dbconfig_file ?></li>
|
||||
</ul>
|
||||
<?
|
||||
<?php
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
|
||||
<?
|
||||
<?php
|
||||
$exists_data_dir = true;
|
||||
// data 디렉토리가 있는가?
|
||||
if (!is_dir($data_path))
|
||||
{
|
||||
?>
|
||||
<p>루트 디렉토리에 아래로 <?=G4_DATA_DIR?> 디렉토리를 생성하여 주십시오.<br />
|
||||
<p>루트 디렉토리에 아래로 <?php echo G4_DATA_DIR ?> 디렉토리를 생성하여 주십시오.<br />
|
||||
(common.php 파일이 있는곳이 루트 디렉토리 입니다.)<br /><br />
|
||||
$> mkdir <?=G4_DATA_DIR?><br /><br />
|
||||
$> mkdir <?php echo G4_DATA_DIR ?><br /><br />
|
||||
윈도우의 경우 data 폴더를 하나 생성해 주시기 바랍니다.<br /><br />
|
||||
위 명령 실행후 브라우저를 새로고침 하십시오.</p>
|
||||
<?
|
||||
<?php
|
||||
$exists_data_dir = false;
|
||||
}
|
||||
?>
|
||||
|
||||
<?
|
||||
<?php
|
||||
$write_data_dir = true;
|
||||
// data 디렉토리에 파일 생성 가능한지 검사.
|
||||
if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
|
||||
if (!(is_readable($data_path) && is_writeable($data_path) && is_executable($data_path)))
|
||||
{
|
||||
?>
|
||||
<p><?=G4_DATA_DIR?> 디렉토리의 퍼미션을 707로 변경하여 주십시오.<br /><br />
|
||||
$> chmod 707 <?=G4_DATA_DIR?> 또는 chmod uo+rwx <?=G4_DATA_DIR?><br /><br />
|
||||
<p><?php echo G4_DATA_DIR ?> 디렉토리의 퍼미션을 707로 변경하여 주십시오.<br /><br />
|
||||
$> chmod 707 <?php echo G4_DATA_DIR ?> 또는 chmod uo+rwx <?php echo G4_DATA_DIR ?><br /><br />
|
||||
위 명령 실행후 브라우저를 새로고침 하십시오.</p>
|
||||
<?
|
||||
<?php
|
||||
$write_data_dir = false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
$gmnow = gmdate('D, d M Y H:i:s').' GMT';
|
||||
header('Expires: 0'); // rfc2616 - Section 14.21
|
||||
header('Last-Modified: ' . $gmnow);
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
set_time_limit(0);
|
||||
$gmnow = gmdate('D, d M Y H:i:s') . ' GMT';
|
||||
header('Expires: 0'); // rfc2616 - Section 14.21
|
||||
@ -47,10 +47,10 @@ if (!$select_db) {
|
||||
<h2>그누보드4s 설치가 시작되었습니다.</h2>
|
||||
|
||||
<ol>
|
||||
<?
|
||||
$cf_title = '그누보드4s';
|
||||
<?php
|
||||
// 테이블 생성 ------------------------------------
|
||||
$file = implode('', file('./gnuboard4s.sql'));
|
||||
eval("\$file = \"$file\";");
|
||||
|
||||
$file = preg_replace('/^--.*$/m', '', $file);
|
||||
$file = preg_replace('/`g4s_([^`]+`)/', '`'.$table_prefix.'$1', $file);
|
||||
@ -79,11 +79,11 @@ if($shop_install) {
|
||||
|
||||
<li>전체 테이블 생성 완료</li>
|
||||
|
||||
<?
|
||||
$read_point = -1;
|
||||
$write_point = 5;
|
||||
$comment_point = 1;
|
||||
$download_point = -20;
|
||||
<?php
|
||||
$read_point = 0;
|
||||
$write_point = 0;
|
||||
$comment_point = 0;
|
||||
$download_point = 0;
|
||||
|
||||
//-------------------------------------------------------------------------------------------------
|
||||
// config 테이블 설정
|
||||
@ -347,7 +347,7 @@ if($shop_install) {
|
||||
|
||||
<li>DB설정 완료</li>
|
||||
|
||||
<?
|
||||
<?php
|
||||
//-------------------------------------------------------------------------------------------------
|
||||
|
||||
// 디렉토리 생성
|
||||
@ -386,7 +386,7 @@ if($shop_install) {
|
||||
|
||||
<li>데이터 디렉토리 생성 완료</li>
|
||||
|
||||
<?
|
||||
<?php
|
||||
//-------------------------------------------------------------------------------------------------
|
||||
|
||||
// DB 설정 파일 생성
|
||||
@ -458,9 +458,9 @@ fclose($f);
|
||||
@chmod($file, 0606);
|
||||
?>
|
||||
|
||||
<li>DB설정 파일 생성 완료 (<?=$file?>)</li>
|
||||
<li>DB설정 파일 생성 완료 (<?php echo $file ?>)</li>
|
||||
|
||||
<?
|
||||
<?php
|
||||
// data 디렉토리 및 하위 디렉토리에서는 .htaccess .htpasswd .php .phtml .html .htm .inc .cgi .pl 파일을 실행할수 없게함.
|
||||
$f = fopen($data_path.'/.htaccess', 'w');
|
||||
$str = <<<EOD
|
||||
@ -475,7 +475,7 @@ fclose($f);
|
||||
?>
|
||||
</ol>
|
||||
|
||||
<p class="st_strong">축하합니다. <?=$cf_title?> 설치가 완료되었습니다.</p>
|
||||
<p class="st_strong">축하합니다. <?php echo $cf_title; ?> 설치가 완료되었습니다.</p>
|
||||
|
||||
<h2>환경설정 변경은 다음의 과정을 따르십시오.</h2>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user