*/ defined('_JEXEC') or die('Direct Access to this location is not allowed.'); // ------------------ standard plugin initialize function - don't change --------------------------- global $sh_LANG; $sefConfig =& shRouter::shGetConfig(); $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_virtuemart', $shLangIso, '_PHPSHOP_LIST_ALL_PRODUCTS'); // ------------------ load language file - adjust as needed ---------------------------------------- // some links are incorrect, for instance the allinone module adds a category= in the // list all products link. Let's remove that if (strpos($string, '&category=&') !== false) { $string = str_replace('&category=&', '&', $string); shRemoveFromGETVarsList('category'); } /** * Function vm_sef_get_category_array() is based on * Mark Fabrizio, Joomlicious * fabrizim@owlwatch.com * http://www.joomlicious.com */ if (!function_exists('vm_sef_get_category_array')) { function vm_sef_get_category_array(&$db, $category_id, $option, $shLangName)
*/ defined('_JEXEC') or die('Direct Access to this location is not allowed.'); // ------------------ standard plugin initialize function - don't change --------------------------- global $sh_LANG; $sefConfig =& shRouter::shGetConfig(); $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_myblog', $shLangIso, '_SH404SEF_MYBLOG_VIEW_BY_TAG'); // ------------------ load language file - adjust as needed ---------------------------------------- if (!function_exists('shFetchTagId')) { function shFetchTagId($catName, $option, $shLangName) { if (empty($catName)) { return null; } // get DB $database =& JFactory::getDBO(); $sql = 'SELECT id from #__myblog_categories WHERE name = \'' . $catName . '\''; $database->setQuery($sql); if (shTranslateUrl($option, $shLangName)) { $catId = $database->loadResult(); } else { $catId = $database->loadResult(false);
*/ defined('_JEXEC') or die('Direct Access to this location is not allowed.'); // ------------------ standard plugin initialize function - don't change --------------------------- global $sh_LANG; $sefConfig =& shRouter::shGetConfig(); $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_poll', $shLangIso, 'COM_SH404SEF_POLL_VOTE'); // ------------------ load language file - adjust as needed ---------------------------------------- $task = isset($task) ? $task : null; switch ($task) { case 'vote': $title[] = $sh_LANG[$shLangIso]['COM_SH404SEF_POLL_VOTE']; break; default: $title[] = $sh_LANG[$shLangIso]['COM_SH404SEF_POLL_RESULTS']; shMustCreatePageId('set', true); break; } if (!empty($id)) { $query = 'SELECT title, id FROM #__polls WHERE id = "' . $id . '"'; $database->setQuery($query); if (shTranslateURL($option, $shLangName)) {
*/ defined('_JEXEC') or die('Direct Access to this location is not allowed.'); // ------------------ standard plugin initialize function - don't change --------------------------- global $sh_LANG; $sefConfig =& shRouter::shGetConfig(); $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_hotproperty', $shLangIso, '_HP_SEF_PROPERTY'); // ------------------ load language file - adjust as needed ---------------------------------------- /******************************************************** * Utility Functions ********************************************************/ # Include the config file require sh404SEF_ABS_PATH . 'administrator/components/com_hotproperty/config.hotproperty.php'; // V 1.2.4.s make sure user param prevails on guessed Itemid if (empty($Itemid) && $sefConfig->shInsertGlobalItemidIfNone && !empty($shCurrentItemid)) { $string .= '&Itemid=' . $shCurrentItemid; // append current Itemid $Itemid = $shCurrentItemid; shAddToGETVarsList('Itemid', $Itemid); // V 1.2.4.m } $task = isset($task) ? $task : null;
*/ defined('_JEXEC') or die('Direct Access to this location is not allowed.'); // ------------------ standard plugin initialize function - don't change --------------------------- global $sh_LANG; $sefConfig =& shRouter::shGetConfig(); $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_remository', $shLangIso, '_SH404SEF_REMO_DOC_DOWNLOAD'); // ------------------ load language file - adjust as needed ---------------------------------------- /******************************************************** * Utility Functions ********************************************************/ if (!function_exists('shGetContainerName')) { function shGetContainerName($id, $option, $shLangName) { if (empty($id)) { return null; } $sefConfig =& shRouter::shGetConfig(); // get DB $database =& JFactory::getDBO(); if (empty($sefConfig->shRemoInsertCategories)) { // no categories
*/ 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'); } shRemoveFromGETVarsList('Itemid'); shRemoveFromGETVarsList('task'); $limitstart = isset($limitstart) ? @$limitstart : 0; if (isset($limit)) { // V 1.2.4.r
$sefConfig =& shRouter::shGetConfig(); $shLangName = ''; $shLangIso = ''; $title = array(); $shItemidString = ''; $dosef = shInitializePlugin($lang, $shLangName, $shLangIso, $option); $layout = JRequest::getVar('layout', null); $typeid = JRequest::getInt('typeid', null); $fcu = JRequest::getVar('fcu', null); $fcp = JRequest::getInt('fcp', null); if ($dosef == false) { return; } // ------------------ /standard plugin initialize function - don't change --------------------------- // ------------------ load language file - adjust as needed ---------------------------------------- $shLangIso = shLoadPluginLanguage('com_flexicontent', $shLangIso, '_SH404SEF_FLEXICONTENT_ADD', JPATH_ROOT . DS . 'components' . DS . 'com_flexicontent' . DS . 'sef_ext' . DS . 'lang' . DS); // ------------------ /load language file - adjust as needed ---------------------------------------- // do something about that Itemid thing if (!preg_match('/Itemid=[0-9]+/i', $string)) { // if no Itemid in non-sef URL //global $Itemid; if ($sefConfig->shInsertGlobalItemidIfNone && !empty($shCurrentItemid)) { $string .= '&Itemid=' . $shCurrentItemid; // append current Itemid $Itemid = $shCurrentItemid; shAddToGETVarsList('Itemid', $Itemid); // V 1.2.4.m } if ($sefConfig->shInsertTitleIfNoItemid) { $title[] = $sefConfig->shDefaultMenuItemName ? $sefConfig->shDefaultMenuItemName : getMenuTitle($option, null, $shCurrentItemid); }
*/ defined('_JEXEC') or die('Direct Access to this location is not allowed.'); // ------------------ standard plugin initialize function - don't change --------------------------- global $sh_LANG; $sefConfig =& shRouter::shGetConfig(); $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_docman', $shLangIso, '_SH404SEF_DOCMAN_DOC_DOWNLOAD'); // ------------------ load language file - adjust as needed ---------------------------------------- // utilitity function if (!function_exists('shDocmanDocumentName')) { function shDocmanDocumentName($docId, $option, $shLangName) { if (empty($docId)) { return ''; } $sefConfig =& shRouter::shGetConfig(); // get DB $database =& JFactory::getDBO(); $database->setQuery('SELECT dmname, catid FROM #__docman WHERE id = ' . $database->Quote($docId)); if (!shTranslateUrl($option, $shLangName)) { // V 1.2.4.m $result = $database->loadObject(false);
*/ defined('_JEXEC') or die('Direct Access to this location is not allowed.'); // ------------------ standard plugin initialize function - don't change --------------------------- global $sh_LANG; $sefConfig =& shRouter::shGetConfig(); $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_letterman', $shLangIso, 'COM_SH404SEF_LETTERMAN'); // ------------------ load language file - adjust as needed ---------------------------------------- shRemoveFromGETVarsList('option'); if (!empty($lang)) { shRemoveFromGETVarsList('lang'); } if (!empty($sefConfig->shLMDefaultItemid)) { shAddToGETVarsList('Itemid', $sefConfig->shLMDefaultItemid); // V 1.2.4.q // we add then remove value to GET Vars, sounds weird, but Itemid value has been added to // non sef string in the process shRemoveFromGETVarsList('Itemid'); } if (!empty($Itemid)) { shRemoveFromGETVarsList('Itemid'); }
*/ defined('_JEXEC') or die('Direct Access to this location is not allowed.'); // ------------------ standard plugin initialize function - don't change --------------------------- global $sh_LANG; $sefConfig =& shRouter::shGetConfig(); $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_rd_rss', $shLangIso, 'COM_SH404SEF_RD_RSS'); // ------------------ load language file - adjust as needed ---------------------------------------- $title[] = $sh_LANG[$shLangIso]['COM_SH404SEF_RD_RSS']; // fetch contact name if (!empty($id)) { $query = "SELECT name, id FROM #__rd_rss"; $query .= "\n WHERE id=" . $database->Quote($id); $database->setQuery($query); if (!shTranslateUrl($option, $shLangName)) { // V 1.2.4.m $result = $database->loadObject(false); } else { $result = $database->loadObject(); } if (!empty($result)) { $title[] = $result->name;
$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 ---------------------------------------- // /// $$$rob dont load if joomfish installed? /// $$$tom that's actually the opposite: load only if joomfish is installed;) /// as per: http://fabrikar.com/forums/showthread.php?p=66613#post66613 if (defined('JOOMFISH_PATH')) { if (isset($sh_LANG)) { $shLangIso = shLoadPluginLanguage('com_fabrik', $shLangIso, '_COM_SEF_SH_CREATE_NEW'); } } // ------------------ load language file - adjust as needed ---------------------------------------- // Don't do SEF if controller is set (return directly in fact) if (isset($controller)) { return; } $task = isset($task) ? @$task : null; $Itemid = isset($Itemid) ? @$Itemid : null; $tableid = isset($tableid) ? @$tableid : null; $view = isset($view) ? @$view : null; $fabrik = isset($fabrik) ? @$fabrik : null; $rowid = isset($rowid) ? @$rowid : null; // Prepare Menu Title $shFabrikName = null;
*/ 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_weblinks', $shLangIso, 'COM_SH404SEF_CREATE_NEW_LINK'); // ------------------ load language file - adjust as needed ---------------------------------------- // collect probable url vars $view = isset($view) ? $view : null; $task = isset($task) ? $task : null; $Itemid = isset($Itemid) ? $Itemid : null; $id = isset($id) ? $id : null; $catid = isset($catid) ? $catid : null; // optional prefix $shWeblinksName = shGetComponentPrefix($option); if (!empty($shWeblinksName) && $shWeblinksName != '/') { $title[] = $shWeblinksName; } // joomla content models $slugsModel = Sh404sefModelSlugs::getInstance(); $menuItemTitle = getMenuTitle(null, $view, isset($Itemid) ? $Itemid : null, '', $shLangName);
*/ defined('_JEXEC') or die('Direct Access to this location is not allowed.'); // ------------------ standard plugin initialize function - don't change --------------------------- global $sh_LANG; $sefConfig =& shRouter::shGetConfig(); $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_kunena', $shLangIso, 'COM_SH404SEF_KU_SHOW_USER_PROFILE'); // ------------------ load language file - adjust as needed ---------------------------------------- $Itemid = isset($Itemid) ? $Itemid : null; // start Kunena specific stuff $func = isset($func) ? $func : null; $task = isset($task) ? $task : null; $do = isset($do) ? $do : null; $catid = isset($catid) ? $catid : null; $id = isset($id) ? $id : null; $userid = isset($userid) ? $userid : null; $page = isset($page) ? $page : null; $sel = isset($sel) ? $sel : null; $view = isset($view) ? $view : null; if (!function_exists('shKUGetVersion')) { function shKUGetVersion() {
*/ defined('_JEXEC') or die('Direct Access to this location is not allowed.'); // ------------------ standard plugin initialize function - don't change --------------------------- global $sh_LANG; $sefConfig =& shRouter::shGetConfig(); $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('', $shLangIso, ''); // ------------------ load language file - adjust as needed ---------------------------------------- // shumisha : insert component name from menu $task = isset($task) ? @$task : null; $Itemid = isset($Itemid) ? @$Itemid : null; $shRsGallery2Name = shGetComponentPrefix($option); $shRsGallery2Name = empty($shRsGallery2Name) ? getMenuTitle($option, $task, $Itemid, null, $shLangName) : $shRsGallery2Name; $shRsGallery2Name = empty($shRsGallery2Name) || $shRsGallery2Name == '/' ? 'RSGallery1' : $shRsGallery2Name; if ($sefConfig->shInsertRsGallery2Name && !empty($shRsGallery2Name)) { $title[] = $shRsGallery2Name; } //load gallery name if (isset($catid)) { $query_gal = "\r\n\t\tSELECT `name`\r\n\t\tFROM `#__rsgallery2_galleries`\r\n\t\tWHERE `id` = '{$catid}'\r\n\t\t"; $database->setQuery($query_gal); $gallery = $database->loadResult();
*/ 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_mtree', $shLangIso, '_MT_SEF_DETAILS'); // ------------------ load language file - adjust as needed ---------------------------------------- /******************************************************** * Utility Functions ********************************************************/ /*** * Append Categories' Pathway */ if (!function_exists('shAppendCat')) { function shAppendCat($cat_id, $option, $shLangName) { $sefConfig =& Sh404sefFactory::getConfig(); $sef = array(); $pathWay = new mtPathWay($cat_id); $pathway_ids = $pathWay->getPathWay($cat_id); switch ($sefConfig->shMTreeInsertCategories) {
*/ 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_newsfeeds', $shLangIso, 'COM_SH404SEF_CREATE_NEW_NEWSFEED'); // ------------------ load language file - adjust as needed ---------------------------------------- $shNewsfeedName = shGetComponentPrefix($option); $shNewsfeedName = empty($shNewsfeedName) ? getMenuTitle($option, isset($view) ? $view : null, isset($Itemid) ? $Itemid : null, null, $shLangName) : $shNewsfeedName; $shNewsfeedName = empty($shNewsfeedName) || $shNewsfeedName == '/' ? 'Newsfeed' : $shNewsfeedName; if (!empty($shNewsfeedName)) { $title[] = $shNewsfeedName; } // V 1.2.4.t $view = isset($view) ? $view : null; $slugsModel = Sh404sefModelSlugs::getInstance(); switch ($view) { case 'newsfeed': if (!empty($catid)) { // V 1.2.4.q try {
*/ 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_search', $shLangIso, 'COM_SH404SEF_SEARCH'); // ------------------ load language file - adjust as needed ---------------------------------------- shRemoveFromGETVarsList('option'); shRemoveFromGETVarsList('lang'); shRemoveFromGETVarsList('Itemid'); shRemoveFromGETVarsList('task'); shRemoveFromGETVarsList('limit'); shRemoveFromGETVarsList('view'); if (isset($limitstart)) { // V 1.2.4.r shRemoveFromGETVarsList('limitstart'); } // limitstart can be zero //$title[] = getMenuTitle($option, (isset($task) ? @$task : null)); $title[] = $sh_LANG[$shLangIso]['COM_SH404SEF_SEARCH']; $ordering = isset($ordering) ? @$ordering : null;
*/ 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_users', $shLangIso, 'COM_SH404SEF_VIEW_DETAILS'); // ------------------ 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'); } if (isset($limitstart)) { shRemoveFromGETVarsList('limitstart'); } // limitstart can be zero $view = isset($view) ? $view : null;
*/ 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_magazine', $shLangIso, '_SH404SEF_IJOOMLA_MAG_SHOW_EDITION'); // ------------------ load language file - adjust as needed ---------------------------------------- if (!empty($option)) { shRemoveFromGETVarsList('option'); } if (!empty($lang)) { shRemoveFromGETVarsList('lang'); } if (!empty($Itemid)) { shRemoveFromGETVarsList('Itemid'); } // start IJoomla specific stuff $func = isset($func) ? @$func : null; if (!empty($func)) { shRemoveFromGETVarsList('func'); }
*/ 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_comprofiler', $shLangIso, '_SH404SEF_CB_VIEW_USER_DETAILS'); // ------------------ load language file - adjust as needed ---------------------------------------- shRemoveFromGETVarsList('option'); if (!empty($lang)) { shRemoveFromGETVarsList('lang'); } if (!empty($limit)) { shRemoveFromGETVarsList('limit'); } if (isset($limitstart)) { shRemoveFromGETVarsList('limitstart'); } $task = isset($task) ? @$task : null; $Itemid = isset($Itemid) ? @$Itemid : null; // insert comp name from user input in backend $shCBName = shGetComponentPrefix($option);
*/ 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_content', $shLangIso, 'COM_SH404SEF_CREATE_NEW'); // ------------------ load language file - adjust as needed ---------------------------------------- // get DB $database =& JFactory::getDBO(); // 1.2.4.q this is content item, so let's try to improve missing Itemid handling // retrieve section id to know whether this static or not $shHomePageFlag = false; $shHomePageFlag = !$shHomePageFlag ? shIsHomepage($string) : $shHomePageFlag; if (!$shHomePageFlag) { // we may have found that this is homepage, so we msut return an empty string // do something about that Itemid thing if (!preg_match('/Itemid=[0-9]+/i', $string)) { // if no Itemid in non-sef URL // V 1.2.4.t moved back here if ($sefConfig->shInsertGlobalItemidIfNone && !empty($shCurrentItemid)) { $string .= '&Itemid=' . $shCurrentItemid;
*/ 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_registration', $shLangIso, 'COM_SH404SEF_LOST_PASSWORD'); // ------------------ load language file - adjust as needed ---------------------------------------- // do something about that Itemid thing if (!preg_match('/Itemid=[0-9]+/i', $string)) { // if no Itemid in non-sef URL //global $Itemid; if ($sefConfig->shInsertGlobalItemidIfNone && !empty($shCurrentItemid)) { $string .= '&Itemid=' . $shCurrentItemid; // append current Itemid $Itemid = $shCurrentItemid; shAddToGETVarsList('Itemid', $Itemid); // V 1.2.4.m } if ($sefConfig->shInsertTitleIfNoItemid) { $title[] = $sefConfig->shDefaultMenuItemName ? $sefConfig->shDefaultMenuItemName : getMenuTitle($option, isset($task) ? @$task : null, $shCurrentItemid, null, $shLangName); }
* @version $Id: com_sobi2.php 1190 2010-04-04 16:00:15Z silianacom-svn $ */ defined('_JEXEC') or die('Direct Access to this location is not allowed.'); // ------------------ standard plugin initialize function - don't change --------------------------- global $sh_LANG; $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_sobi2', $shLangIso, '_SH404SEF_SOBI2_CREATE_NEW'); // ------------------ load language file - adjust as needed ---------------------------------------- // a few params if (!defined('sh404SEF_SOBI2_PARAMS_ALWAYS_INCLUDE_CATS')) { define('sh404SEF_SOBI2_PARAMS_ALWAYS_INCLUDE_CATS', 0); define('sh404SEF_SOBI2_PARAMS_INCLUDE_ENTRY_ID', 0); define('sh404SEF_SOBI2_PARAMS_INCLUDE_CAT_ID', 0); } shRemoveFromGETVarsList('option'); shRemoveFromGETVarsList('lang'); if (!empty($Itemid)) { shRemoveFromGETVarsList('Itemid'); } // based on Sigsiu Online Business Index 2 sef_ext.php file for OpenSEF global $shSobi2CatParents; $shSobi2CatParents = array();
} } // ------------------ standard plugin initialize function - don't change --------------------------- global $sh_LANG; $sefConfig =& shRouter::shGetConfig(); $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_redevent', $shLangIso, '_COM_SEF_REDEVENT'); // ------------------ load language file - adjust as needed ---------------------------------------- $shHomePageFlag = false; $shHomePageFlag = !$shHomePageFlag ? shIsHomepage($string) : $shHomePageFlag; if (!$shHomePageFlag) { // we may have found that this is homepage, so we msut return an empty string if (isset($task) && $task == 'createpdfemail') { $dosef = false; } else { if (isset($page) && $page == 'print') { $dosef = false; } else { $app =& JFactory::getApplication(); $reParams = $app->getParams('com_redevent'); /* Get the DB connection */ $db = JFactory::getDBO();