From 18f7352bfcd7b3ec0c62f00b59584d15565184e4 Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Thu, 10 May 2007 08:28:14 +0000 Subject: Add duplicate option to system_routes.php. By request of Seth. --- usr/local/www/system_routes.php | 20 +++++++++++++++----- usr/local/www/system_routes_edit.php | 7 +++++++ 2 files changed, 22 insertions(+), 5 deletions(-) (limited to 'usr') diff --git a/usr/local/www/system_routes.php b/usr/local/www/system_routes.php index d235b07..a53e5c8 100755 --- a/usr/local/www/system_routes.php +++ b/usr/local/www/system_routes.php @@ -120,7 +120,7 @@ include("head.inc"); - +
@@ -150,16 +150,26 @@ include("head.inc");   - -   - + + + + + + + + + +
+
+ + - +
diff --git a/usr/local/www/system_routes_edit.php b/usr/local/www/system_routes_edit.php index 780348d..e2457b8 100755 --- a/usr/local/www/system_routes_edit.php +++ b/usr/local/www/system_routes_edit.php @@ -41,6 +41,10 @@ $id = $_GET['id']; if (isset($_POST['id'])) $id = $_POST['id']; +if (isset($_GET['dup'])) { + $id = $_GET['dup']; +} + if (isset($id) && $a_routes[$id]) { $pconfig['interface'] = $a_routes[$id]['interface']; list($pconfig['network'],$pconfig['network_subnet']) = @@ -49,6 +53,9 @@ if (isset($id) && $a_routes[$id]) { $pconfig['descr'] = $a_routes[$id]['descr']; } +if (isset($_GET['dup'])) + unset($id); + if ($_POST) { unset($input_errors); -- cgit v1.1