preload('general'); define('ROLE',99); $method=$_SERVER['REQUEST_METHOD']; if ($method=='POST' && isset($url[0]) && $url[0]=='login' && isset($_POST['action']) && $_POST['action']=='login') { $login=new login(); $login=$login->login(); if (!isset($login->message) && $login->Role>2) { WMO::initialize($url,$userId); header('location: '.PATH.'editor'); } } WMO::initialize($url,$userId); if (!WMO_EDITABLE && $method=='POST' && isset($_POST['Phone'])) { if ($_POST['Phone']==='' && $_POST['Address']==='' && $_POST['Country']==='' && validateToken(WMO::getPageURL(),$_POST['_token'])) { $from=filter_input(INPUT_POST, 'EMail', FILTER_SANITIZE_SPECIAL_CHARS); $name=filter_input(INPUT_POST, 'Naam', FILTER_SANITIZE_SPECIAL_CHARS); $message=filter_input(INPUT_POST, 'Bericht', FILTER_SANITIZE_SPECIAL_CHARS); plainMail(array($from,$name),array(array('formulieren@absolutus.nl','Absolutus B.V.')),'Formulier Absolutus',nl2br($message),array($from,$name)); echo '

Bedankt!

We nemen zo spoedig mogelijk contact met u op.

'; } exit(); } include('header.php'); include(WMO::getPageName()); include('footer.php'); ?>