2009-10-27 Miguel de Dios <miguel.dedios@artica.es>

* include/functions_api.php: add in the function "isInACL" the posibility
	to no filter if set in ACL the character "*".



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2054 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2009-10-27 08:54:59 +00:00
parent bc121a6fa2
commit df0fa90164
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-10-27 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_api.php: add in the function "isInACL" the posibility
to no filter if set in ACL the character "*".
2009-10-26 Ramon Novoa <rnovoa@artica.es>
* extensions/update_manager.php,

View File

@ -129,6 +129,10 @@ function returnData($returnType, $data, $separator = ';') {
function isInACL($ip) {
global $config;
//If set * in the list ACL return true
if(in_array('*', $config['list_ACL_IPs_for_API']))
return true;
if (in_array($ip, $config['list_ACL_IPs_for_API']))
return true;
else