projects
/
Pman.Admin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1127323
)
Iptables.php
author
Alan Knowles
<alan@akbkhome.com>
Fri, 29 Mar 2013 07:58:42 +0000
(15:58 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 29 Mar 2013 07:58:42 +0000
(15:58 +0800)
Iptables.php
patch
|
blob
|
history
diff --git
a/Iptables.php
b/Iptables.php
index
3b1e403
..
6f8cf61
100644
(file)
--- a/
Iptables.php
+++ b/
Iptables.php
@@
-178,7
+178,7
@@
class Pman_Admin_Iptables extends Pman {
$lastrulenum = 1;
$remove = array();
- $
old
= array();
+ $
cur
= array();
$head = false;
foreach(explode("\n", $res) as $i => $line) {
@@
-218,7
+218,7
@@
class Pman_Admin_Iptables extends Pman {
}
}
- $
old
[ $row['source'] ] = $row;
+ $
cur
[ $row['source'] ] = $row;
$lastrulenum = $row['num'];
@@
-228,7
+228,7
@@
class Pman_Admin_Iptables extends Pman {
$this->createBase();
}
- print_r($
old
);
+ print_r($
cur
);
//--comment