개행문자 변경, 자바스크립트 종결되지 않은 상수 문제 해결

This commit is contained in:
whitedot
2012-12-06 14:51:52 +09:00
parent 5cb18b4335
commit a42d866746
3 changed files with 13 additions and 13 deletions

View File

@ -23,23 +23,23 @@ $mb = get_member($mb_id);
// 회원아이디를 입력해 보고 맞으면 또 패스워드를 입력해보는 경우를 방지하기 위해서입니다.
// 불법사용자의 경우 회원아이디가 틀린지, 패스워드가 틀린지를 알기까지는 많은 시간이 소요되기 때문입니다.
if (!$mb[mb_id] || (sql_password($mb_password) != $mb[mb_password])) {
alert('가입된 회원이 아니거나 패스워드가 틀립니다.'.PHP_EOL.PHP_EOL.'패스워드는 대소문자를 구분합니다.');
alert('가입된 회원이 아니거나 패스워드가 틀립니다.\n\n패스워드는 대소문자를 구분합니다.');
}
// 차단된 아이디인가?
if ($mb[mb_intercept_date] && $mb[mb_intercept_date] <= date("Ymd", $g4[server_time])) {
$date = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})/", "\\1년 \\2월 \\3일", $mb[mb_intercept_date]);
alert('회원님의 아이디는 접근이 금지되어 있습니다.'.PHP_EOL.PHP_EOL.'처리일 : '.$date);
alert('회원님의 아이디는 접근이 금지되어 있습니다.\n\n처리일 : '.$date);
}
// 탈퇴한 아이디인가?
if ($mb[mb_leave_date] && $mb[mb_leave_date] <= date("Ymd", $g4[server_time])) {
$date = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})/", "\\1년 \\2월 \\3일", $mb[mb_leave_date]);
alert('탈퇴한 아이디이므로 접근하실 수 없습니다.'.PHP_EOL.PHP_EOL.'탈퇴일 : '.$date);
alert('탈퇴한 아이디이므로 접근하실 수 없습니다.\n\n탈퇴일 : '.$date);
}
if ($config[cf_use_email_certify] && !preg_match("/[1-9]/", $mb[mb_email_certify]))
alert('메일인증을 받으셔야 로그인 하실 수 있습니다.'.PHP_EOL.PHP_EOL.'회원님의 메일주소는 '.$mb[mb_email].' 입니다.');
alert('메일인증을 받으셔야 로그인 하실 수 있습니다.\n\n회원님의 메일주소는 '.$mb[mb_email].' 입니다.');
$member_skin_path = $g4['path'].'/skin/member/'.$config[cf_member_skin];
@include_once($member_skin_path.'/login_check.skin.php');

View File

@ -372,7 +372,7 @@ if ($w == "") {
if ($old_email != $mb_email && $config[cf_use_email_certify]) {
set_session("ss_mb_id", "");
alert('회원 정보가 수정 되었습니다.'.PHP_EOL.PHP_EOL.'E-mail 주소가 변경되었으므로 다시 인증하셔야 합니다.', $g4['path']);
alert('회원 정보가 수정 되었습니다.\n\nE-mail 주소가 변경되었으므로 다시 인증하셔야 합니다.', $g4['path']);
} else {
echo '
<html><title>회원정보수정</title><meta http-equiv="Content-Type" content="text/html; charset=$g4[charset]"></html><body>

View File

@ -66,7 +66,7 @@ function print_r2($var)
// header("location:URL") 을 대체
function goto_url($url)
{
echo "<script type='text/javascript'> location.replace('$url'); </script>";
echo "<script> location.replace('$url'); </script>";
exit;
}
@ -107,13 +107,13 @@ function get_cookie($cookie_name)
// 경고메세지를 경고창으로
function alert($msg='', $url='')
{
global $g4;
global $g4;
if (!$msg) $msg = '올바른 방법으로 이용해 주십시오.';
//header("Content-Type: text/html; charset=$g4[charset]");
echo "<meta http-equiv=\"content-type\" content=\"text/html; charset={$g4['charset']}\">";
echo "<script type='text/javascript'>alert('$msg');";
//header("Content-Type: text/html; charset=$g4[charset]");
echo "<meta http-equiv=\"content-type\" content=\"text/html; charset={$g4['charset']}\">";
echo "<script>alert('$msg');";
if (!$url)
echo "history.go(-1);";
echo "</script>";
@ -128,10 +128,10 @@ function alert($msg='', $url='')
// 경고메세지 출력후 창을 닫음
function alert_close($msg)
{
global $g4;
global $g4;
echo "<meta http-equiv=\"content-type\" content=\"text/html; charset={$g4['charset']}\">";
echo "<script type='text/javascript'> alert('$msg'); window.close(); </script>";
echo "<meta http-equiv=\"content-type\" content=\"text/html; charset={$g4['charset']}\">";
echo "<script> alert('$msg'); window.close(); </script>";
exit;
}