g4를 g5로 변경
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `g4s_auth`
|
||||
-- Table structure for table `g5_auth`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `g4s_auth`;
|
||||
CREATE TABLE IF NOT EXISTS `g4s_auth` (
|
||||
DROP TABLE IF EXISTS `g5_auth`;
|
||||
CREATE TABLE IF NOT EXISTS `g5_auth` (
|
||||
`mb_id` varchar(255) NOT NULL default '',
|
||||
`au_menu` varchar(20) NOT NULL default '',
|
||||
`au_auth` set('r','w','d') NOT NULL default '',
|
||||
@ -15,11 +15,11 @@ CREATE TABLE IF NOT EXISTS `g4s_auth` (
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `g4s_board`
|
||||
-- Table structure for table `g5_board`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `g4s_board`;
|
||||
CREATE TABLE IF NOT EXISTS `g4s_board` (
|
||||
DROP TABLE IF EXISTS `g5_board`;
|
||||
CREATE TABLE IF NOT EXISTS `g5_board` (
|
||||
`bo_table` varchar(20) NOT NULL DEFAULT '',
|
||||
`gr_id` varchar(255) NOT NULL DEFAULT '',
|
||||
`bo_subject` varchar(255) NOT NULL DEFAULT '',
|
||||
@ -126,11 +126,11 @@ CREATE TABLE IF NOT EXISTS `g4s_board` (
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `g4s_board_file`
|
||||
-- Table structure for table `g5_board_file`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `g4s_board_file`;
|
||||
CREATE TABLE IF NOT EXISTS `g4s_board_file` (
|
||||
DROP TABLE IF EXISTS `g5_board_file`;
|
||||
CREATE TABLE IF NOT EXISTS `g5_board_file` (
|
||||
`bo_table` varchar(20) NOT NULL default '',
|
||||
`wr_id` int(11) NOT NULL default '0',
|
||||
`bf_no` int(11) NOT NULL default '0',
|
||||
@ -149,11 +149,11 @@ CREATE TABLE IF NOT EXISTS `g4s_board_file` (
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `g4s_board_good`
|
||||
-- Table structure for table `g5_board_good`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `g4s_board_good`;
|
||||
CREATE TABLE IF NOT EXISTS `g4s_board_good` (
|
||||
DROP TABLE IF EXISTS `g5_board_good`;
|
||||
CREATE TABLE IF NOT EXISTS `g5_board_good` (
|
||||
`bg_id` int(11) NOT NULL auto_increment,
|
||||
`bo_table` varchar(20) NOT NULL default '',
|
||||
`wr_id` int(11) NOT NULL default '0',
|
||||
@ -167,11 +167,11 @@ CREATE TABLE IF NOT EXISTS `g4s_board_good` (
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `g4s_board_new`
|
||||
-- Table structure for table `g5_board_new`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `g4s_board_new`;
|
||||
CREATE TABLE IF NOT EXISTS `g4s_board_new` (
|
||||
DROP TABLE IF EXISTS `g5_board_new`;
|
||||
CREATE TABLE IF NOT EXISTS `g5_board_new` (
|
||||
`bn_id` int(11) NOT NULL auto_increment,
|
||||
`bo_table` varchar(20) NOT NULL default '',
|
||||
`wr_id` int(11) NOT NULL default '0',
|
||||
@ -185,11 +185,11 @@ CREATE TABLE IF NOT EXISTS `g4s_board_new` (
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `g4s_config`
|
||||
-- Table structure for table `g5_config`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `g4s_config`;
|
||||
CREATE TABLE IF NOT EXISTS `g4s_config` (
|
||||
DROP TABLE IF EXISTS `g5_config`;
|
||||
CREATE TABLE IF NOT EXISTS `g5_config` (
|
||||
`cf_title` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_admin` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_admin_email` varchar(255) NOT NULL DEFAULT '',
|
||||
@ -320,10 +320,10 @@ CREATE TABLE IF NOT EXISTS `g4s_config` (
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `g4s_cert_history`
|
||||
-- Table structure for table `g5_cert_history`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `g4s_cert_history` (
|
||||
CREATE TABLE IF NOT EXISTS `g5_cert_history` (
|
||||
`cr_id` int(11) NOT NULL auto_increment,
|
||||
`mb_id` varchar(255) NOT NULL DEFAULT '',
|
||||
`cr_company` varchar(255) NOT NULL DEFAULT '',
|
||||
@ -338,11 +338,11 @@ CREATE TABLE IF NOT EXISTS `g4s_cert_history` (
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `g4s_group`
|
||||
-- Table structure for table `g5_group`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `g4s_group`;
|
||||
CREATE TABLE IF NOT EXISTS `g4s_group` (
|
||||
DROP TABLE IF EXISTS `g5_group`;
|
||||
CREATE TABLE IF NOT EXISTS `g5_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',
|
||||
@ -376,11 +376,11 @@ CREATE TABLE IF NOT EXISTS `g4s_group` (
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `g4s_group_member`
|
||||
-- Table structure for table `g5_group_member`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `g4s_group_member`;
|
||||
CREATE TABLE IF NOT EXISTS `g4s_group_member` (
|
||||
DROP TABLE IF EXISTS `g5_group_member`;
|
||||
CREATE TABLE IF NOT EXISTS `g5_group_member` (
|
||||
`gm_id` int(11) NOT NULL auto_increment,
|
||||
`gr_id` varchar(255) NOT NULL default '',
|
||||
`mb_id` varchar(255) NOT NULL default '',
|
||||
@ -393,11 +393,11 @@ CREATE TABLE IF NOT EXISTS `g4s_group_member` (
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `g4s_login`
|
||||
-- Table structure for table `g5_login`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `g4s_login`;
|
||||
CREATE TABLE IF NOT EXISTS `g4s_login` (
|
||||
DROP TABLE IF EXISTS `g5_login`;
|
||||
CREATE TABLE IF NOT EXISTS `g5_login` (
|
||||
`lo_ip` varchar(255) NOT NULL default '',
|
||||
`mb_id` varchar(255) NOT NULL default '',
|
||||
`lo_datetime` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
@ -409,11 +409,11 @@ CREATE TABLE IF NOT EXISTS `g4s_login` (
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `g4s_mail`
|
||||
-- Table structure for table `g5_mail`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `g4s_mail`;
|
||||
CREATE TABLE IF NOT EXISTS `g4s_mail` (
|
||||
DROP TABLE IF EXISTS `g5_mail`;
|
||||
CREATE TABLE IF NOT EXISTS `g5_mail` (
|
||||
`ma_id` int(11) NOT NULL auto_increment,
|
||||
`ma_subject` varchar(255) NOT NULL default '',
|
||||
`ma_content` mediumtext NOT NULL,
|
||||
@ -426,11 +426,11 @@ CREATE TABLE IF NOT EXISTS `g4s_mail` (
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `g4s_member`
|
||||
-- Table structure for table `g5_member`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `g4s_member`;
|
||||
CREATE TABLE IF NOT EXISTS `g4s_member` (
|
||||
DROP TABLE IF EXISTS `g5_member`;
|
||||
CREATE TABLE IF NOT EXISTS `g5_member` (
|
||||
`mb_no` int(11) NOT NULL auto_increment,
|
||||
`mb_id` varchar(255) NOT NULL default '',
|
||||
`mb_password` varchar(255) NOT NULL default '',
|
||||
@ -490,11 +490,11 @@ CREATE TABLE IF NOT EXISTS `g4s_member` (
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `g4s_memo`
|
||||
-- Table structure for table `g5_memo`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `g4s_memo`;
|
||||
CREATE TABLE IF NOT EXISTS `g4s_memo` (
|
||||
DROP TABLE IF EXISTS `g5_memo`;
|
||||
CREATE TABLE IF NOT EXISTS `g5_memo` (
|
||||
`me_id` int(11) NOT NULL default '0',
|
||||
`me_recv_mb_id` varchar(255) NOT NULL default '',
|
||||
`me_send_mb_id` varchar(255) NOT NULL default '',
|
||||
@ -507,11 +507,11 @@ CREATE TABLE IF NOT EXISTS `g4s_memo` (
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `g4s_point`
|
||||
-- Table structure for table `g5_point`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `g4s_point`;
|
||||
CREATE TABLE IF NOT EXISTS `g4s_point` (
|
||||
DROP TABLE IF EXISTS `g5_point`;
|
||||
CREATE TABLE IF NOT EXISTS `g5_point` (
|
||||
`po_id` int(11) NOT NULL auto_increment,
|
||||
`mb_id` varchar(20) NOT NULL default '',
|
||||
`po_datetime` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
@ -532,11 +532,11 @@ CREATE TABLE IF NOT EXISTS `g4s_point` (
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `g4s_poll`
|
||||
-- Table structure for table `g5_poll`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `g4s_poll`;
|
||||
CREATE TABLE IF NOT EXISTS `g4s_poll` (
|
||||
DROP TABLE IF EXISTS `g5_poll`;
|
||||
CREATE TABLE IF NOT EXISTS `g5_poll` (
|
||||
`po_id` int(11) NOT NULL auto_increment,
|
||||
`po_subject` varchar(255) NOT NULL default '',
|
||||
`po_poll1` varchar(255) NOT NULL default '',
|
||||
@ -569,11 +569,11 @@ CREATE TABLE IF NOT EXISTS `g4s_poll` (
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `g4s_poll_etc`
|
||||
-- Table structure for table `g5_poll_etc`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `g4s_poll_etc`;
|
||||
CREATE TABLE IF NOT EXISTS `g4s_poll_etc` (
|
||||
DROP TABLE IF EXISTS `g5_poll_etc`;
|
||||
CREATE TABLE IF NOT EXISTS `g5_poll_etc` (
|
||||
`pc_id` int(11) NOT NULL default '0',
|
||||
`po_id` int(11) NOT NULL default '0',
|
||||
`mb_id` varchar(255) NOT NULL default '',
|
||||
@ -586,11 +586,11 @@ CREATE TABLE IF NOT EXISTS `g4s_poll_etc` (
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `g4s_popular`
|
||||
-- Table structure for table `g5_popular`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `g4s_popular`;
|
||||
CREATE TABLE IF NOT EXISTS `g4s_popular` (
|
||||
DROP TABLE IF EXISTS `g5_popular`;
|
||||
CREATE TABLE IF NOT EXISTS `g5_popular` (
|
||||
`pp_id` int(11) NOT NULL auto_increment,
|
||||
`pp_word` varchar(50) NOT NULL default '',
|
||||
`pp_date` date NOT NULL default '0000-00-00',
|
||||
@ -602,11 +602,11 @@ CREATE TABLE IF NOT EXISTS `g4s_popular` (
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `g4s_scrap`
|
||||
-- Table structure for table `g5_scrap`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `g4s_scrap`;
|
||||
CREATE TABLE IF NOT EXISTS `g4s_scrap` (
|
||||
DROP TABLE IF EXISTS `g5_scrap`;
|
||||
CREATE TABLE IF NOT EXISTS `g5_scrap` (
|
||||
`ms_id` int(11) NOT NULL auto_increment,
|
||||
`mb_id` varchar(255) NOT NULL default '',
|
||||
`bo_table` varchar(20) NOT NULL default '',
|
||||
@ -619,11 +619,11 @@ CREATE TABLE IF NOT EXISTS `g4s_scrap` (
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `g4s_visit`
|
||||
-- Table structure for table `g5_visit`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `g4s_visit`;
|
||||
CREATE TABLE IF NOT EXISTS `g4s_visit` (
|
||||
DROP TABLE IF EXISTS `g5_visit`;
|
||||
CREATE TABLE IF NOT EXISTS `g5_visit` (
|
||||
`vi_id` int(11) NOT NULL default '0',
|
||||
`vi_ip` varchar(255) NOT NULL default '',
|
||||
`vi_date` date NOT NULL default '0000-00-00',
|
||||
@ -638,11 +638,11 @@ CREATE TABLE IF NOT EXISTS `g4s_visit` (
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `g4s_visit_sum`
|
||||
-- Table structure for table `g5_visit_sum`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `g4s_visit_sum`;
|
||||
CREATE TABLE IF NOT EXISTS `g4s_visit_sum` (
|
||||
DROP TABLE IF EXISTS `g5_visit_sum`;
|
||||
CREATE TABLE IF NOT EXISTS `g5_visit_sum` (
|
||||
`vs_date` date NOT NULL default '0000-00-00',
|
||||
`vs_count` int(11) NOT NULL default '0',
|
||||
PRIMARY KEY (`vs_date`),
|
||||
@ -652,11 +652,11 @@ CREATE TABLE IF NOT EXISTS `g4s_visit_sum` (
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `g4s_unique`
|
||||
-- Table structure for table `g5_unique`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `g4s_uniqid`;
|
||||
CREATE TABLE IF NOT EXISTS `g4s_uniqid` (
|
||||
DROP TABLE IF EXISTS `g5_uniqid`;
|
||||
CREATE TABLE IF NOT EXISTS `g5_uniqid` (
|
||||
`uq_id` bigint(20) unsigned NOT NULL,
|
||||
`uq_ip` varchar(255) NOT NULL,
|
||||
PRIMARY KEY (`uq_id`)
|
||||
@ -665,11 +665,11 @@ CREATE TABLE IF NOT EXISTS `g4s_uniqid` (
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `g4s_syndi_log`
|
||||
-- Table structure for table `g5_syndi_log`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `g4s_syndi_log`;
|
||||
CREATE TABLE IF NOT EXISTS `g4s_syndi_log` (
|
||||
DROP TABLE IF EXISTS `g5_syndi_log`;
|
||||
CREATE TABLE IF NOT EXISTS `g5_syndi_log` (
|
||||
`content_id` int(11) NOT NULL,
|
||||
`bbs_id` varchar(50) NOT NULL,
|
||||
`title` text NOT NULL,
|
||||
@ -681,11 +681,11 @@ CREATE TABLE IF NOT EXISTS `g4s_syndi_log` (
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `g4s_autosave`
|
||||
-- Table structure for table `g5_autosave`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `g4s_autosave`;
|
||||
CREATE TABLE IF NOT EXISTS `g4s_autosave` (
|
||||
DROP TABLE IF EXISTS `g5_autosave`;
|
||||
CREATE TABLE IF NOT EXISTS `g5_autosave` (
|
||||
`as_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`mb_id` varchar(20) NOT NULL,
|
||||
`as_uid` bigint(20) unsigned NOT NULL,
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
$data_path = '../'.G4_DATA_DIR;
|
||||
$data_path = '../'.G5_DATA_DIR;
|
||||
|
||||
if (!$title) $title = "그누보드4s 설치";
|
||||
?>
|
||||
@ -39,7 +39,7 @@ td span {display:block;margin:0 0 5px;color:#666;font-size:0.9em}
|
||||
|
||||
<?php
|
||||
// 파일이 존재한다면 설치할 수 없다.
|
||||
$dbconfig_file = $data_path.'/'.G4_DBCONFIG_FILE;
|
||||
$dbconfig_file = $data_path.'/'.G5_DBCONFIG_FILE;
|
||||
if (file_exists($dbconfig_file)) {
|
||||
?>
|
||||
<p>프로그램이 이미 설치되어 있습니다.<br />새로 설치하시려면 다음 파일을 삭제 하신 후 새로고침 하십시오.</p>
|
||||
@ -57,9 +57,9 @@ $exists_data_dir = true;
|
||||
if (!is_dir($data_path))
|
||||
{
|
||||
?>
|
||||
<p>루트 디렉토리에 아래로 <?php echo G4_DATA_DIR ?> 디렉토리를 생성하여 주십시오.<br />
|
||||
<p>루트 디렉토리에 아래로 <?php echo G5_DATA_DIR ?> 디렉토리를 생성하여 주십시오.<br />
|
||||
(common.php 파일이 있는곳이 루트 디렉토리 입니다.)<br /><br />
|
||||
$> mkdir <?php echo G4_DATA_DIR ?><br /><br />
|
||||
$> mkdir <?php echo G5_DATA_DIR ?><br /><br />
|
||||
윈도우의 경우 data 폴더를 하나 생성해 주시기 바랍니다.<br /><br />
|
||||
위 명령 실행후 브라우저를 새로고침 하십시오.</p>
|
||||
<?php
|
||||
@ -76,8 +76,8 @@ if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
|
||||
if (!(is_readable($data_path) && is_executable($data_path)))
|
||||
{
|
||||
?>
|
||||
<p><?php echo G4_DATA_DIR ?> 디렉토리의 퍼미션을 705로 변경하여 주십시오.<br /><br />
|
||||
$> chmod 705 <?php echo G4_DATA_DIR ?> 또는 chmod uo+rx <?php echo G4_DATA_DIR ?><br /><br />
|
||||
<p><?php echo G5_DATA_DIR ?> 디렉토리의 퍼미션을 705로 변경하여 주십시오.<br /><br />
|
||||
$> chmod 705 <?php echo G5_DATA_DIR ?> 또는 chmod uo+rx <?php echo G5_DATA_DIR ?><br /><br />
|
||||
위 명령 실행후 브라우저를 새로고침 하십시오.</p>
|
||||
<?php
|
||||
$write_data_dir = false;
|
||||
@ -86,8 +86,8 @@ if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
|
||||
if (!(is_readable($data_path) && is_writeable($data_path) && is_executable($data_path)))
|
||||
{
|
||||
?>
|
||||
<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 echo G5_DATA_DIR ?> 디렉토리의 퍼미션을 707로 변경하여 주십시오.<br /><br />
|
||||
$> chmod 707 <?php echo G5_DATA_DIR ?> 또는 chmod uo+rwx <?php echo G5_DATA_DIR ?><br /><br />
|
||||
위 명령 실행후 브라우저를 새로고침 하십시오.</p>
|
||||
<?php
|
||||
$write_data_dir = false;
|
||||
|
||||
@ -53,7 +53,7 @@ if (isset($_POST['agree']) && $_POST['agree'] != '동의함') {
|
||||
<th scope="row"><label for="">TABLE명 접두사</label></th>
|
||||
<td>
|
||||
<span>가능한 변경하지 마십시오.</span>
|
||||
<input name="table_prefix" type="text" value="g4s_" id="table_prefix">
|
||||
<input name="table_prefix" type="text" value="g5_" id="table_prefix">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -66,7 +66,7 @@ if (isset($_POST['agree']) && $_POST['agree'] != '동의함') {
|
||||
<tr>
|
||||
<th scope="row"><label for="">그누보드4s 재설치</label></th>
|
||||
<td>
|
||||
<input name="g4s_install" type="checkbox" value="1" id="g4s_install">재설치
|
||||
<input name="g5_install" type="checkbox" value="1" id="g5_install">재설치
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -18,7 +18,7 @@ $mysql_user = $_POST['mysql_user'];
|
||||
$mysql_pass = $_POST['mysql_pass'];
|
||||
$mysql_db = $_POST['mysql_db'];
|
||||
$table_prefix= $_POST['table_prefix'];
|
||||
$g4s_install = $_POST['g4s_install'];
|
||||
$g5s_install = $_POST['g5_install'];
|
||||
$shop_prefix = $_POST['shop_prefix'];
|
||||
$shop_install= $_POST['shop_install'];
|
||||
$admin_id = $_POST['admin_id'];
|
||||
@ -53,13 +53,13 @@ $sql = " desc {$table_prefix}config";
|
||||
$result = @mysql_query($sql);
|
||||
|
||||
// 그누보드4s 재설치에 체크하였거나 그누보드4s가 설치되어 있지 않다면
|
||||
if($g4s_install || !$result) {
|
||||
if($g5s_install || !$result) {
|
||||
// 테이블 생성 ------------------------------------
|
||||
$file = implode('', file('./gnuboard4s.sql'));
|
||||
eval("\$file = \"$file\";");
|
||||
|
||||
$file = preg_replace('/^--.*$/m', '', $file);
|
||||
$file = preg_replace('/`g4s_([^`]+`)/', '`'.$table_prefix.'$1', $file);
|
||||
$file = preg_replace('/`g5_([^`]+`)/', '`'.$table_prefix.'$1', $file);
|
||||
$f = explode(';', $file);
|
||||
for ($i=0; $i<count($f); $i++) {
|
||||
if (trim($f[$i]) == '') continue;
|
||||
@ -92,7 +92,7 @@ $download_point = 0;
|
||||
|
||||
//-------------------------------------------------------------------------------------------------
|
||||
// config 테이블 설정
|
||||
if($g4s_install || !$result) {
|
||||
if($g5s_install || !$result) {
|
||||
$sql = " insert into `{$table_prefix}config`
|
||||
set cf_title = '그누보드4s',
|
||||
cf_admin = '$admin_id',
|
||||
@ -164,8 +164,8 @@ if($g4s_install || !$result) {
|
||||
mb_level = '10',
|
||||
mb_mailling = '1',
|
||||
mb_open = '1',
|
||||
mb_email_certify = '".G4_TIME_YMDHIS."',
|
||||
mb_datetime = '".G4_TIME_YMDHIS."',
|
||||
mb_email_certify = '".G5_TIME_YMDHIS."',
|
||||
mb_datetime = '".G5_TIME_YMDHIS."',
|
||||
mb_ip = '{$_SERVER['REMOTE_ADDR']}'
|
||||
";
|
||||
@mysql_query($sql);
|
||||
@ -403,8 +403,8 @@ $dir_arr = array (
|
||||
);
|
||||
|
||||
for ($i=0; $i<count($dir_arr); $i++) {
|
||||
@mkdir($dir_arr[$i], G4_DIR_PERMISSION);
|
||||
@chmod($dir_arr[$i], G4_DIR_PERMISSION);
|
||||
@mkdir($dir_arr[$i], G5_DIR_PERMISSION);
|
||||
@chmod($dir_arr[$i], G5_DIR_PERMISSION);
|
||||
}
|
||||
|
||||
if($shop_install) {
|
||||
@ -420,8 +420,8 @@ if($shop_install) {
|
||||
);
|
||||
|
||||
for ($i=0; $i<count($dir_arr); $i++) {
|
||||
@mkdir($dir_arr[$i], G4_DIR_PERMISSION);
|
||||
@chmod($dir_arr[$i], G4_DIR_PERMISSION);
|
||||
@mkdir($dir_arr[$i], G5_DIR_PERMISSION);
|
||||
@chmod($dir_arr[$i], G5_DIR_PERMISSION);
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -432,74 +432,74 @@ if($shop_install) {
|
||||
//-------------------------------------------------------------------------------------------------
|
||||
|
||||
// DB 설정 파일 생성
|
||||
$file = '../'.G4_DATA_DIR.'/'.G4_DBCONFIG_FILE;
|
||||
$file = '../'.G5_DATA_DIR.'/'.G5_DBCONFIG_FILE;
|
||||
$f = @fopen($file, 'a');
|
||||
|
||||
fwrite($f, "<?php\n");
|
||||
fwrite($f, "if (!defined('_GNUBOARD_')) exit;\n");
|
||||
fwrite($f, "define('G4_MYSQL_HOST', '{$mysql_host}');\n");
|
||||
fwrite($f, "define('G4_MYSQL_USER', '{$mysql_user}');\n");
|
||||
fwrite($f, "define('G4_MYSQL_PASSWORD', '{$mysql_pass}');\n");
|
||||
fwrite($f, "define('G4_MYSQL_DB', '{$mysql_db}');\n\n");
|
||||
fwrite($f, "define('G4_TABLE_PREFIX', '{$table_prefix}');\n\n");
|
||||
fwrite($f, "\$g4['write_prefix'] = G4_TABLE_PREFIX.'write_'; // 게시판 테이블명 접두사\n\n");
|
||||
fwrite($f, "\$g4['auth_table'] = G4_TABLE_PREFIX.'auth'; // 관리권한 설정 테이블\n");
|
||||
fwrite($f, "\$g4['config_table'] = G4_TABLE_PREFIX.'config'; // 기본환경 설정 테이블\n");
|
||||
fwrite($f, "\$g4['group_table'] = G4_TABLE_PREFIX.'group'; // 게시판 그룹 테이블\n");
|
||||
fwrite($f, "\$g4['group_member_table'] = G4_TABLE_PREFIX.'group_member'; // 게시판 그룹+회원 테이블\n");
|
||||
fwrite($f, "\$g4['board_table'] = G4_TABLE_PREFIX.'board'; // 게시판 설정 테이블\n");
|
||||
fwrite($f, "\$g4['board_file_table'] = G4_TABLE_PREFIX.'board_file'; // 게시판 첨부파일 테이블\n");
|
||||
fwrite($f, "\$g4['board_good_table'] = G4_TABLE_PREFIX.'board_good'; // 게시물 추천,비추천 테이블\n");
|
||||
fwrite($f, "\$g4['board_new_table'] = G4_TABLE_PREFIX.'board_new'; // 게시판 새글 테이블\n");
|
||||
fwrite($f, "\$g4['login_table'] = G4_TABLE_PREFIX.'login'; // 로그인 테이블 (접속자수)\n");
|
||||
fwrite($f, "\$g4['mail_table'] = G4_TABLE_PREFIX.'mail'; // 회원메일 테이블\n");
|
||||
fwrite($f, "\$g4['member_table'] = G4_TABLE_PREFIX.'member'; // 회원 테이블\n");
|
||||
fwrite($f, "\$g4['memo_table'] = G4_TABLE_PREFIX.'memo'; // 메모 테이블\n");
|
||||
fwrite($f, "\$g4['poll_table'] = G4_TABLE_PREFIX.'poll'; // 투표 테이블\n");
|
||||
fwrite($f, "\$g4['poll_etc_table'] = G4_TABLE_PREFIX.'poll_etc'; // 투표 기타의견 테이블\n");
|
||||
fwrite($f, "\$g4['point_table'] = G4_TABLE_PREFIX.'point'; // 포인트 테이블\n");
|
||||
fwrite($f, "\$g4['popular_table'] = G4_TABLE_PREFIX.'popular'; // 인기검색어 테이블\n");
|
||||
fwrite($f, "\$g4['scrap_table'] = G4_TABLE_PREFIX.'scrap'; // 게시글 스크랩 테이블\n");
|
||||
fwrite($f, "\$g4['visit_table'] = G4_TABLE_PREFIX.'visit'; // 방문자 테이블\n");
|
||||
fwrite($f, "\$g4['visit_sum_table'] = G4_TABLE_PREFIX.'visit_sum'; // 방문자 합계 테이블\n");
|
||||
fwrite($f, "\$g4['uniqid_table'] = G4_TABLE_PREFIX.'uniqid'; // 유니크한 값을 만드는 테이블\n");
|
||||
fwrite($f, "\$g4['syndi_log_table'] = G4_TABLE_PREFIX.'syndi_log'; // 네이버 신디케이션 컨텐츠 삭제 로그 테이블\n");
|
||||
fwrite($f, "\$g4['autosave_table'] = G4_TABLE_PREFIX.'autosave'; // 게시글 작성시 일정시간마다 글을 임시 저장하는 테이블\n");
|
||||
fwrite($f, "\$g4['cert_history_table'] = G4_TABLE_PREFIX.'cert_history'; // 인증내역 테이블\n");
|
||||
fwrite($f, "define('G5_MYSQL_HOST', '{$mysql_host}');\n");
|
||||
fwrite($f, "define('G5_MYSQL_USER', '{$mysql_user}');\n");
|
||||
fwrite($f, "define('G5_MYSQL_PASSWORD', '{$mysql_pass}');\n");
|
||||
fwrite($f, "define('G5_MYSQL_DB', '{$mysql_db}');\n\n");
|
||||
fwrite($f, "define('G5_TABLE_PREFIX', '{$table_prefix}');\n\n");
|
||||
fwrite($f, "\$g5['write_prefix'] = G5_TABLE_PREFIX.'write_'; // 게시판 테이블명 접두사\n\n");
|
||||
fwrite($f, "\$g5['auth_table'] = G5_TABLE_PREFIX.'auth'; // 관리권한 설정 테이블\n");
|
||||
fwrite($f, "\$g5['config_table'] = G5_TABLE_PREFIX.'config'; // 기본환경 설정 테이블\n");
|
||||
fwrite($f, "\$g5['group_table'] = G5_TABLE_PREFIX.'group'; // 게시판 그룹 테이블\n");
|
||||
fwrite($f, "\$g5['group_member_table'] = G5_TABLE_PREFIX.'group_member'; // 게시판 그룹+회원 테이블\n");
|
||||
fwrite($f, "\$g5['board_table'] = G5_TABLE_PREFIX.'board'; // 게시판 설정 테이블\n");
|
||||
fwrite($f, "\$g5['board_file_table'] = G5_TABLE_PREFIX.'board_file'; // 게시판 첨부파일 테이블\n");
|
||||
fwrite($f, "\$g5['board_good_table'] = G5_TABLE_PREFIX.'board_good'; // 게시물 추천,비추천 테이블\n");
|
||||
fwrite($f, "\$g5['board_new_table'] = G5_TABLE_PREFIX.'board_new'; // 게시판 새글 테이블\n");
|
||||
fwrite($f, "\$g5['login_table'] = G5_TABLE_PREFIX.'login'; // 로그인 테이블 (접속자수)\n");
|
||||
fwrite($f, "\$g5['mail_table'] = G5_TABLE_PREFIX.'mail'; // 회원메일 테이블\n");
|
||||
fwrite($f, "\$g5['member_table'] = G5_TABLE_PREFIX.'member'; // 회원 테이블\n");
|
||||
fwrite($f, "\$g5['memo_table'] = G5_TABLE_PREFIX.'memo'; // 메모 테이블\n");
|
||||
fwrite($f, "\$g5['poll_table'] = G5_TABLE_PREFIX.'poll'; // 투표 테이블\n");
|
||||
fwrite($f, "\$g5['poll_etc_table'] = G5_TABLE_PREFIX.'poll_etc'; // 투표 기타의견 테이블\n");
|
||||
fwrite($f, "\$g5['point_table'] = G5_TABLE_PREFIX.'point'; // 포인트 테이블\n");
|
||||
fwrite($f, "\$g5['popular_table'] = G5_TABLE_PREFIX.'popular'; // 인기검색어 테이블\n");
|
||||
fwrite($f, "\$g5['scrap_table'] = G5_TABLE_PREFIX.'scrap'; // 게시글 스크랩 테이블\n");
|
||||
fwrite($f, "\$g5['visit_table'] = G5_TABLE_PREFIX.'visit'; // 방문자 테이블\n");
|
||||
fwrite($f, "\$g5['visit_sum_table'] = G5_TABLE_PREFIX.'visit_sum'; // 방문자 합계 테이블\n");
|
||||
fwrite($f, "\$g5['uniqid_table'] = G5_TABLE_PREFIX.'uniqid'; // 유니크한 값을 만드는 테이블\n");
|
||||
fwrite($f, "\$g5['syndi_log_table'] = G5_TABLE_PREFIX.'syndi_log'; // 네이버 신디케이션 컨텐츠 삭제 로그 테이블\n");
|
||||
fwrite($f, "\$g5['autosave_table'] = G5_TABLE_PREFIX.'autosave'; // 게시글 작성시 일정시간마다 글을 임시 저장하는 테이블\n");
|
||||
fwrite($f, "\$g5['cert_history_table'] = G5_TABLE_PREFIX.'cert_history'; // 인증내역 테이블\n");
|
||||
fwrite($f, "?>");
|
||||
|
||||
if($shop_install) {
|
||||
fwrite($f, "\n\n<?php\n");
|
||||
fwrite($f, "define('G4_USE_SHOP', true);\n\n");
|
||||
fwrite($f, "define('G5_USE_SHOP', true);\n\n");
|
||||
fwrite($f, "define('SHOP_TABLE_PREFIX', '{$shop_prefix}');\n\n");
|
||||
fwrite($f, "\$g4['shop_default_table'] = SHOP_TABLE_PREFIX.'default'; // 쇼핑몰설정 테이블\n");
|
||||
fwrite($f, "\$g4['shop_banner_table'] = SHOP_TABLE_PREFIX.'banner'; // 배너 테이블\n");
|
||||
fwrite($f, "\$g4['shop_cart_table'] = SHOP_TABLE_PREFIX.'cart'; // 장바구니 테이블\n");
|
||||
fwrite($f, "\$g4['shop_category_table'] = SHOP_TABLE_PREFIX.'category'; // 상품분류 테이블\n");
|
||||
fwrite($f, "\$g4['shop_content_table'] = SHOP_TABLE_PREFIX.'content'; // 내용(컨텐츠)정보 테이블\n");
|
||||
fwrite($f, "\$g4['shop_delivery_table'] = SHOP_TABLE_PREFIX.'delivery'; // 배송정보 테이블\n");
|
||||
fwrite($f, "\$g4['shop_event_table'] = SHOP_TABLE_PREFIX.'event'; // 이벤트 테이블\n");
|
||||
fwrite($f, "\$g4['shop_event_item_table'] = SHOP_TABLE_PREFIX.'event_item'; // 상품, 이벤트 연결 테이블\n");
|
||||
fwrite($f, "\$g4['shop_faq_table'] = SHOP_TABLE_PREFIX.'faq'; // 자주하시는 질문 테이블\n");
|
||||
fwrite($f, "\$g4['shop_faq_master_table'] = SHOP_TABLE_PREFIX.'faq_master'; // 자주하시는 질문 마스터 테이블\n");
|
||||
fwrite($f, "\$g4['shop_item_table'] = SHOP_TABLE_PREFIX.'item'; // 상품 테이블\n");
|
||||
fwrite($f, "\$g4['shop_item_option_table'] = SHOP_TABLE_PREFIX.'item_option'; // 상품옵션 테이블\n");
|
||||
fwrite($f, "\$g4['shop_item_use_table'] = SHOP_TABLE_PREFIX.'item_use'; // 상품 사용후기 테이블\n");
|
||||
fwrite($f, "\$g4['shop_item_qa_table'] = SHOP_TABLE_PREFIX.'item_qa'; // 상품 질문답변 테이블\n");
|
||||
fwrite($f, "\$g4['shop_item_relation_table'] = SHOP_TABLE_PREFIX.'item_relation'; // 관련 상품 테이블\n");
|
||||
fwrite($f, "\$g4['shop_new_win_table'] = SHOP_TABLE_PREFIX.'new_win'; // 새창 테이블\n");
|
||||
fwrite($f, "\$g4['shop_onlinecalc_table'] = SHOP_TABLE_PREFIX.'onlinecalc'; // 온라인견적 테이블\n");
|
||||
fwrite($f, "\$g4['shop_order_table'] = SHOP_TABLE_PREFIX.'order'; // 주문서 테이블\n");
|
||||
fwrite($f, "\$g4['shop_wish_table'] = SHOP_TABLE_PREFIX.'wish'; // 보관함(위시리스트) 테이블\n");
|
||||
fwrite($f, "\$g4['shop_coupon_table'] = SHOP_TABLE_PREFIX.'coupon'; // 쿠폰정보 테이블\n");
|
||||
fwrite($f, "\$g4['shop_sendcost_table'] = SHOP_TABLE_PREFIX.'sendcost'; // 추가배송비 테이블\n");
|
||||
fwrite($f, "\$g4['shop_personalpay_table'] = SHOP_TABLE_PREFIX.'personalpay'; // 개인결제 정보 테이블\n");
|
||||
fwrite($f, "\$g4['shop_order_address_table'] = SHOP_TABLE_PREFIX.'order_address'; // 배송지이력 정보 테이블\n");
|
||||
fwrite($f, "\$g5['shop_default_table'] = SHOP_TABLE_PREFIX.'default'; // 쇼핑몰설정 테이블\n");
|
||||
fwrite($f, "\$g5['shop_banner_table'] = SHOP_TABLE_PREFIX.'banner'; // 배너 테이블\n");
|
||||
fwrite($f, "\$g5['shop_cart_table'] = SHOP_TABLE_PREFIX.'cart'; // 장바구니 테이블\n");
|
||||
fwrite($f, "\$g5['shop_category_table'] = SHOP_TABLE_PREFIX.'category'; // 상품분류 테이블\n");
|
||||
fwrite($f, "\$g5['shop_content_table'] = SHOP_TABLE_PREFIX.'content'; // 내용(컨텐츠)정보 테이블\n");
|
||||
fwrite($f, "\$g5['shop_delivery_table'] = SHOP_TABLE_PREFIX.'delivery'; // 배송정보 테이블\n");
|
||||
fwrite($f, "\$g5['shop_event_table'] = SHOP_TABLE_PREFIX.'event'; // 이벤트 테이블\n");
|
||||
fwrite($f, "\$g5['shop_event_item_table'] = SHOP_TABLE_PREFIX.'event_item'; // 상품, 이벤트 연결 테이블\n");
|
||||
fwrite($f, "\$g5['shop_faq_table'] = SHOP_TABLE_PREFIX.'faq'; // 자주하시는 질문 테이블\n");
|
||||
fwrite($f, "\$g5['shop_faq_master_table'] = SHOP_TABLE_PREFIX.'faq_master'; // 자주하시는 질문 마스터 테이블\n");
|
||||
fwrite($f, "\$g5['shop_item_table'] = SHOP_TABLE_PREFIX.'item'; // 상품 테이블\n");
|
||||
fwrite($f, "\$g5['shop_item_option_table'] = SHOP_TABLE_PREFIX.'item_option'; // 상품옵션 테이블\n");
|
||||
fwrite($f, "\$g5['shop_item_use_table'] = SHOP_TABLE_PREFIX.'item_use'; // 상품 사용후기 테이블\n");
|
||||
fwrite($f, "\$g5['shop_item_qa_table'] = SHOP_TABLE_PREFIX.'item_qa'; // 상품 질문답변 테이블\n");
|
||||
fwrite($f, "\$g5['shop_item_relation_table'] = SHOP_TABLE_PREFIX.'item_relation'; // 관련 상품 테이블\n");
|
||||
fwrite($f, "\$g5['shop_new_win_table'] = SHOP_TABLE_PREFIX.'new_win'; // 새창 테이블\n");
|
||||
fwrite($f, "\$g5['shop_onlinecalc_table'] = SHOP_TABLE_PREFIX.'onlinecalc'; // 온라인견적 테이블\n");
|
||||
fwrite($f, "\$g5['shop_order_table'] = SHOP_TABLE_PREFIX.'order'; // 주문서 테이블\n");
|
||||
fwrite($f, "\$g5['shop_wish_table'] = SHOP_TABLE_PREFIX.'wish'; // 보관함(위시리스트) 테이블\n");
|
||||
fwrite($f, "\$g5['shop_coupon_table'] = SHOP_TABLE_PREFIX.'coupon'; // 쿠폰정보 테이블\n");
|
||||
fwrite($f, "\$g5['shop_sendcost_table'] = SHOP_TABLE_PREFIX.'sendcost'; // 추가배송비 테이블\n");
|
||||
fwrite($f, "\$g5['shop_personalpay_table'] = SHOP_TABLE_PREFIX.'personalpay'; // 개인결제 정보 테이블\n");
|
||||
fwrite($f, "\$g5['shop_order_address_table'] = SHOP_TABLE_PREFIX.'order_address'; // 배송지이력 정보 테이블\n");
|
||||
fwrite($f, "?>");
|
||||
}
|
||||
|
||||
fclose($f);
|
||||
@chmod($file, G4_FILE_PERMISSION);
|
||||
@chmod($file, G5_FILE_PERMISSION);
|
||||
?>
|
||||
|
||||
<li>DB설정 파일 생성 완료 (<?php echo $file ?>)</li>
|
||||
|
||||
Reference in New Issue
Block a user