+ RedLotus Co.,Ltd +
« home admin »

* は入力必須項目です。
*name
*\n"; } ?> mail
*\n"; } ?> home
category
*\n"; } ?> subject
*message ", "\n", $_POST[message]); } ?>
file
", ">", $_POST[message]); $_POST[message] = str_replace("\n", "
", $_POST[message]); $_POST[subject] = str_replace("\r\n", "\r", $_POST[subject]); $_POST[subject] = str_replace("\r", "\n", $_POST[subject]); $_POST[subject] = str_replace("<", "<", $_POST[subject]); $_POST[subject] = str_replace(">", ">", $_POST[subject]); $_POST[subject] = str_replace("\n", "
", $_POST[subject]); $_POST[name] = str_replace("\r\n", "\r", $_POST[name]); $_POST[name] = str_replace("\r", "\n", $_POST[name]); $_POST[name] = str_replace("<", "<", $_POST[name]); $_POST[name] = str_replace(">", ">", $_POST[name]); $_POST[name] = str_replace("\n", "
", $_POST[name]); $_POST[mail] = htmlspecialchars($_POST[mail]); $_POST[home] = htmlspecialchars($_POST[home]); if (empty($_POST[subject])) { $_POST[subject] = "no title"; } #不要なバックスラッシュを削除 if(get_magic_quotes_gpc()){ $_POST[message] = stripslashes($_POST[message]); $_POST[subject] = stripslashes($_POST[subject]); $_POST[name] = stripslashes($_POST[name]); $_POST[fileup] = stripslashes($_POST[fileup]); } #ヘッダを表示 head(); #タイトルを表示 title(); $flg = 0; #拡張子を取得 if ($_FILES['fileup']['name']) { #ログファイルをすべて格納 $tmpno = file($logcnt); $no = $tmpno[0]; #拡張子の直前の「.」を検索 $searchdot = strrpos($_FILES['fileup']['name'],"."); #拡張子を格納 $tail = substr($_FILES['fileup']['name'],$searchdot,strlen($_FILES['fileup']['name'])-$searchdot+1); #禁止拡張子かを調査 foreach($ok_file as $chktail) { if (eregi($chktail,$tail)) { $flg=1; $filename = $_FILES['fileup']['name']; $filetype = $_FILES['fileup']['type']; move_uploaded_file($_FILES['fileup']['tmp_name'], $UpDir.$_FILES['fileup']['name']); #ログ用にコピー $usefile = "$UpDir$no$tail"; copy($UpDir.$_FILES['fileup']['name'], $usefile); $size = filesize("$usefile"); if ($maxsize < $size) { $flg=2; if (file_exists($usefile)) { unlink($usefile); } if (file_exists($UpDir.$_FILES['fileup']['name'])) { unlink($UpDir.$_FILES['fileup']['name']); } } } } } ?>
下記内容でよろしければ「post」をクリックしてください。
訂正する場合は、「back」をクリックしてください。

