X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=html%2Fcgi-bin%2Fnetexternal.cgi;h=cd29d5da02cc85918a012b6d7a41f56504760f69;hb=4b4b895946d5366ebf091e7d6c3237512cc44063;hp=fba57605ba169e1dfcd5f49a7da306c34ce95b59;hpb=eb5359d7ff2e39e01acccbc338c439ea7f34226b;p=people%2Fteissler%2Fipfire-2.x.git diff --git a/html/cgi-bin/netexternal.cgi b/html/cgi-bin/netexternal.cgi old mode 100755 new mode 100644 index fba57605b..cd29d5da0 --- a/html/cgi-bin/netexternal.cgi +++ b/html/cgi-bin/netexternal.cgi @@ -2,7 +2,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2008 Michael Tremer & Christian Schmidt # +# Copyright (C) 2005-2010 IPFire Team # # # # 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 # @@ -83,13 +83,13 @@ if ( $querry[0] ne~ ""){ &General::readhash("${General::swroot}/dhcpc/dhcpcd-$netsettings{'RED_DEV'}.info", \%dhcpinfo); - my $DNS1=`echo $dhcpinfo{'DNS'} | cut -f 1 -d ,`; - my $DNS2=`echo $dhcpinfo{'DNS'} | cut -f 2 -d ,`; + my $DNS1=`echo $dhcpinfo{'domain_name_servers'} | cut -f 1 -d ,`; + my $DNS2=`echo $dhcpinfo{'domain_name_servers'} | cut -f 2 -d ,`; my $lsetme=0; my $leasetime=""; - if ($dhcpinfo{'LEASETIME'} ne "") { - $lsetme=$dhcpinfo{'LEASETIME'}; + if ($dhcpinfo{'dhcp_lease_time'} ne "") { + $lsetme=$dhcpinfo{'dhcp_lease_time'}; $lsetme=($lsetme/60); if ($lsetme > 59) { @@ -106,8 +106,8 @@ if ( $querry[0] ne~ ""){ my $rentme=0; my $rnwltime=""; - if ($dhcpinfo{'RENEWALTIME'} ne "") { - $rentme=$dhcpinfo{'RENEWALTIME'}; + if ($dhcpinfo{'dhcp_renewal_time'} ne "") { + $rentme=$dhcpinfo{'dhcp_renewal_time'}; $rentme=($rentme/60); if ($rentme > 59){ @@ -124,8 +124,8 @@ if ( $querry[0] ne~ ""){ my $maxtme=0; my $maxtime=""; - if ($dhcpinfo{'REBINDTIME'} ne "") { - $maxtme=$dhcpinfo{'REBINDTIME'}; + if ($dhcpinfo{'dhcp_rebinding_time'} ne "") { + $maxtme=$dhcpinfo{'dhcp_rebinding_time'}; $maxtme=($maxtme/60); if ($maxtme > 59){ @@ -139,19 +139,14 @@ if ( $querry[0] ne~ ""){ } } - print ""; - - if ($dhcpinfo{'HOSTNAME'}) { - print "\n"; - } else { - print "\n"; - } print < +
$Lang::tr{'hostname'}$dhcpinfo{'HOSTNAME'}.$dhcpinfo{'DOMAIN'}
$Lang::tr{'domain'}$dhcpinfo{'DOMAIN'}
$Lang::tr{'gateway'}$dhcpinfo{'GATEWAY'}
+ + - +
$Lang::tr{'domain'}$dhcpinfo{'domain_name'}
$Lang::tr{'gateway'}$dhcpinfo{'routers'}
$Lang::tr{'primary dns'}$DNS1
$Lang::tr{'secondary dns'}$DNS2
$Lang::tr{'dhcp server'}$dhcpinfo{'DHCPSIADDR'}
$Lang::tr{'dhcp server'}$dhcpinfo{'dhcp_server_identifier'}
$Lang::tr{'def lease time'}$leasetime
$Lang::tr{'default renewal time'}$rnwltime
$Lang::tr{'max renewal time'}$maxtime