|
 |
EOT;
if($action == 'post'){
$reference_id = md5(mktime()*rand());
echo <<
Kainas Guestbook - Post
|
|
EOT;
}
elseif($action == 'post_process'){
$sdate = time();
list($match_text) = mysql_fetch_array(mysql_query("SELECT hiddentext FROM security_images WHERE referenceid='$_REQUEST[refid]'"));
if(strstr($match_text,$_REQUEST[security])){
$result = mysql_query("insert into entries set adddate='$sdate', name='$_REQUEST[name]', message='$_REQUEST[message]', active='0'");
if(!mail('kaina@kainas.com', "Holy flying guestbooks batman", "Some idiot posted on your guestbook", 'From: nucz@mindspring.com', '-fnucz@mindspring.com')){
echo "WTF, mail did not send \n";
}
echo <<
Kainas Guestbook - Post Success
Your entry has been posted and is awaiting validation from Jaime or Will before it will show live on the guestbook.
Return to the Guestbook
|
|
EOT;
exit;
}
else {
$reference_id = md5(mktime()*rand());
echo <<
Kainas Guestbook - Post Error
There was an error in your submission. Please make sure you enter the Human Verification code properly.
|
|