name ", "\n", $_POST[name]); ?>
mail
home
category
subject ", "\n", $_POST[subject]); ?>
message ", "\n", $_POST[message]); $_POST[message] = str_replace('"', '”', $_POST[message]); ?>
file $filename\n"; } elseif ($flg == 2) { echo "添付の最大容量を超えていますので添付できません。
添付なしで送る場合はpostをクリックしてください。\n"; } else { echo "添付できないファイルです。
添付なしで送る場合はpostをクリックしてください。\n"; } ?>
\n"; echo "\n"; } ?>
\n"; echo "\n"; echo "\n"; } ?>
", ">", $_POST[message]); $_POST[message] = str_replace("\n", "
", $_POST[message]); $_POST[message] = str_replace('”', '"', $_POST[message]); $_POST[name] = str_replace("<", "<", $_POST[name]); $_POST[name] = str_replace(">", ">", $_POST[name]); $_POST[name] = str_replace("\n", "
", $_POST[name]); $_POST[name] = str_replace('”', '"', $_POST[name]); $_POST[subject] = str_replace("<", "<", $_POST[subject]); $_POST[subject] = str_replace(">", ">", $_POST[subject]); $_POST[subject] = str_replace("\n", "
", $_POST[subject]); $_POST[subject] = str_replace('”', '"', $_POST[subject]); $_POST[mail] = htmlspecialchars($_POST[mail]); $_POST[home] = htmlspecialchars($_POST[home]); #不要なバックスラッシュを削除 if(get_magic_quotes_gpc()){ $_POST[name] = stripslashes($_POST[name]); $_POST[subject] = stripslashes($_POST[subject]); $_POST[message] = stripslashes($_POST[message]); } #メール用カテゴリの名前格納 for ($i=0; $i < count($category); $i++) { if ($i == $_POST[category]) { $cat = $category[$i]; } } #IP取得 $addr = getenv("REMOTE_ADDR"); $host = getenv("REMOTE_HOST"); $useragent = getenv("HTTP_USER_AGENT"); #新しいデータを作成 $newdata = "$no<>$_POST[name]<>$_POST[mail]<>$_POST[category]<>$_POST[subject]<>$_POST[tail]<>$nowdate<>\n"; #新しいメインデータを作成 $newmaindata = "$no<>$_POST[name]<>$_POST[mail]<>$_POST[home]<>$_POST[category]<>$_POST[subject]<>$_POST[message]<>$host<>$addr<>$useragent<>$_POST[tail]<>$nowdate<>\n"; #ログファイルの1行目を削除 array_shift($logall); #ログファイルを格納 array_unshift($logall,$newdata); #最大保存記事数チェック if (count($logall) > $maxdata) { $deldata = array_pop($logall); list($delno,$xx,$xx,$xx,$xx,$tail) = split("<>",$deldata); if (file_exists($logdir.$delno.".php")) { unlink($logdir.$delno.".php"); } if (file_exists($UpDir.$delno.$tail)) { unlink($UpDir.$delno.$tail); } } array_unshift($logall,"", "\n", $_POST[message]); $_POST[message] = str_replace("<", "<", $_POST[message]); $_POST[message] = str_replace(">", ">", $_POST[message]); $_POST[name] = str_replace("
", "\n", $_POST[name]); $_POST[name] = str_replace("<", "<", $_POST[name]); $_POST[name] = str_replace(">", ">", $_POST[name]); $_POST[subject] = str_replace("
", "\n", $_POST[subject]); $_POST[subject] = str_replace("<", "<", $_POST[subject]); $_POST[subject] = str_replace(">", ">", $_POST[subject]); $to = $AdminMail; $from = $_POST[mail]; $subject = $_POST[subject]; #半角を全角そしてJISに変換 $subject = convert($_POST[subject]); $name = convert($_POST[name]); #題名・名前はBエンコード $subject = "=?iso-2022-jp?B?" . base64_encode($subject) . "?="; $name = "=?iso-2022-jp?B?" . base64_encode($name) . "?="; $filename = "=?iso-2022-jp?B?" . base64_encode($_POST[fileup]) . "?="; $header = "From: $name <". $_POST[mail] .">\n"; $header .= "Reply-To: ". $_POST[mail] ."\n"; $header .= "X-Mailer: PHP/" . phpversion() . " & Pmail2 $version by rocomotion" . "\n"; $header .= "MIME-version: 1.0\n"; if ($_POST[fileup] && $mailfile) { $header .= "Content-Type: multipart/mixed;"; $header .= "boundary=\"$boundary\"\n"; $body .= "--$boundary\n"; $body .= "Content-type: text/plain; charset=\"iso-2022-jp\"\n"; $body .= "Content-transfer-encoding: 7bit\n\n"; } else { $header .= "Content-type: text/plain; charset=\"iso-2022-jp\"\n"; $header .= "Content-transfer-encoding: 7bit\n\n"; } $msg = "date :" . $nowdate ."\n"; $msg .= "host(IP):" . $host . "(" . $addr . ")" . "\n"; $msg .= "browser :" . $useragent . "\n"; $msg .= "name :" . $_POST[name] . "\n"; $msg .= "mail :" . $_POST[mail] . "\n"; $msg .= "url :http://" . $_POST[home] . "\n\n"; $msg .= "subject :" . $_POST[subject] . "\n"; $msg .= "category:" . $cat . "\n"; #設定でファイルを添付せずにリンクのみの場合 if ($_POST[fileup] && !$mailfile) { $msg .= "file :" . "$UpUrl$no$_POST[tail]\n"; } $msg .= "message :\n" . $_POST[message] ."\n"; $msg2 = convert($msg); $body .= $msg2; if ($_POST[fileup] && $mailfile) { $body .= "--$boundary\n"; $body .= "Content-Type: ".$_POST[filetype].";\n"; $body .= "name=\"$filename\"\n"; $body .= "Content-Transfer-Encoding: base64\n"; $body .= "Content-Disposition: attachment; filename=\"$filename\"\n\n"; $body .= "$fileenc\n"; $body .= "--$boundary--"; } mail($to, $subject , $body , $header); if ($_POST[fileup]) { if (file_exists($UpDir.$_POST[fileup])) { unlink ($UpDir.$_POST[fileup]); } } } #ログのカウントをインクリメント $no = $no + 1; #ログカウントファイル更新 #ファイルを開く $fp = fopen($logcnt,"w"); #ファイルロック flock($fp,LOCK_EX); #配列をログファイルへ書き出し fputs($fp, $no); #ファイルロック解除 flock($fp,LOCK_UN); #ファイルを閉じる fclose($fp); #ヘッダを表示 head(); #タイトルを表示 title(); ?>

