From de068d0b22a7a97204d89217f2a553a0fb62bda8 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 25 Jan 2007 22:26:20 +0000 Subject: Call interfaces_vlan_configure() instead of reload_interfaces(). reload_interfaces() is still considered experimental and I am really not sure how this snuck past on the prior cleanup. --- usr/local/www/interfaces_vlan.php | 6 +++--- usr/local/www/interfaces_vlan_edit.php | 38 +++++++++++++++++----------------- 2 files changed, 22 insertions(+), 22 deletions(-) (limited to 'usr') diff --git a/usr/local/www/interfaces_vlan.php b/usr/local/www/interfaces_vlan.php index 4d2b8d2..a2999f4 100755 --- a/usr/local/www/interfaces_vlan.php +++ b/usr/local/www/interfaces_vlan.php @@ -77,9 +77,9 @@ if ($_GET['act'] == "del") { $config['interfaces']['opt' . $i]['if'] = renumber_vlan($config['interfaces']['opt' . $i]['if'], $_GET['id']); write_config(); - - reload_interfaces(); - + + interfaces_vlan_configure(); + header("Location: interfaces_vlan.php"); exit; } diff --git a/usr/local/www/interfaces_vlan_edit.php b/usr/local/www/interfaces_vlan_edit.php index 1f7b896..e05336f 100755 --- a/usr/local/www/interfaces_vlan_edit.php +++ b/usr/local/www/interfaces_vlan_edit.php @@ -1,22 +1,22 @@ -. All rights reserved. - + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - + 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - + 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE @@ -56,9 +56,9 @@ if ($_POST) { /* input validation */ $reqdfields = explode(" ", "if tag"); $reqdfieldsn = explode(",", "Parent interface,VLAN tag"); - + do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); - + if ($_POST['tag'] && (!is_numericint($_POST['tag']) || ($_POST['tag'] < '1') || ($_POST['tag'] > '4094'))) { $input_errors[] = "The VLAN tag must be an integer between 1 and 4094."; } @@ -66,11 +66,11 @@ if ($_POST) { foreach ($a_vlans as $vlan) { if (isset($id) && ($a_vlans[$id]) && ($a_vlans[$id] === $vlan)) continue; - + if (($vlan['if'] == $_POST['if']) && ($vlan['tag'] == $_POST['tag'])) { $input_errors[] = "A VLAN with the tag {$vlan['tag']} is already defined on this interface."; break; - } + } } if (!$input_errors) { @@ -83,11 +83,11 @@ if ($_POST) { $a_vlans[$id] = $vlan; else $a_vlans[] = $vlan; - - write_config(); - - reload_interfaces(); - + + write_config(); + + interfaces_vlan_configure(); + header("Location: interfaces_vlan.php"); exit; } @@ -106,10 +106,10 @@ include("head.inc"); - - -
Parent interface +
Description +
You may enter a description here for your reference (not parsed).
  + -- cgit v1.1