Iptables.php
authorAlan Knowles <alan@akbkhome.com>
Fri, 29 Mar 2013 06:50:35 +0000 (14:50 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 29 Mar 2013 06:50:35 +0000 (14:50 +0800)
Iptables.php

index 1ae5e24..c47b73f 100644 (file)
@@ -128,18 +128,13 @@ class Pman_Admin_Iptables extends Pman {
         $this->ips = $ips;
         $cache = ini_get('session.save-path') . '/pman_admin_iptables.cache';
         
+        $this->updateTables();
         
-        
-        
-        $fn = tempnam(ini_get('session.save-path'), 'firewallconf');
-        file_put_contents($fn, $this->output());
-        echo file_get_contents($fn);
-        //`/sbin/iptables-restore < $fn`;
-
+         
         exit;
 
     }
-    function output()
+    function updateTables()
     {
        
         require_once 'System.php';