Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 2178

Přidáno uživatelem Michal Kliment před asi 11 roky(ů)

Upravy:
- fixes #761: Razeni podsiti a IP adres u exportu zarizeni podle sitove adresy

Zobrazit rozdíly:

freenetis/branches/1.1/application/models/device.php
// DHCP servers of device
$dhcp_servers = array();
// DHCP servers addresses (for sorting)
$dhcp_servers_addresses = array();
// dns servers
$system_dns_servers = arr::trim(explode("\n", Settings::get('dns_servers')));
......
$ip_addresses = array();
// hosts addresses (for sorting)
$hosts_addresses = array();
// find all hosts in subnets
foreach ($ip_address->subnet->ip_addresses as $dhcp_ip_address)
{
......
$dhcp_server->ranges = $ranges;
$dhcp_server->hosts[] = $host;
$hosts_addresses[] = ip2long($host->ip_address);
}
}
array_multisort($hosts_addresses, $dhcp_server->hosts);
$dhcp_servers[] = $dhcp_server;
$dhcp_servers_addresses[] = ip2long($dhcp_server->network);
}
}
else
......
$interfaces[$iface->type][] = $interface;
}
array_multisort($dhcp_servers_addresses, $dhcp_servers);
// finally return result
return arr::to_object(array
(

Také k dispozici: Unified diff