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:
parent
bc121a6fa2
commit
df0fa90164
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue