From 41016af87c90a0bdf6e48159dc94559aee3c84de Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 29 Mar 2013 16:57:29 +0800 Subject: [PATCH] add iptables code --- DataObjects/Person.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/DataObjects/Person.php b/DataObjects/Person.php index a74851fe..12e1d494 100644 --- 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'); -- 2.39.2