| Server IP : 104.21.84.107 / Your IP : 104.23.197.209 Web Server : Apache/2.4.63 (Ubuntu) System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.4.5 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/pregrados/mercadeo/plugins/system/sourcerer/src/ |
Upload File : |
<?php
/**
* @package Sourcerer
* @version 10.0.4
*
* @author Peter van Westen <[email protected]>
* @link https://regularlabs.com
* @copyright Copyright © 2023 Regular Labs All Rights Reserved
* @license GNU General Public License version 2 or later
*/
namespace RegularLabs\Plugin\System\Sourcerer;
defined('_JEXEC') or die;
use RegularLabs\Library\Protect as RL_Protect;
class Protect
{
static $name = 'Sourcerer';
public static function _(string &$string): void
{
RL_Protect::protectForm($string, Params::getTags(true), true, 'no-sourcerer');
}
/**
* Wrap the comment in comment tags
*
* @param string $comment
*
* @return string
*/
public static function getMessageCommentTag(string $comment): string
{
return RL_Protect::getMessageCommentTag(self::$name, $comment);
}
public static function protectTags(string &$string): void
{
RL_Protect::protectTags($string, Params::getTags(true));
}
public static function unprotectTags(string &$string): void
{
RL_Protect::unprotectTags($string, Params::getTags(true));
}
}