diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2007-05-10 08:28:14 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2007-05-10 08:28:14 +0000 |
commit | 18f7352bfcd7b3ec0c62f00b59584d15565184e4 (patch) | |
tree | 600ccdc29ea2195c4e8a3c7129990ddd48a31fda /usr/local/www/system_routes_edit.php | |
parent | 2f1e03119a424852c5d99d8b4ae6afe7956d8d28 (diff) | |
download | pfsense-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-x | usr/local/www/system_routes_edit.php | 7 |
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); |