notice 오류 해결중

This commit is contained in:
gnuboard
2013-01-09 18:12:31 +09:00
parent c439448eae
commit a618c65321
13 changed files with 45 additions and 82 deletions

View File

@ -1,9 +1,8 @@
<?
$sub_menu = "300100";
//define('_EDITOR_', true);
include_once('./_common.php');
if (isset($editor->lib)) include_once($editor->lib);
auth_check($auth[$sub_menu], 'w');
function b_draw($pos, $color='red') {
@ -818,31 +817,11 @@ function set_point(f) {
}
}
function chk_bo_image(fld)
{
if (fld.value) {
if (!fld.value.toLowerCase().match(/.(gif|jpg|png)$/i)) {
return "이미지가 gif, jpg, png 파일이 아닙니다.";
}
}
return "";
}
function fboardform_submit(f)
{
<?=editor_getdata("bo_content_head");?>
<?=editor_getdata("bo_content_tail");?>
if (msg = chk_bo_image(f.bo_image_head)) {
alert("상단 "+msg);
return false;
}
if (msg = chk_bo_image(f.bo_image_tail)) {
alert("하단 "+msg);
return false;
}
if (parseInt(f.bo_count_modify.value) < 1) {
alert("원글 수정 불가 댓글수는 1 이상 입력하셔야 합니다.");
f.bo_count_modify.focus();