에디터, 캡챠를 bbs 밑으로 이동후 코드 수정
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
<?
|
||||
$sub_menu = "300100";
|
||||
//define('_EDITOR_', true);
|
||||
define('_EDITOR_', 1);
|
||||
include_once('./_common.php');
|
||||
|
||||
auth_check($auth[$sub_menu], 'w');
|
||||
@ -558,7 +558,7 @@ if (!preg_match("/([m|M])$/", $upload_max_filesize)) {
|
||||
<tr>
|
||||
<th scope="row"><label for="tx_bo_content_head">상단 내용</label></th>
|
||||
<td>
|
||||
<?=editor("bo_content_head", $board['bo_content_head']);?>
|
||||
<?=editor_html("bo_content_head", $board['bo_content_head']);?>
|
||||
</td>
|
||||
<td class="group_setting">
|
||||
<input type="checkbox" id="chk_content_head" name="chk_content_head" value="1">
|
||||
@ -568,7 +568,7 @@ if (!preg_match("/([m|M])$/", $upload_max_filesize)) {
|
||||
<tr>
|
||||
<th scope="row"><label for="tx_bo_content_tail">하단 내용</label></th>
|
||||
<td>
|
||||
<?=editor("bo_content_tail", $board['bo_content_tail']);?>
|
||||
<?=editor_html("bo_content_tail", $board['bo_content_tail']);?>
|
||||
</td>
|
||||
<td class="group_setting">
|
||||
<input type="checkbox" id="chk_content_tail" name="chk_content_tail" value="1">
|
||||
@ -819,8 +819,8 @@ function set_point(f) {
|
||||
|
||||
function fboardform_submit(f)
|
||||
{
|
||||
<?=editor_getdata("bo_content_head");?>
|
||||
<?=editor_getdata("bo_content_tail");?>
|
||||
<?=get_editor_js("bo_content_head");?>
|
||||
<?=get_editor_js("bo_content_tail");?>
|
||||
|
||||
if (parseInt(f.bo_count_modify.value) < 1) {
|
||||
alert("원글 수정 불가 댓글수는 1 이상 입력하셔야 합니다.");
|
||||
|
||||
@ -276,18 +276,5 @@ if ($fields) {
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
|
||||
if ($_FILES['bo_image_head']['name']) {
|
||||
$bo_image_head_path = $board_path.'/'.$bo_image_head_urlencode;
|
||||
move_uploaded_file($_FILES['bo_image_head']['tmp_name'], $bo_image_head_path);
|
||||
chmod($bo_image_head_path, 0606);
|
||||
}
|
||||
|
||||
if ($_FILES['bo_image_tail']['name']) {
|
||||
$bo_image_tail_path = $board_path.'/'.$bo_image_tail_urlencode;
|
||||
move_uploaded_file($_FILES['bo_image_tail']['tmp_name'], $bo_image_tail_path);
|
||||
chmod($bo_image_tail_path, 0606);
|
||||
}
|
||||
|
||||
goto_url("./board_form.php?w=u&bo_table={$bo_table}&{$qstr}");
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user