diff --git a/adm/board_form.php b/adm/board_form.php
index 785bd65df..8d0b5987b 100644
--- a/adm/board_form.php
+++ b/adm/board_form.php
@@ -18,15 +18,15 @@ if (!isset($board['bo_device'])) {
// pc : pc 전용 사용
// mobile : mobile 전용 사용
// none : 사용 안함
- sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_device` ENUM( 'both', 'pc', 'mobile' ) NOT NULL DEFAULT 'both' AFTER `bo_subject` ", true);
+ sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_device` ENUM( 'both', 'pc', 'mobile' ) NOT NULL DEFAULT 'both' AFTER `bo_subject` ", false);
}
if (!isset($board['bo_show_menu'])) {
- sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_show_menu` TINYINT NOT NULL DEFAULT '0' AFTER `bo_order_search`, ADD `bo_order` INT NOT NULL DEFAULT '0' AFTER `bo_show_menu` ", true);
+ sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_show_menu` TINYINT NOT NULL DEFAULT '0' AFTER `bo_order_search`, ADD `bo_order` INT NOT NULL DEFAULT '0' AFTER `bo_show_menu` ", false);
}
if (!isset($board['bo_mobile_skin'])) {
- sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_mobile_skin` VARCHAR(255) NOT NULL DEFAULT '' AFTER `bo_skin` ", true);
+ sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_mobile_skin` VARCHAR(255) NOT NULL DEFAULT '' AFTER `bo_skin` ", false);
}
@@ -498,7 +498,7 @@ $pg_anchor = "
=help('최대 '.ini_get("upload_max_filesize").' 이하 업로드 가능, 1 MB = 1,024,768 bytes')?>
- 업로드 파일 한개당 bytes 이하
+ 업로드 파일 한개당 bytes 이하
@@ -925,7 +925,7 @@ function set_point(f) {
}
}
-function fboardform_submit(f)
+function fboardform_submit(f)
{
=get_editor_js("bo_content_head");?>
=get_editor_js("bo_content_tail");?>
diff --git a/bbs/password_lost2.php b/bbs/password_lost2.php
index b3a2b92bc..eb28b4fdd 100644
--- a/bbs/password_lost2.php
+++ b/bbs/password_lost2.php
@@ -1,7 +1,6 @@
include_once('./_common.php');
include_once(G4_GCAPTCHA_PATH.'/gcaptcha.lib.php');
-include_once(G4_LIB_PATH.'/mailer.lib.php');
if ($is_member) {
alert("이미 로그인중입니다.");
@@ -11,71 +10,5 @@ if (!chk_captcha()) {
alert('스팸방지에 입력한 숫자가 틀렸습니다.');
}
-$email = trim($_POST['mb_email']);
-
-if (!$email)
- alert_close('메일주소 오류입니다.');
-
-$sql = " select count(*) as cnt from {$g4['member_table']} where mb_email = '$email' ";
-$row = sql_fetch($sql);
-if ($row['cnt'] > 1)
- alert('동일한 메일주소가 2개 이상 존재합니다.\\n\\n관리자에게 문의하여 주십시오.');
-
-$sql = " select mb_no, mb_id, mb_name, mb_nick, mb_email, mb_datetime from {$g4['member_table']} where mb_email = '$email' ";
-$mb = sql_fetch($sql);
-if (!$mb['mb_id'])
- alert('존재하지 않는 회원입니다.');
-else if (is_admin($mb['mb_id']))
- alert('관리자 아이디는 접근 불가합니다.');
-
-// 난수 발생
-srand(time());
-$randval = rand(4, 6);
-
-$change_password = substr(md5(get_microtime()), 0, $randval);
-
-$mb_lost_certify = sql_password($change_password);
-$mb_datetime = sql_password($mb['mb_datetime']);
-
-// 회원테이블에 필드를 추가
-sql_query(" ALTER TABLE `{$g4['member_table']}` ADD `mb_lost_certify` VARCHAR( 255 ) NOT NULL AFTER `mb_memo` ", false);
-
-$sql = " update {$g4['member_table']}
- set mb_lost_certify = '$mb_lost_certify'
- where mb_id = '{$mb['mb_id']}' ";
-sql_query($sql);
-
-$href = G4_BBS_URL.'/password_lost_certify.php?mb_no='.$mb['mb_no'].'&mb_datetime='.$mb_datetime.'&mb_lost_certify='.$mb_lost_certify;
-
-$subject = '요청하신 회원아이디/패스워드 정보입니다.';
-
-$content = '';
-$content .= '