g4s merge 충돌 수정
This commit is contained in:
@ -54,7 +54,10 @@ if (!isset($board['bo_use_sns'])) {
|
||||
|
||||
$result = sql_query(" select bo_table from `{$g4['board_table']}` ");
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
sql_query(" ALTER TABLE `{$g4['write_prefix']}{$row['bo_table']}` ADD `wr_sns` SET( 'fb', 'tw', 'me', 'gp' ) NOT NULL AFTER `wr_ip` ", false);
|
||||
sql_query(" ALTER TABLE `{$g4['write_prefix']}{$row['bo_table']}`
|
||||
ADD `wr_facebook_user` VARCHAR(255) NOT NULL DEFAULT '' AFTER `wr_ip`,
|
||||
ADD `wr_twitter_user` VARCHAR(255) NOT NULL DEFAULT '' AFTER `wr_facebook_user`,
|
||||
ADD `wr_me2day_user` VARCHAR(255) NOT NULL DEFAULT '' AFTER `wr_twitter_user` ", false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,42 +1,45 @@
|
||||
CREATE TABLE `__TABLE_NAME__` (
|
||||
`wr_id` int(11) NOT NULL auto_increment,
|
||||
`wr_num` int(11) NOT NULL default '0',
|
||||
`wr_reply` varchar(10) NOT NULL default '',
|
||||
`wr_parent` int(11) NOT NULL default '0',
|
||||
`wr_is_comment` tinyint(4) NOT NULL default '0',
|
||||
`wr_comment` int(11) NOT NULL default '0',
|
||||
`wr_comment_reply` varchar(5) NOT NULL default '',
|
||||
`ca_name` varchar(255) NOT NULL default '',
|
||||
`wr_option` set('html1','html2','secret','mail') NOT NULL default '',
|
||||
`wr_subject` varchar(255) NOT NULL default '',
|
||||
`wr_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`wr_num` int(11) NOT NULL DEFAULT '0',
|
||||
`wr_reply` varchar(10) NOT NULL,
|
||||
`wr_parent` int(11) NOT NULL DEFAULT '0',
|
||||
`wr_is_comment` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`wr_comment` int(11) NOT NULL DEFAULT '0',
|
||||
`wr_comment_reply` varchar(5) NOT NULL,
|
||||
`ca_name` varchar(255) NOT NULL,
|
||||
`wr_option` set('html1','html2','secret','mail') NOT NULL,
|
||||
`wr_subject` varchar(255) NOT NULL,
|
||||
`wr_content` text NOT NULL,
|
||||
`wr_link1` text NOT NULL,
|
||||
`wr_link2` text NOT NULL,
|
||||
`wr_link1_hit` int(11) NOT NULL default '0',
|
||||
`wr_link2_hit` int(11) NOT NULL default '0',
|
||||
`wr_trackback` varchar(255) NOT NULL default '',
|
||||
`wr_hit` int(11) NOT NULL default '0',
|
||||
`wr_good` int(11) NOT NULL default '0',
|
||||
`wr_nogood` int(11) NOT NULL default '0',
|
||||
`mb_id` varchar(255) NOT NULL default '',
|
||||
`wr_password` varchar(255) NOT NULL default '',
|
||||
`wr_name` varchar(255) NOT NULL default '',
|
||||
`wr_email` varchar(255) NOT NULL default '',
|
||||
`wr_homepage` varchar(255) NOT NULL default '',
|
||||
`wr_datetime` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`wr_last` varchar(19) NOT NULL default '',
|
||||
`wr_ip` varchar(255) NOT NULL default '',
|
||||
`wr_1` varchar(255) NOT NULL default '',
|
||||
`wr_2` varchar(255) NOT NULL default '',
|
||||
`wr_3` varchar(255) NOT NULL default '',
|
||||
`wr_4` varchar(255) NOT NULL default '',
|
||||
`wr_5` varchar(255) NOT NULL default '',
|
||||
`wr_6` varchar(255) NOT NULL default '',
|
||||
`wr_7` varchar(255) NOT NULL default '',
|
||||
`wr_8` varchar(255) NOT NULL default '',
|
||||
`wr_9` varchar(255) NOT NULL default '',
|
||||
`wr_10` varchar(255) NOT NULL default '',
|
||||
PRIMARY KEY (`wr_id`),
|
||||
`wr_link1_hit` int(11) NOT NULL DEFAULT '0',
|
||||
`wr_link2_hit` int(11) NOT NULL DEFAULT '0',
|
||||
`wr_trackback` varchar(255) NOT NULL,
|
||||
`wr_hit` int(11) NOT NULL DEFAULT '0',
|
||||
`wr_good` int(11) NOT NULL DEFAULT '0',
|
||||
`wr_nogood` int(11) NOT NULL DEFAULT '0',
|
||||
`mb_id` varchar(255) NOT NULL,
|
||||
`wr_password` varchar(255) NOT NULL,
|
||||
`wr_name` varchar(255) NOT NULL,
|
||||
`wr_email` varchar(255) NOT NULL,
|
||||
`wr_homepage` varchar(255) NOT NULL,
|
||||
`wr_datetime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`wr_last` varchar(19) NOT NULL,
|
||||
`wr_ip` varchar(255) NOT NULL,
|
||||
`wr_facebook_user` varchar(255) NOT NULL,
|
||||
`wr_twitter_user` varchar(255) NOT NULL,
|
||||
`wr_me2day_user` varchar(255) NOT NULL,
|
||||
`wr_1` varchar(255) NOT NULL,
|
||||
`wr_2` varchar(255) NOT NULL,
|
||||
`wr_3` varchar(255) NOT NULL,
|
||||
`wr_4` varchar(255) NOT NULL,
|
||||
`wr_5` varchar(255) NOT NULL,
|
||||
`wr_6` varchar(255) NOT NULL,
|
||||
`wr_7` varchar(255) NOT NULL,
|
||||
`wr_8` varchar(255) NOT NULL,
|
||||
`wr_9` varchar(255) NOT NULL,
|
||||
`wr_10` varchar(255) NOT NULL,
|
||||
PRIMARY KEY (`wr_id`),
|
||||
KEY `wr_num_reply_parent` (`wr_num`,`wr_reply`,`wr_parent`),
|
||||
KEY `wr_is_comment` (`wr_is_comment`,`wr_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
@ -145,6 +145,36 @@ if (isset($_FILES['mb_icon']) && is_uploaded_file($_FILES['mb_icon']['tmp_name']
|
||||
// 관리자님 회원정보
|
||||
$admin = get_admin('super');
|
||||
|
||||
//===============================================================
|
||||
// 휴대폰 본인확인
|
||||
//---------------------------------------------------------------
|
||||
$sql_hp_certify = "";
|
||||
$md5_cert_no = get_session("ss_kcpcert_no");
|
||||
if ($config['cf_kcpcert_use'] && $md5_cert_no) {
|
||||
// 해시값이 같은 경우에만 휴대폰 본인확인 값을 저장한다.
|
||||
if (get_session("ss_kcpcert_hash") == md5($mb_hp.$mb_name.$md5_cert_no)) {
|
||||
$sql_hp_certify .= " , mb_hp = '{$mb_hp}' ";
|
||||
$sql_hp_certify .= " , mb_hp_certify = '{$_SESSION['ss_kcpcert_hp_certify']}' ";
|
||||
$sql_hp_certify .= " , mb_adult = '{$_SESSION['ss_kcpcert_adult']}' ";
|
||||
$sql_hp_certify .= " , mb_birth = '{$_SESSION['ss_kcpcert_birth']}' ";
|
||||
$sql_hp_certify .= " , mb_sex = '{$_SESSION['ss_kcpcert_sex']}' ";
|
||||
} else {
|
||||
$sql_hp_certify .= " , mb_hp = '' ";
|
||||
$sql_hp_certify .= " , mb_hp_certify = 0 ";
|
||||
$sql_hp_certify .= " , mb_adult = 0 ";
|
||||
$sql_hp_certify .= " , mb_birth = '' ";
|
||||
$sql_hp_certify .= " , mb_sex = '' ";
|
||||
}
|
||||
} else {
|
||||
if (get_session("ss_reg_mb_name") != $mb_name || get_session("ss_reg_mb_hp") != $mb_hp) {
|
||||
$sql_hp_certify .= " , mb_hp = '{$mb_hp}' ";
|
||||
$sql_hp_certify .= " , mb_hp_certify = 0 ";
|
||||
$sql_hp_certify .= " , mb_adult = 0 ";
|
||||
$sql_hp_certify .= " , mb_birth = '' ";
|
||||
$sql_hp_certify .= " , mb_sex = '' ";
|
||||
}
|
||||
}
|
||||
//===============================================================
|
||||
|
||||
if ($w == '') {
|
||||
|
||||
@ -159,7 +189,6 @@ if ($w == '') {
|
||||
mb_email = '{$mb_email}',
|
||||
mb_homepage = '{$mb_homepage}',
|
||||
mb_tel = '{$mb_tel}',
|
||||
mb_hp = '{$mb_hp}',
|
||||
mb_zip1 = '{$mb_zip1}',
|
||||
mb_zip2 = '{$mb_zip2}',
|
||||
mb_addr1 = '{$mb_addr1}',
|
||||
@ -185,7 +214,9 @@ if ($w == '') {
|
||||
mb_7 = '{$mb_7}',
|
||||
mb_8 = '{$mb_8}',
|
||||
mb_9 = '{$mb_9}',
|
||||
mb_10 = '{$mb_10}' ";
|
||||
mb_10 = '{$mb_10}'
|
||||
{$sql_hp_certify} ";
|
||||
|
||||
// 이메일 인증을 사용하지 않는다면 이메일 인증시간을 바로 넣는다
|
||||
if (!$config['cf_use_email_certify'])
|
||||
$sql .= " , mb_email_certify = '".G4_TIME_YMDHIS."' ";
|
||||
@ -264,29 +295,6 @@ if ($w == '') {
|
||||
if ($old_email != $mb_email && $config['cf_use_email_certify'])
|
||||
$sql_email_certify = " , mb_email_certify = '' ";
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
// 휴대폰 본인확인
|
||||
/////////////////////////////////////////////////////////////////
|
||||
$sql_hp_certify = "";
|
||||
$md5_cert_no = get_session("ss_kcpcert_no");
|
||||
if ($config['cf_kcpcert_use'] && $md5_cert_no) {
|
||||
$hash_data = md5($mb_hp.$mb_name.$md5_cert_no);
|
||||
// 해시값이 틀린 경우에는 휴대폰 인증 값을 무효화 한다.
|
||||
if (get_session("ss_kcpcert_hash") != $hash_data) {
|
||||
$sql_hp_certify .= " , mb_hp = '' ";
|
||||
$sql_hp_certify .= " , mb_hp_certify = 0 ";
|
||||
$sql_hp_certify .= " , mb_adult = 0 ";
|
||||
}
|
||||
} else {
|
||||
if (get_session("ss_reg_mb_name") != $mb_name ||
|
||||
get_session("ss_reg_mb_hp") != $mb_hp) {
|
||||
$sql_hp_certify .= " , mb_hp = '{$mb_hp}' ";
|
||||
$sql_hp_certify .= " , mb_hp_certify = 0 ";
|
||||
$sql_hp_certify .= " , mb_adult = 0 ";
|
||||
}
|
||||
}
|
||||
/////////////////////////////////////////////////////////////////
|
||||
|
||||
$sql = " update {$g4['member_table']}
|
||||
set mb_nick = '{$mb_nick}',
|
||||
mb_mailling = '{$mb_mailling}',
|
||||
@ -341,6 +349,10 @@ if ($w == '') {
|
||||
// 사용자 코드 실행
|
||||
@include_once ($member_skin_path.'/register_form_update.tail.skin.php');
|
||||
|
||||
unset($_SESSION['ss_kcpcert_no']);
|
||||
unset($_SESSION['ss_kcpcert_hash']);
|
||||
unset($_SESSION['ss_kcpcert_hp_certify']);
|
||||
unset($_SESSION['ss_kcpcert_adult']);
|
||||
|
||||
if ($msg)
|
||||
echo '<script>alert(\''.$msg.'\');</script>';
|
||||
|
||||
@ -16,8 +16,6 @@ if (!$bo_table) {
|
||||
|
||||
check_device($board['bo_device']);
|
||||
|
||||
@include_once ($board_skin_path.'/write.head.skin.php');
|
||||
|
||||
$notice_array = explode(',', trim($board['bo_notice']));
|
||||
|
||||
if (!($w == '' || $w == 'u' || $w == 'r')) {
|
||||
@ -188,7 +186,7 @@ if ($config['cf_kcpcert_use'] != '' && !$is_admin) {
|
||||
}
|
||||
|
||||
if ($board['bo_use_cert'] == 'adult' && !$member['mb_adult']) {
|
||||
alert('이 게시판은 휴대폰 본인확인으로 성인인증 된 회원님만 글쓰기가 가능합니다.\\n\\n성인인데 글읽기가 안된다면 회원정보 수정에서 휴대폰 본인확인을\\n다시 해주시기 바랍니다.', G4_URL);
|
||||
alert('이 게시판은 휴대폰 본인확인으로 성인인증 된 회원님만 글쓰기가 가능합니다.\\n\\n성인인데 글읽기가 안된다면 회원정보 수정에서 휴대폰 본인확인을 다시 해주시기 바랍니다.', G4_URL);
|
||||
}
|
||||
}
|
||||
|
||||
@ -375,6 +373,7 @@ if (!G4_IS_MOBILE && $board['bo_use_dhtml_editor'] && $member['mb_level'] >= $bo
|
||||
$editor_html = editor_html('wr_content', $content, $is_dhtml_editor);
|
||||
|
||||
include_once(G4_PATH.'/head.sub.php');
|
||||
@include_once ($board_skin_path.'/write.head.skin.php');
|
||||
include_once('./board_head.php');
|
||||
|
||||
$action_url = https_url(G4_BBS_DIR)."/write_update.php";
|
||||
@ -383,7 +382,6 @@ echo '<!-- skin : '.$board_skin_path.' -->';
|
||||
include_once ($board_skin_path.'/write.skin.php');
|
||||
|
||||
include_once('./board_tail.php');
|
||||
include_once(G4_PATH.'/tail.sub.php');
|
||||
|
||||
@include_once ($board_skin_path.'/write.tail.skin.php');
|
||||
include_once(G4_PATH.'/tail.sub.php');
|
||||
?>
|
||||
@ -134,6 +134,9 @@ if ($w == 'c') // 댓글 입력
|
||||
$tmp_comment_reply = '';
|
||||
}
|
||||
|
||||
// SNS 등록
|
||||
include_once("./write_comment_update.sns.php");
|
||||
|
||||
$sql = " insert into $write_table
|
||||
set ca_name = '{$wr['ca_name']}',
|
||||
wr_option = '$wr_secret',
|
||||
@ -153,6 +156,9 @@ if ($w == 'c') // 댓글 입력
|
||||
wr_datetime = '".G4_TIME_YMDHIS."',
|
||||
wr_last = '',
|
||||
wr_ip = '{$_SERVER['REMOTE_ADDR']}',
|
||||
wr_facebook_user = '$wr_facebook_user',
|
||||
wr_twitter_user = '$wr_twitter_user',
|
||||
wr_me2day_user = '$wr_me2day_user',
|
||||
wr_1 = '$wr_1',
|
||||
wr_2 = '$wr_2',
|
||||
wr_3 = '$wr_3',
|
||||
@ -167,13 +173,8 @@ if ($w == 'c') // 댓글 입력
|
||||
|
||||
$comment_id = mysql_insert_id();
|
||||
|
||||
// SNS 등록
|
||||
$wr_sns = array();
|
||||
include_once("./write_comment_update.sns.php");
|
||||
$wr_sns = implode(",", $wr_sns);
|
||||
|
||||
// 원글에 댓글수 증가 & 마지막 시간 반영
|
||||
sql_query(" update $write_table set wr_comment = wr_comment + 1, wr_sns = '$wr_sns', wr_last = '".G4_TIME_YMDHIS."' where wr_id = '$wr_id' ");
|
||||
sql_query(" update $write_table set wr_comment = wr_comment + 1, wr_last = '".G4_TIME_YMDHIS."' where wr_id = '$wr_id' ");
|
||||
|
||||
// 새글 INSERT
|
||||
sql_query(" insert into {$g4['board_new_table']} ( bo_table, wr_id, wr_parent, bn_datetime, mb_id ) values ( '$bo_table', '$comment_id', '$wr_id', '".G4_TIME_YMDHIS."', '{$member['mb_id']}' ) ");
|
||||
|
||||
@ -10,6 +10,7 @@ set_cookie('ck_me2day_checked' , false, 86400*31);
|
||||
//============================================================================
|
||||
// 페이스북
|
||||
//----------------------------------------------------------------------------
|
||||
$wr_facebook_user = "";
|
||||
if ($_POST['facebook_checked']) {
|
||||
include_once(G4_SNS_PATH."/facebook/src/facebook.php");
|
||||
|
||||
@ -39,7 +40,7 @@ if ($_POST['facebook_checked']) {
|
||||
}
|
||||
}
|
||||
|
||||
$wr_sns[] = "fb";
|
||||
$wr_facebook_user = get_session("ss_facebook_user");
|
||||
}
|
||||
//============================================================================
|
||||
|
||||
@ -47,6 +48,7 @@ if ($_POST['facebook_checked']) {
|
||||
//============================================================================
|
||||
// 트위터
|
||||
//----------------------------------------------------------------------------
|
||||
$wr_twitter_user = "";
|
||||
if ($_POST['twitter_checked']) {
|
||||
include_once(G4_SNS_PATH."/twitter/twitteroauth/twitteroauth.php");
|
||||
include_once(G4_SNS_PATH."/twitter/twitterconfig.php");
|
||||
@ -63,7 +65,7 @@ if ($_POST['twitter_checked']) {
|
||||
set_cookie('ck_twitter_checked', true, 86400*31);
|
||||
}
|
||||
|
||||
$wr_sns[] = "tw";
|
||||
$wr_twitter_user = get_session("ss_twitter_user");
|
||||
}
|
||||
//============================================================================
|
||||
|
||||
@ -71,6 +73,7 @@ if ($_POST['twitter_checked']) {
|
||||
//============================================================================
|
||||
// 미투데이
|
||||
//----------------------------------------------------------------------------
|
||||
$wr_me2day_user = "";
|
||||
if ($_POST['me2day_checked']) {
|
||||
if (!empty($_SESSION['me2day']['user_id']) && !empty($_SESSION['me2day']['user_key'])) {
|
||||
$user_id = $_SESSION['me2day']['user_id'];
|
||||
@ -81,7 +84,7 @@ if ($_POST['me2day_checked']) {
|
||||
set_cookie('ck_me2day_checked', true, 86400*31);
|
||||
}
|
||||
|
||||
$wr_sns[] = "me";
|
||||
$wr_me2day_user = get_session("ss_me2day_user");
|
||||
}
|
||||
//============================================================================
|
||||
?>
|
||||
@ -20,105 +20,106 @@ CREATE TABLE IF NOT EXISTS `g4s_auth` (
|
||||
|
||||
DROP TABLE IF EXISTS `g4s_board`;
|
||||
CREATE TABLE IF NOT EXISTS `g4s_board` (
|
||||
`bo_table` varchar(20) NOT NULL default '',
|
||||
`gr_id` varchar(255) NOT NULL default '',
|
||||
`bo_subject` varchar(255) NOT NULL default '',
|
||||
`bo_table` varchar(20) NOT NULL DEFAULT '',
|
||||
`gr_id` varchar(255) NOT NULL DEFAULT '',
|
||||
`bo_subject` varchar(255) NOT NULL DEFAULT '',
|
||||
`bo_device` enum('both','pc','mobile') NOT NULL DEFAULT 'both',
|
||||
`bo_admin` varchar(255) NOT NULL default '',
|
||||
`bo_list_level` tinyint(4) NOT NULL default '0',
|
||||
`bo_read_level` tinyint(4) NOT NULL default '0',
|
||||
`bo_write_level` tinyint(4) NOT NULL default '0',
|
||||
`bo_reply_level` tinyint(4) NOT NULL default '0',
|
||||
`bo_comment_level` tinyint(4) NOT NULL default '0',
|
||||
`bo_upload_level` tinyint(4) NOT NULL default '0',
|
||||
`bo_download_level` tinyint(4) NOT NULL default '0',
|
||||
`bo_html_level` tinyint(4) NOT NULL default '0',
|
||||
`bo_link_level` tinyint(4) NOT NULL default '0',
|
||||
`bo_trackback_level` tinyint(4) NOT NULL default '0',
|
||||
`bo_count_delete` tinyint(4) NOT NULL default '0',
|
||||
`bo_count_modify` tinyint(4) NOT NULL default '0',
|
||||
`bo_read_point` int(11) NOT NULL default '0',
|
||||
`bo_write_point` int(11) NOT NULL default '0',
|
||||
`bo_comment_point` int(11) NOT NULL default '0',
|
||||
`bo_download_point` int(11) NOT NULL default '0',
|
||||
`bo_use_category` tinyint(4) NOT NULL default '0',
|
||||
`bo_admin` varchar(255) NOT NULL DEFAULT '',
|
||||
`bo_list_level` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_read_level` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_write_level` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_reply_level` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_comment_level` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_upload_level` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_download_level` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_html_level` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_link_level` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_trackback_level` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_count_delete` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_count_modify` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_read_point` int(11) NOT NULL DEFAULT '0',
|
||||
`bo_write_point` int(11) NOT NULL DEFAULT '0',
|
||||
`bo_comment_point` int(11) NOT NULL DEFAULT '0',
|
||||
`bo_download_point` int(11) NOT NULL DEFAULT '0',
|
||||
`bo_use_category` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_category_list` text NOT NULL,
|
||||
`bo_disable_tags` text NOT NULL,
|
||||
`bo_use_sideview` tinyint(4) NOT NULL default '0',
|
||||
`bo_use_file_content` tinyint(4) NOT NULL default '0',
|
||||
`bo_use_secret` tinyint(4) NOT NULL default '0',
|
||||
`bo_use_dhtml_editor` tinyint(4) NOT NULL default '0',
|
||||
`bo_use_rss_view` tinyint(4) NOT NULL default '0',
|
||||
`bo_use_good` tinyint(4) NOT NULL default '0',
|
||||
`bo_use_nogood` tinyint(4) NOT NULL default '0',
|
||||
`bo_use_name` tinyint(4) NOT NULL default '0',
|
||||
`bo_use_signature` tinyint(4) NOT NULL default '0',
|
||||
`bo_use_ip_view` tinyint(4) NOT NULL default '0',
|
||||
`bo_use_trackback` tinyint(4) NOT NULL default '0',
|
||||
`bo_use_list_view` tinyint(4) NOT NULL default '0',
|
||||
`bo_use_list_content` tinyint(4) NOT NULL default '0',
|
||||
`bo_table_width` int(11) NOT NULL default '0',
|
||||
`bo_subject_len` int(11) NOT NULL default '0',
|
||||
`bo_mobile_subject_len` int(11) NOT NULL default '0',
|
||||
`bo_page_rows` int(11) NOT NULL default '0',
|
||||
`bo_mobile_page_rows` int(11) NOT NULL default '0',
|
||||
`bo_new` int(11) NOT NULL default '0',
|
||||
`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 '',
|
||||
`bo_include_tail` varchar(255) NOT NULL default '',
|
||||
`bo_use_sideview` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_use_file_content` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_use_secret` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_use_dhtml_editor` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_use_rss_view` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_use_good` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_use_nogood` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_use_name` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_use_signature` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_use_ip_view` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_use_trackback` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_use_list_view` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_use_list_content` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_table_width` int(11) NOT NULL DEFAULT '0',
|
||||
`bo_subject_len` int(11) NOT NULL DEFAULT '0',
|
||||
`bo_mobile_subject_len` int(11) NOT NULL DEFAULT '0',
|
||||
`bo_page_rows` int(11) NOT NULL DEFAULT '0',
|
||||
`bo_mobile_page_rows` int(11) NOT NULL DEFAULT '0',
|
||||
`bo_new` int(11) NOT NULL DEFAULT '0',
|
||||
`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 '',
|
||||
`bo_include_tail` varchar(255) NOT NULL DEFAULT '',
|
||||
`bo_content_head` text NOT NULL,
|
||||
`bo_mobile_content_head` text NOT NULL,
|
||||
`bo_content_tail` text NOT NULL,
|
||||
`bo_mobile_content_tail` text NOT NULL,
|
||||
`bo_insert_content` text NOT NULL,
|
||||
`bo_gallery_cols` int(11) NOT NULL default '0',
|
||||
`bo_gallery_width` int(11) NOT NULL default '0',
|
||||
`bo_gallery_height` int(11) NOT NULL default '0',
|
||||
`bo_mobile_gallery_cols` int(11) NOT NULL default '0',
|
||||
`bo_mobile_gallery_width` int(11) NOT NULL default '0',
|
||||
`bo_mobile_gallery_height` int(11) NOT NULL default '0',
|
||||
`bo_upload_size` int(11) NOT NULL default '0',
|
||||
`bo_reply_order` tinyint(4) NOT NULL default '0',
|
||||
`bo_use_search` tinyint(4) NOT NULL default '0',
|
||||
`bo_show_menu` tinyint(4) NOT NULL default '0',
|
||||
`bo_order` int(11) NOT NULL default '0',
|
||||
`bo_count_write` int(11) NOT NULL default '0',
|
||||
`bo_count_comment` int(11) NOT NULL default '0',
|
||||
`bo_write_min` int(11) NOT NULL default '0',
|
||||
`bo_write_max` int(11) NOT NULL default '0',
|
||||
`bo_comment_min` int(11) NOT NULL default '0',
|
||||
`bo_comment_max` int(11) NOT NULL default '0',
|
||||
`bo_gallery_cols` int(11) NOT NULL DEFAULT '0',
|
||||
`bo_gallery_width` int(11) NOT NULL DEFAULT '0',
|
||||
`bo_gallery_height` int(11) NOT NULL DEFAULT '0',
|
||||
`bo_mobile_gallery_cols` int(11) NOT NULL DEFAULT '0',
|
||||
`bo_mobile_gallery_width` int(11) NOT NULL DEFAULT '0',
|
||||
`bo_mobile_gallery_height` int(11) NOT NULL DEFAULT '0',
|
||||
`bo_upload_size` int(11) NOT NULL DEFAULT '0',
|
||||
`bo_reply_order` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_use_search` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_show_menu` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_order` int(11) NOT NULL DEFAULT '0',
|
||||
`bo_count_write` int(11) NOT NULL DEFAULT '0',
|
||||
`bo_count_comment` int(11) NOT NULL DEFAULT '0',
|
||||
`bo_write_min` int(11) NOT NULL DEFAULT '0',
|
||||
`bo_write_max` int(11) NOT NULL DEFAULT '0',
|
||||
`bo_comment_min` int(11) NOT NULL DEFAULT '0',
|
||||
`bo_comment_max` int(11) NOT NULL DEFAULT '0',
|
||||
`bo_notice` text NOT NULL,
|
||||
`bo_upload_count` tinyint(4) NOT NULL default '0',
|
||||
`bo_use_email` tinyint(4) NOT NULL default '0',
|
||||
`bo_upload_count` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_use_email` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_use_cert` enum('','cert','adult') NOT NULL DEFAULT '',
|
||||
`bo_sort_field` varchar(255) NOT NULL default '',
|
||||
`bo_1_subj` varchar(255) NOT NULL default '',
|
||||
`bo_2_subj` varchar(255) NOT NULL default '',
|
||||
`bo_3_subj` varchar(255) NOT NULL default '',
|
||||
`bo_4_subj` varchar(255) NOT NULL default '',
|
||||
`bo_5_subj` varchar(255) NOT NULL default '',
|
||||
`bo_6_subj` varchar(255) NOT NULL default '',
|
||||
`bo_7_subj` varchar(255) NOT NULL default '',
|
||||
`bo_8_subj` varchar(255) NOT NULL default '',
|
||||
`bo_9_subj` varchar(255) NOT NULL default '',
|
||||
`bo_10_subj` varchar(255) NOT NULL default '',
|
||||
`bo_1` varchar(255) NOT NULL default '',
|
||||
`bo_2` varchar(255) NOT NULL default '',
|
||||
`bo_3` varchar(255) NOT NULL default '',
|
||||
`bo_4` varchar(255) NOT NULL default '',
|
||||
`bo_5` varchar(255) NOT NULL default '',
|
||||
`bo_6` varchar(255) NOT NULL default '',
|
||||
`bo_7` varchar(255) NOT NULL default '',
|
||||
`bo_8` varchar(255) NOT NULL default '',
|
||||
`bo_9` varchar(255) NOT NULL default '',
|
||||
`bo_10` varchar(255) NOT NULL default '',
|
||||
PRIMARY KEY (`bo_table`)
|
||||
`bo_use_sns` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`bo_sort_field` varchar(255) NOT NULL DEFAULT '',
|
||||
`bo_1_subj` varchar(255) NOT NULL DEFAULT '',
|
||||
`bo_2_subj` varchar(255) NOT NULL DEFAULT '',
|
||||
`bo_3_subj` varchar(255) NOT NULL DEFAULT '',
|
||||
`bo_4_subj` varchar(255) NOT NULL DEFAULT '',
|
||||
`bo_5_subj` varchar(255) NOT NULL DEFAULT '',
|
||||
`bo_6_subj` varchar(255) NOT NULL DEFAULT '',
|
||||
`bo_7_subj` varchar(255) NOT NULL DEFAULT '',
|
||||
`bo_8_subj` varchar(255) NOT NULL DEFAULT '',
|
||||
`bo_9_subj` varchar(255) NOT NULL DEFAULT '',
|
||||
`bo_10_subj` varchar(255) NOT NULL DEFAULT '',
|
||||
`bo_1` varchar(255) NOT NULL DEFAULT '',
|
||||
`bo_2` varchar(255) NOT NULL DEFAULT '',
|
||||
`bo_3` varchar(255) NOT NULL DEFAULT '',
|
||||
`bo_4` varchar(255) NOT NULL DEFAULT '',
|
||||
`bo_5` varchar(255) NOT NULL DEFAULT '',
|
||||
`bo_6` varchar(255) NOT NULL DEFAULT '',
|
||||
`bo_7` varchar(255) NOT NULL DEFAULT '',
|
||||
`bo_8` varchar(255) NOT NULL DEFAULT '',
|
||||
`bo_9` varchar(255) NOT NULL DEFAULT '',
|
||||
`bo_10` varchar(255) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`bo_table`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
@ -188,117 +189,123 @@ CREATE TABLE IF NOT EXISTS `g4s_board_new` (
|
||||
|
||||
DROP TABLE IF EXISTS `g4s_config`;
|
||||
CREATE TABLE IF NOT EXISTS `g4s_config` (
|
||||
`cf_title` varchar(255) NOT NULL default '',
|
||||
`cf_admin` varchar(255) NOT NULL default '',
|
||||
`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_title` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_admin` varchar(255) NOT NULL DEFAULT '',
|
||||
`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,
|
||||
`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',
|
||||
`cf_use_email_certify` tinyint(4) NOT NULL default '0',
|
||||
`cf_login_point` int(11) NOT NULL default '0',
|
||||
`cf_cut_name` tinyint(4) NOT NULL default '0',
|
||||
`cf_nick_modify` int(11) NOT NULL default '0',
|
||||
`cf_new_skin` varchar(255) NOT NULL default '',
|
||||
`cf_login_skin` varchar(255) NOT NULL default '',
|
||||
`cf_new_rows` int(11) NOT NULL default '0',
|
||||
`cf_search_skin` varchar(255) NOT NULL default '',
|
||||
`cf_connect_skin` varchar(255) NOT NULL default '',
|
||||
`cf_read_point` int(11) NOT NULL default '0',
|
||||
`cf_write_point` int(11) NOT NULL default '0',
|
||||
`cf_comment_point` int(11) NOT NULL default '0',
|
||||
`cf_download_point` int(11) NOT NULL default '0',
|
||||
`cf_search_bgcolor` varchar(255) NOT NULL default '',
|
||||
`cf_search_color` varchar(255) NOT NULL default '',
|
||||
`cf_write_pages` int(11) NOT NULL default '0',
|
||||
`cf_mobile_pages` int(11) NOT NULL default '0',
|
||||
`cf_link_target` varchar(255) NOT NULL default '',
|
||||
`cf_delay_sec` int(11) NOT NULL default '0',
|
||||
`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',
|
||||
`cf_use_email_certify` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_login_point` int(11) NOT NULL DEFAULT '0',
|
||||
`cf_cut_name` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_nick_modify` int(11) NOT NULL DEFAULT '0',
|
||||
`cf_new_skin` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_login_skin` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_new_rows` int(11) NOT NULL DEFAULT '0',
|
||||
`cf_search_skin` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_connect_skin` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_read_point` int(11) NOT NULL DEFAULT '0',
|
||||
`cf_write_point` int(11) NOT NULL DEFAULT '0',
|
||||
`cf_comment_point` int(11) NOT NULL DEFAULT '0',
|
||||
`cf_download_point` int(11) NOT NULL DEFAULT '0',
|
||||
`cf_search_bgcolor` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_search_color` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_write_pages` int(11) NOT NULL DEFAULT '0',
|
||||
`cf_mobile_pages` int(11) NOT NULL DEFAULT '0',
|
||||
`cf_link_target` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_delay_sec` int(11) NOT NULL DEFAULT '0',
|
||||
`cf_filter` text NOT NULL,
|
||||
`cf_possible_ip` text NOT NULL,
|
||||
`cf_intercept_ip` text NOT NULL,
|
||||
`cf_register_skin` varchar(255) NOT NULL default 'basic',
|
||||
`cf_member_skin` varchar(255) NOT NULL default '',
|
||||
`cf_use_homepage` tinyint(4) NOT NULL default '0',
|
||||
`cf_req_homepage` tinyint(4) NOT NULL default '0',
|
||||
`cf_use_tel` tinyint(4) NOT NULL default '0',
|
||||
`cf_req_tel` tinyint(4) NOT NULL default '0',
|
||||
`cf_use_hp` tinyint(4) NOT NULL default '0',
|
||||
`cf_req_hp` tinyint(4) NOT NULL default '0',
|
||||
`cf_use_addr` tinyint(4) NOT NULL default '0',
|
||||
`cf_req_addr` tinyint(4) NOT NULL default '0',
|
||||
`cf_use_signature` tinyint(4) NOT NULL default '0',
|
||||
`cf_req_signature` tinyint(4) NOT NULL default '0',
|
||||
`cf_use_profile` tinyint(4) NOT NULL default '0',
|
||||
`cf_req_profile` tinyint(4) NOT NULL default '0',
|
||||
`cf_register_level` tinyint(4) NOT NULL default '0',
|
||||
`cf_register_point` int(11) NOT NULL default '0',
|
||||
`cf_icon_level` tinyint(4) NOT NULL default '0',
|
||||
`cf_use_recommend` tinyint(4) NOT NULL default '0',
|
||||
`cf_recommend_point` int(11) NOT NULL default '0',
|
||||
`cf_leave_day` int(11) NOT NULL default '0',
|
||||
`cf_search_part` int(11) NOT NULL default '0',
|
||||
`cf_email_use` tinyint(4) NOT NULL default '0',
|
||||
`cf_email_wr_super_admin` tinyint(4) NOT NULL default '0',
|
||||
`cf_email_wr_group_admin` tinyint(4) NOT NULL default '0',
|
||||
`cf_email_wr_board_admin` tinyint(4) NOT NULL default '0',
|
||||
`cf_email_wr_write` tinyint(4) NOT NULL default '0',
|
||||
`cf_email_wr_comment_all` tinyint(4) NOT NULL default '0',
|
||||
`cf_email_mb_super_admin` tinyint(4) NOT NULL default '0',
|
||||
`cf_email_mb_member` tinyint(4) NOT NULL default '0',
|
||||
`cf_email_po_super_admin` tinyint(4) NOT NULL default '0',
|
||||
`cf_register_skin` varchar(255) NOT NULL DEFAULT 'basic',
|
||||
`cf_member_skin` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_use_homepage` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_req_homepage` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_use_tel` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_req_tel` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_use_hp` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_req_hp` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_use_addr` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_req_addr` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_use_signature` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_req_signature` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_use_profile` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_req_profile` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_register_level` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_register_point` int(11) NOT NULL DEFAULT '0',
|
||||
`cf_icon_level` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_use_recommend` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_recommend_point` int(11) NOT NULL DEFAULT '0',
|
||||
`cf_leave_day` int(11) NOT NULL DEFAULT '0',
|
||||
`cf_search_part` int(11) NOT NULL DEFAULT '0',
|
||||
`cf_email_use` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_email_wr_super_admin` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_email_wr_group_admin` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_email_wr_board_admin` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_email_wr_write` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_email_wr_comment_all` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_email_mb_super_admin` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_email_mb_member` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_email_po_super_admin` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_prohibit_id` text NOT NULL,
|
||||
`cf_prohibit_email` text NOT NULL,
|
||||
`cf_new_del` int(11) NOT NULL default '0',
|
||||
`cf_memo_del` int(11) NOT NULL default '0',
|
||||
`cf_visit_del` int(11) NOT NULL default '0',
|
||||
`cf_popular_del` int(11) NOT NULL default '0',
|
||||
`cf_use_jumin` tinyint(4) NOT NULL default '0',
|
||||
`cf_use_member_icon` tinyint(4) NOT NULL default '0',
|
||||
`cf_member_icon_size` int(11) NOT NULL default '0',
|
||||
`cf_member_icon_width` int(11) NOT NULL default '0',
|
||||
`cf_member_icon_height` int(11) NOT NULL default '0',
|
||||
`cf_login_minutes` int(11) NOT NULL default '0',
|
||||
`cf_image_extension` varchar(255) NOT NULL default '',
|
||||
`cf_flash_extension` varchar(255) NOT NULL default '',
|
||||
`cf_movie_extension` varchar(255) NOT NULL default '',
|
||||
`cf_formmail_is_member` tinyint(4) NOT NULL default '0',
|
||||
`cf_page_rows` int(11) NOT NULL default '0',
|
||||
`cf_visit` varchar(255) NOT NULL default '',
|
||||
`cf_max_po_id` int(11) NOT NULL default '0',
|
||||
`cf_new_del` int(11) NOT NULL DEFAULT '0',
|
||||
`cf_memo_del` int(11) NOT NULL DEFAULT '0',
|
||||
`cf_visit_del` int(11) NOT NULL DEFAULT '0',
|
||||
`cf_popular_del` int(11) NOT NULL DEFAULT '0',
|
||||
`cf_use_jumin` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_use_member_icon` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_member_icon_size` int(11) NOT NULL DEFAULT '0',
|
||||
`cf_member_icon_width` int(11) NOT NULL DEFAULT '0',
|
||||
`cf_member_icon_height` int(11) NOT NULL DEFAULT '0',
|
||||
`cf_login_minutes` int(11) NOT NULL DEFAULT '0',
|
||||
`cf_image_extension` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_flash_extension` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_movie_extension` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_formmail_is_member` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`cf_page_rows` int(11) NOT NULL DEFAULT '0',
|
||||
`cf_visit` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_max_po_id` int(11) NOT NULL DEFAULT '0',
|
||||
`cf_stipulation` text NOT NULL,
|
||||
`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_gcaptcha_mp3` varchar(255) NOT NULL default'',
|
||||
`cf_kcpcert_site_cd` varchar(255) NOT NULL default '',
|
||||
`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_gcaptcha_mp3` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_googl_shorturl_apikey` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_kcpcert_site_cd` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_kcpcert_use` enum('','test','service') NOT NULL DEFAULT '',
|
||||
`cf_1_subj` varchar(255) NOT NULL default '',
|
||||
`cf_2_subj` varchar(255) NOT NULL default '',
|
||||
`cf_3_subj` varchar(255) NOT NULL default '',
|
||||
`cf_4_subj` varchar(255) NOT NULL default '',
|
||||
`cf_5_subj` varchar(255) NOT NULL default '',
|
||||
`cf_6_subj` varchar(255) NOT NULL default '',
|
||||
`cf_7_subj` varchar(255) NOT NULL default '',
|
||||
`cf_8_subj` varchar(255) NOT NULL default '',
|
||||
`cf_9_subj` varchar(255) NOT NULL default '',
|
||||
`cf_10_subj` varchar(255) NOT NULL default '',
|
||||
`cf_1` varchar(255) NOT NULL default '',
|
||||
`cf_2` varchar(255) NOT NULL default '',
|
||||
`cf_3` varchar(255) NOT NULL default '',
|
||||
`cf_4` varchar(255) NOT NULL default '',
|
||||
`cf_5` varchar(255) NOT NULL default '',
|
||||
`cf_6` varchar(255) NOT NULL default '',
|
||||
`cf_7` varchar(255) NOT NULL default '',
|
||||
`cf_8` varchar(255) NOT NULL default '',
|
||||
`cf_9` varchar(255) NOT NULL default '',
|
||||
`cf_10` varchar(255) NOT NULL default ''
|
||||
`cf_facebook_appid` varchar(255) NOT NULL,
|
||||
`cf_facebook_secret` varchar(255) NOT NULL,
|
||||
`cf_twitter_key` varchar(255) NOT NULL,
|
||||
`cf_twitter_secret` varchar(255) NOT NULL,
|
||||
`cf_me2day_key` varchar(255) NOT NULL,
|
||||
`cf_1_subj` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_2_subj` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_3_subj` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_4_subj` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_5_subj` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_6_subj` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_7_subj` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_8_subj` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_9_subj` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_10_subj` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_1` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_2` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_3` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_4` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_5` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_6` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_7` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_8` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_9` varchar(255) NOT NULL DEFAULT '',
|
||||
`cf_10` varchar(255) NOT NULL DEFAULT ''
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
@ -816,9 +816,9 @@ function is_admin($mb_id)
|
||||
// 4.00 에서는 카테고리 테이블을 없애고 보드테이블에 있는 내용으로 대체
|
||||
function get_category_option($bo_table='', $ca_name='')
|
||||
{
|
||||
global $g4, $board;
|
||||
global $g4, $board, $is_admin;
|
||||
|
||||
$categories = explode("|", $board['bo_category_list']); // 구분자가 , 로 되어 있음
|
||||
$categories = explode("|", $board['bo_category_list'].($is_admin?"|공지":"")); // 구분자가 , 로 되어 있음
|
||||
$str = "";
|
||||
for ($i=0; $i<count($categories); $i++) {
|
||||
$category = trim($categories[$i]);
|
||||
|
||||
@ -48,7 +48,7 @@
|
||||
/* 게시판 읽기 */
|
||||
#bo_v {margin-bottom:1.5em;padding-bottom:1.5em}
|
||||
|
||||
#bo_v_cate {padding:0 1em;color:#999;font-size:0.9em;font-weight:bold}
|
||||
#bo_v_table {padding:0 1em;color:#999;font-size:0.9em;font-weight:bold}
|
||||
|
||||
#bo_v_title {padding:0 0.7em 0.5em;font-size:1.2em}
|
||||
|
||||
@ -105,6 +105,10 @@
|
||||
#bo_v_act strong {color:#ff3061}
|
||||
#bo_v_act_good, #bo_v_act_nogood {display:inline-block;width:1px;height:1px;font-size:0;line-height:0;overflow:hidden}
|
||||
|
||||
#bo_v_sns {margin:0 0 2em;padding:0;list-style:none;zoom:1}
|
||||
#bo_v_sns:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_v_sns li {float:left;margin:0 0.5em 0 0}
|
||||
|
||||
#bo_v form {padding-top:1.5em}
|
||||
|
||||
/* 게시판 댓글 */
|
||||
@ -134,4 +138,9 @@
|
||||
#bo_vc_w #char_cnt {display:block;margin-bottom:0.3em}
|
||||
#bo_vc_w textarea {width:99%}
|
||||
|
||||
#bo_vc_sns {margin:0;padding:0;list-style:none;zoom:1}
|
||||
#bo_vc_sns:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_vc_sns li {float:left;margin:0 1em 0 0}
|
||||
#bo_vc_sns input {margin:0 0 0 0.5em}
|
||||
|
||||
#bo_vc form {padding:0}
|
||||
@ -165,6 +165,10 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
// SNS 보내기
|
||||
@include(G4_SKIN_PATH."/board/basic/view.sns.skin.php");
|
||||
?>
|
||||
</section>
|
||||
|
||||
<?php
|
||||
|
||||
@ -112,6 +112,9 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
<td><?php echo $captcha_html; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php
|
||||
@include(G4_SKIN_PATH."/board/basic/view_comment.sns.skin.php");
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">내용</th>
|
||||
<td>
|
||||
|
||||
@ -165,6 +165,10 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
// SNS 보내기
|
||||
@include(G4_SKIN_PATH."/board/basic/view.sns.skin.php");
|
||||
?>
|
||||
</section>
|
||||
|
||||
<?php
|
||||
|
||||
@ -112,6 +112,9 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
<td><?php echo $captcha_html; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php
|
||||
@include(G4_SKIN_PATH."/board/basic/view_comment.sns.skin.php");
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">내용</th>
|
||||
<td>
|
||||
|
||||
@ -1,41 +0,0 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 휴대폰번호 체크
|
||||
if ($msg = valid_mb_hp($mb_hp)) alert($msg, "", true, true);
|
||||
if ($msg = exist_mb_hp($mb_hp, $mb_id)) alert($msg, "", true, true);
|
||||
|
||||
$reg_mb_hp = preg_replace("/[^0-9]/", "", trim($_POST['mb_hp']));
|
||||
|
||||
/* ======================================================================================================= */
|
||||
/* = 휴대폰인증 및 성인인증 = */
|
||||
/* ======================================================================================================= */
|
||||
if($w == '') {
|
||||
// 본인인증체크
|
||||
$kcpcert_no = get_session('ss_kcpcert_no');
|
||||
if(!$kcpcert_no)
|
||||
alert('휴대폰인증이 되지 않았습니다. 휴대폰인증을 해주세요.', '', true, true);
|
||||
|
||||
// 본인인증 hash 체크
|
||||
$reg_hash = md5($reg_mb_hp.$mb_name.$kcpcert_no);
|
||||
if(get_session('ss_kcpcert_hash') != $reg_hash)
|
||||
alert('이름 또는 휴대폰번호가 올바르지 않습니다. 정상적인 방법으로 이용해 주세요.', '', true, true);
|
||||
|
||||
} else if($w == 'u') {
|
||||
// 휴대폰번호 변경체크
|
||||
$old_hp = preg_replace("/[^0-9]/", "", trim($_POST['old_mb_hp']));
|
||||
|
||||
if($old_hp !== $reg_mb_hp) {
|
||||
// 본인인증체크
|
||||
$kcpcert_no = get_session('ss_kcpcert_no');
|
||||
if(!$kcpcert_no)
|
||||
alert('휴대폰번호가 변경됐습니다. 휴대폰인증을 해주세요.', '', true, true);
|
||||
|
||||
// 본인인증 hash 체크
|
||||
$reg_hash = md5($reg_mb_hp.$mb_name.$kcpcert_no);
|
||||
if(get_session('ss_kcpcert_hash') != $reg_hash)
|
||||
alert('이름 또는 휴대폰인증 정보가 올바르지 않습니다. 정상적인 방법으로 이용해 주세요.', '', true, true);
|
||||
}
|
||||
}
|
||||
/* ======================================================================================================= */
|
||||
?>
|
||||
@ -1,9 +1,6 @@
|
||||
<?php
|
||||
include_once('./kcpcert_config.php');
|
||||
|
||||
set_session('ss_kcpcert_no', '');
|
||||
set_session('ss_kcpcert_hash', '');
|
||||
|
||||
$site_cd = "";
|
||||
$ordr_idxx = "";
|
||||
|
||||
@ -134,24 +131,31 @@ if( $cert_enc_use == "Y" )
|
||||
|
||||
$phone_no = hyphen_hp_number($phone_no);
|
||||
|
||||
$sql = " select count(*) as cnt from {$g4['member_table']} where mb_id <> '{$member['mb_id']}' and mb_hp = '{$phone_no}' ";
|
||||
$sql = " select mb_id from {$g4['member_table']} where mb_id <> '{$member['mb_id']}' and mb_hp = '{$phone_no}' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['cnt']) {
|
||||
alert_close("이미 가입되어 있는 휴대폰번호 입니다.");
|
||||
if ($row['mb_id']) {
|
||||
alert_close("이미 가입되어 있는 휴대폰번호 입니다.\\n회원아이디 : ".$row['mb_id']);
|
||||
}
|
||||
|
||||
// hash 데이터
|
||||
$md5_cert_no = md5($cert_no);
|
||||
$hash_data = md5($phone_no.$user_name.$md5_cert_no);
|
||||
set_session("ss_kcpcert_no", $md5_cert_no);
|
||||
set_session("ss_kcpcert_hash", $hash_data);
|
||||
$hash_data = md5($phone_no.$user_name.$md5_cert_no);
|
||||
|
||||
// 성인인증결과
|
||||
$adult_day = date("Ymd", strtotime("-19 years", G4_SERVER_TIME));
|
||||
$adult = ((int)$birth_day <= (int)$adult_day) ? 1 : 0;
|
||||
|
||||
set_session("ss_kcpcert_no", $md5_cert_no);
|
||||
set_session("ss_kcpcert_hash", $hash_data);
|
||||
set_session("ss_kcpcert_hp_certify", 1);
|
||||
set_session("ss_kcpcert_adult", $adult);
|
||||
set_session("ss_kcpcert_birth", $birth_day);
|
||||
set_session("ss_kcpcert_sex", ($sex_code=="01"?"M":"F"));
|
||||
|
||||
/*
|
||||
$sql = " update {$g4['member_table']} set mb_name = '$user_name', mb_hp = '$phone_no', mb_hp_certify = 1, mb_adult = $adult, mb_birth = '$birth_day', mb_sex = '$sex_code' where mb_id = '{$member['mb_id']}' ";
|
||||
sql_query($sql);
|
||||
*/
|
||||
}
|
||||
else if( $res_cd != "0000" )
|
||||
{
|
||||
|
||||
@ -22,10 +22,13 @@ $g4['title'] = '페이스북 콜백';
|
||||
include_once(G4_PATH.'/head.sub.php');
|
||||
|
||||
if ($user) {
|
||||
$sns_name = $user_profile['name'];
|
||||
$g4_sns_url = G4_SNS_URL;
|
||||
$sns_name = $user_profile['name'];
|
||||
$sns_user = $user;
|
||||
|
||||
set_cookie('ck_sns_name', $sns_name, 86400);
|
||||
set_session('ss_facebook_user', $user);
|
||||
|
||||
$g4_sns_url = G4_SNS_URL;
|
||||
|
||||
echo <<<EOT
|
||||
<script>
|
||||
|
||||
@ -14,11 +14,14 @@ include_once(G4_PATH.'/head.sub.php');
|
||||
$result = json_decode(file_get_contents("http://me2day.net/api/noop.json?uid={$user_id}&ukey={$auth_key}&akey=".$config['cf_me2day_key']));
|
||||
if ($result->code == 0) {
|
||||
|
||||
$user = json_decode(file_get_contents("http://me2day.net/api/get_person/{$user_id}.json"));
|
||||
$sns_name = $user->nickname;
|
||||
$g4_sns_url = G4_SNS_URL;
|
||||
$user = json_decode(file_get_contents("http://me2day.net/api/get_person/{$user_id}.json"));
|
||||
$sns_name = $user->nickname;
|
||||
$sns_user = $user->id;
|
||||
|
||||
set_cookie('ck_sns_name', $sns_name, 86400);
|
||||
set_session('ss_me2day_user', $sns_user);
|
||||
|
||||
$g4_sns_url = G4_SNS_URL;
|
||||
|
||||
echo <<<EOT
|
||||
<script>
|
||||
|
||||
@ -16,8 +16,8 @@ require_once(G4_SNS_PATH.'/twitter/twitterconfig.php');
|
||||
|
||||
/* If the oauth_token is old redirect to the connect page. */
|
||||
if (isset($_REQUEST['oauth_token']) && $_SESSION['oauth_token'] !== $_REQUEST['oauth_token']) {
|
||||
$_SESSION['oauth_status'] = 'oldtoken';
|
||||
header('Location: ./clearsessions.php');
|
||||
$_SESSION['oauth_status'] = 'oldtoken';
|
||||
header('Location: ./clearsessions.php');
|
||||
}
|
||||
|
||||
/* Create TwitteroAuth object with app key/secret and token key/secret from default phase */
|
||||
@ -47,12 +47,14 @@ $g4['title'] = '트위터 콜백';
|
||||
include_once(G4_PATH.'/head.sub.php');
|
||||
|
||||
if (200 == $connection->http_code) {
|
||||
|
||||
$content = $connection->get('account/verify_credentials');
|
||||
$sns_name = $content->name;
|
||||
$g4_sns_url = G4_SNS_URL;
|
||||
$content = $connection->get('account/verify_credentials');
|
||||
$sns_name = $content->name;
|
||||
$sns_user = $content->screen_name;
|
||||
|
||||
set_cookie('ck_sns_name', $sns_name, 86400);
|
||||
set_session('ss_twitter_user', $sns_user);
|
||||
|
||||
$g4_sns_url = G4_SNS_URL;
|
||||
|
||||
echo <<<EOT
|
||||
<script>
|
||||
|
||||
@ -6,5 +6,5 @@
|
||||
|
||||
define('CONSUMER_KEY', $config['cf_twitter_key']);
|
||||
define('CONSUMER_SECRET', $config['cf_twitter_secret']);
|
||||
//define('OAUTH_CALLBACK', G4_SNS_URL.'/twitter/callback.php');
|
||||
define('OAUTH_CALLBACK', '');
|
||||
define('OAUTH_CALLBACK', G4_SNS_URL.'/twitter/callback.php');
|
||||
//define('OAUTH_CALLBACK', '');
|
||||
|
||||
@ -16,11 +16,13 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
$comment_id = $list[$i]['wr_id'];
|
||||
$cmt_depth = ""; // 댓글단계
|
||||
$cmt_depth = strlen($list[$i]['wr_comment_reply']) * 20;
|
||||
$str = $list[$i]['content'];
|
||||
$comment = $list[$i]['content'];
|
||||
/*
|
||||
if (strstr($list[$i]['wr_option'], "secret")) {
|
||||
$str = $str;
|
||||
}
|
||||
$str = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp|mms)\:\/\/([^[:space:]]+)\.(mp3|wma|wmv|asf|asx|mpg|mpeg)\".*\<\/a\>\]/i", "<script>doc_write(obj_movie('$1://$2.$3'));</script>", $str);
|
||||
*/
|
||||
$comment = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp|mms)\:\/\/([^[:space:]]+)\.(mp3|wma|wmv|asf|asx|mpg|mpeg)\".*\<\/a\>\]/i", "<script>doc_write(obj_movie('$1://$2.$3'));</script>", $comment);
|
||||
?>
|
||||
<article id="c_<?php echo $comment_id ?>" <?php if ($cmt_depth) { ?>style="margin-left:<?php echo $cmt_depth ?>px;border-top-color:#e0e0e0"<?php } ?>>
|
||||
<header>
|
||||
@ -33,12 +35,15 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
<?php } ?>
|
||||
작성일
|
||||
<span class="bo_vc_hdinfo"><time datetime="<?php echo date('Y-m-d\TH:i:s+09:00', strtotime($list[$i]['datetime'])) ?>"><?php echo $list[$i]['datetime'] ?></time></span>
|
||||
<?php if ($list[$i]['wr_facebook_user']) { ?><a href="https://www.facebook.com/profile.php?id=<?php echo $list[$i]['wr_facebook_user']; ?>" target="_blank"><img src="<?php echo G4_SNS_URL; ?>/icon/facebook.png" alt="페이스북에도 등록됨"></a><?php } ?>
|
||||
<?php if ($list[$i]['wr_twitter_user']) { ?><a href="https://www.twitter.com/<?php echo $list[$i]['wr_twitter_user']; ?>" target="_blank"><img src="<?php echo G4_SNS_URL; ?>/icon/twitter.png" alt="트위터에도 등록됨"></a><?php } ?>
|
||||
<?php if ($list[$i]['wr_me2day_user']) { ?><a href="http://me2day.net/<?php echo $list[$i]['wr_me2day_user']; ?>" target="_blank"><img src="<?php echo G4_SNS_URL; ?>/icon/me2day.png" alt="미투데이에도 등록됨"></a><?php } ?>
|
||||
</header>
|
||||
|
||||
<!-- 댓글 출력 -->
|
||||
<p>
|
||||
<?php if (strstr($list[$i]['wr_option'], "secret")) echo "<img src=\"".$board_skin_url."/img/icon_secret.gif\" alt=\"비밀글\">"; ?>
|
||||
<?php echo $str ?>
|
||||
<?php if (strstr($list[$i]['wr_option'], "secret")) { ?><img src="<?php echo $board_skin_url; ?>/img/icon_secret.gif" alt="비밀글"><?php } ?>
|
||||
<?php echo $comment ?>
|
||||
</p>
|
||||
|
||||
<span id="edit_<?php echo $comment_id ?>"></span><!-- 수정 -->
|
||||
@ -113,16 +118,14 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
<td><?php echo $captcha_html; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
include_once($board_skin_path."/view_comment.sns.skin.php");
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<th scope="row">내용</th>
|
||||
<td>
|
||||
<?php if ($comment_min || $comment_max) { ?><strong id="char_cnt"><span id="char_count"></span>글자</strong><?php } ?>
|
||||
<textarea id="wr_content" name="wr_content" maxlength="10000" required class="required"
|
||||
<textarea id="wr_content" name="wr_content" maxlength="10000" required class="required" title="내용"
|
||||
<?php if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?php } ?>><?php echo $c_wr_content; ?></textarea>
|
||||
<?php if ($comment_min || $comment_max) { ?><script> check_byte('wr_content', 'char_count'); </script><?php } ?>
|
||||
<script>
|
||||
@ -141,7 +144,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
</table>
|
||||
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" class="btn_submit" value="댓글등록">
|
||||
<input type="submit" id="btn_submit" class="btn_submit" value="댓글등록">
|
||||
</div>
|
||||
|
||||
</form>
|
||||
@ -168,16 +171,6 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
|
||||
f.is_good.value = 0;
|
||||
|
||||
/*
|
||||
var s;
|
||||
if (s = word_filter_check(document.getElementById('wr_content').value))
|
||||
{
|
||||
alert("내용에 금지단어('"+s+"')가 포함되어있습니다");
|
||||
document.getElementById('wr_content').focus();
|
||||
return false;
|
||||
}
|
||||
*/
|
||||
|
||||
var subject = "";
|
||||
var content = "";
|
||||
$.ajax({
|
||||
@ -249,6 +242,8 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
|
||||
<?php if($is_guest) echo chk_captcha_js(); ?>
|
||||
|
||||
document.getElementById("btn_submit").disabled = "disabled";
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@ -12,20 +12,23 @@ if (!$board['bo_use_sns']) return;
|
||||
// 페이스북
|
||||
//----------------------------------------------------------------------------
|
||||
if ($config['cf_facebook_appid']) {
|
||||
include_once(G4_SNS_PATH."/facebook/src/facebook.php");
|
||||
$facebook = new Facebook(array(
|
||||
'appId' => $config['cf_facebook_appid'],
|
||||
'secret' => $config['cf_facebook_secret']
|
||||
));
|
||||
$facebook_user = get_session("ss_facebook_user");
|
||||
if (!$facebook_user) {
|
||||
include_once(G4_SNS_PATH."/facebook/src/facebook.php");
|
||||
$facebook = new Facebook(array(
|
||||
'appId' => $config['cf_facebook_appid'],
|
||||
'secret' => $config['cf_facebook_secret']
|
||||
));
|
||||
|
||||
$facebook_user = $facebook->getUser();
|
||||
$facebook_user = $facebook->getUser();
|
||||
|
||||
if ($facebook_user) {
|
||||
try {
|
||||
$facebook_user_profile = $facebook->api('/me');
|
||||
} catch (FacebookApiException $e) {
|
||||
error_log($e);
|
||||
$facebook_user = null;
|
||||
if ($facebook_user) {
|
||||
try {
|
||||
$facebook_user_profile = $facebook->api('/me');
|
||||
} catch (FacebookApiException $e) {
|
||||
error_log($e);
|
||||
$facebook_user = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -51,17 +54,33 @@ if (!$board['bo_use_sns']) return;
|
||||
// 트위터
|
||||
//----------------------------------------------------------------------------
|
||||
if ($config['cf_twitter_key']) {
|
||||
include_once(G4_SNS_PATH."/twitter/twitteroauth/twitteroauth.php");
|
||||
include_once(G4_SNS_PATH."/twitter/twitterconfig.php");
|
||||
$twitter_user = get_session("ss_twitter_user");
|
||||
if (!$twitter_user) {
|
||||
include_once(G4_SNS_PATH."/twitter/twitteroauth/twitteroauth.php");
|
||||
include_once(G4_SNS_PATH."/twitter/twitterconfig.php");
|
||||
|
||||
$twitter_user = false;
|
||||
if (empty($_SESSION['access_token']) || empty($_SESSION['access_token']['oauth_token']) || empty($_SESSION['access_token']['oauth_token_secret'])) {
|
||||
$twitter_url = G4_SNS_URL."/twitter/redirect.php";
|
||||
} else {
|
||||
$twitter_user = false;
|
||||
/*
|
||||
if (empty($_SESSION['access_token']) || empty($_SESSION['access_token']['oauth_token']) || empty($_SESSION['access_token']['oauth_token_secret'])) {
|
||||
$twitter_url = G4_SNS_URL."/twitter/redirect.php";
|
||||
} else {
|
||||
$access_token = $_SESSION['access_token'];
|
||||
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $access_token['oauth_token'], $access_token['oauth_token_secret']);
|
||||
$content = $connection->get('account/verify_credentials');
|
||||
|
||||
switch ($connection->http_code) {
|
||||
case 200:
|
||||
$twitter_user = true;
|
||||
$twitter_url = $connection->getAuthorizeURL($token);
|
||||
break;
|
||||
default :
|
||||
$twitter_url = G4_SNS_URL."/twitter/redirect.php";
|
||||
}
|
||||
}
|
||||
*/
|
||||
$access_token = $_SESSION['access_token'];
|
||||
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $access_token['oauth_token'], $access_token['oauth_token_secret']);
|
||||
$content = $connection->get('account/verify_credentials');
|
||||
//print_r2($content);
|
||||
|
||||
switch ($connection->http_code) {
|
||||
case 200:
|
||||
@ -70,15 +89,6 @@ if (!$board['bo_use_sns']) return;
|
||||
break;
|
||||
default :
|
||||
$twitter_url = G4_SNS_URL."/twitter/redirect.php";
|
||||
// 안먹히는 코드 ㅠㅠ
|
||||
if ($member['mb_twitter_token'] && $member['mb_twitter_token_secret']) {
|
||||
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $member['mb_twitter_token'], $member['mb_twitter_token_secret']);
|
||||
$content = $connection->get('account/verify_credentials');
|
||||
if (200 == $connection->http_code) {
|
||||
$twitter_user = true;
|
||||
$twitter_url = $connection->getAuthorizeURL($token);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -102,6 +112,7 @@ if (!$board['bo_use_sns']) return;
|
||||
// 미투데이
|
||||
//----------------------------------------------------------------------------
|
||||
if ($config['cf_me2day_key']) {
|
||||
/*
|
||||
$me2day_user = false;
|
||||
if (empty($_SESSION['me2day']['user_id']) || empty($_SESSION['me2day']['user_key'])) {
|
||||
$result = json_decode(file_get_contents("http://me2day.net/api/get_auth_url.json?akey=".$config['cf_me2day_key']));
|
||||
@ -109,6 +120,13 @@ if (!$board['bo_use_sns']) return;
|
||||
} else {
|
||||
$me2day_user = true;
|
||||
}
|
||||
*/
|
||||
|
||||
$me2day_user = get_session("ss_me2day_user");
|
||||
if (!$me2day_user) {
|
||||
$result = json_decode(file_get_contents("http://me2day.net/api/get_auth_url.json?akey=".$config['cf_me2day_key']));
|
||||
$me2day_url = $result->url;
|
||||
}
|
||||
|
||||
echo '<li>';
|
||||
if ($me2day_user) {
|
||||
|
||||
@ -153,19 +153,6 @@ echo $option_hidden;
|
||||
</form>
|
||||
|
||||
<script>
|
||||
<?php
|
||||
// 관리자라면 분류 선택에 '공지' 옵션을 추가함
|
||||
if ($is_admin)
|
||||
{
|
||||
echo '
|
||||
if (ca_name_select = document.getElementById("ca_name")) {
|
||||
ca_name_select.options.length += 1;
|
||||
ca_name_select.options[ca_name_select.options.length-1].value = "공지";
|
||||
ca_name_select.options[ca_name_select.options.length-1].text = "공지";
|
||||
}';
|
||||
}
|
||||
?>
|
||||
|
||||
function html_auto_br(obj)
|
||||
{
|
||||
if (obj.checked) {
|
||||
@ -218,6 +205,8 @@ function fwrite_submit(f)
|
||||
|
||||
<?php echo $captcha_js; // 캡챠 사용시 자바스크립트에서 입력된 캡챠를 검사함 ?>
|
||||
|
||||
document.getElementById("btn_submit").disabled = "disabled";
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -58,6 +58,10 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<?php
|
||||
// SNS 보내기
|
||||
@include(G4_SKIN_PATH."/board/basic/view.sns.skin.php");
|
||||
?>
|
||||
</section>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
@ -1,39 +0,0 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if (!$board['bo_use_sns']) return;
|
||||
|
||||
$sns_msg = urlencode(str_replace('\"', '"', $view['subject']));
|
||||
$sns_url = googl_short_url('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
|
||||
$msg_url = $sns_msg.' : '.$sns_url;
|
||||
|
||||
// 카카오톡 매뉴얼 : https://github.com/kakao/kakaolink-web
|
||||
$kakao_appid = $_SERVER['HTTP_HOST']; // Mobile Site Domain 정확히 입력하지 않을 경우 이용이 제한될 수 있습니다.
|
||||
$kakao_appname = $g4['title'];
|
||||
|
||||
$facebook_url = 'http://www.facebook.com/sharer/sharer.php?s=100&p[url]='.$sns_url.'&p[title]='.$sns_msg;
|
||||
$twitter_url = 'http://twitter.com/home?status='.$msg_url;
|
||||
$me2day_url = 'http://me2day.net/posts/new?new_post[body]='.$msg_url;
|
||||
$gplus_url = 'https://plus.google.com/share?url='.$sns_url;
|
||||
|
||||
/*
|
||||
$sns_send = G4_BBS_URL.'/sns_send.php?longurl='.urlencode('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
|
||||
//$sns_send .= '&title='.urlencode(utf8_strcut(get_text($view['subject']),140));
|
||||
$sns_send .= '&title='.$sns_msg;
|
||||
*/
|
||||
|
||||
?>
|
||||
<ul id="bo_v_sns">
|
||||
<li><a href="<?php echo $facebook_url; ?>" target="_blank"><img src="<?php echo G4_SNS_URL; ?>/icon/facebook.png" alt="페이스북으로 보내기"></a></li>
|
||||
<li><a href="<?php echo $twitter_url; ?>" target="_blank"><img src="<?php echo G4_SNS_URL; ?>/icon/twitter.png" alt="트위터로 보내기"></a></li>
|
||||
<li><a href="<?php echo $me2day_url; ?>" target="_blank"><img src="<?php echo G4_SNS_URL; ?>/icon/me2day.png" alt="미투데이로 보내기"></a></li>
|
||||
<li><a href="<?php echo $gplus_url; ?>" target="_blank"><img src="<?php echo G4_SNS_URL; ?>/icon/gplus.png" alt="구글플러스로 보내기"></a></li>
|
||||
<?php
|
||||
if (G4_IS_MOBILE) {
|
||||
$kakao_url = 'kakaolink://sendurl?msg='.$sns_msg.'&url='.$sns_url.'&appid='.$kakao_appid.'&appver=1.0&type=link&appname='.$kakao_appname.'&apiver=2.0';
|
||||
?>
|
||||
<li><a href="<?php echo $kakao_url; ?>" target="_blank"><img src="<?php echo G4_SNS_URL; ?>/icon/kakaotalk.png" alt="카카오톡으로 보내기"></a></li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
@ -114,8 +114,8 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
include_once($board_skin_path."/view_comment.sns.skin.php");
|
||||
<?php
|
||||
@include(G4_SKIN_PATH."/board/basic/view_comment.sns.skin.php");
|
||||
?>
|
||||
|
||||
<tr>
|
||||
@ -168,16 +168,6 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
|
||||
f.is_good.value = 0;
|
||||
|
||||
/*
|
||||
var s;
|
||||
if (s = word_filter_check(document.getElementById('wr_content').value))
|
||||
{
|
||||
alert("내용에 금지단어('"+s+"')가 포함되어있습니다");
|
||||
document.getElementById('wr_content').focus();
|
||||
return false;
|
||||
}
|
||||
*/
|
||||
|
||||
var subject = "";
|
||||
var content = "";
|
||||
$.ajax({
|
||||
@ -249,6 +239,8 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
|
||||
<?php if($is_guest) echo chk_captcha_js(); ?>
|
||||
|
||||
document.getElementById("btn_submit").disabled = "disabled";
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@ -1,130 +0,0 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if (!$board['bo_use_sns']) return;
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">SNS 등록</th>
|
||||
<td>
|
||||
<ul id="bo_vc_sns">
|
||||
<?php
|
||||
//============================================================================
|
||||
// 페이스북
|
||||
//----------------------------------------------------------------------------
|
||||
if ($config['cf_facebook_appid']) {
|
||||
include_once(G4_SNS_PATH."/facebook/src/facebook.php");
|
||||
$facebook = new Facebook(array(
|
||||
'appId' => $config['cf_facebook_appid'],
|
||||
'secret' => $config['cf_facebook_secret']
|
||||
));
|
||||
|
||||
$facebook_user = $facebook->getUser();
|
||||
|
||||
if ($facebook_user) {
|
||||
try {
|
||||
$facebook_user_profile = $facebook->api('/me');
|
||||
} catch (FacebookApiException $e) {
|
||||
error_log($e);
|
||||
$facebook_user = null;
|
||||
}
|
||||
}
|
||||
|
||||
echo '<li>';
|
||||
if ($facebook_user) {
|
||||
echo '<img src="'.G4_SNS_URL.'/icon/facebook.png" id="facebook_icon">';
|
||||
echo '<label for="" class="sound_only">페이스북 동시 등록</label>';
|
||||
echo '<input type="checkbox" name="facebook_checked" id="facebook_checked" '.(get_cookie('ck_facebook_checked')?'checked':'').' value="1">';
|
||||
} else {
|
||||
$facebook_url = $facebook->getLoginUrl(array("redirect_uri"=>G4_SNS_URL."/facebook/callback.php", "scope"=>"publish_stream,read_stream,offline_access", "display"=>"popup"));
|
||||
|
||||
echo '<a href="'.$facebook_url.'" id="facebook_url" onclick="return false;"><img src="'.G4_SNS_URL.'/icon/facebook'.($facebook_user?'':'_off').'.png" id="facebook_icon"></a>';
|
||||
echo '<label for="" class="sound_only">페이스북 동시 등록</label>';
|
||||
echo '<input type="checkbox" name="facebook_checked" id="facebook_checked" disabled value="1">';
|
||||
echo '<script>$(function(){ $("#facebook_url").click(function(){ window.open(this.href, "facebook_url", "width=600,height=250"); }); });</script>';
|
||||
}
|
||||
echo '</li>';
|
||||
}
|
||||
//============================================================================
|
||||
|
||||
|
||||
//============================================================================
|
||||
// 트위터
|
||||
//----------------------------------------------------------------------------
|
||||
if ($config['cf_twitter_key']) {
|
||||
include_once(G4_SNS_PATH."/twitter/twitteroauth/twitteroauth.php");
|
||||
include_once(G4_SNS_PATH."/twitter/twitterconfig.php");
|
||||
|
||||
$twitter_user = false;
|
||||
if (empty($_SESSION['access_token']) || empty($_SESSION['access_token']['oauth_token']) || empty($_SESSION['access_token']['oauth_token_secret'])) {
|
||||
$twitter_url = G4_SNS_URL."/twitter/redirect.php";
|
||||
} else {
|
||||
$access_token = $_SESSION['access_token'];
|
||||
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $access_token['oauth_token'], $access_token['oauth_token_secret']);
|
||||
$content = $connection->get('account/verify_credentials');
|
||||
//print_r2($content);
|
||||
|
||||
switch ($connection->http_code) {
|
||||
case 200:
|
||||
$twitter_user = true;
|
||||
$twitter_url = $connection->getAuthorizeURL($token);
|
||||
break;
|
||||
default :
|
||||
$twitter_url = G4_SNS_URL."/twitter/redirect.php";
|
||||
// 안먹히는 코드 ㅠㅠ
|
||||
if ($member['mb_twitter_token'] && $member['mb_twitter_token_secret']) {
|
||||
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $member['mb_twitter_token'], $member['mb_twitter_token_secret']);
|
||||
$content = $connection->get('account/verify_credentials');
|
||||
if (200 == $connection->http_code) {
|
||||
$twitter_user = true;
|
||||
$twitter_url = $connection->getAuthorizeURL($token);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
echo '<li>';
|
||||
if ($twitter_user) {
|
||||
echo '<img src="'.G4_SNS_URL.'/icon/twitter.png" id="twitter_icon">';
|
||||
echo '<label for="" class="sound_only">트위터 동시 등록</label>';
|
||||
echo '<input type="checkbox" name="twitter_checked" id="twitter_checked" '.(get_cookie('ck_twitter_checked')?'checked':'').' value="1">';
|
||||
} else {
|
||||
echo '<a href="'.$twitter_url.'" id="twitter_url" onclick="return false;"><img src="'.G4_SNS_URL.'/icon/twitter'.($twitter_user?'':'_off').'.png" id="twitter_icon"></a>';
|
||||
echo '<label for="" class="sound_only">트위터 동시 등록</label>';
|
||||
echo '<input type="checkbox" name="twitter_checked" id="twitter_checked" disabled value="1">';
|
||||
echo '<script>$(function(){ $("#twitter_url").click(function(){ window.open(this.href, "twitter_url", "width=600,height=250"); }); });</script>';
|
||||
}
|
||||
echo '</li>';
|
||||
}
|
||||
//============================================================================
|
||||
|
||||
|
||||
//============================================================================
|
||||
// 미투데이
|
||||
//----------------------------------------------------------------------------
|
||||
if ($config['cf_me2day_key']) {
|
||||
$me2day_user = false;
|
||||
if (empty($_SESSION['me2day']['user_id']) || empty($_SESSION['me2day']['user_key'])) {
|
||||
$result = json_decode(file_get_contents("http://me2day.net/api/get_auth_url.json?akey=".$config['cf_me2day_key']));
|
||||
$me2day_url = $result->url;
|
||||
} else {
|
||||
$me2day_user = true;
|
||||
}
|
||||
|
||||
echo '<li>';
|
||||
if ($me2day_user) {
|
||||
echo '<img src="'.G4_SNS_URL.'/icon/me2day.png" id="me2day_icon">';
|
||||
echo '<label for="" class="sound_only">미투데이 동시 등록</label>';
|
||||
echo '<input type="checkbox" name="me2day_checked" id="me2day_checked" '.(get_cookie('ck_me2day_checked')?'checked':'').' value="1">';
|
||||
} else {
|
||||
echo '<a href="'.$me2day_url.'" id="me2day_url" onclick="return false;"><img src="'.G4_SNS_URL.'/icon/me2day'.($me2day_user?'':'_off').'.png" id="me2day_icon"></a>';
|
||||
echo '<label for="" class="sound_only">미투데이 동시 등록</label>';
|
||||
echo '<input type="checkbox" name="me2day_checked" id="me2day_checked" disabled value="1">';
|
||||
echo '<script>$(function(){ $("#me2day_url").click(function(){ window.open(this.href, "me2day_url", "width=1000,height=800"); }); });</script>';
|
||||
}
|
||||
echo '</li>';
|
||||
}
|
||||
//============================================================================
|
||||
?>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
@ -234,6 +234,8 @@ function fwrite_submit(f)
|
||||
|
||||
<?php if ($is_guest) { echo chk_captcha_js(); } ?>
|
||||
|
||||
document.getElementById("btn_submit").disabled = "disabled";
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -41,10 +41,15 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<tr>
|
||||
<th scope="row"><label for="reg_mb_name">이름<strong class="sound_only">필수</strong></label></th>
|
||||
<td>
|
||||
<?php /* if ($w=='') { echo "<span class=\"frm_info\">공백없이 한글만 입력하세요.</span>"; } */ ?>
|
||||
<?php echo $config['cf_kcpcert_use'] ? '<span class="frm_info">이름과 휴대폰번호는 아래의 휴대폰 본인확인 기능을 사용하여 입력해 주십시오.</span>' : ''; ?>
|
||||
<?php echo ($config['cf_kcpcert_use']=='test') ? '<span class="frm_info">테스트의 경우 이동통신사는 반드시 KT를 선택해 주십시오. 나머지 항목은 임의로 입력하시면 됩니다.</span>' : ''; ?>
|
||||
<input type="text" id="reg_mb_name" name="mb_name" value="<?php echo $member['mb_name'] ?>" <?php echo $required ?> <?php if ($config['cf_kcpcert_use']!=''||$w=='u') echo 'readonly'; ?> class="frm_input nospace <?php echo $required ?> <?php echo $readonly ?>" size="10">
|
||||
<?php if ($w=="u" && $config['cf_kcpcert_use']) { ?>
|
||||
<span class="frm_info">휴대폰 본인확인 후에는 이름과 휴대폰번호가 자동 입력되며 수동으로 입력할수 없게 됩니다.</span>
|
||||
<?php } ?>
|
||||
<input type="text" id="reg_mb_name" name="mb_name" value="<?php echo $member['mb_name'] ?>" <?php echo $required ?> <?php if ($w=='u') echo 'readonly'; ?> class="frm_input nospace <?php echo $required ?> <?php echo $readonly ?>" size="10">
|
||||
<?php if ($member['mb_hp_certify']) { ?>
|
||||
<div id="msg_hp_certify">
|
||||
휴대폰 <strong>본인확인</strong><?php if ($member['mb_hp_certify']) { ?> 및 <strong>성인인증</strong><?php } ?> 완료
|
||||
</div>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if ($req_nick) { ?>
|
||||
@ -97,7 +102,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<?php if ($config['cf_kcpcert_use']) { ?>
|
||||
<span class="frm_info">휴대폰번호는 휴대폰 본인확인 기능을 이용하여 입력하세요.</span>
|
||||
<?php } ?>
|
||||
<input type="text" name="mb_hp" value="<?php echo $member[mb_hp] ?>" id="reg_mb_hp" <?php echo ($config['cf_req_hp']||$config['cf_kcpcert_use'])?"required":""; ?> class="frm_input <?php echo ($config['cf_req_hp']||$config['cf_kcpcert_use'])?"required":""; ?>" <?php echo $config['cf_kcpcert_use']?"readonly":""; ?> maxlength="20">
|
||||
<input type="text" name="mb_hp" value="<?php echo $member[mb_hp] ?>" id="reg_mb_hp" <?php echo ($config['cf_req_hp'])?"required":""; ?> class="frm_input <?php echo ($config['cf_req_hp'])?"required":""; ?>" <?php echo $config['cf_kcpcert_use']?"readonly":""; ?> maxlength="20">
|
||||
<?php if ($config['cf_kcpcert_use']) { ?>
|
||||
<input type="hidden" name="old_mb_hp" value="<?php echo $member['mb_hp'] ?>">
|
||||
<button type="button" id="win_kcpcert" class="btn_frmline">휴대폰 본인확인</button>
|
||||
@ -228,7 +233,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<p>
|
||||
작성하신 내용를 발송하시려면 <strong><?php echo $w==''?'회원가입':'정보수정'; ?></strong> 버튼을, 작성을 취소하고 창을 닫으시려면 <strong>취소</strong> 링크를 누르세요.
|
||||
</p>
|
||||
<input type="submit" value="<?php echo $w==''?'회원가입':'정보수정'; ?>" class="btn_submit" accesskey="s">
|
||||
<input type="submit" value="<?php echo $w==''?'회원가입':'정보수정'; ?>" id="btn_submit" class="btn_submit" accesskey="s">
|
||||
<a href="<?php echo $g4['path'] ?>/" class="btn_cancel">취소</a>
|
||||
</div>
|
||||
</form>
|
||||
@ -236,7 +241,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<?php
|
||||
if ($config['cf_kcpcert_use']) {
|
||||
// 휴대폰인증 form
|
||||
include_once(G4_KCP_PATH.'/kcpcert_form.php');
|
||||
include_once(G4_KCPCERT_PATH.'/kcpcert_form.php');
|
||||
?>
|
||||
|
||||
<script>
|
||||
@ -267,32 +272,32 @@ function fregisterform_submit(f)
|
||||
}
|
||||
}
|
||||
|
||||
if (f.w.value == '') {
|
||||
if (f.w.value == "") {
|
||||
if (f.mb_password.value.length < 3) {
|
||||
alert('패스워드를 3글자 이상 입력하십시오.');
|
||||
alert("패스워드를 3글자 이상 입력하십시오.");
|
||||
f.mb_password.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (f.mb_password.value != f.mb_password_re.value) {
|
||||
alert('패스워드가 같지 않습니다.');
|
||||
alert("패스워드가 같지 않습니다.");
|
||||
f.mb_password_re.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (f.mb_password.value.length > 0) {
|
||||
if (f.mb_password_re.value.length < 3) {
|
||||
alert('패스워드를 3글자 이상 입력하십시오.');
|
||||
alert("패스워드를 3글자 이상 입력하십시오.");
|
||||
f.mb_password_re.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// 이름 검사
|
||||
if (f.w.value=='') {
|
||||
if (f.w.value=="") {
|
||||
if (f.mb_name.value.length < 1) {
|
||||
alert('이름을 입력하십시오.');
|
||||
alert("이름을 입력하십시오.");
|
||||
f.mb_name.focus();
|
||||
return false;
|
||||
}
|
||||
@ -300,7 +305,7 @@ function fregisterform_submit(f)
|
||||
/*
|
||||
var pattern = /([^가-힣\x20])/i;
|
||||
if (pattern.test(f.mb_name.value)) {
|
||||
alert('이름은 한글로 입력하십시오.');
|
||||
alert("이름은 한글로 입력하십시오.");
|
||||
f.mb_name.select();
|
||||
return false;
|
||||
}
|
||||
@ -327,19 +332,19 @@ function fregisterform_submit(f)
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof f.mb_icon != 'undefined') {
|
||||
if (typeof f.mb_icon != "undefined") {
|
||||
if (f.mb_icon.value) {
|
||||
if (!f.mb_icon.value.toLowerCase().match(/.(gif)$/i)) {
|
||||
alert('회원아이콘이 gif 파일이 아닙니다.');
|
||||
alert("회원아이콘이 gif 파일이 아닙니다.");
|
||||
f.mb_icon.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof(f.mb_recommend) != 'undefined') {
|
||||
if (typeof(f.mb_recommend) != "undefined") {
|
||||
if (f.mb_id.value == f.mb_recommend.value) {
|
||||
alert('본인을 추천할 수 없습니다.');
|
||||
alert("본인을 추천할 수 없습니다.");
|
||||
f.mb_recommend.focus();
|
||||
return false;
|
||||
}
|
||||
@ -352,33 +357,35 @@ function fregisterform_submit(f)
|
||||
}
|
||||
}
|
||||
|
||||
<?php if ($config['cf_kcpcert_use']) { ?>
|
||||
var error = "";
|
||||
$.ajax({
|
||||
url: "<?php echo G4_KCP_URL ?>/kcpcert.ajax.php",
|
||||
type: "POST",
|
||||
data: {
|
||||
"w": f.w.value,
|
||||
"mb_name": f.mb_name.value,
|
||||
"mb_hp": f.mb_hp.value,
|
||||
"old_mb_hp":f.old_mb_hp.value
|
||||
},
|
||||
dataType: "json",
|
||||
async: false,
|
||||
cache: false,
|
||||
success: function(data, textStatus) {
|
||||
error = data.error;
|
||||
}
|
||||
});
|
||||
if (typeof(f.mb_hp) != "undefined" && f.mb_hp.value) {
|
||||
var error = "";
|
||||
$.ajax({
|
||||
url: "<?php echo G4_KCPCERT_URL ?>/kcpcert.ajax.php",
|
||||
type: "POST",
|
||||
data: {
|
||||
"w": f.w.value,
|
||||
"mb_name": f.mb_name.value,
|
||||
"mb_hp": f.mb_hp.value,
|
||||
"old_mb_hp":f.old_mb_hp.value
|
||||
},
|
||||
dataType: "json",
|
||||
async: false,
|
||||
cache: false,
|
||||
success: function(data, textStatus) {
|
||||
error = data.error;
|
||||
}
|
||||
});
|
||||
|
||||
if (error) {
|
||||
alert(error);
|
||||
return false;
|
||||
if (error) {
|
||||
alert(error);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
<?php } ?>
|
||||
|
||||
<?php echo chk_captcha_js(); ?>
|
||||
|
||||
document.getElementById("btn_submit").disabled = "disabled";
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -1,7 +0,0 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if ($config['cf_kcpcert_use']) {
|
||||
include_once(G4_KCP_PATH.'/kcpcert.head.skin.php');
|
||||
}
|
||||
?>
|
||||
@ -1,7 +0,0 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if ($config['cf_kcpcert_use']) {
|
||||
include_once(G4_KCP_PATH.'/kcpcert.tail.skin.php');
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user