diff --git a/bbs/alert.php b/bbs/alert.php
index 55337201f..4d0f26e30 100644
--- a/bbs/alert.php
+++ b/bbs/alert.php
@@ -21,27 +21,44 @@ include_once($g4['path'].'/head.sub.php');
// 이미지 파일이 아닙니다..gif .jpg .png 파일만 가능합니다.
// 파일만 가능합니다.
// 공백이 없어야 합니다.
+
+$msg2 = str_replace("\\n", "
", $msg);
+
+if (!$url) $url = $_SERVER['HTTP_REFERER'];
+
+if($error) {
+ $header2 = "다음 항목에 오류가 있습니다.";
+} else {
+ $header2 = "다음 내용을 확인해 주세요.";
+}
?>
+
+
+
include_once($g4['path'].'/tail.sub.php');
diff --git a/lib/common.lib.php b/lib/common.lib.php
index 1fb09264b..d89c7e662 100644
--- a/lib/common.lib.php
+++ b/lib/common.lib.php
@@ -112,15 +112,12 @@ function get_cookie($cookie_name)
// 경고메세지를 경고창으로
-function alert($msg='', $url='')
+function alert($msg='', $url='', $error=true)
{
global $g4, $config, $member;
global $is_admin;
if (!$msg) $msg = '올바른 방법으로 이용해 주십시오.';
- $msg = str_replace("\\n", "
", $msg);
-
- if (!$url) $url = $_SERVER['HTTP_REFERER'];
/*
//header("Content-Type: text/html; charset=$g4['charset']");