uawdijnntqw1x1x1
IP : 18.116.118.216
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) 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
/
axolotl
/
data
/
www
/
yar.axolotls.ru
/
.
/
bitrix
/
components
/
bitrix
/
main.feedback
/
component.php
/
/
<?php if(!defined("B_PROLOG_INCLUDED")||B_PROLOG_INCLUDED!==true)die(); /** * Bitrix vars * * @var array $arParams * @var array $arResult * @var CBitrixComponent $this * @global CMain $APPLICATION * @global CUser $USER */ $arResult["PARAMS_HASH"] = md5(serialize($arParams).$this->GetTemplateName()); $arParams["USE_CAPTCHA"] = (($arParams["USE_CAPTCHA"] != "N" && !$USER->IsAuthorized()) ? "Y" : "N"); $arParams["EVENT_NAME"] = trim($arParams["EVENT_NAME"]); if($arParams["EVENT_NAME"] == '') $arParams["EVENT_NAME"] = "FEEDBACK_FORM"; $arParams["EMAIL_TO"] = trim($arParams["EMAIL_TO"]); if($arParams["EMAIL_TO"] == '') $arParams["EMAIL_TO"] = COption::GetOptionString("main", "email_from"); $arParams["OK_TEXT"] = trim($arParams["OK_TEXT"]); if($arParams["OK_TEXT"] == '') $arParams["OK_TEXT"] = GetMessage("MF_OK_MESSAGE"); if($_SERVER["REQUEST_METHOD"] == "POST" && $_POST["submit"] <> '' && (!isset($_POST["PARAMS_HASH"]) || $arResult["PARAMS_HASH"] === $_POST["PARAMS_HASH"])) { $arResult["ERROR_MESSAGE"] = array(); if(check_bitrix_sessid()) { if(empty($arParams["REQUIRED_FIELDS"]) || !in_array("NONE", $arParams["REQUIRED_FIELDS"])) { if((empty($arParams["REQUIRED_FIELDS"]) || in_array("NAME", $arParams["REQUIRED_FIELDS"])) && strlen($_POST["user_name"]) <= 1) $arResult["ERROR_MESSAGE"][] = GetMessage("MF_REQ_NAME"); if((empty($arParams["REQUIRED_FIELDS"]) || in_array("EMAIL", $arParams["REQUIRED_FIELDS"])) && strlen($_POST["user_email"]) <= 1) $arResult["ERROR_MESSAGE"][] = GetMessage("MF_REQ_EMAIL"); if((empty($arParams["REQUIRED_FIELDS"]) || in_array("MESSAGE", $arParams["REQUIRED_FIELDS"])) && strlen($_POST["MESSAGE"]) <= 3) $arResult["ERROR_MESSAGE"][] = GetMessage("MF_REQ_MESSAGE"); } if(strlen($_POST["user_email"]) > 1 && !check_email($_POST["user_email"])) $arResult["ERROR_MESSAGE"][] = GetMessage("MF_EMAIL_NOT_VALID"); if($arParams["USE_CAPTCHA"] == "Y") { $captcha_code = $_POST["captcha_sid"]; $captcha_word = $_POST["captcha_word"]; $cpt = new CCaptcha(); $captchaPass = COption::GetOptionString("main", "captcha_password", ""); if (strlen($captcha_word) > 0 && strlen($captcha_code) > 0) { if (!$cpt->CheckCodeCrypt($captcha_word, $captcha_code, $captchaPass)) $arResult["ERROR_MESSAGE"][] = GetMessage("MF_CAPTCHA_WRONG"); } else $arResult["ERROR_MESSAGE"][] = GetMessage("MF_CAPTHCA_EMPTY"); } if(empty($arResult["ERROR_MESSAGE"])) { $arFields = Array( "AUTHOR" => $_POST["user_name"], "AUTHOR_EMAIL" => $_POST["user_email"], "EMAIL_TO" => $arParams["EMAIL_TO"], "TEXT" => $_POST["MESSAGE"], ); if(!empty($arParams["EVENT_MESSAGE_ID"])) { foreach($arParams["EVENT_MESSAGE_ID"] as $v) if(IntVal($v) > 0) CEvent::Send($arParams["EVENT_NAME"], SITE_ID, $arFields, "N", IntVal($v)); } else CEvent::Send($arParams["EVENT_NAME"], SITE_ID, $arFields); $_SESSION["MF_NAME"] = htmlspecialcharsbx($_POST["user_name"]); $_SESSION["MF_EMAIL"] = htmlspecialcharsbx($_POST["user_email"]); LocalRedirect($APPLICATION->GetCurPageParam("success=".$arResult["PARAMS_HASH"], Array("success"))); } $arResult["MESSAGE"] = htmlspecialcharsbx($_POST["MESSAGE"]); $arResult["AUTHOR_NAME"] = htmlspecialcharsbx($_POST["user_name"]); $arResult["AUTHOR_EMAIL"] = htmlspecialcharsbx($_POST["user_email"]); } else $arResult["ERROR_MESSAGE"][] = GetMessage("MF_SESS_EXP"); } elseif($_REQUEST["success"] == $arResult["PARAMS_HASH"]) { $arResult["OK_MESSAGE"] = $arParams["OK_TEXT"]; } if(empty($arResult["ERROR_MESSAGE"])) { if($USER->IsAuthorized()) { $arResult["AUTHOR_NAME"] = $USER->GetFormattedName(false); $arResult["AUTHOR_EMAIL"] = htmlspecialcharsbx($USER->GetEmail()); } else { if(strlen($_SESSION["MF_NAME"]) > 0) $arResult["AUTHOR_NAME"] = htmlspecialcharsbx($_SESSION["MF_NAME"]); if(strlen($_SESSION["MF_EMAIL"]) > 0) $arResult["AUTHOR_EMAIL"] = htmlspecialcharsbx($_SESSION["MF_EMAIL"]); } } if($arParams["USE_CAPTCHA"] == "Y") $arResult["capCode"] = htmlspecialcharsbx($APPLICATION->CaptchaGetCode()); $this->IncludeComponentTemplate();
/var/www/axolotl/data/www/yar.axolotls.ru/./bitrix/components/bitrix/main.feedback/component.php