]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - config/cfgroot/header.pl
Corrected dhcp.cgi sorting issue
[people/teissler/ipfire-2.x.git] / config / cfgroot / header.pl
index fac3b0d15c13a1f38d2b438750a8da7affe91dc9..3a2c932e324959727f7cee2af5d6a0a24dbc08ee 100644 (file)
@@ -161,9 +161,9 @@ sub genmenu {
 
 sub showhttpheaders
 {
-#      print "Pragma: no-cache\n";
-#      print "Cache-control: no-cache\n";
-#      print "Connection: close\n";
+       print "Pragma: no-cache\n";
+       print "Cache-control: no-cache\n";
+       print "Connection: close\n";
        print "Content-type: text/html\n\n";
 }
 
@@ -353,7 +353,7 @@ sub CheckSortOrder {
 #Sorting of allocated leases
     if ($ENV{'QUERY_STRING'} =~ /^IPADDR|^ETHER|^HOSTNAME|^ENDTIME/ ) {
         my $newsort=$ENV{'QUERY_STRING'};
-        &readhash("${swroot}/dhcp/settings", \%dhcpsettings);
+        &General::readhash("${swroot}/dhcp/settings", \%dhcpsettings);
         $act=$dhcpsettings{'SORT_LEASELIST'};
         #Reverse actual ?
         if ($act =~ $newsort) {
@@ -362,7 +362,7 @@ sub CheckSortOrder {
         };
 
         $dhcpsettings{'SORT_LEASELIST'}=$newsort;
-        &writehash("${swroot}/dhcp/settings", \%dhcpsettings);
+        &General::writehash("${swroot}/dhcp/settings", \%dhcpsettings);
         $dhcpsettings{'ACTION'} = 'SORT';  # avoid the next test "First lauch"
     }