사용자단 따옴표 작업 bbs/good.php 까지 진행
This commit is contained in:
@ -1,12 +1,12 @@
|
||||
<?
|
||||
include_once("./_common.php");
|
||||
include_once("$g4[path]/lib/mailer.lib.php");
|
||||
include_once('./_common.php');
|
||||
include_once("$g4['path']/lib/mailer.lib.php");
|
||||
|
||||
if (!$config[cf_email_use])
|
||||
alert("환경설정에서 \'메일발송 사용\'에 체크하셔야 메일을 발송할 수 있습니다.\\n\\n관리자에게 문의하시기 바랍니다.");
|
||||
alert('환경설정에서 "메일발송 사용"에 체크하셔야 메일을 발송할 수 있습니다.'.PHP_EOL.PHP_EOL.'관리자에게 문의하시기 바랍니다.');
|
||||
|
||||
if (!$is_member && $config[cf_formmail_is_member])
|
||||
alert_close("회원만 이용하실 수 있습니다.");
|
||||
alert_close('회원만 이용하실 수 있습니다.');
|
||||
|
||||
$to = base64_decode($to);
|
||||
|
||||
@ -14,17 +14,17 @@ if (substr_count($to, "@") > 1)
|
||||
alert_close('한번에 한사람에게만 메일을 발송할 수 있습니다.');
|
||||
|
||||
|
||||
$key = get_session("captcha_keystring");
|
||||
$key = get_session('captcha_keystring');
|
||||
if (!($key && $key == $_POST[wr_key])) {
|
||||
session_unregister("captcha_keystring");
|
||||
alert("정상적인 접근이 아닌것 같습니다.");
|
||||
session_unregister('captcha_keystring');
|
||||
alert('정상적인 접근이 아닌것 같습니다.');
|
||||
}
|
||||
|
||||
|
||||
for ($i=1; $i<=$attach; $i++)
|
||||
{
|
||||
if ($_FILES["file".$i][name])
|
||||
$file[] = attach_file($_FILES["file".$i][name], $_FILES["file".$i][tmp_name]);
|
||||
if ($_FILES['file'.$i][name])
|
||||
$file[] = attach_file($_FILES['file'.$i][name], $_FILES['file'.$i][tmp_name]);
|
||||
}
|
||||
|
||||
$content = stripslashes($content);
|
||||
@ -38,7 +38,7 @@ if ($type == 2)
|
||||
if ($type)
|
||||
{
|
||||
$current_url = $g4[url];
|
||||
$mail_content = "<html><head><meta http-equiv='content-type' content='text/html; charset=$g4[charset]'><title>메일보내기</title><link rel='stylesheet' href='$current_url/style.css' type='text/css'></head><body>$content</body></html>";
|
||||
$mail_content = '<!doctype html><html lang="ko"><head><meta charset="'.$g4[charset].'"><title>메일보내기</title><link rel="stylesheet" href="'.$current_url.'/style.css"></head><body>'.$content.'</body></html>';
|
||||
}
|
||||
else
|
||||
$mail_content = $content;
|
||||
@ -46,10 +46,10 @@ else
|
||||
mailer($fnick, $fmail, $to, $subject, $mail_content, $type, $file);
|
||||
|
||||
//$html_title = $tmp_to . "님께 메일발송";
|
||||
$html_title = "메일 발송중";
|
||||
include_once("$g4[path]/head.sub.php");
|
||||
$html_title = '메일 발송중';
|
||||
include_once($g4['path'].'/head.sub.php');
|
||||
|
||||
alert_close("메일을 정상적으로 발송하였습니다.");
|
||||
alert_close('메일을 정상적으로 발송하였습니다.');
|
||||
|
||||
include_once("$g4[path]/tail.sub.php");
|
||||
include_once($g4['path'].'/tail.sub.php');
|
||||
?>
|
||||
Reference in New Issue
Block a user