diff --git a/adm/config_form.php b/adm/config_form.php index c9c63ed95..9008c8285 100644 --- a/adm/config_form.php +++ b/adm/config_form.php @@ -95,11 +95,23 @@ if(!isset($config['cf_cert_use'])) { ADD `cf_cert_ipin` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_use`, ADD `cf_cert_hp` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_ipin`, ADD `cf_cert_kcb_cd` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_hp`, - ADD `cf_cert_kcp_cd` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_kcb_cd` ", true); + ADD `cf_cert_kcp_cd` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_kcb_cd`, + ADD `cf_cert_limit` INT(11) NOT NULL DEFAULT '0' AFTER `cf_cert_kcp_cd` ", true); sql_query(" ALTER TABLE `{$g4['member_table']}` CHANGE `mb_hp_certify` `mb_certify` VARCHAR(20) NOT NULL DEFAULT '' ", true); sql_query(" update {$g4['member_table']} set mb_certify = 'hp' where mb_certify = '1' "); sql_query(" update {$g4['member_table']} set mb_certify = '' where mb_certify = '0' "); + sql_query(" CREATE TABLE IF NOT EXISTS `{$g4['cert_history_table']}` ( + `cr_id` int(11) NOT NULL auto_increment, + `mb_id` varchar(255) NOT NULL DEFAULT '', + `cr_company` varchar(255) NOT NULL DEFAULT '', + `cr_method` varchar(255) NOT NULL DEFAULT '', + `cr_ip` varchar(255) NOT NULL DEFAULT '', + `cr_date` date NOT NULL DEFAULT '0000-00-00', + `cr_time` time NOT NULL DEFAULT '00:00:00', + PRIMARY KEY (`cr_id`), + KEY `mb_id` (`mb_id`) + )", true); } $g4['title'] = '환경설정'; @@ -641,6 +653,13 @@ $pg_anchor = '