%PDF- %PDF-
Server IP : 79.170.40.229 / Your IP : 18.191.225.71 Web Server : Apache System : Linux web231.extendcp.co.uk 4.18.0-513.24.1.el8_9.x86_64 #1 SMP Mon Apr 8 11:23:13 EDT 2024 x86_64 User : 1stforcarhirealicante.com ( 296923) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/cwd/components/com_sh404sef/sef_ext/ |
Upload File : |
<?php /** * sh404SEF support for com_search component. * Copyright Yannick Gaultier (shumisha) - 2007 * shumisha@gmail.com * @version $Id: com_search.php 866 2009-01-17 14:05:21Z silianacom-svn $ * {shSourceVersionTag: Version x - 2007-09-20} */ 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_search', $shLangIso, '_COM_SEF_SH_SEARCH'); // ------------------ load language file - adjust as needed ---------------------------------------- shRemoveFromGETVarsList('option'); shRemoveFromGETVarsList('lang'); shRemoveFromGETVarsList('Itemid'); shRemoveFromGETVarsList('task'); shRemoveFromGETVarsList('limit'); 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_SEF_SH_SEARCH']; $ordering = isset($ordering) ? @$ordering : null; switch ($ordering) { case 'newest' : $title[] = $sh_LANG[$shLangIso]['_SEARCH_NEWEST']; shRemoveFromGETVarsList('ordering'); break; case 'oldest' : $title[] = $sh_LANG[$shLangIso]['_SEARCH_OLDEST']; shRemoveFromGETVarsList('ordering'); break; case 'popular' : $title[] = $sh_LANG[$shLangIso]['_SEARCH_POPULAR']; shRemoveFromGETVarsList('ordering'); break; case 'alpha': $title[] = $sh_LANG[$shLangIso]['_SEARCH_ALPHABETICAL']; shRemoveFromGETVarsList('ordering'); break; case 'category': $title[] = $sh_LANG[$shLangIso]['_SEARCH_CATEGORY']; shRemoveFromGETVarsList('ordering'); break; } // ------------------ standard plugin finalize function - don't change --------------------------- if ($dosef){ $string = shFinalizePlugin( $string, $title, $shAppendString, $shItemidString, (isset($limit) ? @$limit : null), (isset($limitstart) ? @$limitstart : null), (isset($shLangName) ? @$shLangName : null)); } // ------------------ standard plugin finalize function - don't change --------------------------- ?>