403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/cvetdv.ru/bitrix/modules/skyweb24.popuppro/lib/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/cvetdv.ru/bitrix/modules/skyweb24.popuppro/lib/lead.php
<?

namespace Skyweb24\Popuppro;

use Bitrix\Main\Mail\Event;
use Bitrix\Main\Localization\Loc;

class Lead
{
    private $popup;

    function __construct(\Skyweb24\Popuppro\Popup $popup)
    {
        $this->popup = $popup;
        return $this;
    }

    public function save(\Bitrix\Main\HttpRequest $request)
    {

        $settings = $this->popup->getSettings();

        try {
            if ($settings['view']['props']['INTEG_CRM_ACTIVE'] === "Y") {
                CrmServer::sendCRMdata([
                    "CRM_SERVER_ID"      => $settings['view']['props']['INTEG_CRM_SERVER'],
                    "SOURCE_DESCRIPTION" => $_SERVER['HTTP_HOST'],
                    "EMAIL_HOME"         => $this->isValidEmail($request->get("EMAIL")),
                    "NAME"               => $request->get("NAME"),
                    "PHONE_MOBILE"       => $this->isValidPhone($request->get("PHONE")),
                    "TITLE"              => iconv(LANG_CHARSET, "UTF-8", $this->popup->getName()),
                    "COMMENTS"           => $request->get("DESCRIPTION")
                ]);
            }

            if (!empty($settings['contact']['posttemplate'])) {
                \CEvent::Send(
                    "SKYWEB24_POPUPPRO_SENDER",
                    SITE_ID,
                    [
                        "NAME_FORM"         => $settings['condition']['service_name'],
                        "NAME_TITLE"        => $settings['view']['props']["NAME_TITLE"],
                        "EMAIL_TITLE"       => $settings['view']['props']["EMAIL_TITLE"],
                        "PHONE_TITLE"       => $settings['view']['props']['PHONE_TITLE'],
                        "DESCRIPTION_TITLE" => $settings['view']['props']['DESCRIPTION_TITLE'],
                        "LASTNAME_TITLE"    => $settings['view']['props']["LASTNAME_TITLE"],
                        "EMAIL"             => $this->isValidEmail($request->get("EMAIL")),
                        "NAME"              => mb_convert_encoding($request->get("NAME"), LANG_CHARSET, "UTF-8"),
                        "PHONE"             => $this->isValidPhone($request->get("PHONE")),
                        "DESCRIPTION"       => mb_convert_encoding($request->get("DESCRIPTION"), LANG_CHARSET, "UTF-8"),
                    ],
                    'Y',
                    $settings['contact']['posttemplate']
                );
            }

        } catch (\Exception $e) {

            return $e->getMessage();

        }

        return true;
    }

    private function isValidEmail($email)
    {
        return $email;
    }

    private function isValidPhone($phone)
    {
        return $phone;
    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit