• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/rest.php
  • Класс: BitrixTimemanRest
  • Вызов: Rest::networkRangeCheck
static function networkRangeCheck($query, $n, CRestServer $server)
{
	if (!self::isAdmin())
	{
		throw new BitrixRestRestException("You don't have access to user this method", "ACCESS_ERROR", CRestServer::STATUS_WRONG_REQUEST);
	}

	$query = static::prepareQuery($query);

	$result = BitrixTimemanCommon::isNetworkRange($query['IP']);
	if ($result)
	{
		$result = array_change_key_case($result, CASE_LOWER);
	}

	return $result;
}