summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-03-25 17:01:56 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-03-25 17:01:56 +0000
commit8a22e87230c652c7437b8269866689cf3bf7da88 (patch)
tree102e2d9c30c9a4b4a8d25908a4facd24875edb3f /usr
parentea194f1aa152a1a24e47e34256da278cdc899984 (diff)
downloadpfsense-8a22e87230c652c7437b8269866689cf3bf7da88.zip
pfsense-8a22e87230c652c7437b8269866689cf3bf7da88.tar.gz
Remove interface gateway option. It doesnt do what I wanted, and the same can be achieved by plugging in the next hop gateway.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/system_routes_edit.php32
1 files changed, 2 insertions, 30 deletions
diff --git a/usr/local/www/system_routes_edit.php b/usr/local/www/system_routes_edit.php
index ab14ae9..780348d 100755
--- a/usr/local/www/system_routes_edit.php
+++ b/usr/local/www/system_routes_edit.php
@@ -47,7 +47,6 @@ if (isset($id) && $a_routes[$id]) {
explode('/', $a_routes[$id]['network']);
$pconfig['gateway'] = $a_routes[$id]['gateway'];
$pconfig['descr'] = $a_routes[$id]['descr'];
- $pconfig['interfacegateway'] = isset($a_routes[$id]['interfacegateway']);
}
if ($_POST) {
@@ -56,13 +55,8 @@ if ($_POST) {
$pconfig = $_POST;
/* input validation */
- if($_POST['interfacegateway']) {
- $reqdfields = explode(" ", "interface network network_subnet");
- $reqdfieldsn = explode(",", "Interface,Destination network,Destination network bit count");
- } else {
- $reqdfields = explode(" ", "interface network network_subnet gateway");
- $reqdfieldsn = explode(",", "Interface,Destination network,Destination network bit count,Gateway");
- }
+ $reqdfields = explode(" ", "interface network network_subnet gateway");
+ $reqdfieldsn = explode(",", "Interface,Destination network,Destination network bit count,Gateway");
do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);
@@ -94,12 +88,6 @@ if ($_POST) {
$route['network'] = $osn;
$route['gateway'] = $_POST['gateway'];
$route['descr'] = $_POST['descr'];
-
- /* use interface as gateway */
- if($_POST['interfacegateway'])
- $route['interfacegateway'] = true;
- else
- unset($route['interfacegateway']);
if (isset($id) && $a_routes[$id])
$a_routes[$id] = $route;
@@ -120,16 +108,6 @@ include("head.inc");
?>
-<script language="JavaScript">
-function enable_change() {
- if (document.iform.interfacegateway.checked) {
- document.iform.gateway.disabled = 1;
- } else {
- document.iform.gateway.disabled = 0;
- }
-}
-</script>
-
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php include("fbegin.inc"); ?>
<p class="pgtitle"><?=$pgtitle?></p>
@@ -167,12 +145,6 @@ function enable_change() {
<br> <span class="vexpl">Destination network for this static route</span></td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncellreq">Use Interface as gateway</td>
- <td width="78%" class="vtable">
- <input onClick="enable_change()" name="interfacegateway" type="checkbox" class="formfld" id="interfacegateway" size="40" value="on" <?php if($pconfig['interfacegateway']) echo " CHECKED"; ?>>
- <br> <span class="vexpl">Check this option to direct all traffic for the destination network out the interface. This is useful for routing DNS traffic out correct interfaces, etc.</span></td>
- </tr>
- <tr>
<td width="22%" valign="top" class="vncellreq">Gateway</td>
<td width="78%" class="vtable">
<input name="gateway" type="text" class="formfld" id="gateway" size="40" value="<?=htmlspecialchars($pconfig['gateway']);?>">
OpenPOWER on IntegriCloud