projects
/
Pman.Admin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0341043
)
Iptables.php
author
Alan Knowles
<alan@akbkhome.com>
Fri, 29 Mar 2013 07:18:36 +0000
(15:18 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 29 Mar 2013 07:18:36 +0000
(15:18 +0800)
Iptables.php
patch
|
blob
|
history
diff --git
a/Iptables.php
b/Iptables.php
index
c1f5869
..
e77a891
100644
(file)
--- a/
Iptables.php
+++ b/
Iptables.php
@@
-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)) {