X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=html%2Fcgi-bin%2Fdhcp.cgi;h=9a7d983eefd0233693a9e647a4c692ef2ef05442;hb=d2d0d6313948680e16469ff318fc69b9a6384cc5;hp=29f1a28067b220722d1caf1f14c6b1f2ec51554d;hpb=95a392d5f5f1f125cd28a64dd8edefcb38c1a9b0;p=people%2Fteissler%2Fipfire-2.x.git diff --git a/html/cgi-bin/dhcp.cgi b/html/cgi-bin/dhcp.cgi index 29f1a2806..9a7d983ee 100644 --- a/html/cgi-bin/dhcp.cgi +++ b/html/cgi-bin/dhcp.cgi @@ -590,8 +590,7 @@ print < * $Lang::tr{'this field may be blank'} $warnNTPmessage - -   + @@ -651,7 +650,7 @@ print < * $Lang::tr{'dhcp advopt scope help'} - + @@ -851,7 +850,7 @@ print < * $Lang::tr{'this field may be blank'} - + @@ -864,15 +863,15 @@ END print < - +
- - - - - - - + + + + + + + END ; @@ -904,6 +903,7 @@ foreach my $line (@current2) { } $key = 0; +my $col=""; foreach my $line (@current2) { my $gif = ''; my $gdesc = ''; @@ -919,11 +919,14 @@ foreach my $line (@current2) { } if ($dhcpsettings{'KEY2'} eq $key) { - print ""; + print ""; + $col="bgcolor='${Header::colouryellow}'"; } elsif ($key % 2) { - print ""; + print ""; + $col="bgcolor='$color{'color20'}'"; } else { - print ""; + print ""; + $col="bgcolor='$color{'color22'}'"; } my $TAG0 = ''; my $TAG1 = ''; @@ -943,14 +946,14 @@ foreach my $line (@current2) { } print <$TAG2$temp[0]$TAG3 - - - - - - - + + + + + + + - -
$Lang::tr{'mac address'}$Lang::tr{'ip address'}$Lang::tr{'remark'}next-serverfilenameroot path$Lang::tr{'action'}$Lang::tr{'mac address'}$Lang::tr{'ip address'}$Lang::tr{'remark'}next-serverfilenameroot path$Lang::tr{'action'}
$TAG0$temp[1]$TAG1$temp[6] $temp[3] $temp[4] $temp[5]  +$TAG2$temp[0]$TAG3$TAG0$temp[1]$TAG1$temp[6] $temp[3] $temp[4] $temp[5] 
@@ -958,7 +961,7 @@ foreach my $line (@current2) {
+
@@ -966,7 +969,7 @@ foreach my $line (@current2) {
+
@@ -1199,6 +1202,7 @@ sub buildconf { $key++; } } + print FILE "include \"${General::swroot}/dhcp/dhcpd.conf.local\";\n"; close FILE; if ( $dhcpsettings{"ENABLE_GREEN"} eq 'on' || $dhcpsettings{"ENABLE_BLUE"} eq 'on' ) {system '/usr/local/bin/dhcpctrl enable >/dev/null 2>&1';} else {system '/usr/local/bin/dhcpctrl disable >/dev/null 2>&1';}