getToken();
// Place the token inside a server-side session.
$_SESSION['token'] = $token;
// Try to detect a Robot on this form. If found, do you want to show a Captcha?
$robot = $setup->detectrobot();
$siteconf = $shop->load_json("../server/config/site.conf.json");
$result = $shop->getasetting($siteconf,'site.email');
// site.email is also used as 'from' e-mail address, unless you change it...
if($result["site.email"] != '') {
if(strlen($result["site.email"]) > 64) {
$email = $shop->decrypt($result["site.email"]);
} else {
$email = $sanitizer->sanitize($result["site.email"],'email');
}
}
?>
getmeta('../server/config/site.conf.json');
?>
Contact
E-mail
For any inquiry, use the contact form below.
Contact form
Contact us and we will try to get back to your request as soon as time allows us to. Please leave your name and e-mail as well as your request. Thank you for your patience and inquiry.
$email,
'from' => $email,
'name' => $_POST['name'],
'email' => $_POST['email'],
'subject' => $_POST['subject'],
'body' => $_POST['body']
);
// Proceed to check the $_POST data.
$checkForm = new \security\forms\SecureMail($parameters);
// Check the script timer to see how much time was spent.
$spent_time = $checkForm->getTime();
if($spent_time == TRUE) {
// Enough time has been spent, proceed scanning the $_POST data.
$send = TRUE;
if(isset($_SESSION['captcha_question'])) {
if($_SESSION['captcha_question'] != $_POST['captcha']) {
$checkForm->sessionmessage('Captcha was not correct!');
$send = FALSE;
} else {
$send = TRUE;
}
}
if($send == TRUE) {
$scan = $checkForm->fullScan();
// Did the scan found something?
if($scan != FALSE) {
// The class decided the $_POST data was correct.
// Start sending the mail.
$checkForm->sendmail();
// Show a message.
$checkForm->sessionmessage('Mail sent!');
} else {
// The class found something, we cannot send the mail.
$checkForm->sessionmessage('Mail not sent.');
}
}
}
}
// Show all session messages.
$checkStatus = new \security\forms\SecureMail();
$checkStatus->showmessage();
$checkStatus->destroysession();
}
// Setup new secure mail form.
$setup = new \security\forms\SecureMail();
// Clear any previous sessions messages.
$setup->clearmessages();
// Create a secure token.
$token = $setup->getToken();
// Place the token inside a server-side session.
$_SESSION['token'] = $token;
// Create some time to track how long a user takes to complete the form.
$time = $setup->setTime();
?>