X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=html%2Fcgi-bin%2Fnetexternal.cgi;h=a31502dd0cd1dc0923f37129471a55edc1aebc90;hp=156ef2418c604f429f66390e9ef136aa267e1eaa;hb=8186b37230c7c73fc5f79411ab5890821c744a79;hpb=4c7bfb1f271bdd0de493772a15209e038344e57c diff --git a/html/cgi-bin/netexternal.cgi b/html/cgi-bin/netexternal.cgi index 156ef2418c..a31502dd0c 100644 --- a/html/cgi-bin/netexternal.cgi +++ b/html/cgi-bin/netexternal.cgi @@ -20,11 +20,14 @@ ############################################################################### use strict; +use experimental 'smartmatch'; # enable only the following on debugging purpose #use warnings; #use CGI::Carp 'fatalsToBrowser'; +use IO::Socket; + require '/var/ipfire/general-functions.pl'; require "${General::swroot}/lang.pl"; require "${General::swroot}/header.pl"; @@ -35,7 +38,7 @@ my %mainsettings = (); my %netsettings=(); &General::readhash("${General::swroot}/ethernet/settings", \%netsettings); &General::readhash("${General::swroot}/main/settings", \%mainsettings); -&General::readhash("/srv/web/ipfire/html/themes/".$mainsettings{'THEME'}."/include/colors.txt", \%color); +&General::readhash("/srv/web/ipfire/html/themes/ipfire/include/colors.txt", \%color); my @graphs=(); my %dhcpinfo=(); @@ -161,4 +164,4 @@ END &Header::closebigbox(); &Header::closepage(); -} +}