# I have had trouble with the encoding for this file. When editing, use "TextEdit" on the Mac and make
# sure that the Preferences are set to save in Shift-JIS format. This worked successfully on 2009-12-11.
session_start();
if(!empty($_SESSION['freecap_word_hash']) && !empty($_POST['word']))
{
// all freeCap words are lowercase.
// font #4 looks uppercase, but trust me, it's not...
if($_SESSION['hash_func'](strtolower($_POST['word']))==$_SESSION['freecap_word_hash'])
{
// reset freeCap session vars
// cannot stress enough how important it is to do this
// defeats re-use of known image with spoofed session id
$_SESSION['freecap_attempts'] = 0;
$_SESSION['freecap_word_hash'] = false;
// now process form
// now go somewhere else
#header("Location: http://bujinkan.graycastle.com/keiko/");
$word_ok = "yes";
} else {
$word_ok = "no";
}
} else {
$word_ok = false;
}
include("header.php");
if( ($action == "mail") && ($word_ok == "yes") ){
if ( ($name) && ($email) && ($message) ) {
include("../include/functions.php");
$message1 = "IP: $REMOTE_ADDR\n";
$message1 .= "Message from $name ($email):
";
#$message1 .= addslashes($message);
#$message1 .= $message;
$message1 .= stripslashes($message);
$mail_output = send_msg($name, $email, $message1);
} else {
# Do nothing until the end of this file
}
}
?>
if ($word_ok == "no"){
print "The message could not be sent because the Verification word was incorrect.
Please try again.";
}
?>
|
Thanks for your message.
メッセージありがとう御座いました。
"; } else { echo "
Error: Mail not sent.
エラーが発生したため、メッセージがうまく送信出来ませんでした。おそれいれますが、0471-69-1525までお問い合わせください。
\n"; } } ?>