g4s 2013-03-21일자 코드 반영

This commit is contained in:
chicpro
2013-03-21 14:48:34 +09:00
parent 260381451e
commit 40451a9f48
87 changed files with 2093 additions and 1804 deletions

View File

@ -64,6 +64,7 @@ CREATE TABLE IF NOT EXISTS `g4s_board` (
`bo_hot` int(11) NOT NULL default '0',
`bo_image_width` int(11) NOT NULL default '0',
`bo_skin` varchar(255) NOT NULL default '',
`bo_mobile_skin` varchar(255) NOT NULL default '',
`bo_image_head` varchar(255) NOT NULL default '',
`bo_image_tail` varchar(255) NOT NULL default '',
`bo_include_head` varchar(255) NOT NULL default '',
@ -187,7 +188,7 @@ CREATE TABLE IF NOT EXISTS `g4s_config` (
`cf_include_index` varchar(255) NOT NULL default '',
`cf_include_head` varchar(255) NOT NULL default '',
`cf_include_tail` varchar(255) NOT NULL default '',
`cf_add_script` text NOT NULL default '',
`cf_add_script` text NOT NULL,
`cf_use_point` tinyint(4) NOT NULL default '0',
`cf_use_norobot` tinyint(4) NOT NULL default '0',
`cf_use_copy_log` tinyint(4) NOT NULL default '0',
@ -266,6 +267,10 @@ CREATE TABLE IF NOT EXISTS `g4s_config` (
`cf_privacy` text NOT NULL,
`cf_open_modify` int(11) NOT NULL default '0',
`cf_memo_send_point` int(11) NOT NULL default '0',
`cf_mobile_new_skin` varchar(255) NOT NULL default'',
`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_kcpcert_site_cd` varchar(255) NOT NULL default '',
`cf_adult_check` tinyint(4) NOT NULL default '0',
`cf_1_subj` varchar(255) NOT NULL default '',
@ -300,6 +305,7 @@ DROP TABLE IF EXISTS `g4s_group`;
CREATE TABLE IF NOT EXISTS `g4s_group` (
`gr_id` varchar(10) NOT NULL default '',
`gr_subject` varchar(255) NOT NULL default '',
`gr_device` ENUM('both','pc','mobile') NOT NULL DEFAULT 'both',
`gr_admin` varchar(255) NOT NULL default '',
`gr_use_access` tinyint(4) NOT NULL default '0',
`gr_show_menu` tinyint(4) NOT NULL default '0',

View File

@ -4,6 +4,9 @@ include_once ('../config.php');
include_once ('./install.inc.php');
?>
<?
if ($exists_data_dir && $write_data_dir) {
?>
<p>
<strong class="st_strong">라이센스(License) 내용을 반드시 확인하십시오.</strong><br>
라이센스에 동의하시는 경우에만 설치가 진행됩니다.
@ -11,8 +14,6 @@ include_once ('./install.inc.php');
<textarea name="textarea" id="idx_license" readonly><?=implode('', file('../LICENSE.txt'));?></textarea>
</div>
<form action="./install_config.php" method="post" onsubmit="return frm_submit(this);">
<div id="idx_agree">
<label for="agree">동의합니다.</label>
@ -35,6 +36,11 @@ function frm_submit(f)
return true;
}
</script>
<?
} // if
?>
</div>
</body>
</html>

View File

@ -53,6 +53,7 @@ if (file_exists($dbconfig_file)) {
?>
<?
$exists_data_dir = true;
// data 디렉토리가 있는가?
if (!is_dir($data_path))
{
@ -62,10 +63,12 @@ if (!is_dir($data_path))
$> mkdir <?=G4_DATA_DIR?><br /><br />
위 명령 실행후 브라우저를 새로고침 하십시오.</p>
<?
$exists_data_dir = false;
}
?>
<?
$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)))
@ -75,7 +78,7 @@ if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
$> chmod 707 <?=G4_DATA_DIR?> 또는 chmod uo+rwx <?=G4_DATA_DIR?><br /><br />
위 명령 실행후 브라우저를 새로고침 하십시오.</p>
<?
exit;
$write_data_dir = false;
}
}
?>

View File

@ -17,7 +17,7 @@ if ($_POST['agree'] != '동의함') {
}
?>
<form id="frm_install" method="post" action="./install_db.php" onsubmit="return frm_install_submit(this)">
<form id="frm_install" method="post" action="./install_db.php" autocomplete="off" onsubmit="return frm_install_submit(this)">
<table style="margin-bottom:30px">
<caption>MySQL 정보입력</caption>
<colgroup>

View File

@ -7,6 +7,7 @@ header('Cache-Control: no-store, no-cache, must-revalidate'); // HTTP/1.1
header('Cache-Control: pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
header('Pragma: no-cache'); // HTTP/1.0
$title = "그누보드4s 설치 3단계 중 3단계 설치 완료";
include_once ('../config.php');
include_once ('./install.inc.php');
@ -97,6 +98,10 @@ $sql = " insert into `{$table_prefix}config`
cf_possible_ip = '',
cf_intercept_ip = '',
cf_member_skin = 'basic',
cf_mobile_new_skin = 'basic',
cf_mobile_search_skin = 'basic',
cf_mobile_connect_skin = 'basic',
cf_mobile_member_skin = 'basic',
cf_register_level = '2',
cf_register_point = '1000',
cf_icon_level = '2',