On Sun, Jan 29, 2006 at 03:11:03PM +0100, Lars Gullik Bjønnes wrote:
> Martin Vermeer <[EMAIL PROTECTED]> writes:
> 
> | On Sun, Jan 29, 2006 at 05:23:11PM +1100, Aaron Chan wrote:
> | > Hi just wanted to tell you that your website is "unusable" in IE7. The 
> navigation menu is centred and fixed, covering most of the content on every 
> single page. It is very annoying indeed. See attached screenshot.
> | 
> | Old Netscape used to have a similar problem...
> | 
> | Attached the patch ;-)
> | 
> | - Martin
> | 
> | BTW start.php is a mess.
> 
> Tell me about it.

Still, fixing the customization bug wasn't so hard after all; seems to
be a PHP versioning thing. Attached. This goes in presently unless some
very vehement protests come up :-)

- Martin

Index: start.php
===================================================================
RCS file: /usr/local/lyx/cvsroot/www-user/start.php,v
retrieving revision 1.1
diff -u -p -r1.1 start.php
--- start.php   19 Sep 2005 13:09:04 -0000      1.1
+++ start.php   29 Jan 2006 17:16:25 -0000
@@ -17,23 +17,27 @@
 
 // The following variables control the behaviour:
 
-//  $long = 0;
+  $long = $_GET['long'];
 //
 // If $long=0, we use the short names.
 // If $long=1, we use the long names.
 
-//  $sidebar = 0;
+  $sidebar = $_GET['sidebar'];
 //
 // The navigation bar is put at the top of the page when $sidebar is 0.
 // The navigation bar is put on the left hand side of the page other wise.
 
-//  $bgimage = 0;
+  $bgimage = $_GET['bgimage'];
 //
 // if $bgimage == 0, we show a simple lographics webdesign.
 // Otherwise we show a traditional bgimage and colours
 
 // Try to decide which kind of browser the user is using.
-$browser = $HTTP_USER_AGENT;
+$browser = $_SERVER['HTTP_USER_AGENT'];
+
+if (ereg("MSIE.*", $browser, $regs)) {
+       echo "You seem to be using a substandard browser. Why don't you 
http://getfirefox.com/ ?";
+}
 
 if (ereg("Lynx.*", $browser, $regs)) {
        $mode = 0;

Attachment: pgpTpAm56DI4m.pgp
Description: PGP signature

Reply via email to