%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 3.138.33.201
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64
User : www-root ( 1010)
PHP Version : 7.4.33
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,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/imag/24/bitrix/templates/artlot24/components/bitrix/main.register/main/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/imag/24/bitrix/templates/artlot24/components/bitrix/main.register/main//template.php
<?php

use Bitrix\Main\Context;
use Bitrix\Main\Web\Uri;

if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true){
	die();
}
/**
 * Bitrix Framework
 * @package bitrix
 * @subpackage main
 * @copyright 2001-2014 Bitrix
 */
/**
 * Bitrix vars
 * @global CMain $APPLICATION
 * @global CUser $USER
 * @param array $arParams
 * @param array $arResult
 * @param CBitrixComponentTemplate $this
 */

if($USER->IsAuthorized()){
    $backurl = (string)filter_input(
        INPUT_POST,
        '_backurl',
        FILTER_SANITIZE_STRING,
        ['flags' => FILTER_FLAG_NO_ENCODE_QUOTES]
    );
    if (!empty($backurl)) {
        $uri = new Uri($backurl);
        $uri->deleteParams(Context::getCurrent()->getRequest()->getSystemParameters());
        $backurl = (string)$uri->getUri();
        $pref7 = substr($backurl, 0, 7);
    }
    if (empty($backurl) || $pref7 === '/_ajax/') {
        $backurl = '/accounts/profile/';
    }elseif($pref7 === '/basket') {
        $backurl = '/order/';
    }
    if($backurl == $APPLICATION->GetCurDir()){ ?>
        <p>Вы зарегистрированы и успешно авторизовались.</p><?
    }else{ ?>
        <script type="text/javascript">
            document.location = '<?=CUtil::JSEscape($backurl)?>';
        </script><?
    }
    return;
} ?>
<form name="regform" action="<?=POST_FORM_ACTION_URI?>" method="post" class="w-100 reg Forms-simple">
    <input type="hidden" name="_backurl" value="" />
    <div class="heading">Регистрация</div><?
    if(count($arResult["ERRORS"]) > 0){
        foreach ($arResult["ERRORS"] as $key => $error){
            if (intval($key) == 0 && $key !== 0){
                $arResult["ERRORS"][$key] = str_replace("#FIELD_NAME#", "&quot;".GetMessage("REGISTER_FIELD_".$key)."&quot;", $error);
            }
        } ?>
        <div class="alert alert-danger">
            <?=implode("<br />", $arResult["ERRORS"])?>
        </div><?
    }/*elseif($arResult["USE_EMAIL_CONFIRMATION"] === "Y"){?>
        <div class="alert alert-success">
            На указанный в форме email придет запрос на подтверждение регистрации.
        </div>
    <?}*/?>
    <input name="REGISTER[NAME]" type="text" placeholder="Имя" required>
    <input name="REGISTER[LAST_NAME]" type="text" placeholder="Фамилия" required>
    <input name="REGISTER[EMAIL]" type="email" placeholder="Электронная почта (будет являться логином)" required>
    <input type="hidden" name="REGISTER[LOGIN]">
    <input name="REGISTER[PERSONAL_MOBILE]" class="phone" type="text" placeholder="Мобильный телефон" required>
    <input name="REGISTER[PASSWORD]" class="pass1" type="password"
           placeholder="Пароль (должен содержать не менее 6 символов)" required>
    <input name="REGISTER[CONFIRM_PASSWORD]" class="pass2" type="password" placeholder="Повторите пароль" required>
    <div class="agreement">
        <input name="consent_processing" type="checkbox" required />
        <label data-for="consent_processing">Я даю согласие на обработку моих персональных данных</label>
    </div>
    <input type="hidden" name="register_submit_button" value="Y" />
    <button type="submit">Отправить</button>
    <p>На указанный электронный адрес будет отправлено письмо со ссылкой для активации аккаунта</p>
</form>
<script>
$(document).ready(function(){
    $('form[name="regform"] input.phone').mask('+7 (999) 999-99-99');
});
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit