| Current Path : /home/sunflowe/www2/vacancesfloride/_AncienSite/components/com_sh404sef/sef_ext/ |
| Current File : /home/sunflowe/www2/vacancesfloride/_AncienSite/components/com_sh404sef/sef_ext/com_letterman.php |
<?php
/**
* sh404SEF support for com_letterman component.
* Copyright Yannick Gaultier (shumisha) - 2007
* shumisha@gmail.com
* @version $Id: com_letterman.php 1018 2009-09-04 21:41:47Z 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_letterman', $shLangIso, '_COM_SEF_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');
$title[] = $sh_LANG[$shLangIso]['_COM_SEF_LETTERMAN'];
$task = isset($task) ? @$task : null;
switch ($task) {
case 'confirm':
$title[] = $sh_LANG[$shLangIso]['_COM_SEF_LM_CONFIRM'];
shRemoveFromGETVarsList('task');
break;
case 'subscribe' :
$title[] = $sh_LANG[$shLangIso]['_COM_SEF_LM_SUBSCRIBE'];
shRemoveFromGETVarsList('task');
break;
case 'unsubscribe':
$title[] = $sh_LANG[$shLangIso]['_COM_SEF_LM_UNSUBSCRIBE'];
shRemoveFromGETVarsList('task');
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 ---------------------------
?>