projects
/
Pman.Admin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f6b8c3
)
Iptables.php
author
Alan Knowles
<alan@akbkhome.com>
Fri, 29 Mar 2013 07:18:23 +0000
(15:18 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 29 Mar 2013 07:18:23 +0000
(15:18 +0800)
Iptables.php
patch
|
blob
|
history
diff --git
a/Iptables.php
b/Iptables.php
index
2852880
..
c1f5869
100644
(file)
--- a/
Iptables.php
+++ b/
Iptables.php
@@
-110,10
+110,13
@@
class Pman_Admin_Iptables extends Pman {
$ips = $e->fetchAll('ipaddr');
//inet addr:202.67.151.28 Bcast:202.67.151.255 Mask:255.255.255.0
+ $ifconfig = System::which('ifconfig');
+
+ if (!$ifconfig) {
+ $this->jerr("ifconfig could not be found.");
+ }
-
- // local ips..
- $if = `/sbin/ifconfig`;
+ $if = `$ifconfig`;
foreach(explode("\n", $if) as $l) {
//var_dump($l);