projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12ec219
)
add iptables code
author
Alan Knowles
<alan@akbkhome.com>
Fri, 29 Mar 2013 08:57:29 +0000
(16:57 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 29 Mar 2013 08:57:29 +0000
(16:57 +0800)
DataObjects/Person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Person.php
b/DataObjects/Person.php
index
a74851f
..
12e1d49
100644
(file)
--- a/
DataObjects/Person.php
+++ b/
DataObjects/Person.php
@@
-350,6
+350,12
@@
class Pman_Core_DataObjects_Person extends DB_DataObject
$this->isAuth(); // force session start..
$this->verifyAuth();
$db = $this->getDatabaseConnection();
+
+
+ // open up iptables at login..
+ $dbname = $this->database();
+ touch( '/tmp/run_pman_admin_iptables-'.$dbname);
+
// refresh admin group if we are logged in as one..
//DB_DataObject::debugLevel(1);
$g = DB_DataObject::factory('Groups');