wwwtesting: Strange forces at work?

Christoph Cullmann cullmann at babylon2k.de
Sat Feb 1 21:15:32 UTC 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 01 February 2003 22:02, Andreas Pour wrote:
> Hi,
>
> Isn't it possible to have the header and footer depend on the browser?  I
> mean make header.inc something like (the "preg" call would not some more
> work on the subject):
>
> <?php
>   function useTables()
>   {
>     // returns true if to use tables, false for CSS support
>     // make it a function so pages can use it internally as well
>     return ((strpos($GLOBALS["HTTP_USER_AGENT"], "Mozilla/4.") > 0) &&
>             !preg_match("@MSIE|Konq at i", $GLOBALS["HTTP_USER_AGENT"]));
>   }
>
>   if (useTables())
>   {
>     include("header_tables.inc");
>   }
>   else
>   {
>     include("header_css.inc");
>   }
> ?>
>
> Just a thought,
Would be doable, only question if it is worth the work to have 2 codebases to 
work on. Would have no concern do to so, if really needed.

cu
Christoph

- -- 
Christoph Cullmann
KDE Developer, kde.org Co-Maintainer
http://www.babylon2k.de, cullmann at kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+PDj3yPjDGePm9UIRAn5fAKCCFaJkQIIZA8ssuVoo7e9AAMcG7QCdElQ2
mDKsc54fVtyuzTd3QlAPs2I=
=fbxF
-----END PGP SIGNATURE-----




More information about the kde-www mailing list