Exemplo n.º 1
0
// On essaie de charger <code_langue>.php, et s'il n'existe pas, <id_langue>.php
if (!empty($path_reptpl)) {
    $langobj = new Lang($lang);
    $lang_file = $path_reptpl . "/lang/" . strtolower($langobj->code) . ".php";
    if (!file_exists($lang_file)) {
        $lang_file = $path_reptpl . "/lang/" . $langobj->id . ".php";
    }
    @(include_once $lang_file);
}
Parseur::setVarFond($res);
// Lire les options définies dans le template
$securise = Parseur::lireVarFond('securise', 'int', 0);
$nopageret = Parseur::lireVarFond('nopageret', 'int', 0);
$reset = Parseur::lireVarFond('reset', 'int', 0);
$panier = Parseur::lireVarFond('panier', 'int', 0);
$transport = Parseur::lireVarFond('transport', 'int', 0);
// fonctions à éxecuter après la lecture des variables de fond
ActionsModules::instance()->appel_module("varfond");
// Page retour
// Supprimer le paramètre "déconnexion" de l'url page retour
if (!$nopageret) {
    $_SESSION["navig"]->urlpageret = supprimer_deconnexion(url_page_courante());
} else {
    if ($_SESSION["navig"]->urlpageret == "") {
        $_SESSION["navig"]->urlpageret = urlfond();
    }
}
// Sécurisation
if ($securise && !$_SESSION["navig"]->connecte) {
    redirige(urlfond("connexion"));
}
Exemplo n.º 2
0
/**
 * deprecated depuis thelia 1.5.3.5
 *
 * @param type $var nom du param fond
 * @param type $varFond inutilisé
 */
function lireVarFond($var, $varFond = null)
{
    Parseur::lireVarFond($var, '');
}