| 34 |
|
my($updatecmd) = "/home/sites/www.i-scream.org.uk/bin/fullcvsupdate.sh $modulelist"; |
| 35 |
|
my($logcmd) = "cd /home/sites/www.i-scream.org.uk/cvsscripttemp && $cvs2clpath $cvs2clargs"; |
| 36 |
|
|
| 37 |
+ |
my ($left) = "../left.inc" ; |
| 38 |
+ |
my ($title) = "../title.inc"; |
| 39 |
+ |
my ($bottom) = "../bottom.inc"; |
| 40 |
+ |
|
| 41 |
|
print "Content-type: text/html\n\n"; |
| 42 |
|
|
| 43 |
|
print <<"END"; |
| 51 |
|
|
| 52 |
|
<body bgcolor="#ffffff" link="#ffffff" alink="#ffffff" vlink="#ffffff" text="#000066"> |
| 53 |
|
|
| 54 |
< |
<a href="http://www.i-scream.org.uk"><img border="0" src="../i-scream.gif"></a> |
| 54 |
> |
<table border="0" cellpadding="2" cellspacing="2"> |
| 55 |
> |
<tr> |
| 56 |
> |
<td valign="top"> |
| 57 |
> |
END |
| 58 |
|
|
| 59 |
< |
<h2>$heading</h2> |
| 59 |
> |
&print_html($left); |
| 60 |
|
|
| 61 |
+ |
print <<"END"; |
| 62 |
+ |
</td> |
| 63 |
+ |
<td valign="top"> |
| 64 |
|
END |
| 65 |
|
|
| 66 |
+ |
&print_html($title); |
| 67 |
+ |
|
| 68 |
+ |
print <<"END"; |
| 69 |
+ |
<h2>$heading</h2> |
| 70 |
+ |
END |
| 71 |
+ |
|
| 72 |
|
print `$updatecmd`; |
| 73 |
|
|
| 74 |
|
my(@modules) = split (/\s+/, $modulelist); |
| 106 |
|
print "</table><p>\n\n"; |
| 107 |
|
} |
| 108 |
|
|
| 109 |
+ |
&print_html($bottom); |
| 110 |
+ |
|
| 111 |
|
print <<"END"; |
| 112 |
|
|
| 113 |
+ |
</td> |
| 114 |
+ |
</tr> |
| 115 |
+ |
</table> |
| 116 |
+ |
|
| 117 |
|
</body> |
| 118 |
|
|
| 119 |
|
</html> |
| 134 |
|
$encoded =~ s/</</g; |
| 135 |
|
$encoded =~ s/>/>/g; |
| 136 |
|
return $encoded; |
| 137 |
+ |
} |
| 138 |
+ |
|
| 139 |
+ |
# Print a file without escaping HTML: - |
| 140 |
+ |
sub print_html ($) { |
| 141 |
+ |
my ($filename) = @_; |
| 142 |
+ |
print `cat $filename 2>&1`; |
| 143 |
|
} |