summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_routes_edit.php
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2007-05-10 08:28:14 +0000
committerSeth Mos <seth.mos@xs4all.nl>2007-05-10 08:28:14 +0000
commit18f7352bfcd7b3ec0c62f00b59584d15565184e4 (patch)
tree600ccdc29ea2195c4e8a3c7129990ddd48a31fda /usr/local/www/system_routes_edit.php
parent2f1e03119a424852c5d99d8b4ae6afe7956d8d28 (diff)
downloadpfsense-18f7352bfcd7b3ec0c62f00b59584d15565184e4.zip
pfsense-18f7352bfcd7b3ec0c62f00b59584d15565184e4.tar.gz
Add duplicate option to system_routes.php.
By request of Seth.
Diffstat (limited to 'usr/local/www/system_routes_edit.php')
-rwxr-xr-xusr/local/www/system_routes_edit.php7
1 files changed, 7 insertions, 0 deletions
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);
OpenPOWER on IntegriCloud