Ejemplo n.º 1
0
$comment_id = $row[wr_id];
if ($mw_basic[cf_singo]) {
    $row[singo_href] = "javascript:btn_singo({$comment_id}, {$write['wr_parent']})";
}
// 로그버튼
$history_href = "";
if ($mw_basic[cf_post_history] && $member[mb_level] >= $mw_basic[cf_post_history_level]) {
    $history_href = "javascript:btn_history({$row[wr_id]})";
}
if (!$is_comment_write) {
    $row[is_edit] = false;
    $row[is_reply] = false;
}
$tmpsize = array(0, 0);
$is_comment_image = false;
$comment_image = mw_get_noimage();
if ($mw_basic[cf_attribute] != "anonymous" && !$row[wr_anonymous] && $row[mb_id] && file_exists("{$comment_image_path}/{$row[mb_id]}")) {
    $comment_image = "{$comment_image_path}/{$row[mb_id]}";
    $is_comment_image = true;
    $tmpsize = @getImageSize($comment_image);
    $comment_image .= '?' . filemtime($comment_image);
}
$row[content] = mw_reg_str($row[content]);
// 자동치환
$row[content] = bc_code($row[content]);
if (strstr($row[wr_option], "html")) {
    $row[content] = mw_tag_debug($row[content]);
}
$row[content] = mw_set_sync_tag($row[content]);
// 잘못된 태그교정
$row[content] = mw_youtube_content($row[content], "144");
Ejemplo n.º 2
0
    <!-- 글제목 -->
    <td class="mw_basic_list_subject <?php 
                        echo $mw_basic['cf_type'] == 'desc' ? 'desc' : '';
                        ?>
">

        <?php 
                        php;
                        ?>
        <?php 
                        if ($mw_basic[cf_type] == "desc" && is_mw_file($thumb_file)) {
                            if ($list[$i][icon_secret] || $list[$i][is_secret] || $list[$i][wr_view_block] || $list[$i][wr_key_password]) {
                                $thumb_file = $board_skin_path . '/img/lock.png';
                            }
                            if (is_notice($list[$i]['wr_id']) && $thumb_file == mw_get_noimage()) {
                                $thumb_file = $board_skin_path . '/img/notice.png';
                            }
                            echo "<div class='mw_basic_list_thumb thumb_td'>";
                            if ($list[$i][icon_new]) {
                                echo "<div class='icon_gall_new'><img src='{$board_skin_path}/img/icon_gall_new.png'></div>";
                            }
                            echo "<div><a href=\"{$list[$i][href]}\"><img src=\"{$thumb_file}\" width={$mw_basic[cf_thumb_width]} height={$mw_basic[cf_thumb_height]} align='absmiddle' class='list_thumb_img'></a></div>";
                            echo "</div>\n";
                        }
                        if ($mw_basic[cf_type] == "desc") {
                            echo "<div class=mw_basic_list_subject_desc>\n";
                        }
                        echo $list[$i][reply];
                        echo $list[$i][icon_reply];
                        if ($is_category && $list[$i][ca_name]) {