diff options
author | Simon | 2011-03-08 14:03:43 +0100 |
---|---|---|
committer | Simon | 2011-03-08 14:03:43 +0100 |
commit | 83fb7e34d99c0006c1c43d58c81ba4e4445f5688 (patch) | |
tree | 5bd5b6737312573fc4688899c8c26fb0c394581a /application/controllers/FilterController.php | |
parent | pbs-data um beispeildaten ergänzt (diff) | |
download | pbs2-83fb7e34d99c0006c1c43d58c81ba4e4445f5688.tar.gz pbs2-83fb7e34d99c0006c1c43d58c81ba4e4445f5688.tar.xz pbs2-83fb7e34d99c0006c1c43d58c81ba4e4445f5688.zip |
clients editierbar
Diffstat (limited to 'application/controllers/FilterController.php')
-rw-r--r-- | application/controllers/FilterController.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/application/controllers/FilterController.php b/application/controllers/FilterController.php index 3f9a49d..df8db07 100644 --- a/application/controllers/FilterController.php +++ b/application/controllers/FilterController.php @@ -265,6 +265,7 @@ class FilterController extends Zend_Controller_Action ######################################################### // IP Adress $filtertypID = 1; + // get it from session_table with session_id from the session $ipAdress = "111.10.10.10"; $ipAdress = str_replace(".","",$this->fillIP($ipAdress)); $select = $db->select() @@ -285,6 +286,7 @@ class FilterController extends Zend_Controller_Action ######################################################### // Mac range $filtertypID = 2; + // get it from session_table with session_id from the session $macAdress = "00:1e:0b:27:f4:99"; $macAdress = str_replace(":","",$this->fillMac($ipAdress)); $stmt = $db->query("SELECT * FROM pbs_filterentries WHERE @@ -300,30 +302,45 @@ class FilterController extends Zend_Controller_Action ######################################################### // PoolID $filtertypID = 3; + // get PoolID from client_ID from session_id from the session + $poolid = 1; + $stmt = $db->query("SELECT * FROM pbs_filterentries WHERE + filtertypeID = ".$filtertypID." AND + filtervalue = '.$poolid.' "); + $result = $stmt->fetchAll(); + foreach($result as $r){ + $set[$filtertypID][] = $r['filterID']; + } + if($showPartResults) + print_a('poolID',$result,$set[$filtertypID]); /* If client comes from a specific pool */ ######################################################### // ClientID $filtertypID = 8; + // get client_ID from session_id from the session /* If client is a specific client */ ######################################################### // BootIsoID $filtertypID = 4; + // get BootIsoID from client_ID from session_id from the session /* WHERE bootiso = bootiso */ ######################################################### // MembershipID $filtertypID = 5; + // get membership from the session /* user is in a defined membership */ ######################################################### // GroupID $filtertypID = 6; + // get membership from the session /* user is in a defined groupID */ |