Iptables.php
authorAlan Knowles <alan@akbkhome.com>
Fri, 29 Mar 2013 07:18:36 +0000 (15:18 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 29 Mar 2013 07:18:36 +0000 (15:18 +0800)
Iptables.php

index c1f5869..e77a891 100644 (file)
@@ -116,8 +116,8 @@ class Pman_Admin_Iptables extends Pman {
             $this->jerr("ifconfig could not be found.");
         }
 
-        $if = `$ifconfig`;
-        
+        $if = $this->exec($ifconfig);
+         
         foreach(explode("\n", $if) as $l) {
             //var_dump($l);
             if (!preg_match('/inet addr/', $l)) {