Commit ffed40f0 authored by willy's avatar willy
Browse files

Added honeypot

parent cc02acc4
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@ 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 !';
@@ -16,10 +17,12 @@ if(!isset($_POST['message']) || $_POST['message'] == '' || $_POST['firstname']

        $send = mail($to, $subject, $message, " Message from main server page ! (or smart bot)");
        ($send ? $send = 1 : $send = 0);
    //$url = 'http://niirvana.dev'
        //$url = 'http://niirvana.nii'
        //$url = 'http://localhost/niirvana';
        //$url = 'http://niirvana.coloc';
        $url = 'http://knightsofnii.com';
    }
}
?>

<!DOCTYPE HTML>