\n";
if ( $_SERVER['REQUEST_METHOD'] == 'GET' ) {
print "| \n";
print "\n";
print " | \n";
}
elseif ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
print "\n";
if ( $_SERVER['HTTP_REFERER'] == 'http://rev.gabe.helou.org/contact.phtml' ) {
if ( $_REQUEST['cc'] == 'yes' ) {
$cc = "Cc: " . $_REQUEST['email'];
}
else {
$cc = "X-Note: No Cc sent";
}
mail( "contact@rev.gabe.helou.org",
$_REQUEST['subject'],
$_REQUEST['message'],
"From: \"" . $_REQUEST['name'] . "\" <" . $_REQUEST['email'] . ">" . "\n" . $cc
);
print "Message sent!\n";
print " \n";
print "Return to main page";
// phpinfo();
}
else {
print "Sorry, but this request seems to have come from the wrong server.";
}
print " | \n";
}
else {
exit(0);
}
print "
\n";
print "