NexusLeads Webshell
NexusLeads


Server : LiteSpeed
System : Linux server 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64
User : alsaif ( 1057)
PHP Version : 7.4.33
Disable Function : show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/alsaif/public_html/libraries/regularlabs/helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/alsaif/public_html/libraries/regularlabs/helpers/protect.php
<?php
/**
 * @package         Regular Labs Library
 * @version         23.9.3039
 * 
 * @author          Peter van Westen <info@regularlabs.com>
 * @link            https://regularlabs.com
 * @copyright       Copyright © 2023 Regular Labs All Rights Reserved
 * @license         GNU General Public License version 2 or later
 */

/* @DEPRECATED */

defined('_JEXEC') or die;

use RegularLabs\Library\Document as RL_Document;
use RegularLabs\Library\Protect as RL_Protect;

if (is_file(JPATH_LIBRARIES . '/regularlabs/autoload.php'))
{
    require_once JPATH_LIBRARIES . '/regularlabs/autoload.php';
}

class RLProtect
{
    public static function articlePassesSecurity(&$article, $securtiy_levels = [])
    {
        return class_exists('RegularLabs\Library\Protect') && RL_Protect::articlePassesSecurity($article, $securtiy_levels);
    }

    public static function convertProtectionToHtmlSafe(&$string)
    {
        class_exists('RegularLabs\Library\Protect') && RL_Protect::convertProtectionToHtmlSafe($string);
    }

    public static function getFormRegex($regex_format = false)
    {
        return class_exists('RegularLabs\Library\Protect') && RL_Protect::getFormRegex($regex_format);
    }

    public static function isAdmin($block_login = false)
    {
        return class_exists('RegularLabs\Library\Document') && RL_Document::isAdmin($block_login);
    }

    public static function isComponentInstalled($extension_alias)
    {
        return class_exists('RegularLabs\Library\Protect') && RL_Protect::isComponentInstalled($extension_alias);
    }

    public static function isEditPage()
    {
        return class_exists('RegularLabs\Library\Document') && RL_Document::isEditPage();
    }

    public static function isJoomla3()
    {
        return true;
    }

    public static function isProtectedPage($extension_alias = '', $hastags = false, $exclude_formats = ['pdf'])
    {
        if ( ! class_exists('RegularLabs\Library\Protect'))
        {
            return true;
        }

        if (RL_Protect::isDisabledByUrl($extension_alias))
        {
            return true;
        }

        return class_exists('RegularLabs\Library\Protect') && RL_Protect::isRestrictedPage($hastags, $exclude_formats);
    }

    public static function isRestrictedComponent($restricted_components, $area = 'component')
    {
        return class_exists('RegularLabs\Library\Protect') && RL_Protect::isRestrictedComponent($restricted_components, $area);
    }

    public static function isSystemPluginInstalled($extension_alias)
    {
        return class_exists('RegularLabs\Library\Protect') && RL_Protect::isSystemPluginInstalled($extension_alias);
    }

    public static function protectArray($array, $is_tag = false)
    {
        return class_exists('RegularLabs\Library\Protect') && RL_Protect::protectArray($array, $is_tag);
    }

    public static function protectByRegex(&$string, $regex)
    {
        class_exists('RegularLabs\Library\Protect') && RL_Protect::protectByRegex($string, $regex);
    }

    public static function protectFields(&$string, $search_strings = [])
    {
        class_exists('RegularLabs\Library\Protect') && RL_Protect::protectFields($string, $search_strings);
    }

    public static function protectForm(&$string, $tags = [], $include_closing_tags = true)
    {
        class_exists('RegularLabs\Library\Protect') && RL_Protect::protectForm($string, $tags, $include_closing_tags);
    }

    public static function protectHtmlTags(&$string)
    {
        class_exists('RegularLabs\Library\Protect') && RL_Protect::protectHtmlTags($string);
    }

    public static function protectInString(&$string, $unprotected = [], $protected = [])
    {
        class_exists('RegularLabs\Library\Protect') && RL_Protect::protectInString($string, $unprotected, $protected);
    }

    public static function protectScripts(&$string)
    {
        class_exists('RegularLabs\Library\Protect') && RL_Protect::protectScripts($string);
    }

    public static function protectSourcerer(&$string)
    {
        class_exists('RegularLabs\Library\Protect') && RL_Protect::protectSourcerer($string);
    }

    public static function protectString($string, $is_tag = false)
    {
        return class_exists('RegularLabs\Library\Protect') && RL_Protect::protectString($string, $is_tag);
    }

    public static function protectTag($string)
    {
        return class_exists('RegularLabs\Library\Protect') && RL_Protect::protectTag($string);
    }

    public static function protectTags(&$string, $tags = [], $include_closing_tags = true)
    {
        class_exists('RegularLabs\Library\Protect') && RL_Protect::protectTags($string, $tags, $include_closing_tags);
    }

    public static function removeFromHtmlTagAttributes(&$string, $tags, $attributes = 'ALL', $include_closing_tags = true)
    {
        class_exists('RegularLabs\Library\Protect') && RL_Protect::removeFromHtmlTagAttributes($string, $tags, $attributes, $include_closing_tags);
    }

    public static function removeFromHtmlTagContent(&$string, $tags, $include_closing_tags = true, $html_tags = ['title'])
    {
        class_exists('RegularLabs\Library\Protect') && RL_Protect::removeFromHtmlTagContent($string, $tags, $include_closing_tags, $html_tags);
    }

    public static function removeInlineComments(&$string, $name)
    {
        class_exists('RegularLabs\Library\Protect') && RL_Protect::removeInlineComments($string, $name);
    }

    public static function removePluginTags(&$string, $tags, $character_start = '{', $character_end = '{', $keep_content = true)
    {
        class_exists('RegularLabs\Library\Protect') && RL_Protect::removePluginTags($string, $tags, $character_start, $character_end, $keep_content);
    }

    public static function unprotect(&$string)
    {
        class_exists('RegularLabs\Library\Protect') && RL_Protect::unprotect($string);
    }

    public static function unprotectArray($array, $is_tag = false)
    {
        return class_exists('RegularLabs\Library\Protect') && RL_Protect::unprotectArray($array, $is_tag);
    }

    public static function unprotectForm(&$string, $tags = [])
    {
        class_exists('RegularLabs\Library\Protect') && RL_Protect::unprotectForm($string, $tags);
    }

    public static function unprotectHtmlSafe(&$string)
    {
        class_exists('RegularLabs\Library\Protect') && RL_Protect::unprotectHtmlSafe($string);
    }

    public static function unprotectInString(&$string, $unprotected = [], $protected = [])
    {
        class_exists('RegularLabs\Library\Protect') && RL_Protect::unprotectInString($string, $unprotected, $protected);
    }

    public static function unprotectString($string, $is_tag = false)
    {
        return class_exists('RegularLabs\Library\Protect') && RL_Protect::unprotectString($string, $is_tag);
    }

    public static function unprotectTags(&$string, $tags = [], $include_closing_tags = true)
    {
        class_exists('RegularLabs\Library\Protect') && RL_Protect::unprotectTags($string, $tags, $include_closing_tags);
    }
}

NexusLeads