管理人へメッセージを送信しました。

back


- admin only -

pass :
back
« back
- admin menu -

「detail」をクリックすると詳細な内容を見る事ができます。
ここのログは最新投稿から最大件分見る事ができます。

",$lines); $i++; if ($_POST[page] != "") { if ($i < $_POST[page] + 1) { continue; } if ($i > $_POST[page] + $maxview) { continue; } } #mail、home整形 if (!empty($mail)) { $mail = "$name"; } #subject変換 if (strlen($subject) > $sub_len*2) { $subject = substr($subject,0,$sub_len*2); $subject .= "..."; } echo "\n"; echo "\n"; echo "\n"; echo "\n"; if ($tail) { echo "\n"; } else { echo "\n"; } echo "\n"; echo "\n"; echo "\n"; #next,backボタン表示の設定 $next = $_POST[page] + $maxview; $back = $_POST[page] - $maxview; } echo "
name subject date file detail
$name$subject$date \n"; echo "
\n"; echo "\n"; echo "\n"; echo "\n"; echo "
\n"; echo "
\n"; echo "\n"; echo "\n"; echo "\n"; } else { echo " "; } if ($next < $i) { echo "\n"; } echo "\n"; echo "
\n"; if ($back >= 0) { echo "
\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
\n"; echo "
\n"; echo "
\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
\n"; echo "
\n"; } #フッタを表示 foot(); exit; } ?>
« back
- detail log -

",$lines); if ($no == $_POST[no]) { ?>
date
name
host(ip)
browser
mail
home http://
category
subject
message
attached file こちら( $tail ファイル )\n"; } ?>
Error!



back

« back

- file check mode -

\n"; } else { echo "ログファイル($log)\n"; } echo "\n"; } else { echo "  パーミッション\n"; } echo "\n"; echo "\n"; echo "\n"; } else { echo "ログカウントファイル($logcnt)\n"; } echo "\n"; } else { echo "  パーミッション\n"; } echo "\n"; echo "\n"; echo "\n"; } else { echo "ログ格納ディレクトリ($logdir)\n"; } echo "\n"; } else { echo "  パーミッション\n"; } echo "\n"; echo "\n"; echo "\n"; } else { echo "添付ファイル格納ディレクトリ($UpDir)\n"; } echo "\n"; } else { echo "  パーミッション\n"; } echo "\n"; echo "
OKNG\n"; #ログファイル書き込みチェック if (is_writable($log)) { echo "  パーミッションOKNG
\n"; #ログカウントファイル存在チェック if (file_exists($logcnt)) { echo "ログカウントファイル($logcnt)OKNG\n"; #ログカウントファイル書き込みチェック if (is_writable($logcnt)) { echo "  パーミッションOKNG
\n"; #ログ格納ディレクトリ存在チェック if (file_exists($logdir)) { echo "ログ格納ディレクトリ($logdir)OKNG\n"; #ログ格納ディレクトリ書き込みチェック if (is_writable($logdir)) { echo "  パーミッションOKNG
\n"; #添付ファイル格納ディレクトリ存在チェック if (file_exists($UpDir)) { echo "添付ファイル格納ディレクトリ($UpDir)OKNG\n"; #添付ファイル格納ディレクトリ書き込みチェック if (is_writable($UpDir)) { echo "  パーミッションOKNG
\n"; ?>