Revize 1661
Přidáno uživatelem David Raška před asi 12 roky(ů)
freenetis/branches/testing/application/controllers/ifaces.php | ||
---|---|---|
// find vlan_ifaces
|
||
$vlan_ifaces = $iface->ifaces_vlans;
|
||
|
||
if (count($ips) == 0 && count($vlan_ifaces) == 0)
|
||
if (count($ips) == 0)
|
||
{
|
||
if ($iface->delete())
|
||
{
|
||
... | ... | |
}
|
||
else
|
||
{
|
||
if (count($ips) != 0)
|
||
{
|
||
status::warning('Interface still has at least one IP address.');
|
||
}
|
||
else if (count($vlan_ifaces) != 0)
|
||
{
|
||
status::warning('Interface still has at least one VLAN interface.');
|
||
}
|
||
status::warning('Interface still has at least one IP address.');
|
||
}
|
||
|
||
|
||
if (url::slice(url_lang::uri(Path::instance()->previous()), 0, 2) == 'ifaces/show')
|
||
{
|
||
url::redirect('ifaces/show_all');
|
Také k dispozici: Unified diff
Upravy:
- Moznost mazani portu i kdyz ma VLANy