3 # cluster-web.pl - perl login script for cluster web interface.
5 # - Based on clx-web by DL6DBH (ftp://clx.muc.de/pub/clx/clx-java_10130001.tgz)
7 # @version 0.1 beta. 20010610.
9 # Work out the hostname of this server.
11 my $HOSTNAME = hostname();
13 # Set the hostname manually here if the above fails.
14 # $HOSTNAME = "gb7mbc.spoo.org" ;
17 # Send text/html header to the browser.
18 print "Content-type: text/html\n\n";
20 # Get the parameters passed to the script.
21 read (STDIN, $post_data, $ENV{CONTENT_LENGTH});
22 @call = split (/=/, $post_data) ;
24 # Print the page header.
28 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
31 <TITLE>Cluster Web - DX Cluster Web Interface.</TITLE>
32 <META HTTP-EQUIV="content-type" CONTENT="text/html; charset=ISO-8859-1">
33 <META NAME="Author" CONTENT="Ian Norton.">
34 <META NAME="DESCRIPTION" CONTENT="DX Cluster web interface">
37 <BODY BGCOLOR="#FFFFFF" LINK="#008080" ALINK="#000099" VLINK="#000099">
41 <FONT FACE="arial, helvicta" COLOR="#008080" SIZE=+2>
42 <B><BR>Cluster Web - DX Cluster Web Interface.</B><BR>
45 print("Welcome to $HOSTNAME<BR>") ;
57 if($ENV{CONTENT_LENGTH} > 0)
59 # Callsign is set - print the whole <APPLET> stuff....
60 # print("Callsign is $call[1]<BR>\n") ;
63 print(" <APPLET CODE=\"spiderclient.class\" CODEBASE=\"/client/\" width=800 height=130>\n") ;
64 print(" <PARAM NAME=\"CALL\" VALUE=\"$call[1]\">\n") ;
65 print(" <PARAM NAME=\"HOSTNAME\" VALUE=\"$HOSTNAME\">\n") ;
66 print(" <PARAM NAME=\"PORT\" VALUE=\"$PORT\">\n") ;
67 print(" </APPLET>\n") ;
68 print("</CENTER>\n") ;
72 # Callsign isn't set - print the login page.
76 <STRONG>Please enter your callsign: </STRONG><BR>
77 <INPUT name="call" size=10><BR>
78 <INPUT type=submit value="Click here to Login">
88 <A HREF="http://www.dxcluster.org/">Spider Homepage</A>.