mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
Hinzugefügt:
* Kleiner Tux im Webinterface für den eXciter und den Benne :) Geändert: * time.cgi überarbeitet und Funktion verbessert. * index.cgi - noch ein Paar Fehler behoben oder was hinzugefügt. * FLASH-Eintrag aus der crontab gelöscht. * Online-Hilfe-Rettungsringe (die hässlichen) aus den CGIs entfernt. * Logger von ipcop nach ipfire umgestellt. Gelöscht: * Nicht benötigte Reste vom IPCop entfernt. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@160 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -23,14 +23,14 @@ $|=1; # line buffering
|
||||
$General::version = 'VERSION';
|
||||
$General::swroot = 'CONFIG_ROOT';
|
||||
$General::noipprefix = 'noipg-';
|
||||
$General::adminmanualurl = 'http://www.ipcop.org/1.4.0/en/admin/html';
|
||||
$General::adminmanualurl = 'http://users.ipfire.eu';
|
||||
|
||||
sub log
|
||||
{
|
||||
my $logmessage = $_[0];
|
||||
$logmessage =~ /([\w\W]*)/;
|
||||
$logmessage = $1;
|
||||
system('/usr/bin/logger', '-t', 'ipcop', $logmessage);
|
||||
system('/usr/bin/logger', '-t', 'ipfire', $logmessage);
|
||||
}
|
||||
|
||||
sub readhash
|
||||
@@ -481,7 +481,7 @@ sub FetchPublicIp {
|
||||
my ($out, $response) = Net::SSLeay::get_http( 'checkip.dyndns.org',
|
||||
80,
|
||||
"/",
|
||||
Net::SSLeay::make_headers('User-Agent' => 'Ipcop' )
|
||||
Net::SSLeay::make_headers('User-Agent' => 'IPFire' )
|
||||
);
|
||||
if ($response =~ m%HTTP/1\.. 200 OK%) {
|
||||
$out =~ /Current IP Address: (\d+.\d+.\d+.\d+)/;
|
||||
|
||||
@@ -760,7 +760,7 @@ END
|
||||
&showsubsection($menu);
|
||||
|
||||
print <<END
|
||||
|
||||
<p><center><img src="/images/iptux.png" width='160px' height='160px'></center></p>
|
||||
</td>
|
||||
<td width="100%" valign="top">
|
||||
<div id="page-content">
|
||||
|
||||
@@ -3,5 +3,5 @@ UPDATE_PERIOD=daily
|
||||
UPDATE_VALUE=1
|
||||
UPDATE_METHOD=manually
|
||||
ENABLENTP=off
|
||||
NTP_ADDR_1=pool.ntp.org
|
||||
NTP_ADDR_1=de.pool.ntp.org
|
||||
VALID=yes
|
||||
|
||||
@@ -9,9 +9,6 @@ HOME=/
|
||||
# Log rotation
|
||||
01 * * * * /usr/sbin/logrotate /etc/logrotate.conf
|
||||
|
||||
# Backup logs to flashdisk
|
||||
01 * * * * [ -f "/etc/FLASH" ] && /etc/rc.d/rc.flash.down
|
||||
|
||||
# Set time
|
||||
*/5 * * * * /usr/local/bin/timecheck > /dev/null 2>&1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user