commit ec0fd494e8054f12fc31cb49a8b58e267abac882 from: Sylvain Saboua date: Sat Apr 26 14:38:23 2025 UTC doctype to html5 + formatting commit - c194359c88a2e6cff62ae17f09d628fdbf8a6414 commit + ec0fd494e8054f12fc31cb49a8b58e267abac882 blob - b720208284dd07124e26d87e8bc985fd3bc4465c blob + 6fc68b0619eaa19b345ee4c215fd1794d48611a0 --- autres/source-haut.php +++ autres/source-haut.php @@ -52,6 +52,7 @@ require'confidentiel.php'; $head.=''."\n\t". ''; } + /*servir le bon type MIME if(!function_exists('htmlspecialchars_decode')) { @@ -62,14 +63,13 @@ require'confidentiel.php'; }*/ if(false!==strpos($_SERVER['HTTP_ACCEPT'],'application/xhtml+xml')or $type_user_agent=='validateur'){ $ContentType='application/xhtml+xml'; - $Doctype=''; - /*'\n". - '';*/ + $Doctype='\n". + ''; ob_start(); } else{ $ContentType='text/html'; - $Doctype=''; + $Doctype=''; function callback($texte) { $in=array(' xml:lang="','xmlns="http://www.w3.org/1999/xhtml"',' />'); @@ -79,6 +79,7 @@ require'confidentiel.php'; ob_start('callback'); } header('Content-Type:'.$ContentType.';charset=',$charset); + /************ //affichage de la page*/ echo $Doctype,"\n",'',"\n",'',"\n\t",