require ("global.php"); $referencepage="index"; if(!parse_template("index", $langue)){ echo "erreur de chargement de template"; } if (in_array(5890, $modules)) { $fermeture=$DB_site->query_first("Select * from fermetureboutique where id='1' and active='1' "); if ($fermeture[debut] < time() && $fermeture[fin] > time() && $params[pas_affichage_interstice] != 1) eval(charge_template($langue,"Index","Includejavascript")); } // NEWS @include("modules/news.php"); // Catalogue index @include("include/catalogue_index.php"); // TOP ARTICLES $artid_deja_utilises = "0" ; foreach ($tops_index as $value) { switch ($value) { case "topsventes": // Affichage des tops ventes @include("modules/topventes.php"); break; case "nouveautes": // Affichage des nouveautés @include("modules/nouveautes.php"); break; case "promotions": // Affichage des promotions @include("modules/promotions.php"); break; case "coupsdecoeur": // Affichage des coups de coeur @include("modules/coupsdecoeur.php"); break; case "ventesflash": // Affichage des ventes flash @include("modules/ventesflash.php"); break; } } // Fonction qui met en place les metas et le titre de page include("include/pagetitle.php"); // Fonction qui met en place le catalogue include("include/catalogue.php"); $top[liensnavigation]=${$title}; if ($params["bandeau_defilant"] != ""){ $bandeau_defilant=$params["bandeau_defilant"]; eval(charge_template($langue,"commun","defilant")) ; } eval(charge_template($langue,"commun","navigation")); if(in_array(5862,$modules)){ if(substr($scriptname,0,1)!="/") $scriptname="/$scriptname"; $defaut=$DB_site->query_first("SELECT * FROM textereferencement WHERE scriptname='$scriptname' "); $texte=$defaut["contenu".$langue]; eval(charge_template($langue, "commun", "defile")) ; } unset($top); $TemplateIncludejavascript = eval(charge_template($langue, $referencepage, "IncludejavascriptIndex")); // CJ le 22/01/2010 => un template IndexIncludeJavascript existe déj?pour la fermeture boutique donc ajout de "index" ?la fin du nom du template eval(charge_template($langue,"commun","statistiques")); eval(charge_template($langue,"commun","header")); eval(charge_template($langue,"commun","footer")); eval(charge_template($langue,"index","index")); echo $TemplateIndexIndex; flush(); ?>