mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
kleine fixes in den firewalllogs
neues feature in der dhcp.cgi git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@469 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -22,8 +22,8 @@
|
||||
use strict;
|
||||
|
||||
# enable only the following on debugging purpose
|
||||
#use warnings;
|
||||
#use CGI::Carp 'fatalsToBrowser';
|
||||
use warnings;
|
||||
use CGI::Carp 'fatalsToBrowser';
|
||||
|
||||
require '/var/ipfire/general-functions.pl';
|
||||
require "${General::swroot}/lang.pl";
|
||||
@@ -539,7 +539,7 @@ print <<END
|
||||
<td width='25%' class='boldbase'><b><font color='${lc_itf}'>$Lang::tr{"$lc_itf interface"}</font></b></td>
|
||||
<td class='base'>$Lang::tr{'enabled'}
|
||||
<input type='checkbox' name='ENABLE_${itf}' $checked{'ENABLE'}{'on'} /></td>
|
||||
<td width='25%' class='base'>$Lang::tr{'ip address'}/$Lang::tr{'netmask'}:</td><td><b>$netsettings{"${itf}_ADDRESS"}/$netsettings{"${itf}_NETMASK"}</b></td>
|
||||
<td width='25%' class='base'>$Lang::tr{'ip address'}<br />$Lang::tr{'netmask'}:</td><td><b>$netsettings{"${itf}_ADDRESS"}<br />$netsettings{"${itf}_NETMASK"}</b></td>
|
||||
</tr><tr>
|
||||
<td width='25%' class='base'>$Lang::tr{'start address'} <img src='/blob.gif' alt='*' /></td>
|
||||
<td width='25%'><input type='text' name='START_ADDR_${itf}' value='$dhcpsettings{"START_ADDR_${itf}"}' /></td>
|
||||
@@ -1011,6 +1011,32 @@ END
|
||||
|
||||
&Header::closebox();
|
||||
|
||||
&Header::openbox('100%', 'left', $Lang::tr{'arp table entries'});
|
||||
my @ip = qx(/sbin/ip neigh show | awk '{print \$1}');
|
||||
my @mac = qx(/sbin/ip neigh show | awk '{print \$5}');
|
||||
|
||||
print <<END
|
||||
<hr />
|
||||
<table width='100%'>
|
||||
<tr>
|
||||
<td width='40%'><b>$Lang::tr{'ip address'}</b></td><td width='40%'><b>$Lang::tr{'mac address'}</b></td><td width='20%'>Optionen</td>
|
||||
</tr>
|
||||
END
|
||||
;
|
||||
my $i=0;
|
||||
|
||||
foreach my $ip(@ip)
|
||||
{
|
||||
print"<tr><form method='post' action='$ENV{'SCRIPT_NAME'}'><td><input type='hidden' name='FIX_ADDR' value='$ip' />$ip</td>";
|
||||
print"<td><input type='hidden' name='FIX_MAC' value='@mac[$i]' />@mac[$i]</td>";
|
||||
print"<td><input type='hidden' name='ACTION' value='$Lang::tr{'add'}2' /><input type='submit' name='SUBMIT' value='$buttontext' /></td></form></tr>";
|
||||
}
|
||||
|
||||
|
||||
print"</table>";
|
||||
|
||||
&Header::closebox();
|
||||
|
||||
|
||||
foreach my $itf (@ITFs) {
|
||||
if ($dhcpsettings{"ENABLE_${itf}"} eq 'on') {
|
||||
|
||||
@@ -374,7 +374,7 @@ else{
|
||||
|
||||
my @data = (\@ips,\@numb);
|
||||
use GD::Graph::colour qw( :files );
|
||||
GD::Graph::colour::read_rgb( "/srv/web/ipfire/html/themes/ipfie/include/colours.txt" );
|
||||
GD::Graph::colour::read_rgb( "/srv/web/ipfire/html/themes/ipfire/include/colours.txt" );
|
||||
|
||||
if ($showpie != 2 && $pienumber <= 50 && $pienumber != 0) {
|
||||
my $mygraph = GD::Graph::pie->new(500, 350);
|
||||
|
||||
@@ -374,7 +374,7 @@ else{
|
||||
|
||||
my @data = (\@ports,\@numb);
|
||||
use GD::Graph::colour qw( :files );
|
||||
GD::Graph::colour::read_rgb( "/srv/web/ipfire/html/themes/ipfie/include/colours.txt" );
|
||||
GD::Graph::colour::read_rgb( "/srv/web/ipfire/html/themes/ipfire/include/colours.txt" );
|
||||
|
||||
if ($showpie != 2 && $pienumber <= 50 && $pienumber != 0) {
|
||||
my $mygraph = GD::Graph::pie->new(500, 350);
|
||||
|
||||
Reference in New Issue
Block a user