경고메세지를 alert.php 에서 처리
This commit is contained in:
@ -23,17 +23,21 @@ include_once($g4['path'].'/head.sub.php');
|
||||
<article id="validation_check">
|
||||
<header>
|
||||
<hgroup>
|
||||
<h1>회원가입 정보 입력 확인</h1> <!-- 수행 중이던 작업 내용 -->
|
||||
<h2>다음 항목을 입력하지 않으셨거나 입력에 오류가 있습니다.</h2>
|
||||
<!-- <h1>회원가입 정보 입력 확인</h1> --> <!-- 수행 중이던 작업 내용 -->
|
||||
<h1><?=$header?></h1> <!-- 수행 중이던 작업 내용 -->
|
||||
<h2>다음 항목<!-- 을 입력하지 않으셨거나 입력 -->에 오류가 있습니다.</h2>
|
||||
</hgroup>
|
||||
</header>
|
||||
<p>
|
||||
<!-- <strong>항목</strong> 오류내역 -->
|
||||
<!--
|
||||
<strong>이름</strong> 필수 입력입니다. 한글만 입력할 수 있습니다.<br>
|
||||
<strong>이메일</strong> 올바르게 입력하지 않았습니다.<br>
|
||||
-->
|
||||
<?=$msg?>
|
||||
</p>
|
||||
|
||||
<a href="#">돌아가기</a>
|
||||
<a href="<?=$url?>">돌아가기</a>
|
||||
</article>
|
||||
|
||||
<?
|
||||
|
||||
@ -112,10 +112,15 @@ function get_cookie($cookie_name)
|
||||
// 경고메세지를 경고창으로
|
||||
function alert($msg='', $url='')
|
||||
{
|
||||
global $g4;
|
||||
global $g4, $config, $member;
|
||||
global $is_admin;
|
||||
|
||||
if (!$msg) $msg = '올바른 방법으로 이용해 주십시오.';
|
||||
$msg = str_replace("\\n", "<br>", $msg);
|
||||
|
||||
if (!$url) $url = "javascript:history.go(-1);";
|
||||
|
||||
/*
|
||||
//header("Content-Type: text/html; charset=$g4['charset']");
|
||||
echo "<meta http-equiv=\"content-type\" content=\"text/html; charset={$g4['charset']}\">";
|
||||
echo "<script>alert('$msg');";
|
||||
@ -127,6 +132,13 @@ function alert($msg='', $url='')
|
||||
//echo "<meta http-equiv='refresh' content='0;url=$url'>";
|
||||
goto_url($url);
|
||||
exit;
|
||||
*/
|
||||
$header = '';
|
||||
if (isset($g4['title'])) {
|
||||
$header = $g4['title'];
|
||||
}
|
||||
include_once("{$g4['bbs_path']}/alert.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@ -1479,6 +1491,13 @@ function bad_tag_convert($code)
|
||||
}
|
||||
|
||||
|
||||
// 토큰 생성
|
||||
function _token()
|
||||
{
|
||||
return md5(uniqid(rand(), true));
|
||||
}
|
||||
|
||||
|
||||
// 불법접근을 막도록 토큰을 생성하면서 토큰값을 리턴
|
||||
function get_token()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user