uawdijnntqw1x1x1
IP : 216.73.216.207
Hostname : xhost1.intravision.ru
Kernel : Linux xhost1.intravision.ru 3.16.0-7-amd64 #1 SMP Debian 3.16.59-1 (2018-10-03) 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
/
.
/
.
/
backup
/
.
/
.
/
external_www
/
new02.medcomp.ru
/
pretension
/
component.php
/
/
<? if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); if ($_POST['message'] && !$_POST['name']){ // Транслитерируем $arParams = array("safe_chars" => "."); $_FILES['file']['name'] = Cutil::translit($_FILES['file']['name'],"ru",$arParams); // Каталог, в который мы будем принимать файл: $uploaddir = '../upload/pretensions_tmp/'; $uploadfile = $uploaddir.basename($_FILES['file']['name']); // Если прикреплён файл if (($_FILES['file']['size'] > 0 && copy($_FILES['file']['tmp_name'], $uploadfile)) || $_FILES['file']['size'] == 0 || !$_FILES){ if (!substr_count(strtolower($_FILES['file']['name']), '.exe') && !substr_count(strtolower($_FILES['file']['name']), '.php')){ $kod = randString(30); $PROP = array(); $PROP[283] = $_POST['company']; $PROP[284] = $_POST['inn']; $PROP[285] = $_POST['number']; $PROP[286] = $_POST['phone']; $PROP[287] = $_POST['email']; $PROP[289] = $kod; $el = new CIBlockElement; $array = Array( "IBLOCK_ID" => 31, "PROPERTY_VALUES" => $PROP, "PREVIEW_TEXT" => $_POST['message'], "NAME" => 'Новая претензия', "ACTIVE" => "N" ); if ($ID = $el->Add($array)){ $message = "<h2>Для подтверждения отправки пройдите<br>по ссылке, отправленной на электронную почту,<br>указанную Вами при заполнении!</h2>"; // Если прикреплён файл if ($_FILES['file']['size'] > 0){ $file_array = CFile::MakeFileArray($_SERVER["DOCUMENT_ROOT"]."/upload/pretensions_tmp/".$_FILES['file']['name']); //pre($_FILES); $arFiles[] = array('VALUE' => $file_array, 'DESCRIPTION' => $_FILES['file']['name']); $set_prop = array("FILE" => $arFiles); CIBlockElement::SetPropertyValuesEx($ID, 31, $set_prop); unlink($_SERVER["DOCUMENT_ROOT"]."/upload/pretensions_tmp/".$_FILES['file']['name']); } // Отправляем ссылку для подтверждения Email $aEventFields = array( "ID" => $ID, "EMAIL" => $_POST["email"], "KOD" => $kod ); CEvent::SendImmediate("EMAIL_CONFIRM", "s1", $aEventFields); ?> <script type="text/javascript"> $(document).ready(function(){ $('body').append('<form method="post" class="post_form"><input type="hidden" name="msg" value="<?=$message?>"></form>'); $('.post_form').submit(); }); </script> <? } } else { $msg .= "<h2 style='color:red'>Ошибка загрузки файла!</h2>"; ?> <script type="text/javascript"> $(document).ready(function(){ var destination = $('#pretension_form').offset(); $('body, html').animate({scrollTop: destination.top}, 300); setTimeout(function(){ $.fancybox({ content: "<?=$msg?>", helpers: { overlay: { locked: false } } }); }, 301); }); </script> <? } } else { $msg .= "<h2 style='color:red'>Ошибка загрузки файла!</h2>"; ?> <script type="text/javascript"> $(document).ready(function(){ var destination = $('#pretension_form').offset(); $('body, html').animate({scrollTop: destination.top}, 300); setTimeout(function(){ $.fancybox({ content: "<?=$msg?>", helpers: { overlay: { locked: false } } }); }, 301); }); </script> <? } } else if ($_POST['msg'] && !$_POST['name']){ ?> <script type="text/javascript"> $(document).ready(function(){ $.fancybox({ content: "<?=$_POST['msg']?>", helpers: { overlay: { locked: false } } }); }); </script> <? } ?> <script type="text/javascript" src="/bitrix/templates/medcomp/js/jquery.formstyler.min.js"></script> <link href="/bitrix/templates/medcomp/css/jquery.formstyler.css" type="text/css" data-template-style="true" rel="stylesheet" /> <div class="subscribe-wrapper contacts-feedback claim-form_wrap"> <div class="wrap"> <form method="post" id="pretension_form" class="my_feedback_form_3 pretension_form" enctype=multipart/form-data> <div class="subscribe-form claim-form"> <div class="claim-form_inner"> <p class="claim-form_title">Заявка на претензию</p> <div class="claim-form_left"> <input type="text" class="subscribe-text required fieldOrg" placeholder="Организация*" name="company" value="<?=$_POST['company']?>"> <input type="text" class="subscribe-text required fieldInn" placeholder="ИНН*" name="inn" value="<?=$_POST['inn']?>"> <input type="text" class="subscribe-text required fieldNum" placeholder="№ счёта или товарной накладной*" name="number" value="<?=$_POST['number']?>"> <input type="text" class="subscribe-text required phone-mask fieldPhone" placeholder="Телефон*" name="phone" value="<?=$_POST['phone']?>"> <input type="email" class="subscribe-text required fieldEmail" placeholder="E-mail*" name="email" value="<?=$_POST['email']?>"> <input type="text" class="null___view" name="name" value=""> </div> <div class="claim-form_right"> <div class="textarea_wrapping"> <textarea class="contacts-feedback-textarea required fieldMsg" cols="30" rows="10" placeholder="Текст претензии*" name="message"><?=$_POST['message']?></textarea> <div class="file_wrap"> <input type="file" name="file" class="styling" data-placeholder="Прикрепите гарантийный талон или паспорт*"> </div> </div> <input type="button" class="subscribe-button pretension_button to___process" value="Отправить претензию"> <div class="rules_check clearfix"> <input type="checkbox" class="checkbox" id="rulesCheck" name="rules"> <label class="label" for="rulesCheck">Я ознакомлен(а) с Правилами подачи претензии</label> </div> <p class="error_p"></p> <p class="success_p"></p> </div> <div class="clear"></div> </div> </div> </form> </div> </div> <script type="text/javascript"> $(document).ready(function(){ $('.styling').styler(); }); </script>
/var/././backup/././external_www/new02.medcomp.ru/pretension/component.php