[LON-CAPA-cvs] cvs: loncom /cgi clusterstatus.pl

www lon-capa-cvs@mail.lon-capa.org
Wed, 13 Aug 2003 21:41:48 -0000


www		Wed Aug 13 17:41:48 2003 EDT

  Modified files:              
    /loncom/cgi	clusterstatus.pl 
  Log:
  Link to announcements - they might say why the thing is down.
  
  
Index: loncom/cgi/clusterstatus.pl
diff -u loncom/cgi/clusterstatus.pl:1.17 loncom/cgi/clusterstatus.pl:1.18
--- loncom/cgi/clusterstatus.pl:1.17	Tue Aug  5 14:47:21 2003
+++ loncom/cgi/clusterstatus.pl	Wed Aug 13 17:41:47 2003
@@ -3,7 +3,7 @@
 # The LearningOnline Network with CAPA
 # Cluster Status
 #
-# $Id: clusterstatus.pl,v 1.17 2003/08/05 18:47:21 www Exp $
+# $Id: clusterstatus.pl,v 1.18 2003/08/13 21:41:47 www Exp $
 
 use lib '/home/httpd/lib/perl/';
 use LONCAPA::Configuration;
@@ -212,6 +212,11 @@
     print &otherwindow($local,'/server-status','Server Status');
 }
 
+sub announcement {
+    my $local=shift;
+    print &otherwindow($local,'/announcement.txt','Announcement');
+}
+
 # ========================================================= Produce a green bar
 sub bar {
     my $parm=shift;
@@ -236,6 +241,7 @@
 </font></th></tr><tr><td bgcolor="#DDDDBB"><font color="#225522">
 ENDHEADER
     &login($local);&server($local);&users($local);&versions($local);
+    &announcement($local);
     &loncron($local);&lond($local);&lonc($local);&runloncron($local);
     print "</font></td></tr>";
     if ($trouble) {