Commit ffed40f0 authored by willy's avatar willy

Added honeypot

parent cc02acc4
......@@ -9,16 +9,19 @@ if(!isset($_POST['message']) || $_POST['message'] == '' || $_POST['firstname']
if(isset($_POST['nom']) && $_POST['nom'] != '') {
$_POST['nom']='Annonymus';
}
if(empty($_POST['firstname']) && empty($_POST['lastname'])) {
$to = 'admin@knightsofnii.com';
$subject = 'Message from the nii presentation page !';
$message = $_POST['message']." ".$contact;
$to = 'admin@knightsofnii.com';
$subject = 'Message from the nii presentation page !';
$message = $_POST['message']." ".$contact;
$send = mail($to, $subject, $message, " Message from main server page ! (or smart bot)");
($send ? $send = 1 : $send = 0);
//$url = 'http://niirvana.dev'
//$url = 'http://localhost/niirvana';
$url = 'http://knightsofnii.com';
$send = mail($to, $subject, $message, " Message from main server page ! (or smart bot)");
($send ? $send = 1 : $send = 0);
//$url = 'http://niirvana.nii'
//$url = 'http://localhost/niirvana';
//$url = 'http://niirvana.coloc';
$url = 'http://knightsofnii.com';
}
}
?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment