StatusCGI.pl untested

filter: Statementstmt 0.0% 0 / 19 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 24 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/bin/perl
2 use Lemonldap::Cluster::Status;
3 use Apache::Constants qw (:common) ;
4 use CGI qw(:all) ;
5 #Copyright (C) 2005 by Eric German, <germanlinux@yahoo.fr>
6 # FILE StatusCGI.pl
7 # Lemonldap originaly written by Eric German who decided to publish him in
8 # 2003 under the terms of the GNU General Public License version 2.
9 ########
10
11  
12 my $p;
13 $p=param('refresh') ;
14  
15 # YOU MUST MODIFYING THOSE LINES
16 # PUT YOUR NODES
17 my $re = Lemonldap::Cluster::Status->new (
18 'ADMIN' => 'title on top of page' ,
19 'node1' => '10.ip.ip.ip',
20 'node2' => 'server1.net',
21 'foo' => 'server2.net',
22 'bar' => '10.ip.ip.ip',
23 );
24  
25 ##############################################
26 $re->analyze;
27 my $a=$re->PrintHtml;
28 if ($p) {
29 print header(-type =>'text/html' ,
30 -refresh=>$p );} else
31 {
32 print header(-type =>'text/html');
33 }
34 print $a;
35 exit;
36  
37  
38