'title' => "$Lang::tr{'backup'}",
'enabled' => 1,
};
+ $subsystem->{'41.fireinfo'} = {
+ 'caption' => $Lang::tr{'system information'},
+ 'uri' => '/cgi-bin/fireinfo.cgi',
+ 'title' => "$Lang::tr{'system information'}",
+ 'enabled' => 1,
+ };
$subsystem->{'99.credits'} = {
'caption' => $Lang::tr{'credits'},
'uri' => '/cgi-bin/credits.cgi',
srv/web/ipfire/cgi-bin/dhcp.cgi
srv/web/ipfire/cgi-bin/dmzholes.cgi
srv/web/ipfire/cgi-bin/extrahd.cgi
+srv/web/ipfire/cgi-bin/fireinfo.cgi
srv/web/ipfire/cgi-bin/gui.cgi
srv/web/ipfire/cgi-bin/hardwaregraphs.cgi
srv/web/ipfire/cgi-bin/hosts.cgi
etc/rc.d/init.d/dnsmasq
etc/rc.d/init.d/fcron
#etc/rc.d/init.d/fetchmail
+etc/rc.d/init.d/fireinfo
etc/rc.d/init.d/firewall
etc/rc.d/init.d/firstsetup
etc/rc.d/init.d/functions
etc/rc.d/rcsysinit.d/S75firstsetup
etc/rc.d/rcsysinit.d/S80localnet
etc/rc.d/rcsysinit.d/S90sysctl
+etc/rc.d/rcsysinit.d/S99fireinfo
#etc/sysconfig
etc/sysconfig/createfiles
etc/sysconfig/firewall.local
etc/rc.d/init.d/networking/dhcpcd.exe
etc/rc.d/init.d/networking/red
etc/rc.d/init.d/networking/red.up/99-fireinfo
+etc/rc.d/rcsysinit.d/S99fireinfo
+srv/web/ipfire/cgi-bin/fireinfo.cgi
srv/web/ipfire/cgi-bin/extrahd.cgi
srv/web/ipfire/cgi-bin/credits.cgi
srv/web/ipfire/cgi-bin/index.cgi
var/ipfire/langs/en.pl
var/ipfire/langs/fr.pl
var/ipfire/langs/es.pl
+var/ipfire/menu.d/10-system.menu
usr/local/bin/timectrl
usr/local/bin/rebuild-initrd
usr/local/bin/scanhd
WARNING: translation string unused: max size
WARNING: translation string unused: mbmon fan in
WARNING: translation string unused: mbmon graphs
-WARNING: translation string unused: mbmon temp
WARNING: translation string unused: mbmon temp in
WARNING: translation string unused: mbmon value
WARNING: translation string unused: min size
WARNING: untranslated string: new
WARNING: untranslated string: outgoing firewall reserved groupname
WARNING: untranslated string: qos add subclass
-WARNING: untranslated string: sensors temp
WARNING: translation string unused: max size
WARNING: translation string unused: mbmon fan in
WARNING: translation string unused: mbmon graphs
-WARNING: translation string unused: mbmon temp
WARNING: translation string unused: mbmon temp in
WARNING: translation string unused: mbmon value
WARNING: translation string unused: min size
WARNING: untranslated string: cpu frequency per
WARNING: untranslated string: new
WARNING: untranslated string: outgoing firewall reserved groupname
-WARNING: untranslated string: sensors temp
WARNING: translation string unused: max size
WARNING: translation string unused: mbmon fan in
WARNING: translation string unused: mbmon graphs
-WARNING: translation string unused: mbmon temp
WARNING: translation string unused: mbmon temp in
WARNING: translation string unused: mbmon value
WARNING: translation string unused: min size
WARNING: untranslated string: Set time on boot
WARNING: untranslated string: bytes
WARNING: untranslated string: cpu frequency per
+WARNING: untranslated string: fireinfo ipfire version
+WARNING: untranslated string: fireinfo is disabled
+WARNING: untranslated string: fireinfo is enabled
+WARNING: untranslated string: fireinfo is submitted
+WARNING: untranslated string: fireinfo is submitted button
+WARNING: untranslated string: fireinfo kernel version
+WARNING: untranslated string: fireinfo not submitted
+WARNING: untranslated string: fireinfo not submitted button
+WARNING: untranslated string: fireinfo pakfire version
+WARNING: untranslated string: fireinfo please enable
+WARNING: untranslated string: fireinfo settings
+WARNING: untranslated string: fireinfo system version
+WARNING: untranslated string: fireinfo your profile id
WARNING: untranslated string: new
WARNING: untranslated string: outgoing firewall add ip group
WARNING: untranslated string: outgoing firewall add mac group
+WARNING: untranslated string: outgoing firewall edit ip group
+WARNING: untranslated string: outgoing firewall edit mac group
WARNING: untranslated string: outgoing firewall group error
WARNING: untranslated string: outgoing firewall groups
WARNING: untranslated string: outgoing firewall ip groups
WARNING: untranslated string: outgoing firewall p2p description 3
WARNING: untranslated string: outgoing firewall reserved groupname
WARNING: untranslated string: outgoing firewall view group
-WARNING: untranslated string: sensors temp
+WARNING: untranslated string: pakfire ago
+WARNING: untranslated string: system information
WARNING: translation string unused: max size
WARNING: translation string unused: mbmon fan in
WARNING: translation string unused: mbmon graphs
-WARNING: translation string unused: mbmon temp
WARNING: translation string unused: mbmon temp in
WARNING: translation string unused: mbmon value
WARNING: translation string unused: min size
WARNING: untranslated string: cpu frequency per
WARNING: untranslated string: dns address deleted txt
WARNING: untranslated string: extrahd detected drives
+WARNING: untranslated string: fireinfo ipfire version
+WARNING: untranslated string: fireinfo is disabled
+WARNING: untranslated string: fireinfo is enabled
+WARNING: untranslated string: fireinfo is submitted
+WARNING: untranslated string: fireinfo is submitted button
+WARNING: untranslated string: fireinfo kernel version
+WARNING: untranslated string: fireinfo not submitted
+WARNING: untranslated string: fireinfo not submitted button
+WARNING: untranslated string: fireinfo pakfire version
+WARNING: untranslated string: fireinfo please enable
+WARNING: untranslated string: fireinfo settings
+WARNING: untranslated string: fireinfo system version
+WARNING: untranslated string: fireinfo your profile id
WARNING: untranslated string: new
WARNING: untranslated string: ntp common settings
WARNING: untranslated string: ntp sync
WARNING: untranslated string: outgoing firewall reserved groupname
-WARNING: untranslated string: sensors temp
+WARNING: untranslated string: pakfire ago
WARNING: untranslated string: snort working
+WARNING: untranslated string: system information
WARNING: untranslated string: upload new ruleset
WARNING: untranslated string: urlfilter file ext block
WARNING: untranslated string: urlfilter mode block
############################################################################
< dns address deleted txt
< extrahd detected drives
+< fireinfo ipfire version
+< fireinfo is disabled
+< fireinfo is enabled
+< fireinfo is submitted
+< fireinfo is submitted button
+< fireinfo kernel version
+< fireinfo not submitted
+< fireinfo not submitted button
+< fireinfo pakfire version
+< fireinfo please enable
+< fireinfo settings
+< fireinfo system version
+< fireinfo your profile id
< ntp common settings
< ntp sync
< snort working
+< system information
< upload new ruleset
< urlfilter file ext block
< urlfilter mode block
# Checking cgi-bin translations for language: es #
############################################################################
< Async logging enabled
+< fireinfo ipfire version
+< fireinfo is disabled
+< fireinfo is enabled
+< fireinfo is submitted
+< fireinfo is submitted button
+< fireinfo kernel version
+< fireinfo not submitted
+< fireinfo not submitted button
+< fireinfo pakfire version
+< fireinfo please enable
+< fireinfo settings
+< fireinfo system version
+< fireinfo your profile id
< outgoing firewall add ip group
< outgoing firewall add mac group
+< outgoing firewall edit ip group
+< outgoing firewall edit mac group
< outgoing firewall group error
< outgoing firewall groups
< outgoing firewall ip groups
< outgoing firewall p2p description 3
< outgoing firewall view group
< Set time on boot
+< system information
&Header::openbigbox('100%', 'center');
-&Header::openbox('100%', 'left', 'Version');
-print "This is ".`cat /etc/system-release`;
-print " - Pakfire ".`cat /opt/pakfire/etc/pakfire.conf | grep "version =" | cut -d\\" -f2`;
-print "<br />".`uname -a`;
-print "<br /><br /><br /><br />";
-&Header::closebox();
-
&Header::openbox('100%', 'left', $Lang::tr{'donation'});
print <<END
--- /dev/null
+#!/usr/bin/perl
+###############################################################################
+# #
+# IPFire.org - A linux based firewall #
+# Copyright (C) 2007 Michael Tremer & Christian Schmidt #
+# #
+# This program is free software: you can redistribute it and/or modify #
+# it under the terms of the GNU General Public License as published by #
+# the Free Software Foundation, either version 3 of the License, or #
+# (at your option) any later version. #
+# #
+# This program is distributed in the hope that it will be useful, #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
+# GNU General Public License for more details. #
+# #
+# You should have received a copy of the GNU General Public License #
+# along with this program. If not, see <http://www.gnu.org/licenses/>. #
+# #
+###############################################################################
+
+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 $configfile = "/var/ipfire/main/send_profile";
+
+my %fireinfosettings=();
+my $errormessage='';
+
+&Header::showhttpheaders();
+
+$fireinfosettings{'ENABLE_FIREINFO'} = 'off';
+$fireinfosettings{'ACTION'} = '';
+
+&Header::getcgihash(\%fireinfosettings);
+
+if ( -e "$configfile" ) {
+ $fireinfosettings{'ENABLE_FIREINFO'} = 'on';
+}
+
+if ("$fireinfosettings{'ACTION'}" eq "trigger") {
+ if ($fireinfosettings{'ENABLE_FIREINFO'} eq 'off') {
+ &General::log($Lang::tr{'fireinfo is enabled'});
+ system ('/usr/bin/touch', $configfile);
+ $fireinfosettings{'ENABLE_FIREINFO'} = 'on';
+ } else {
+ &General::log($Lang::tr{'fireinfo is disabled'});
+ unlink "$configfile";
+ $fireinfosettings{'ENABLE_FIREINFO'} = 'off';
+ }
+}
+
+&Header::openpage('Fireinfo', 1, '');
+
+if ($fireinfosettings{'ENABLE_FIREINFO'} ne "on") {
+ &Header::openbox("100%", "left", "Why should I enable fireinfo?");
+
+ print <<END;
+<font color="$Header::colourred">
+ <p>
+ It is very important for the development of IPFire that you enable this
+ service. <a href="http://fireinfo.ipfire.org" target="_blank">Read more about the reasons.</a>
+ </p>
+</font>
+END
+
+ &Header::closebox();
+}
+
+&Header::openbigbox('100%', 'left', '', $errormessage);
+
+if ($errormessage) {
+ &Header::openbox('100%', 'left', "$Lang::tr{'error messages'}");
+ print "<FONT CLASS='base'>$errormessage </FONT>\n";
+ &Header::closebox();
+}
+
+my $ipfire_version = `cat /etc/system-release`;
+my $pakfire_version = `cat /opt/pakfire/etc/pakfire.conf | grep "version =" | cut -d\\" -f2`;
+my $kernel_version = `uname -a`;
+
+&Header::openbox('100%', 'left', $Lang::tr{'fireinfo system version'});
+print <<END;
+ <table width="100%">
+ <tr>
+ <td>$Lang::tr{'fireinfo ipfire version'}:</td>
+ <td>$ipfire_version</td>
+ </tr>
+ <tr>
+ <td>$Lang::tr{'fireinfo pakfire version'}:</td>
+ <td>$pakfire_version</td>
+ </tr>
+ <tr>
+ <td>$Lang::tr{'fireinfo kernel version'}:</td>
+ <td>$kernel_version</td>
+ </tr>
+ </table>
+END
+&Header::closebox();
+
+# Read pregenerated profile data
+my $profile = `cat /var/ipfire/fireinfo/profile`;
+
+print "<form method='post' action='$ENV{'SCRIPT_NAME'}'>\n";
+
+# Read profile ID from file
+my $profile_id = `cat /var/ipfire/fireinfo/public_id`;
+chomp($profile_id);
+
+&Header::openbox('100%', 'left', $Lang::tr{'fireinfo settings'});
+print <<END;
+<input type='hidden' name='ACTION' value='trigger' />
+<table width='100%'>
+ <tr>
+ <td>$Lang::tr{'fireinfo your profile id'}:</td>
+ <td>
+ <a href="http://fireinfo.ipfire.org/profile/$profile_id" target="_blank">$profile_id</a>
+ </td>
+ </tr>
+ <tr>
+ <!-- spacer -->
+ <td colspan="2"> </td>
+ </tr>
+ <tr>
+ <td class='base'>
+END
+
+if ($fireinfosettings{'ENABLE_FIREINFO'} eq "on") {
+ print "<font color='$Header::colourgreen'>$Lang::tr{'fireinfo is submitted'}</font>";
+} else {
+ print "<font color='$Header::colourred'>$Lang::tr{'fireinfo not submitted'}</font>";
+}
+
+print "</td><td>";
+
+if ($fireinfosettings{'ENABLE_FIREINFO'} eq "on") {
+ print "<input type='submit' name='submit' value=\"$Lang::tr{'fireinfo is submitted button'}\" />";
+} else {
+ print "<input type='submit' name='submit' value=\"$Lang::tr{'fireinfo not submitted button'}\" />";
+}
+
+print <<END;
+ </td>
+ </tr>
+ <tr>
+ <!-- spacer -->
+ <td colspan="2"> </td>
+ </tr>
+ <tr>
+ <td colspan='2'>
+ <textarea rows="25" cols="75" readonly="true">$profile</textarea>
+ </td>
+ </tr>
+</table>
+END
+;
+&Header::closebox();
+print "</form>\n";
+
+&Header::closebigbox();
+&Header::closepage();
END
}
+# Fireinfo
+if ( ! -e "/var/ipfire/main/send_profile") {
+ $warnmessage .= "<li><a style='color: white;' href='fireinfo.cgi'>$Lang::tr{'fireinfo please enable'}</a></li>";
+}
+
# Memory usage warning
my @free = `/usr/bin/free`;
$free[1] =~ m/(\d+)/;
}
}
-
if ($warnmessage) {
print "<tr><td align='center' bgcolor=$Header::colourred colspan='3'><font color='white'>$warnmessage</font></table>";
}
'fetch ip from' => 'Schätze die echte öffentliche IP-Adresse mit Hilfe eines externen Servers',
'filename' => 'Dateiname',
'filesystem full' => 'Dateisystem voll',
+'fireinfo ipfire version' => 'IPFire-Version',
+'fireinfo is disabled' => 'Fireinfo ist ausgeschaltet',
+'fireinfo is enabled' => 'Fireinfo ist eingeschaltet',
+'fireinfo is submitted' => 'Der Dienst ist eingeschaltet.',
+'fireinfo is submitted button' => 'Nein, ich möchte mein Profil nicht mehr veröffentlichen',
+'fireinfo kernel version' => 'Kernel-Version',
+'fireinfo not submitted' => 'Der Dienst ist ausgeschaltet.',
+'fireinfo not submitted button' => 'Ja, ich möchte mein Profil veröffentlichen',
+'fireinfo pakfire version' => 'Pakfire-Version',
+'fireinfo please enable' => 'Bitte schalten Sie den Fireinfo-Dienst ein.',
+'fireinfo settings' => 'Fireinfo-Einstellungen',
+'fireinfo system version' => 'Systemversionen',
+'fireinfo your profile id' => 'Profil-ID',
'firewall' => 'Firewall',
'firewall graphs' => 'Firewall Diagramme',
'firewall hits' => 'Gesamtanzahl der Firewall-Treffer für',
'genkey' => 'PSK erzeugen',
'genre' => 'Genre',
'global settings' => 'Globale Einstellungen',
-'gpl license agreement' => 'Lizenz Vereinbarung',
'gpl i accept these terms and conditions' => 'Ich akzeptiere diese Bedingungen und Konditionen',
+'gpl license agreement' => 'Lizenz Vereinbarung',
'gpl please read carefully the general public license and accept it below' => 'Bitte die General Public License genau lesen und diese unten akzeptiere',
'gpl unofficial translation of the general public license v3' => 'Inoffizielle Übersetzung der General Public License v3',
'graph' => 'Diagramm',
'swap usage per' => 'Nutzung von Auslagerungsspeicher (Swap) pro',
'system' => 'System',
'system graphs' => 'System-Diagramme',
+'system information' => 'Systeminformationen',
'system log viewer' => 'Betrachter der System-Logdateien',
'system logs' => 'System-Logdateien',
'system status information' => 'System-Statusinformationen',
'fetch ip from' => 'Guess the real public IP with help of an external server',
'filename' => 'Filename',
'filesystem full' => 'Filesystem full',
+'fireinfo ipfire version' => 'IPFire version',
+'fireinfo is disabled' => 'Fireinfo is disabled',
+'fireinfo is enabled' => 'Fireinfo is enabled',
+'fireinfo is submitted' => 'Your profile is submitted to the fireinfo service.',
+'fireinfo is submitted button' => 'No, I do not want to send my profile anymore',
+'fireinfo kernel version' => 'Kernel version',
+'fireinfo not submitted' => 'Your profile is not submitted to the fireinfo service.',
+'fireinfo not submitted button' => 'Yes, I want to send my profile',
+'fireinfo pakfire version' => 'Pakfire version',
+'fireinfo please enable' => 'Please enable the fireinfo service.',
+'fireinfo settings' => 'Fireinfo settings',
+'fireinfo system version' => 'System versions',
+'fireinfo your profile id' => 'Your profile ID',
'firewall' => 'Firewall',
'firewall graphs' => 'Firewall Graphs',
'firewall hits' => 'Total number of firewall hits for',
'genkey' => 'Generate PSK',
'genre' => 'Genre',
'global settings' => 'Global settings',
-'gpl license agreement' => 'License Agreement',
'gpl i accept these terms and conditions' => 'I accept these terms and conditions',
+'gpl license agreement' => 'License Agreement',
'gpl please read carefully the general public license and accept it below' => 'Please read carefully the General Public License and accept it below',
'gpl unofficial translation of the general public license v3' => 'Unofficial translation of the General Public License v3',
'graph' => 'Graph',
'swap usage per' => 'Swap usage per',
'system' => 'System',
'system graphs' => 'System Graphs',
+'system information' => 'System information',
'system log viewer' => 'System Log Viewer',
'system logs' => 'System Logs',
'system status information' => 'System Status Information',
'genkey' => 'Generar PSK',
'genre' => 'Género',
'global settings' => 'Configuraciones globales',
-'gpl license agreement' => 'License Agreement',
'gpl i accept these terms and conditions' => 'I accept these terms and conditions',
+'gpl license agreement' => 'License Agreement',
'gpl please read carefully the general public license and accept it below' => 'Please read carefully the General Public License and accept it below',
'gpl unofficial translation of the general public license v3' => 'Unofficial translation of the General Public License v3',
'graph' => 'Gráfico',
'genkey' => 'Générer PSK',
'genre' => 'Genre',
'global settings' => 'Configuration générale',
-'gpl license agreement' => 'License Agreement',
'gpl i accept these terms and conditions' => 'J\'accepte les termes et les conditions',
+'gpl license agreement' => 'License Agreement',
'gpl please read carefully the general public license and accept it below' => 'Merci de lire attentivement la Licence et de l\'accepter',
'gpl unofficial translation of the general public license v3' => 'Traduction non officielle de la Licence v3',
'graph' => 'Graphique',
ln -sf ../init.d/firstsetup /etc/rc.d/rcsysinit.d/S75firstsetup
ln -sf ../init.d/localnet /etc/rc.d/rcsysinit.d/S80localnet
ln -sf ../init.d/sysctl /etc/rc.d/rcsysinit.d/S90sysctl
+ ln -sf ../init.d/fireinfo /etc/rc.d/rcsysinit.d/S99fireinfo
ln -sf ../../dnsmasq /etc/rc.d/init.d/networking/red.up/05-RS-dnsmasq
ln -sf ../../firewall /etc/rc.d/init.d/networking/red.up/20-RL-firewall
--- /dev/null
+#!/bin/sh
+########################################################################
+# Begin $rc_base/init.d/fireinfo
+#
+# Description : Fireinfo profile generator
+#
+# Authors : IPFire Team
+#
+# Notes : This script saves the fireinfo profile to a file which
+# is needed to show that information on the webinterface.
+# No data is sent to the server.
+#
+########################################################################
+
+. /etc/sysconfig/rc
+. ${rc_functions}
+
+case "${1}" in
+ start)
+ mkdir -p /var/ipfire/fireinfo 2>/dev/null
+
+ sendprofile --public-id > /var/ipfire/fireinfo/public_id
+ sendprofile --dump > /var/ipfire/fireinfo/profile
+ ;;
+
+ *)
+ echo "Usage: ${0} {start}"
+ exit 1
+ ;;
+esac
+
+# End $rc_base/init.d/fireinfo