X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=html%2Fcgi-bin%2Findex.cgi;h=6491c039226183b5a23ee764dcb1f91334c6f172;hp=921e299e2e5a53a72bbe937607c7f9eee2893d3d;hb=f3bbb213fa0821065511ba2750cf97d1f2781587;hpb=e455cafe40d2dc4da2b7d0ba7c6c4678815ed74e diff --git a/html/cgi-bin/index.cgi b/html/cgi-bin/index.cgi index 921e299e2e..6491c03922 100644 --- a/html/cgi-bin/index.cgi +++ b/html/cgi-bin/index.cgi @@ -10,8 +10,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"; @@ -74,7 +74,7 @@ if ( ( $pppsettings{'VALID'} eq 'yes' && $modemsettings{'VALID'} eq 'yes' ) || ( chomp ($ipaddr); } if (open(IPADDR,"${General::swroot}/red/local-ipaddress")) { - my $ipaddr = ; + $ipaddr = ; close IPADDR; chomp ($ipaddr); } @@ -104,6 +104,9 @@ print < $Lang::tr{'internet'}:
$ipaddr $connstate +END +print `/usr/local/bin/dialctrl.pl show`; +print <
$Lang::tr{'profile'}: