From: g0vgs Date: Tue, 16 Jul 2002 13:51:14 +0000 (+0000) Subject: Changes to spider-web from OZ1LQH X-Git-Tag: R_1_50~23 X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=63471efc29603014652936e096b57915023eb287;p=spider.git Changes to spider-web from OZ1LQH --- diff --git a/spider-web/README b/spider-web/README index 6406d43c..e253db72 100644 --- a/spider-web/README +++ b/spider-web/README @@ -5,14 +5,18 @@ Completely based on a clx web client written in Java by dl6dbh The webserver has to run on the same machine as your DxSpider software! +It is assumed that you have Java installed. You need JDK1.3.1 at least. + Installation instructions (Performed as root): Put all the files in the spider-web directory into a newly created directory under the DocumentRoot of your websever for instance 'client'. In my case -this is: /var/www/html/client/ +this is: /home/httpd/html/client/ although ymmv. For Suse the correct +path should be /usr/local/httpd/htdocs/client/ for example. Move spider.cgi to the cgi-bin directory of your webserver, in my case that is -/var/www/cgi-bin/ +/home/httpd/cgi-bin/ although ymmv. For Suse the correct path should be +/usr/local/httpd/cgi-bin/ for example. Change the permissions of the files to ensure they are correct : @@ -32,5 +36,12 @@ $PORT = "8000" ; 'PORT' is the portnumber that you use to connect to your DxSpider via telnet (see Listeners.pm) +NOTE: If you can start the console but cannot connect to the cluster from it, +then it is possible that the machine you are on cannot resolve the hostname of +your cluster machine. If this is the case, you need to set your hostname +manually as above. + +You also need to set the $NODECALL variable. This prints the name of your +choosing (probably your cluster callsign) on the html page. You now can connect to Spider-Web via http://yourserver/cgi-bin/spider.cgi diff --git a/spider-web/StreamListener.class b/spider-web/StreamListener.class index 1d906da5..a22ce617 100644 Binary files a/spider-web/StreamListener.class and b/spider-web/StreamListener.class differ diff --git a/spider-web/idleTime.class b/spider-web/idleTime.class index 8c02c145..e80d1899 100644 Binary files a/spider-web/idleTime.class and b/spider-web/idleTime.class differ diff --git a/spider-web/makefile b/spider-web/makefile deleted file mode 100644 index 8bd55e3a..00000000 --- a/spider-web/makefile +++ /dev/null @@ -1,7 +0,0 @@ -all: compile - - -compile: - rm *.class - /usr/lib/java/bin/javac spiderclient.java - diff --git a/spider-web/setDate.class b/spider-web/setDate.class index a264d52f..e1a90f0d 100644 Binary files a/spider-web/setDate.class and b/spider-web/setDate.class differ diff --git a/spider-web/spider.cgi b/spider-web/spider.cgi index 8b8763b2..47a61ef3 100755 --- a/spider-web/spider.cgi +++ b/spider-web/spider.cgi @@ -10,9 +10,12 @@ use Sys::Hostname; my $HOSTNAME = hostname(); +# Please note that the HOSTNAME MUST be resolvable from the user end. Otherwise the +# web interface will NOT work. # Uncomment and set the hostname manually here if the above fails. # $HOSTNAME = "gb7mbc.spoo.org" ; $PORT = "8000" ; +$NODECALL = "XX0XX" ; # Send text/html header to the browser. print "Content-type: text/html\n\n"; @@ -48,7 +51,7 @@ print <<'EOF';
Cluster Web - DX Cluster Web Interface.

