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/app/webroot/news/tmp/install_531e19974c5e5/com_admirorgallery/admin/ |
Upload File : |
<?php /*------------------------------------------------------------------------ # com_admirorgallery - Admiror Gallery Component # ------------------------------------------------------------------------ # author Igor Kekeljevic & Nikola Vasiljevski # copyright Copyright (C) 2011 admiror-design-studio.com. All Rights Reserved. # @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL # Websites: http://www.admiror-design-studio.com/joomla-extensions # Technical Support: Forum - http://www.vasiljevski.com/forum/index.php # Version: 4.5.0 -------------------------------------------------------------------------*/ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); jimport('joomla.application.component.controller'); jimport('joomla.html.parameter'); class AdmirorgalleryController extends JController { function display($cachable = false, $urlparams = false) { require_once JPATH_COMPONENT . '/helpers/admirorgallery.php'; if (!is_dir(JPATH_SITE . '/plugins/content/admirorgallery/')) { JError::raiseWarning('2', JText::_('COM_PLUGIN_NOT_INSTALLED')); } AdmirorGalleryHelper::addSubmenu(JRequest::getCmd('view', 'control_panel'),JRequest::getCmd('AG_resourceType', '')); JToolBarHelper :: custom('AG_apply', 'AG_apply', 'AG_apply', 'COM_ADMIRORGALLERY_APPLY_DESC', false, false); JToolBarHelper :: custom('AG_reset', 'AG_reset', 'AG_reset', 'COM_ADMIRORGALLERY_RESET_DESC', false, false); $doc = JFactory::getDocument(); $doc->addScriptDeclaration(' AG_jQuery(function(){ // SET SHORCUTS AG_jQuery(document).bind("keydown", "ctrl+return", function (){submitbutton("AG_apply");return false;}); AG_jQuery(document).bind("keydown", "ctrl+backspace", function (){submitbutton("AG_reset");return false;}); });//AG_jQuery(function() '); parent::display(); } }