Merge branch 'master' of github.com:limetech/dynamix-6.2

This commit is contained in:
Tom Mortensen
2016-06-05 12:32:29 -07:00
4 changed files with 304 additions and 98 deletions
+11 -1
View File
@@ -11,5 +11,15 @@
*/
?>
<?
if ($_POST['#arg'][1] != 'none') unset($keys[$_POST['#section']]); // do nothing when only description has changed
if ($_POST['#arg'][1] != 'none') {
if ($_POST['BONDING']=='yes') {
$nics = explode(',',str_replace('eth0','',$_POST['BONDNICS']));
foreach ($nics as $nic) if ($nic) unset($keys[$nic]);
}
if ($_POST['BRIDGING']=='yes') {
$nics = explode(',',str_replace('eth0','',$_POST['BRNICS']));
foreach ($nics as $nic) if ($nic) unset($keys[$nic]);
}
unset($keys[$_POST['#section']]);
}
?>