_s('General questions/comments'), 'dmca' => _s('DMCA complaint'), ]; 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'); ?>

通过点击图像预览来编辑或调整任意图像的大小
通过点击图像预览来调整任意图像
上传 0 图片 (0% 完成)
队列上传中. 顷刻间便能完成.
上传完毕
图片已经添加到 . 您可以将刚刚上传的图片 创建相册.
图片已经添加到 .
您可以将刚刚上传的图片 创建相册. 您必须 注册账户登录 才能将此内容保存到您的帐户中。
没有 图片被上传
Some errors have occurred and the system couldn't process your request.
    注意: 一些图像不能上传. 了解更多
    检查 错误报告 更多信息.
    JPG PNG BMP GIF 1 MB
    通知: 我们必须对上传的内容进行严格审核,只有审核通过后的内容才能进行分享。