uawdijnntqw1x1x1
IP : 216.73.216.103
Hostname : dsru51-17647.fornex.org
Kernel : Linux dsru51-17647.fornex.org 4.9.0-4-amd64 #1 SMP Debian 4.9.65-3+deb9u1 (2017-12-23) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
rustam
/
data
/
www
/
almaz-koldun.com
/
..
/
www.kran-balka.com
/
exform
/
exform.php
/
/
<?php if (!isset($_REQUEST['mfPath'])) die('Restricted access'); header('Content-Type: text/html; charset=utf-8', true); session_start(); require_once 'config.php'; $config = new ExformConfig; $fieldValue = $fieldClass = array( 'name' => '', 'phone' => '', 'email' => '', 'message' => '' ); $totalErrors = 0; $themePathName = 'themes/' . $_REQUEST['mfTheme'] . '/'; if (file_exists($themePathName . 'config.php')) require $themePathName . 'config.php'; if (isset($_REQUEST['initForm'])) { $_SESSION['mfPath'] = $_REQUEST['mfPath']; require $themePathName . 'form.php'; } //Получение данных по капчи для exform.js. if (isset($_REQUEST['getYandexCaptchaData'])) { $result = [ 'enableYandexCaptcha' => $config->enableYandexCaptcha, //Передаём информацию, есть капча или нет. 'dataYandexCaptcha' => $config->dataYandexCaptcha //Передаём данные по капчи. ]; echo json_encode($result); } // function senMail() // { // require 'helpers/validator.php'; // if (!$totalErrors) { // require $themePathName . 'mail.php'; // require 'helpers/sendmail.php'; // if (!$mailStatus) // $config->finalMessage = $config->errorMail; // require $themePathName . 'final_msg.php'; // } else { // require $themePathName . 'form.php'; // } // } //Отправка if (isset($_REQUEST['send'])) { //Если задана капча if ($config->enableYandexCaptcha) { if (isset($_REQUEST['smart-token'])) { define('SMARTCAPTCHA_SERVER_KEY', $config->dataYandexCaptcha['serverKey']); function check_captcha($token) { $ch = curl_init("https://smartcaptcha.yandexcloud.net/validate"); $args = [ "secret" => SMARTCAPTCHA_SERVER_KEY, "token" => $token, "ip" => $_SERVER['REMOTE_ADDR'], ]; curl_setopt($ch, CURLOPT_TIMEOUT, 1); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($args)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $server_output = curl_exec($ch); $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); if ($httpcode !== 200) { echo "Allow access due to an error: code=$httpcode; message=$server_output\n"; return true; } $resp = json_decode($server_output); return $resp->status === "ok"; } $token = $_POST['smart-token']; if (check_captcha($token)) { require 'helpers/validator.php'; if (!$totalErrors) { require $themePathName . 'mail.php'; require 'helpers/sendmail.php'; if (!$mailStatus) $config->finalMessage = $config->errorMail; require $themePathName . 'final_msg.php'; } else { require $themePathName . 'form.php'; } } else { echo "Ошибка\n"; } } else { echo "Ошибка\n"; } } else { require 'helpers/validator.php'; if (!$totalErrors) { require $themePathName . 'mail.php'; require 'helpers/sendmail.php'; if (!$mailStatus) $config->finalMessage = $config->errorMail; require $themePathName . 'final_msg.php'; } else { require $themePathName . 'form.php'; } } }
/var/www/rustam/data/www/almaz-koldun.com/../www.kran-balka.com/exform/exform.php