projects
/
Pman.Admin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86a12c4
)
Iptables.php
author
Alan Knowles
<alan@akbkhome.com>
Fri, 29 Mar 2013 06:50:35 +0000
(14:50 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 29 Mar 2013 06:50:35 +0000
(14:50 +0800)
Iptables.php
patch
|
blob
|
history
diff --git
a/Iptables.php
b/Iptables.php
index
1ae5e24
..
c47b73f
100644
(file)
--- a/
Iptables.php
+++ b/
Iptables.php
@@
-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';