AnonSec Shell
Server IP : 46.105.57.169  /  Your IP : 216.73.216.144
Web Server : Apache
System : Linux webd003.cluster120.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 : maitricfuz ( 93378)
PHP Version : 8.4.10
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/m/a/i/maitricfuz/www/new-saint-martin/plugins/system/jtaldef/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/m/a/i/maitricfuz/www/new-saint-martin/plugins/system/jtaldef/src/JtaldefAwareTrait.php
<?php
/**
 * Automatic local download external files
 *
 * @package     Joomla.Plugin
 * @subpackage  System.Jtaldef
 *
 * @author      Guido De Gobbis <support@joomtools.de>
 * @copyright   JoomTools.de - All rights reserved.
 * @license     GNU General Public License version 3 or later
 */

namespace Jtaldef;

defined('_JEXEC') or die;

use Joomla\CMS\Filter\InputFilter;

/**
 *
 * @since  2.0.0
 */
trait JtaldefAwareTrait
{
    /**
     * The real name of the Service.
     *
     * @var    string
     * @since  2.0.0
     */
    private $name;

    /**
     * Trigger to parse <script/> tags.
     *
     * @var    boolean
     * @since  2.0.0
     */
    private $parseScripts = false;

    /**
     * List of values to trigger the service.
     *
     * @var    string[]
     * @since  2.0.0
     */
    private $stringsToTrigger = array();

    /**
     * List of namespaces to remove matches from DOM if not parsed.
     *
     * @var    string[]
     * @since  2.0.0
     */
    private $nsToRemoveNotParsedItemsFromDom = array();

    /**
     * Constructor
     *
     * @return  void
     *
     * @since   2.0.0
     */
    public function __construct()
    {
        // The real name of the Service.
        $this->set('name', '');

        // Trigger to parse <script/> tags.
        $this->set('parseScripts', false);

        // List of values to trigger the service.
        $this->set(
            'stringsToTrigger',
            array()
        );

        // List of namespaces to remove matches from DOM if not parsed.
        $this->set(
            'nsToRemoveNotParsedItemsFromDom',
            array()
        );
    }

    /**
     * Description
     *
     * @param   string  $link  Link to parse.
     *
     * @return  string|boolean  False if no font info is set in the query else the local path to the css file.
     * @throws  \Exception
     *
     * @since   2.0.0
     */
    public function getNewFileContentLink($value)
    {
        return trim(InputFilter::getInstance()->clean($value));
    }

    /**
     * Get the real name of the Service.
     *
     * @return  string
     *
     * @since   2.0.0
     */
    public function getRealServiceName()
    {
        return $this->name;
    }

    /**
     * Trigger to parse <script/> tags.
     *
     * @return  boolean
     *
     * @since   2.0.0
     */
    public function parseScripts()
    {
        return $this->parseScripts;
    }

    /**
     * Get the list of values to trigger the service.
     *
     * @return  string[]
     *
     * @since   2.0.0
     */
    public function getListToTriggerService()
    {
        return $this->stringsToTrigger;
    }

    /**
     * Get the list of namespaces to remove matches from DOM if not parsed.
     *
     * @return  string[]
     *
     * @since   2.0.0
     */
    public function getNsToRemoveNotParsedItemsFromDom()
    {
        return $this->nsToRemoveNotParsedItemsFromDom;
    }

    private function set($property, $value)
    {
        switch ($property) {
            case 'name':
                $this->$property = (string) $value;
                break;

            case 'parseScripts':
                $this->$property = ($value === true);
                break;

            case 'stringsToTrigger':
            case 'nsToRemoveNotParsedItemsFromDom':
                $this->$property = (array) $value;
                break;

            default:
                break;
        }
    }
}

Anon7 - 2022
AnonSec Team