projects
/
Pman.Admin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8c9140
)
Iptables.php
author
Alan Knowles
<alan@akbkhome.com>
Fri, 29 Mar 2013 06:44:39 +0000
(14:44 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 29 Mar 2013 06:44:39 +0000
(14:44 +0800)
Iptables.php
patch
|
blob
|
history
diff --git
a/Iptables.php
b/Iptables.php
index
07808d2
..
8e74507
100644
(file)
--- a/
Iptables.php
+++ b/
Iptables.php
@@
-142,7
+142,9
@@
class Pman_Admin_Iptables extends Pman {
function output()
{
-
+ require_once 'System.php';
+
+ $iptables = System::which('iptables');
// this should have been set up already..
// in the base firewall code.
@@
-158,9
+160,7
@@
class Pman_Admin_Iptables extends Pman {
- require_once 'System.php';
-
- $iptables = System::which('iptables');
+
if (!$iptables) {
$this->jerr("iptables could not be found.");
}