Beispiel #1
0
     $total_count = $board[bo_count_write];
 }
 $write_height = 10;
 if ($mw_basic[cf_write_height]) {
     $write_height = $mw_basic[cf_write_height];
 }
 if ($is_dhtml_editor && $mw_basic[cf_editor] == "cheditor" && !is_g5()) {
     /* $g4[cheditor4_path] = "$board_skin_path/cheditor";
        include_once("$board_skin_path/mw.lib/mw.cheditor.lib.php");
        echo "<script type='text/javascript' src='$board_skin_path/cheditor/cheditor.js'></script>";
        echo cheditor1('wr_content', '100%', '250'); */
     include_once "{$g4['path']}/lib/cheditor4.lib.php";
     echo "<script src='{$g4['cheditor4_path']}/cheditor.js'></script>";
     echo cheditor1('wr_content', '100%', $write_height * 25 . 'px');
     if ($mw_basic[cf_type] == 'desc' or $mw_basic[cf_contents_shop] == '2') {
         echo cheditor1('wr_contents_preview', '100%', $write_height * 25 . 'px');
     }
 }
 if ($w == '' && trim($mw_basic[cf_insert_subject])) {
     $subject = $mw_basic[cf_insert_subject];
 }
 $new_time = date("Y-m-d H:i:s", $g4[server_time] - $board[bo_new] * 3600);
 $row = sql_fetch(" select count(*) as cnt from {$write_table} where wr_is_comment = 0 and wr_datetime >= '{$new_time}' ");
 $new_count = $row[cnt];
 if (($mw_basic[cf_attribute] == "anonymous" || $w == 'u' && $write[wr_anonymous]) && $is_admin) {
     $is_name = false;
     $is_password = false;
     $is_email = false;
     $is_homepage = false;
 }
 if (!$is_member) {
}
if ($is_admin != "super") {
    $group = get_group($board[gr_id]);
    $is_admin = is_admin($member[mb_id]);
}
$g4[title] = $html_title;
include_once "./admin.head.php";
?>

<script src="<?php 
echo $g4[cheditor4_path];
?>
/cheditor.js"></script>
<?php 
echo cheditor1('bo_content_head', '100%', '200');
echo cheditor1('bo_content_tail', '100%', '200');
?>

<form name=fboardform method=post onsubmit="return fboardform_submit(this)" enctype="multipart/form-data">
<input type=hidden name="w"     value="<?php 
echo $w;
?>
">
<input type=hidden name="sfl"   value="<?php 
echo $sfl;
?>
">
<input type=hidden name="stx"   value="<?php 
echo $stx;
?>
">
        if (!$mw_basic[cf_editor]) {
            $mw_basic[cf_editor] = "cheditor";
        }
        if (is_g5()) {
            $is_comment_editor = false;
            include_once G5_EDITOR_LIB;
            /*
                $editor_html = editor_html('wr_content', '', $is_comment_editor);
                $editor_js = '';
                $editor_js .= get_editor_js('wr_content', $is_comment_editor);
                $editor_js .= chk_editor_js('wr_content', $is_comment_editor);*/
        } else {
            if ($is_comment_editor && $mw_basic[cf_editor] == "cheditor") {
                include_once "{$g4['path']}/lib/cheditor4.lib.php";
                echo "<script src='{$g4['cheditor4_path']}/cheditor.js'></script>";
                echo cheditor1('wr_content', '100%', '100');
            }
        }
        ?>


<a name="c_write"></a>

<div style="padding:5px 0 0 0;">
<a href="javascript:comment_box('', 'c');" class="fa-button"><i class="fa fa-pencil"></i> 코멘트입력</a>
<?php 
        if ($is_admin) {
            ?>
    <button class="fa-button" onclick="comment_all_delete()"><i class="fa fa-remove"></i> 코멘트삭제</button>
<?php 
        }