* GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
if (!defined("_GNUBOARD_")) {
    exit;
}
// 개별 페이지 접근 불가
$mw_is_comment = true;
include_once "{$board_skin_path}/mw.lib/mw.skin.basic.lib.php";
$wr_content = mw_spelling($wr_content);
// 컨텐츠샵 멤버쉽
if (function_exists("mw_cash_is_membership")) {
    $is_membership = @mw_cash_is_membership($member[mb_id], $bo_table, "mp_comment");
    if ($is_membership == "no") {
    } else {
        if ($is_membership != "ok") {
            mw_cash_alert_membership($is_membership);
        }
    }
    //alert("$is_membership 회원만 이용 가능합니다.");
}
$is_comment_write = false;
if ($member[mb_level] >= $board[bo_comment_level]) {
    $is_comment_write = true;
}
if ($is_comment_write) {
    if ($mw_basic[cf_comment_ban] && $write[wr_comment_ban]) {
        $is_comment_write = false;
Пример #2
0
$is_head = true;
$wr_content = mw_spelling($wr_content);
$wr_subject = mw_spelling($wr_subject);
$write_run_time = mw_time_log($write_run_time, "[write-head] mw_spelling");
// 실명인증
if ($mw_basic[cf_kcb_write] && !is_okname()) {
    if ($mw_basic[cf_kcb_type] == "okname") {
        alert("실명인증 후 이용하실 수 있습니다.");
    } else {
        alert("성인인증 후 이용하실 수 있습니다.");
    }
    $write_run_time = mw_time_log($write_run_time, "[write-head] kcb okname");
}
// 컨텐츠샵 멤버쉽
if (function_exists("mw_cash_is_membership")) {
    $is_membership = @mw_cash_is_membership($member[mb_id], $bo_table, "mp_write");
    $write_run_time = mw_time_log($write_run_time, "[write-head] is_membership");
    if ($is_membership == "no") {
    } else {
        if ($is_membership != "ok") {
            alert("{$is_membership} 회원만 이용 가능합니다.");
        }
    }
}
if ($mw_basic[cf_must_notice]) {
    // 공지 필수
    $tmp_notice = str_replace($notice_div, ",", trim($board[bo_notice]));
    $cnt_notice = sizeof(explode(",", $tmp_notice));
    if ($tmp_notice) {
        $sql = "select count(*) as cnt from {$mw['must_notice_table']} where bo_table = '{$bo_table}' and mb_id = '{$member['mb_id']}' and wr_id in ({$tmp_notice})";
        $row = sql_fetch($sql);
Пример #3
0
    $content .= " <span onclick=\"btn_singo_view({$view[wr_id]})\" class='btn_singo_block'>여기</span>를 클릭하시면 내용을 볼 수 있습니다.";
    if ($is_admin == "super") {
        $content .= " <span class='btn_singo_block' onclick=\"btn_singo_clear({$view[wr_id]})\">[신고 초기화]</span> ";
    }
    $content .= " </div>";
    $content .= " <div id='singo_block_{$view[wr_id]}' class='singo_block'> {$view[content]} </div>";
    $view[wr_subject] = "신고가 접수된 게시물입니다.";
    $view[subject] = $view[wr_subject];
    $view[rich_content] = $content;
}
if ($mw_basic[cf_include_view_top] && is_mw_file($mw_basic[cf_include_view_top])) {
    include $mw_basic[cf_include_view_top];
}
// 컨텐츠샵 멤버쉽
if (function_exists("mw_cash_is_membership") && $member[mb_id] != $write[mb_id]) {
    $is_membership = @mw_cash_is_membership($member[mb_id], $bo_table, "mp_view");
    if ($is_membership == "no") {
    } else {
        if ($is_membership != "ok") {
            mw_cash_alert_membership($is_membership);
        }
    }
    //alert("$is_membership 회원만 이용 가능합니다.");
}
// 관리자라면 CheckBox 보임
$is_checkbox = false;
if ($member[mb_id] && ($is_admin == "super" || $group[gr_admin] == $member[mb_id] || $board[bo_admin] == $member[mb_id])) {
    $is_checkbox = true;
}
$prev_wr_subject = str_replace("\"", "'", $prev_wr_subject);
$next_wr_subject = str_replace("\"", "'", $next_wr_subject);
Пример #4
0
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
if (!defined("_GNUBOARD_")) {
    exit;
}
// 개별 페이지 접근 불가
// 배추컨텐츠샵 맴버쉽
// 컨텐츠샵 멤버쉽
if (function_exists("mw_cash_is_membership")) {
    $is_membership = @mw_cash_is_membership($member[mb_id], $bo_table);
    if ($is_membership != "no") {
        ?>

<script type="text/javascript" src="<?php 
        echo $mw_cash[path];
        ?>
/cybercash.js"></script>
<script type="text/javascript">
var mw_cash_path = "<?php 
        echo $mw_cash[path];
        ?>
";
</script>

<div id="membership-info">