projects
/
Pman.Admin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb9bf54
)
Iptables.php
author
Alan Knowles
<alan@akbkhome.com>
Fri, 29 Mar 2013 07:51:48 +0000
(15:51 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 29 Mar 2013 07:51:48 +0000
(15:51 +0800)
Iptables.php
patch
|
blob
|
history
diff --git
a/Iptables.php
b/Iptables.php
index
9e28ab3
..
1b74b6f
100644
(file)
--- a/
Iptables.php
+++ b/
Iptables.php
@@
-179,7
+179,8
@@
class Pman_Admin_Iptables extends Pman {
$remove = array();
$old = array();
-
+ $head = false;
+
foreach(explode("\n", $res) as $i => $line) {
if ($i == 1) {
$head = preg_split('/\s+/', $line);
@@
-222,6
+223,7
@@
class Pman_Admin_Iptables extends Pman {
$lastrulenum = $row['num'];
}
+ if (empty($head))
print_r($old);
//--comment