* @author Yannick Gaultier * @copyright (c) Yannick Gaultier 2012 * @package sh404sef * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * @version 4.1.0.1559 * @date 2013-04-25 */ defined('_JEXEC') or die('Direct Access to this location is not allowed.'); // ------------------ standard plugin initialize function - don't change --------------------------- global $sh_LANG; $sefConfig =& Sh404sefFactory::getConfig(); $shLangName = ''; $shLangIso = ''; $title = array(); $shItemidString = ''; $dosef = shInitializePlugin($lang, $shLangName, $shLangIso, $option); if ($dosef == false) { return; } // ------------------ standard plugin initialize function - don't change --------------------------- // ------------------ load language file - adjust as needed ---------------------------------------- //$shLangIso = shLoadPluginLanguage( 'com_XXXXX', $shLangIso, '_SEF_SAMPLE_TEXT_STRING'); // ------------------ load language file - adjust as needed ---------------------------------------- // remove common URL from GET vars list, so that they don't show up as query string in the URL shRemoveFromGETVarsList('option'); shRemoveFromGETVarsList('lang'); if (!empty($Itemid)) { shRemoveFromGETVarsList('Itemid'); } if (!empty($limit)) { shRemoveFromGETVarsList('limit');
* @package RedSHOP.sh404sef * @subpackage sef_ext sh404sef * * @copyright Copyright (C) 2005 - 2013 redCOMPONENT.com. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('_JEXEC') or die; // ------------------ standard plugin initialize function - don't change --------------------------- global $sh_LANG; $sefConfig = shRouter::shGetConfig(); $db = JFactory::getDbo(); $shLangName = ''; $shLangIso = ''; $title = array(); $shItemidString = ''; $dosef = shInitializePlugin($lang, $shLangName, $shLangIso, 'com_redshop'); if ($dosef == false) { return; } // ------------------ load language file - adjust as needed ---------------------------------------- $shLangIso = shLoadPluginLanguage('com_redshop', $shLangIso, '_COM_SEF_SH_REDSHOP'); // Getting the configuration if (!defined('TABLE_PREFIX')) { require_once JPATH_ADMINISTRATOR . '/components/com_redshop/helpers/redshop.cfg.php'; } include_once "administrator/components/com_redshop/helpers/category.php"; $product_category = new product_category(); shRemoveFromGETVarsList('option'); if (!empty($lang)) { shRemoveFromGETVarsList('lang'); }