Beispiel #1
0
}
$str .= "\n-- _SERVER -- \n";
foreach ($_SERVER as $k => $v) {
	$str .= "{$k}: $v\n";
}

//--------------------------------------
// メール送信
//--------------------------------------
$smtp['host'] = MAIL_SMTP;
$smtp['port'] = 25;
$smtp['auth'] = false;

$mail = new MailSender($smtp);
$mail->setFrom(MAIL_FROM);
$mail->setTo(MAIL_TO);
// 話題ID、コメントIDがブランクの場合は別アドレスへ
if (empty($_POST['t']) == true && empty($_POST['m']) == true) {
	$mail->setTo(MAIL_TO_PARAMS_NG);
}
$hostname = @exec('hostname');
$today = date('Y/m/d H:i:s');
$mail->setSubject("[{$hostname}] CGM違反報告 ({$today})");
$mail->send($str);
// urlが取得出来ない場合はリダイレクトしない
//↓↓===========nm00142 start================================
//↓↓if (empty($_POST['url']) == false) {
//↓↓	$url = base64_decode(urldecode($_POST['url']));
//↓↓	header("Location: {$url}#cgm-01");
//↓↓}
if (empty($_POST['name']) == false) {