diff --git a/adm/admin.menu100.php b/adm/admin.menu100.php
index dfc91e73b..d65cb8fbf 100644
--- a/adm/admin.menu100.php
+++ b/adm/admin.menu100.php
@@ -7,7 +7,8 @@ $menu['menu100'] = array (
//array('100400', '버전정보', G4_ADMIN_URL.'/version.php', 'cf_version'),
array('100800', '세션파일 일괄삭제',G4_ADMIN_URL.'/session_file_delete.php', 'cf_session', 1),
array('100900', '캐쉬파일 일괄삭제',G4_ADMIN_URL.'/cache_file_delete.php', 'cf_cache', 1),
- array('100920', '썸네일파일 일괄삭제',G4_ADMIN_URL.'/thumbnail_file_delete.php', 'cf_cache', 1),
+ array('100910', '캡챠파일 일괄삭제',G4_ADMIN_URL.'/gcaptcha_file_delete.php', 'cf_captcha', 1),
+ array('100920', '썸네일파일 일괄삭제',G4_ADMIN_URL.'/thumbnail_file_delete.php', 'cf_thumbnail', 1),
array('100500', 'phpinfo()', G4_ADMIN_URL.'/phpinfo.php', 'cf_phpinfo'),
//array('100600', '업그레이드', G4_ADMIN_URL.'/upgrade.php', 'cf_upgrade'),
//array('100700', '복구/최적화', G4_ADMIN_URL.'/repair.php', 'cf_repair'),
diff --git a/adm/board_form.php b/adm/board_form.php
index 4480738da..14e4f0ce2 100644
--- a/adm/board_form.php
+++ b/adm/board_form.php
@@ -46,9 +46,11 @@ if (!isset($board['bo_mobile_content_head'])) {
}
if (!isset($board['bo_use_cert'])) {
- sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_use_cert` ENUM('','cert','adult') NOT NULL DEFAULT 'none' AFTER `bo_use_email` ", false);
+ sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_use_cert` ENUM('','cert','adult') NOT NULL DEFAULT '' AFTER `bo_use_email` ", false);
}
+sql_query(" ALTER TABLE `{$g4['board_table']}` CHANGE `bo_use_cert` `bo_use_cert` ENUM('','cert','adult') NOT NULL DEFAULT '' ", false);
+
$required = "";
$readonly = "";
if ($w == '') {
diff --git a/adm/member_form.php b/adm/member_form.php
index 0474d95dc..2ea7dad6b 100644
--- a/adm/member_form.php
+++ b/adm/member_form.php
@@ -83,10 +83,12 @@ if ($mb['mb_open']) {
if(!isset($mb['mb_adult'])) {
sql_query(" ALTER TABLE `{$g4['member_table']}`
- ADD `mb_adult` ENUM('Y', 'N') NOT NULL DEFAULT 'N' AFTER `mb_birth`,
- ADD `mb_hp_certify` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER `mb_lost_certify` ", FALSE);
+ ADD `mb_adult` ENUM('N', 'Y') NOT NULL DEFAULT 'N' AFTER `mb_birth`,
+ ADD `mb_hp_certify` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER `mb_lost_certify` ", false);
}
+sql_query(" ALTER TABLE `{$g4['member_table']}` CHANGE `mb_adult` `mb_adult` ENUM('N','Y') NOT NULL DEFAULT 'N' ", false);
+
if ($mb['mb_intercept_date']) $g4['title'] = "차단된 ";
else $g4['title'] .= "";
$g4['title'] .= '회원 '.$html_title;
diff --git a/bbs/ajax.mb_recommend.php b/bbs/ajax.mb_recommend.php
new file mode 100644
index 000000000..99c42480e
--- /dev/null
+++ b/bbs/ajax.mb_recommend.php
@@ -0,0 +1,13 @@
+
\ No newline at end of file
diff --git a/bbs/register_form_update.php b/bbs/register_form_update.php
index 297be4d4f..7cc1039f4 100644
--- a/bbs/register_form_update.php
+++ b/bbs/register_form_update.php
@@ -75,6 +75,8 @@ if ($w == '' || $w == 'u') {
if ($w=='') {
if ($msg = exist_mb_id($mb_id)) alert($msg);
+ if (!exist_mb_id($mb_recommend)) alert("추천인이 존재하지 않습니다.");
+
if (strtolower($mb_id) == strtolower($mb_recommend)) {
alert('본인을 추천할 수 없습니다.');
}
diff --git a/bbs/write_update.php b/bbs/write_update.php
index 2f65e9a4b..914e7bfe9 100644
--- a/bbs/write_update.php
+++ b/bbs/write_update.php
@@ -8,7 +8,7 @@ $msg = array();
$wr_subject = '';
if (isset($_POST['wr_subject'])) {
- $wr_subject = substr(escape_trim($_POST['wr_subject']),0,255);
+ $wr_subject = substr(trim($_POST['wr_subject']),0,255);
}
if ($wr_subject == '') {
$msg[] = '제목을 입력하세요.';
@@ -16,7 +16,7 @@ if ($wr_subject == '') {
$wr_content = '';
if (isset($_POST['wr_content'])) {
- $wr_content = escape_trim($_POST['wr_content']);
+ $wr_content = substr(trim($_POST['wr_content']),0,65536);
}
if ($wr_content == '') {
$msg[] = '내용을 입력하세요.';
@@ -24,12 +24,12 @@ if ($wr_content == '') {
$wr_link1 = '';
if (isset($_POST['wr_link1'])) {
- $wr_link1 = substr(escape_trim($_POST['wr_link1']),0,1000);
+ $wr_link1 = substr($_POST['wr_link1'],0,1000);
}
$wr_link2 = '';
if (isset($_POST['wr_link2'])) {
- $wr_link2 = substr(escape_trim($_POST['wr_link2']),0,1000);
+ $wr_link2 = substr($_POST['wr_link2'],0,1000);
}
$msg = implode('
', $msg);
diff --git a/common.php b/common.php
index 37d8abf89..ce258eb7b 100644
--- a/common.php
+++ b/common.php
@@ -119,7 +119,7 @@ div a {display:block;margin:50px auto 10px;width:170px;text-align:center}
프로그램 설치 후 실행하시기 바랍니다.
- 그누보드4s 설치하기 + 그누보드4s 설치하기