Source for file meta.php
Documentation is available at meta.php
* @package Joomla.Platform
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
* @package Joomla.Platform
* Method to get the authorized IP addresses for services
* @return array Authorized IP addresses
* @throws DomainException
// Build the request path.
* The response body returns the IP addresses in CIDR format
* Decode the response body and strip the subnet mask information prior to
* returning the data to the user. We're assuming quite a bit here that all
* masks will be /32 as they are as of the time of development.
$authorizedIps =
array();
foreach ($githubIps as $key =>
$serviceIps)
// The first level contains an array of IPs based on the service
$authorizedIps[$key] =
array();
foreach ($serviceIps as $serviceIp)
// The second level is each individual IP address, strip the mask here
$authorizedIps[$key][] =
substr($serviceIp, 0, -
3);
Documentation generated on Tue, 19 Nov 2013 15:08:10 +0100 by phpDocumentor 1.4.3