>> El único objetivo bien delimitado hasta el momento es re-escribir en
objetos
>> (oop) éste código: http://www.linuxcabal.org/TianguisCabalOnLine.tar.bz

>Está incompleto:
>|Warning: include() [function.include]: Failed opening './includes/
>
> funcPrintHTMLHeader.php'



Hola, dice Richard:

La function funcPrintHTMLHeader.php no est parte del progragrama
TinaguisCabal, el es parte del "html envelope" donde puse el TianguisCabal.

Vas a ver otros modulos que tambien son parte de "envelope" como
incCommonFooter.php, incCommonHeader.php, incMenu.php, org.css, ...
todos son parte de la construcci n de una pagina web de www.linuxcabal.org y
dentro de ésta ponemos el TianguisCabal.

El codigo de funcPrintHTMLHeader.php sigue:

<?php
   function PrintHTMLHeader( $DD = "./" )
   {
     if( @$_GET{'Lang'} == 'en' )
     {
       $Lang = 'en';
     }
     else
     {
       $Lang = 'es';
     }
      print( "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
              <?xml-stylesheet type=\"text/xsl\"
                               href=\"FixAnotherMSIEBug.xsl\"?>
              <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"
                  \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\";>
              <html xmlns=\"http://www.w3.org/1999/xhtml\";
                    xml:lang=\"{$Lang}\" lang=\"{$Lang}\">
              <head>
                <meta http-equiv=\"Content-Type\"
                         content=\"application/xhtml+xml; charset=UTF-8\" />
                <meta http-equiv=\"expires\" content=\"-1\" />
                <meta http-equiv=\"Content-Style-Type\"
content=\"text/css\" />
                <meta name=\"keywords\" content=\"linux cabal,
                  linuxcabal, open source, free software, F/OSS,
                  FOSS, GNU, TianguisCabal,
                  GNU/Linux, Linux, GNU &amp; Linux, Free and Open Source
                  Software, Free y Open Source Software, CoffeeNet,
                  Coffee Net, Richard Couture, Software Freedom Day,
                  SFD, FLISoL, resumen del mes, Mandriva,
                  Fedora, CentOS, Red Hat, Ubuntu, Kubuntu, Edubuntu
                , Xubuntu, Debian, Puppy, SUSE, Damn Small, Yellow Dog,
                  Moblin, OpenSuSE, Linux From Scratch, OpenBSD, BSD,
                  NetBSD, DesktopBSD, FreeBSD, TianguisCabal\" />
                <title>
     {$_SERVER{'SERVER_NAME'}}{$_SERVER{'SCRIPT_NAME'}} - Un Lugar Donde
Confiar
                </title>
                <link rel=\"stylesheet\" type=\"text/css\"
                      href=\"{$DD}includes/org.css\" />
              </head>" );
   }
?>

Richard.

Saludos.


- Esteban Contreras Vázquez

Responder a