mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
Hinzugefuegt:
* SquidGuard - mit Patch damit es mit der DB 4.4.20 funktioniert. * wput - wget nur andersrum. * hddtemp/hddgraph * etherwake * Saemtliche Bootscripts vom BLFS * vpn-restart-script... muss noch bearbeitet werden. Geaendert: * Karsten Rechenbachs Emailadresse in die Credits gebaut. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@168 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -41,7 +41,7 @@ Projektmitglied & Developer - Heiner Schmeling
|
||||
Projektmitglied & Supporter - Silvio Rechenbach
|
||||
(<a href='mailto:sr\@tne.de'>sr\@tne.de</a>)<br />
|
||||
Sponsor - Karsten Rechenbach
|
||||
(<a href='mailto:email\@fehlt.com'>email\@fehlt.com</a>)<br />
|
||||
(<a href='mailto:space\@devilboard.net'>space\@devilboard.net</a>)<br />
|
||||
Betatester - Sebastian Winter
|
||||
(<a href='mailto:sebastian.winter\@gmail.com'>sebastian.winter\@gmail.com</a>)<br />
|
||||
</p>
|
||||
|
||||
66
html/cgi-bin/hddgraph.cgi
Normal file
66
html/cgi-bin/hddgraph.cgi
Normal file
@@ -0,0 +1,66 @@
|
||||
#!/usr/bin/perl
|
||||
#
|
||||
# SmoothWall CGIs
|
||||
#
|
||||
# This code is distributed under the terms of the GPL
|
||||
#
|
||||
# (c) The SmoothWall Team
|
||||
#
|
||||
# $Id: graphs.cgi,v 1.9.2.6 2005/02/22 22:21:55 gespinasse Exp $
|
||||
#
|
||||
# 2006-02-23 modified by weizen_42 for hddgraphs
|
||||
#
|
||||
# 2006-02-xx weizen_42 several modifications
|
||||
# 2006-03-31 weizen_42 link to homepage
|
||||
# 2006-04-22 weizen_42 v0.1.1 install below proxygraphs in status menu
|
||||
#
|
||||
|
||||
use strict;
|
||||
|
||||
# enable only the following on debugging purpose
|
||||
#use warnings;
|
||||
#use CGI::Carp 'fatalsToBrowser';
|
||||
|
||||
require '/var/ipfire/general-functions.pl';
|
||||
require "${General::swroot}/lang.pl";
|
||||
require "${General::swroot}/header.pl";
|
||||
|
||||
my $version = 'v0.1.1';
|
||||
|
||||
my %cgiparams=();
|
||||
my @cgigraphs=();
|
||||
my @graphs=();
|
||||
|
||||
&Header::showhttpheaders();
|
||||
|
||||
my $graphdir = "/home/httpd/html/graphs";
|
||||
|
||||
$ENV{'QUERY_STRING'} =~ s/&//g;
|
||||
@cgigraphs = split(/graph=/,$ENV{'QUERY_STRING'});
|
||||
$cgigraphs[1] = '' unless defined $cgigraphs[1];
|
||||
|
||||
&Header::openpage($Lang::tr{'harddisk temperature graphs'}, 1, '');
|
||||
|
||||
&Header::openbigbox('100%', 'left');
|
||||
|
||||
&Header::openbox('100%', 'center', $Lang::tr{'harddisk temperature'});
|
||||
|
||||
if (-e "$graphdir/hddtemp-day.png")
|
||||
{
|
||||
my $ftime = localtime((stat("$graphdir/hddtemp-day.png"))[9]);
|
||||
print "<center>";
|
||||
print "<b>$Lang::tr{'the statistics were last updated at'}: $ftime</b></center><br /><hr />\n";
|
||||
print "<img src='/graphs/hddtemp-day.png' border='0' /><hr />";
|
||||
print "<img src='/graphs/hddtemp-week.png' border='0' /><hr />";
|
||||
print "<img src='/graphs/hddtemp-month.png' border='0' /><hr />";
|
||||
print "<img src='/graphs/hddtemp-year.png' border='0' />";
|
||||
}
|
||||
else
|
||||
{
|
||||
print $Lang::tr{'no information available'};
|
||||
}
|
||||
|
||||
&Header::closebox();
|
||||
|
||||
&Header::closebigbox();
|
||||
&Header::closepage();
|
||||
@@ -19,9 +19,6 @@ require '/var/ipfire/general-functions.pl';
|
||||
require "${General::swroot}/lang.pl";
|
||||
require "${General::swroot}/header.pl";
|
||||
|
||||
my $advproxyversion = `cat ${General::swroot}/proxy/advanced/version`;
|
||||
my $sysupdflagfile = "${General::swroot}/proxy/advanced/.up2date";
|
||||
|
||||
my %proxysettings=();
|
||||
my %netsettings=();
|
||||
my %filtersettings=();
|
||||
@@ -1974,7 +1971,7 @@ print <<END
|
||||
<font class='base'>$Lang::tr{'this field may be blank'}</font>
|
||||
</td>
|
||||
<td align='right'>
|
||||
<sup><small><a href='http://www.advproxy.net' target='_blank'>Advanced Proxy $advproxyversion</a></small></sup>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user