File Manager

Current Directory: /home/astoriaah/www/old15/administrator/components/com_sh404sef
Viewing File: /home/astoriaah/www/old15/administrator/components/com_sh404sef/sh404sef.php
<?php /** * sh404SEF - SEO extension for Joomla! * * @author Yannick Gaultier * @copyright (c) Yannick Gaultier 2014 * @package sh404SEF * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * @version 4.4.4.1791 * @date 2014-07-01 * * build 1791 */ // Security check to ensure this file is being included by a parent file. if (!defined('_JEXEC')) die('Direct Access to this location is not allowed.'); // sometimes users disable our plugin if (!defined('SH404SEF_AUTOLOADER_LOADED')) { echo 'sh404SEF system plugin has been disabled or has failed initializing. Please enable it again to use sh404SEF, with Joomla! <a href="index.php?option=com_plugins">plugin manager</a>'; return; } // Access check. if (!JFactory::getUser()->authorise('core.manage', 'com_sh404sef')) { return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR')); } if (Sh404sefConfigurationEdition::$id == 'full') { if (JFactory::getApplication()->input->getCmd('view') == 'liveupdate') { require_once JPATH_COMPONENT_ADMINISTRATOR . '/liveupdate/liveupdate.php'; LiveUpdate::handleRequest(); return; } } else { // load edition-specific language file JFactory::getLanguage()->load('com_sh404sef.' . Sh404sefConfigurationEdition::$id, JPATH_ADMINISTRATOR); } // load base class file (functions, not autolaoded if (!defined('SH404SEF_BASE_CLASS_LOADED')) { $baseClassFile = JPATH_ADMINISTRATOR . '/components/com_sh404sef/sh404sef.class.php'; if (is_readable($baseClassFile)) { require_once($baseClassFile); } else { JError::RaiseError(500, JText::_('COM_SH404SEF_NOREAD') . "( $baseClassFile )<br />" . JText::_('COM_SH404SEF_CHK_PERMS')); } } // languagefilter system plugin warning (for Joomla! 2) if (version_compare(JVERSION, '3', '<')) { $warning = Sh404sefHelperLanguage::getLanguageFilterWarning(); if (!empty($warning)) { JFactory::getApplication()->enqueueMessage($warning, 'warning'); } } // Ensure the behavior is loaded JHtml::_('behavior.framework'); if (version_compare(JVERSION, '3.0', 'ge')) { JHtml::_('bootstrap.framework'); } // find about specific controller requested $cName = JFactory::getApplication()->input->getCmd('c'); // get controller from factory $controller = Sh404sefFactory::getController($cName); Sh404sefHelperHtml::addSubmenu(JFactory::getApplication()->input); // read and execute task $controller->execute(JFactory::getApplication()->input->getCmd('task')); $controller->redirect();