X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=www%2Ftargets.egw;h=55d8189d7892da8e5d3150674947df1aabd7118d;hb=25db261b6bbbfcc7bc26f679f195b51d31b9d7d7;hp=39e12052e0841856fc561138573f3f8bf8a3c3e5;hpb=ce3ef5c24347417e973e9e6739466dfc701fe19d;p=egate.git
diff --git a/www/targets.egw b/www/targets.egw
index 39e1205..55d8189 100644
--- a/www/targets.egw
+++ b/www/targets.egw
@@ -1,33 +1,45 @@
{
-# $Id: targets.egw,v 1.13 1996/01/08 19:16:32 adam Exp $
- source /usr/local/etc/httpd/conf/ztargets.conf
+# $Id: targets.egw,v 1.19 1996/01/26 17:41:26 adam Exp $
+ source ztargets.conf
if {[info commands saveState] == ""} {
source z39util.tcl
}
-}
-
- Europagate, WWW/Z39.50 Gateway
-
-
-Choose Z39.50 target
-
-{
+ set mMode 0
+
if {![info exists debug]} {
- if {[lindex $sessionParms 0] == "1"} {
+ if {[lindex $sessionParms 1] == "1"} {
set debug 1
} else {
set debug 0
}
}
-
- if {![info exists useIcons]} {
- if {[lindex $sessionParms 1] == "1"} {
- set useIcons 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 useIcons 1
+ set html3 0
+ egw_log debug "New user Not using Netscape"
}
}
+}
+
+ Europagate, WWW/Z39.50 Gateway
+
+
+{
+ set useIcons 1
+
+ button-europagate
+ if {[info exists nextSetNo]} {
+ button-view-history 1
+ }
+ button-define-target 0
+ html "Choose a target
\n"
+ html "\n"
+
proc targetsCmp {l r} {
global targets
return [string compare [string tolower [lindex $targets($l) 0]] \
@@ -38,20 +50,20 @@
foreach t $tn {
if {[string index $t 0] == "."} continue
html {- } [lindex $targets($t) 0] " \n"
+ html "$sessionId/query.egw;/$t" {"> } [lindex $targets($t) 0] " \n"
set desc [lindex $targets($t) 4]
if {$desc != ""} {
- html "
- $desc\n"
+ html "
- $desc\n"
}
}
+ html "
\n"
+ set useIcons 0
+ button-europagate
+ if {[info exists nextSetNo]} {
+ button-view-history 1
+ }
+ button-define-target 0
}
-
-
-{
- button-europagate
- button-view-history 0
-}
-
{
catch maintenance
global debug