Forum » » Anomalies core NPDS » » [RĂ©solu] - Landing_page
Posté : 17 avr. 2016 à 16:18
global $theme; $rep=false;
settype($ContainerGlobal,'string');
if (file_exists("themes/".$theme."/html/header.html")) {$rep=$theme;}
elseif (file_exists("themes/default/html/header.html")) {$rep="default";}
else {
echo "header.html manquant / not find !<br />";
die();
}
if ($rep) {
if (file_exists("modules/!include!/body_!onload!.inc") or file_exists("themes/$theme/!include!/body_!onload!.inc")) {
$!onload!_init=" !onload!=\"init();\"";
} else {
$!onload!_init="";
}
if (!$ContainerGlobal)
echo "<body".$!onload!_init." class=\"body\">\n";
else {
echo "<body".$!onload!_init.">";
echo $ContainerGlobal;
}
ob_start();
if (stristr($_SERVER['PHP_SELF'],"index.php") and file_exists("themes/".$rep."/html/header_landing.html")) {!include!("themes/".$rep."/html/header_landing.html"); } else{ !include!("themes/".$rep."/html/header.html");}
$Xcontent=ob_get_contents();
ob_end_clean();
echo meta_lang(aff_langue($Xcontent));
}
?>
Cet article provient de Labo NPDS 2015-2024
https://labo.infocapagde.com/viewtopic.php?topic=430&forum=9