Work on HTML3 detection. Tables are used to display history.
[egate.git] / www / targets.egw
index 46d61e1..55d8189 100644 (file)
@@ -1,18 +1,29 @@
 <html>
 {
-# $Id: targets.egw,v 1.18 1996/01/26 15:50:10 adam Exp $
+# $Id: targets.egw,v 1.19 1996/01/26 17:41:26 adam Exp $
     source ztargets.conf
     if {[info commands saveState] == ""} {
         source z39util.tcl
     }
+    set mMode 0
+
     if {![info exists debug]} {
-        if {[lindex $sessionParms 0] == "1"} {
+        if {[lindex $sessionParms 1] == "1"} {
             set debug 1
         } else {
             set debug 0
         }
     }
-    set mMode 0
+    set html3 [lindex $sessionParms 0]
+    if {$html3 == ""} {
+        if {[string first Mozilla $env(HTTP_USER_AGENT)] == 0} {
+            set html3 1
+            egw_log debug "New user using Netscape"
+        } else {
+            set html3 0
+            egw_log debug "New user Not using Netscape"
+        }
+    }
 }
 <head>
 <title> Europagate, WWW/Z39.50 Gateway </title>