โ 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_update.php
Size: 17.88 KB | Modified: 2019-12-05 09:09:25
<?php include_once('./_common.php'); /*========================== $w == a : ๋ต๋ณ $w == r : ์ถ๊ฐ์ง๋ฌธ $w == u : ์์ ==========================*/ if($is_guest) alert('ํ์์ด์๋ผ๋ฉด ๋ก๊ทธ์ธ ํ ์ด์ฉํด ๋ณด์ญ์์ค.', './login.php?url='.urlencode(G5_BBS_URL.'/qalist.php')); $msg = array(); // 1:1๋ฌธ์ ์ค์ ๊ฐ $qaconfig = get_qa_config(); $qa_id = isset($qa_id) ? (int) $qa_id : 0; if(trim($qaconfig['qa_category'])) { if($w != 'a') { $category = explode('|', $qaconfig['qa_category']); if(!in_array($qa_category, $category)) alert('๋ถ๋ฅ๋ฅผ ์ฌ๋ฐ๋ฅด๊ฒ ์ง์ ํด ์ฃผ์ญ์์ค.'); } } else { alert('1:1๋ฌธ์ ์ค์ ์์ ๋ถ๋ฅ๋ฅผ ์ค์ ํด ์ฃผ์ญ์์ค'); } // e-mail ์ฒดํฌ $qa_email = ''; if(isset($_POST['qa_email']) && $_POST['qa_email']) $qa_email = get_email_address(trim($_POST['qa_email'])); if($w != 'a' && $qaconfig['qa_req_email'] && !$qa_email) $msg[] = '์ด๋ฉ์ผ์ ์ ๋ ฅํ์ธ์.'; $qa_subject = ''; if (isset($_POST['qa_subject'])) { $qa_subject = substr(trim($_POST['qa_subject']),0,255); $qa_subject = preg_replace("#[\\\]+$#", "", $qa_subject); } if ($qa_subject == '') { $msg[] = '<strong>์ ๋ชฉ</strong>์ ์ ๋ ฅํ์ธ์.'; } $qa_content = ''; if (isset($_POST['qa_content'])) { $qa_content = substr(trim($_POST['qa_content']),0,65536); $qa_content = preg_replace("#[\\\]+$#", "", $qa_content); } if ($qa_content == '') { $msg[] = '<strong>๋ด์ฉ</strong>์ ์ ๋ ฅํ์ธ์.'; } if (!empty($msg)) { $msg = implode('<br>', $msg); alert($msg); } if($qa_hp) $qa_hp = preg_replace('/[^0-9\-]/', '', strip_tags($qa_hp)); // 090710 if (substr_count($qa_content, '&#') > 50) { alert('๋ด์ฉ์ ์ฌ๋ฐ๋ฅด์ง ์์ ์ฝ๋๊ฐ ๋ค์ ํฌํจ๋์ด ์์ต๋๋ค.'); exit; } $upload_max_filesize = ini_get('upload_max_filesize'); if (empty($_POST)) { alert("ํ์ผ ๋๋ ๊ธ๋ด์ฉ์ ํฌ๊ธฐ๊ฐ ์๋ฒ์์ ์ค์ ํ ๊ฐ์ ๋์ด ์ค๋ฅ๊ฐ ๋ฐ์ํ์์ต๋๋ค.\\npost_max_size=".ini_get('post_max_size')." , upload_max_filesize=".$upload_max_filesize."\\n๊ฒ์ํ๊ด๋ฆฌ์ ๋๋ ์๋ฒ๊ด๋ฆฌ์์๊ฒ ๋ฌธ์ ๋ฐ๋๋๋ค."); } for ($i=1; $i<=5; $i++) { $var = "qa_$i"; $$var = ""; if (isset($_POST['qa_'.$i]) && $_POST['qa_'.$i]) { $$var = trim($_POST['qa_'.$i]); } } if($w == 'u' || $w == 'a' || $w == 'r') { if($w == 'a' && !$is_admin) alert('๋ต๋ณ์ ๊ด๋ฆฌ์๋ง ๋ฑ๋กํ ์ ์์ต๋๋ค.'); $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); } } if($w == 'a') { if(!$write['qa_id']) alert('๋ฌธ์๊ธ์ด ์กด์ฌํ์ง ์์ ๋ต๋ณ๊ธ์ ๋ฑ๋กํ ์ ์์ต๋๋ค.'); if($write['qa_type'] == 1) alert('๋ต๋ณ๊ธ์๋ ๋ค์ ๋ต๋ณ์ ๋ฑ๋กํ ์ ์์ต๋๋ค.'); } } // ํ์ผ๊ฐ์ ์ฒดํฌ $file_count = 0; $upload_count = count($_FILES['bf_file']['name']); for ($i=1; $i<=$upload_count; $i++) { if($_FILES['bf_file']['name'][$i] && is_uploaded_file($_FILES['bf_file']['tmp_name'][$i])) $file_count++; } if($file_count > 2) alert('์ฒจ๋ถํ์ผ์ 2๊ฐ ์ดํ๋ก ์ ๋ก๋ ํด์ฃผ์ญ์์ค.'); // ๋๋ ํ ๋ฆฌ๊ฐ ์๋ค๋ฉด ์์ฑํฉ๋๋ค. (ํผ๋ฏธ์ ๋ ๋ณ๊ฒฝํ๊ตฌ์.) @mkdir(G5_DATA_PATH.'/qa', G5_DIR_PERMISSION); @chmod(G5_DATA_PATH.'/qa', G5_DIR_PERMISSION); $chars_array = array_merge(range(0,9), range('a','z'), range('A','Z')); // ๊ฐ๋ณ ํ์ผ ์ ๋ก๋ $file_upload_msg = ''; $upload = array(); for ($i=1; $i<=count($_FILES['bf_file']['name']); $i++) { $upload[$i]['file'] = ''; $upload[$i]['source'] = ''; $upload[$i]['del_check'] = false; // ์ญ์ ์ ์ฒดํฌ๊ฐ ๋์ด์๋ค๋ฉด ํ์ผ์ ์ญ์ ํฉ๋๋ค. if (isset($_POST['bf_file_del'][$i]) && $_POST['bf_file_del'][$i]) { $upload[$i]['del_check'] = true; @unlink(G5_DATA_PATH.'/qa/'.$write['qa_file'.$i]); // ์ธ๋ค์ผ์ญ์ if(preg_match("/\.({$config['cf_image_extension']})$/i", $write['qa_file'.$i])) { delete_qa_thumbnail($write['qa_file'.$i]); } } $tmp_file = $_FILES['bf_file']['tmp_name'][$i]; $filesize = $_FILES['bf_file']['size'][$i]; $filename = $_FILES['bf_file']['name'][$i]; $filename = get_safe_filename($filename); // ์๋ฒ์ ์ค์ ๋ ๊ฐ๋ณด๋ค ํฐํ์ผ์ ์ ๋ก๋ ํ๋ค๋ฉด if ($filename) { if ($_FILES['bf_file']['error'][$i] == 1) { $file_upload_msg .= '\"'.$filename.'\" ํ์ผ์ ์ฉ๋์ด ์๋ฒ์ ์ค์ ('.$upload_max_filesize.')๋ ๊ฐ๋ณด๋ค ํฌ๋ฏ๋ก ์ ๋ก๋ ํ ์ ์์ต๋๋ค.\\n'; continue; } else if ($_FILES['bf_file']['error'][$i] != 0) { $file_upload_msg .= '\"'.$filename.'\" ํ์ผ์ด ์ ์์ ์ผ๋ก ์ ๋ก๋ ๋์ง ์์์ต๋๋ค.\\n'; continue; } } if (is_uploaded_file($tmp_file)) { // ๊ด๋ฆฌ์๊ฐ ์๋๋ฉด์ ์ค์ ํ ์ ๋ก๋ ์ฌ์ด์ฆ๋ณด๋ค ํฌ๋ค๋ฉด ๊ฑด๋๋ if (!$is_admin && $filesize > $qaconfig['qa_upload_size']) { $file_upload_msg .= '\"'.$filename.'\" ํ์ผ์ ์ฉ๋('.number_format($filesize).' ๋ฐ์ดํธ)์ด ๊ฒ์ํ์ ์ค์ ('.number_format($qaconfig['qa_upload_size']).' ๋ฐ์ดํธ)๋ ๊ฐ๋ณด๋ค ํฌ๋ฏ๋ก ์ ๋ก๋ ํ์ง ์์ต๋๋ค.\\n'; continue; } //=================================================================\ // 090714 // ์ด๋ฏธ์ง๋ ํ๋์ ํ์ผ์ ์ ์ฑ์ฝ๋๋ฅผ ์ฌ์ด ์ ๋ก๋ ํ๋ ๊ฒฝ์ฐ๋ฅผ ๋ฐฉ์ง // ์๋ฌ๋ฉ์ธ์ง๋ ์ถ๋ ฅํ์ง ์๋๋ค. //----------------------------------------------------------------- $timg = @getimagesize($tmp_file); // image type if ( preg_match("/\.({$config['cf_image_extension']})$/i", $filename) || preg_match("/\.({$config['cf_flash_extension']})$/i", $filename) ) { if ($timg['2'] < 1 || $timg['2'] > 16) continue; } //================================================================= if ($w == 'u') { // ์กด์ฌํ๋ ํ์ผ์ด ์๋ค๋ฉด ์ญ์ ํฉ๋๋ค. @unlink(G5_DATA_PATH.'/qa/'.$write['qa_file'.$i]); // ์ด๋ฏธ์งํ์ผ์ด๋ฉด ์ธ๋ค์ผ์ญ์ if(preg_match("/\.({$config['cf_image_extension']})$/i", $write['qa_file'.$i])) { delete_qa_thumbnail($row['qa_file'.$i]); } } // ํ๋ก๊ทธ๋จ ์๋ ํ์ผ๋ช $upload[$i]['source'] = $filename; $upload[$i]['filesize'] = $filesize; // ์๋์ ๋ฌธ์์ด์ด ๋ค์ด๊ฐ ํ์ผ์ -x ๋ฅผ ๋ถ์ฌ์ ์น๊ฒฝ๋ก๋ฅผ ์๋๋ผ๋ ์คํ์ ํ์ง ๋ชปํ๋๋ก ํจ $filename = preg_replace("/\.(php|pht|phtm|htm|cgi|pl|exe|jsp|asp|inc)/i", "$0-x", $filename); shuffle($chars_array); $shuffle = implode('', $chars_array); // ์ฒจ๋ถํ์ผ ์ฒจ๋ถ์ ์ฒจ๋ถํ์ผ๋ช ์ ๊ณต๋ฐฑ์ด ํฌํจ๋์ด ์์ผ๋ฉด ์ผ๋ถ PC์์ ๋ณด์ด์ง ์๊ฑฐ๋ ๋ค์ด๋ก๋ ๋์ง ์๋ ํ์์ด ์์ต๋๋ค. (๊ธธ์์ฌ์ ๋ 090925) $upload[$i]['file'] = abs(ip2long($_SERVER['REMOTE_ADDR'])).'_'.substr($shuffle,0,8).'_'.replace_filename($filename); $dest_file = G5_DATA_PATH.'/qa/'.$upload[$i]['file']; // ์ ๋ก๋๊ฐ ์๋๋ค๋ฉด ์๋ฌ๋ฉ์ธ์ง ์ถ๋ ฅํ๊ณ ์ฃฝ์ด๋ฒ๋ฆฝ๋๋ค. $error_code = move_uploaded_file($tmp_file, $dest_file) or die($_FILES['bf_file']['error'][$i]); // ์ฌ๋ผ๊ฐ ํ์ผ์ ํผ๋ฏธ์ ์ ๋ณ๊ฒฝํฉ๋๋ค. chmod($dest_file, G5_FILE_PERMISSION); } } if($w == '' || $w == 'a' || $w == 'r') { if($w == '' || $w == 'r') { $row = sql_fetch(" select MIN(qa_num) as min_qa_num from {$g5['qa_content_table']} "); $qa_num = $row['min_qa_num'] - 1; } if($w == 'a') { $qa_num = $write['qa_num']; $qa_parent = $write['qa_id']; $qa_related = $write['qa_related']; $qa_category = $write['qa_category']; $qa_type = 1; $qa_status = 1; } $sql = " insert into {$g5['qa_content_table']} set qa_num = '$qa_num', mb_id = '{$member['mb_id']}', qa_name = '".addslashes($member['mb_nick'])."', qa_email = '$qa_email', qa_hp = '$qa_hp', qa_type = '$qa_type', qa_parent = '$qa_parent', qa_related = '$qa_related', qa_category = '$qa_category', qa_email_recv = '$qa_email_recv', qa_sms_recv = '$qa_sms_recv', qa_html = '$qa_html', qa_subject = '$qa_subject', qa_content = '$qa_content', qa_status = '$qa_status', qa_file1 = '{$upload[1]['file']}', qa_source1 = '{$upload[1]['source']}', qa_file2 = '{$upload[2]['file']}', qa_source2 = '{$upload[2]['source']}', qa_ip = '{$_SERVER['REMOTE_ADDR']}', qa_datetime = '".G5_TIME_YMDHIS."', qa_1 = '$qa_1', qa_2 = '$qa_2', qa_3 = '$qa_3', qa_4 = '$qa_4', qa_5 = '$qa_5' "; sql_query($sql); if($w == '' || $w == 'r') { $qa_id = sql_insert_id(); if($w == 'r' && $write['qa_related']) { $qa_related = $write['qa_related']; } else { $qa_related = $qa_id; } $sql = " update {$g5['qa_content_table']} set qa_parent = '$qa_id', qa_related = '$qa_related' where qa_id = '$qa_id' "; sql_query($sql); } if($w == 'a') { $sql = " update {$g5['qa_content_table']} set qa_status = '1' where qa_id = '{$write['qa_parent']}' "; sql_query($sql); } } else if($w == 'u') { if(!$upload[1]['file'] && !$upload[1]['del_check']) { $upload[1]['file'] = $write['qa_file1']; $upload[1]['source'] = $write['qa_source1']; } if(!$upload[2]['file'] && !$upload[2]['del_check']) { $upload[2]['file'] = $write['qa_file2']; $upload[2]['source'] = $write['qa_source2']; } $sql = " update {$g5['qa_content_table']} set qa_email = '$qa_email', qa_hp = '$qa_hp', qa_category = '$qa_category', qa_html = '$qa_html', qa_subject = '$qa_subject', qa_content = '$qa_content', qa_file1 = '{$upload[1]['file']}', qa_source1 = '{$upload[1]['source']}', qa_file2 = '{$upload[2]['file']}', qa_source2 = '{$upload[2]['source']}', qa_1 = '$qa_1', qa_2 = '$qa_2', qa_3 = '$qa_3', qa_4 = '$qa_4', qa_5 = '$qa_5' "; if($qa_sms_recv) $sql .= ", qa_sms_recv = '$qa_sms_recv' "; $sql .= " where qa_id = '$qa_id' "; sql_query($sql); } run_event('qawrite_update', $qa_id, $write, $w, $qaconfig); // SMS ์๋ฆผ if($config['cf_sms_use'] == 'icode' && $qaconfig['qa_use_sms']) { if($config['cf_sms_type'] == 'LMS') { include_once(G5_LIB_PATH.'/icode.lms.lib.php'); $port_setting = get_icode_port_type($config['cf_icode_id'], $config['cf_icode_pw']); // SMS ๋ชจ๋ ํด๋์ค ์์ฑ if($port_setting !== false) { // ๋ต๋ณ๊ธ์ ์ง๋ฌธ ๋ฑ๋ก์์๊ฒ ์ ์ก if($w == 'a' && $write['qa_sms_recv'] && trim($write['qa_hp'])) { $sms_content = $config['cf_title'].' '.$qaconfig['qa_title'].'์ ๋ต๋ณ์ด ๋ฑ๋ก๋์์ต๋๋ค.'; $send_number = preg_replace('/[^0-9]/', '', $qaconfig['qa_send_number']); $recv_number = preg_replace('/[^0-9]/', '', $write['qa_hp']); if($recv_number) { $strDest = array(); $strDest[] = $recv_number; $strCallBack = $send_number; $strCaller = iconv_euckr(trim($config['cf_title'])); $strSubject = ''; $strURL = ''; $strData = iconv_euckr($sms_content); $strDate = ''; $nCount = count($strDest); $SMS = new LMS; $SMS->SMS_con($config['cf_icode_server_ip'], $config['cf_icode_id'], $config['cf_icode_pw'], $port_setting); $res = $SMS->Add($strDest, $strCallBack, $strCaller, $strSubject, $strURL, $strData, $strDate, $nCount); if($res) { $SMS->Send(); } $SMS->Init(); // ๋ณด๊ดํ๊ณ ์๋ ๊ฒฐ๊ณผ๊ฐ์ ์ง์๋๋ค. } } // ๋ฌธ์๊ธ ๋ฑ๋ก์ ๊ด๋ฆฌ์์๊ฒ ์ ์ก if(($w == '' || $w == 'r') && trim($qaconfig['qa_admin_hp'])) { $sms_content = $config['cf_title'].' '.$qaconfig['qa_title'].'์ ๋ฌธ์๊ธ์ด ๋ฑ๋ก๋์์ต๋๋ค.'; $send_number = preg_replace('/[^0-9]/', '', $qaconfig['qa_send_number']); $recv_number = preg_replace('/[^0-9]/', '', $qaconfig['qa_admin_hp']); if($recv_number) { $strDest = array(); $strDest[] = $recv_number; $strCallBack = $send_number; $strCaller = iconv_euckr(trim($config['cf_title']));; $strSubject = ''; $strURL = ''; $strData = iconv_euckr($sms_content); $strDate = ''; $nCount = count($strDest); $SMS = new LMS; $SMS->SMS_con($config['cf_icode_server_ip'], $config['cf_icode_id'], $config['cf_icode_pw'], $port_setting); $res = $SMS->Add($strDest, $strCallBack, $strCaller, $strSubject, $strURL, $strData, $strDate, $nCount); if($res) { $SMS->Send(); } $SMS->Init(); // ๋ณด๊ดํ๊ณ ์๋ ๊ฒฐ๊ณผ๊ฐ์ ์ง์๋๋ค. } } } } else { include_once(G5_LIB_PATH.'/icode.sms.lib.php'); // ๋ต๋ณ๊ธ์ ์ง๋ฌธ ๋ฑ๋ก์์๊ฒ ์ ์ก if($w == 'a' && $write['qa_sms_recv'] && trim($write['qa_hp'])) { $sms_content = $config['cf_title'].' '.$qaconfig['qa_title'].'์ ๋ต๋ณ์ด ๋ฑ๋ก๋์์ต๋๋ค.'; $send_number = preg_replace('/[^0-9]/', '', $qaconfig['qa_send_number']); $recv_number = preg_replace('/[^0-9]/', '', $write['qa_hp']); if($recv_number) { $SMS = new SMS; // SMS ์ฐ๊ฒฐ $SMS->SMS_con($config['cf_icode_server_ip'], $config['cf_icode_id'], $config['cf_icode_pw'], $config['cf_icode_server_port']); $SMS->Add($recv_number, $send_number, $config['cf_icode_id'], iconv("utf-8", "euc-kr", stripslashes($sms_content)), ""); $SMS->Send(); } } // ๋ฌธ์๊ธ ๋ฑ๋ก์ ๊ด๋ฆฌ์์๊ฒ ์ ์ก if(($w == '' || $w == 'r') && trim($qaconfig['qa_admin_hp'])) { $sms_content = $config['cf_title'].' '.$qaconfig['qa_title'].'์ ๋ฌธ์๊ธ์ด ๋ฑ๋ก๋์์ต๋๋ค.'; $send_number = preg_replace('/[^0-9]/', '', $qaconfig['qa_send_number']); $recv_number = preg_replace('/[^0-9]/', '', $qaconfig['qa_admin_hp']); if($recv_number) { $SMS = new SMS; // SMS ์ฐ๊ฒฐ $SMS->SMS_con($config['cf_icode_server_ip'], $config['cf_icode_id'], $config['cf_icode_pw'], $config['cf_icode_server_port']); $SMS->Add($recv_number, $send_number, $config['cf_icode_id'], iconv("utf-8", "euc-kr", stripslashes($sms_content)), ""); $SMS->Send(); } } } } // ๋ต๋ณ ์ด๋ฉ์ผ์ ์ก if($w == 'a' && $write['qa_email_recv'] && trim($write['qa_email'])) { include_once(G5_LIB_PATH.'/mailer.lib.php'); $subject = $config['cf_title'].' '.$qaconfig['qa_title'].' ๋ต๋ณ ์๋ฆผ ๋ฉ์ผ'; $content = nl2br(conv_unescape_nl(stripslashes($qa_content))); mailer($config['cf_admin_email_name'], $config['cf_admin_email'], $write['qa_email'], $subject, $content, 1); } // ๋ฌธ์๊ธ๋ฑ๋ก ์ด๋ฉ์ผ์ ์ก if(($w == '' || $w == 'r') && trim($qaconfig['qa_admin_email'])) { include_once(G5_LIB_PATH.'/mailer.lib.php'); $subject = $config['cf_title'].' '.$qaconfig['qa_title'].' ์ง๋ฌธ ์๋ฆผ ๋ฉ์ผ'; $content = nl2br(conv_unescape_nl(stripslashes($qa_content))); mailer($config['cf_admin_email_name'], $qa_email, $qaconfig['qa_admin_email'], $subject, $content, 1); } if($w == 'a') $result_url = G5_BBS_URL.'/qaview.php?qa_id='.$qa_id.$qstr; else if($w == 'u' && $write['qa_type']) $result_url = G5_BBS_URL.'/qaview.php?qa_id='.$write['qa_parent'].$qstr; else $result_url = G5_BBS_URL.'/qalist.php'.preg_replace('/^&/', '?', $qstr); if ($file_upload_msg) alert($file_upload_msg, $result_url); else goto_url($result_url); ?>
๐พ Save Changes
๐ฅ Download
๐๏ธ Delete