EOF - print("Welcome to $HOSTNAME
") ; + print("Welcome to $NODECALL
") ; print <<'EOF'; diff --git a/spider-web/spiderframe.class b/spider-web/spiderframe.class index 1a4e11a6..4dd0764d 100644 Binary files a/spider-web/spiderframe.class and b/spider-web/spiderframe.class differ diff --git a/spider-web/spiderframe.java b/spider-web/spiderframe.java index 1630f9e7..947cd0ad 100755 --- a/spider-web/spiderframe.java +++ b/spider-web/spiderframe.java @@ -44,7 +44,7 @@ menubar.add(commands); show = new Menu("Show"); show.add(new MenuItem("Show Last DX")); show.add(new MenuItem("Show Beam Direction")); - show.add(new MenuItem("Show wwv")); + show.add(new MenuItem("Show WWV")); show.add(new MenuItem("Search DX")); show.add(new MenuItem("Search Address")); show.add(new MenuItem("Search QSL Manager")); @@ -70,6 +70,8 @@ menubar.add(dxann); mailbox = new Menu("Mailbox"); mailbox.add(new MenuItem("Last 50 Msgs")); mailbox.add(new MenuItem("List DX Bulletins")); + mailbox.add(new MenuItem("New Messages")); + mailbox.add(new MenuItem("Own Messages")); menubar.add(mailbox); @@ -429,17 +431,17 @@ menubar.add(mailbox); } else if (arg.equals("Bye")) { if (Connected) out.println("bye"); } else if (arg.equals("Help")) { - if (Connected) out.println("help overview"); + if (Connected) out.println("? all"); } else if (arg.equals("Show Last DX")) { if (Connected) out.println("sh/dx"); } else if (arg.equals("Status")) { - if (Connected) out.println("sh/conf"); + if (Connected) out.println("sh/c"); } else if (arg.equals("Show WWV")) { if (Connected) out.println("sh/wwv"); } else if (arg.equals("Show Beam Direction")) { beam pp = new beam(this, Prefix, OutFont); if (Connected) out.println ("sh/heading " + Prefix ); - } else if (arg.equals("search DX")) { + } else if (arg.equals("Search DX")) { beam pp = new beam(this, Prefix, OutFont); if (Connected) out.println ("sh/dx " + Prefix ); @@ -448,19 +450,19 @@ menubar.add(mailbox); if (Connected) out.println ("sh/qsl " + Prefix ); - } else if (arg.equals("search Adress")) { + } else if (arg.equals("Search Address")) { beam pp = new beam(this, Prefix, OutFont); if (Connected) out.println ("sh/qrz " + Prefix ); - } else if (arg.equals("search qsl Manager")) { + } else if (arg.equals("Search QSL Manager")) { beam pp = new beam(this, Prefix, OutFont); if (Connected) out.println ("sh/qsl " + Prefix ); - } else if (arg.equals("search DXCC")) { + } else if (arg.equals("Search DXCC")) { beam pp = new beam(this, Prefix, OutFont); - if (Connected) out.println ("sh/dxcc " + Prefix ); + if (Connected) out.println ("sh/pr " + Prefix ); // buttom settings @@ -479,35 +481,33 @@ menubar.add(mailbox); } else if (arg.equals("Set Locator")) { beam pp = new beam(this, Prefix, OutFont); - if (Connected) out.println ("set/loc " + Prefix ); + if (Connected) out.println ("set/qra " + Prefix ); - } else if (arg.equals("Show Personal Settings")) { - if (Connected) out.println ("show/sta " + Call ); + if (Connected) out.println ("sh/sta " + Call ); - } // dx announce else if (arg.equals("DXannounce")) { dxannounce pp = new dxannounce(this, Call2, Freq, Remarks, OutFont); - if (Connected) out.println ("dx " + Call2 + " " + Freq + " " + Remarks ); + if (Connected) out.println ("dx " + Freq + " " + Call2 + " " + Remarks ); } // mailbox - else if (arg.equals("last 50 Msgs")) { - if (Connected) out.println ("dir/50 " ); + else if (arg.equals("Last 50 Msgs")) { + if (Connected) out.println ("dir/50" ); } - else if (arg.equals("list DX Bulletins")) { - if (Connected) out.println ("dir/bul " ); + else if (arg.equals("List DX Bulletins")) { + if (Connected) out.println ("dir/bul" ); } - else if (arg.equals("new Msgs")) { - if (Connected) out.println ("dir/new " ); + else if (arg.equals("New Messages")) { + if (Connected) out.println ("dir/new" ); } - else if (arg.equals("own Msgs")) { - if (Connected) out.println ("dir/own " ); + else if (arg.equals("Own Messages")) { + if (Connected) out.println ("dir/own" ); }