_s('General questions/comments'), 'dmca' => _s('DMCA complaint'), 'partenaire' => _s('Demande de partenariat'), ]; if (is_captcha_needed() || (CHV\getSetting('recaptcha') && CHV\getSetting('force_recaptcha_contact_page'))) { G\Handler::setCond('captcha_show', true); G\Handler::setVar(...CHV\Render\get_recaptcha_component()); } if ($_POST) { if (!G\Handler::checkAuthToken($_REQUEST['auth_token'])) { die(_s("Request denied")); } // Validate post data if (strlen($_POST['name']) == 0) { $input_errors['name'] = _s('Invalid name'); } if (strlen($_POST['message']) == 0) { $input_errors['message'] = _s('Invalid message'); } if (!array_key_exists($_POST['subject'], $allowed_subjects)) { $input_errors['subject'] = _s('Invalid subject'); } if (!filter_var($_POST['email'], FILTER_VALIDATE_EMAIL)) { $input_errors['email'] = _s('Invalid email'); } if (G\Handler::getCond('captcha_show')) { $captcha = CHV\recaptcha_check(); if (!$captcha->is_valid) { $input_errors['recaptcha'] = _s('%s says you are a robot', 'reCAPTCHA'); } } if (count($input_errors) > 0) { $is_error = true; } else { $email = trim($_POST['email']); $subject = CHV\getSettings()['website_name'] . ' contact form'; $name = $_POST['name']; $send_mail = [ 'to' => CHV\getSettings()['email_incoming_email'], 'from' => [CHV\getSettings()['email_from_email'], $name . ' (' . CHV\getSettings()['website_name'] . ' contact form)'], 'reply-to' => [$email] ]; $body_arr = [ // Mail body array (easier to edit) 'Name' => $name, 'E-mail' => $email, 'User' => (CHV\Login::isLoggedUser() ? CHV\Login::getUser()['url'] : 'not user'), 'Subject' => $_POST['subject'] . "\n", 'Message' => strip_tags($_POST['message']) . "\n", 'IP' => G\get_client_ip(), 'Browser' => getenv("HTTP_USER_AGENT"), 'URL' => G\get_base_url() . "\n" ]; // Format body message $body = ''; foreach ($body_arr as $k => $v) { $body .= $k . ': ' . $v . "\n"; } // Mail send handle try { CHV\send_mail($send_mail, $subject, $body); $is_sent = true; } catch (Exception $e) { $is_error = true; $error = _s('Mail error') . ': ' . $e->getMessage(); } } } G\Render\include_theme_header(); ?>

' . _s('Message sent') : _s('Contact'); ?>

Loi DADVSI : loi relative au Droit d’Auteur et aux Droits Voisins dans la Société de l’Information
Customize upload by clicking on any preview
Customize upload by touching on any preview
You can also 從電腦內選擇.
You can also 從您的設備瀏覽 or 截圖.
上傳中 0 files (0% 完成)
佇列上傳中. 需要一點時間來完成
上傳完成
上傳的內容已經添加到 您已經可以使用剛剛上傳的建立新相簿
上傳的內容已經添加到
您已經可以使用剛剛上傳的建立新相簿 您必須 建立新帳號登入 才能將此內容保存到您的帳戶中。
沒有file已經上傳
Some errors have occurred and the system couldn't process your request.
    取消取消剩下的
    Note: Some files couldn't be uploaded. 了解更多
    檢查 錯誤報告 來了解更多訊息.