Commit Diff


commit - c194359c88a2e6cff62ae17f09d628fdbf8a6414
commit + ec0fd494e8054f12fc31cb49a8b58e267abac882
blob - b720208284dd07124e26d87e8bc985fd3bc4465c
blob + 6fc68b0619eaa19b345ee4c215fd1794d48611a0
--- autres/source-haut.php
+++ autres/source-haut.php
@@ -52,6 +52,7 @@ require'confidentiel.php';
       $head.='<!--La feuille de style pour le code html-->'."\n\t".
              '<link rel="stylesheet" type="text/css" href="/autres/css/code.css" />';
     }
+
 /*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='<!doctype html>';
-		/*'<?xml version="1.0" encoding="'.$charset.'"?'.">\n".
-                '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">';*/
+       $Doctype='<?xml version="1.0" encoding="'.$charset.'"?'.">\n".
+                '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">';
        ob_start();
       }
     else{
       $ContentType='text/html';
-      $Doctype='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">';
+      $Doctype='<!doctype html>';
       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",'<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">',"\n",'<head>',"\n\t",