AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.112
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/www/cj79373/libraries/regularlabs/helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/www/cj79373/libraries/regularlabs/helpers/protect.php
<?php
/**
 * @package         Regular Labs Library
 * @version         23.5.7450
 * 
 * @author          Peter van Westen <info@regularlabs.com>
 * @link            http://regularlabs.com
 * @copyright       Copyright © 2023 Regular Labs All Rights Reserved
 * @license         http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 */

/* @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);
    }
}

Anon7 - 2022
AnonSec Team