summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-11-22 23:04:34 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-11-22 23:04:34 +0000
commit886f1f697733793b8cd2fee9783d6e2713dfbd1e (patch)
tree6dab52b3c7229d57583f87d2a47e484ac497b077 /usr/local/www/interfaces.php
parent095836579eb80a9feb7e23a9ff40c43dbb4778bb (diff)
downloadpfsense-886f1f697733793b8cd2fee9783d6e2713dfbd1e.zip
pfsense-886f1f697733793b8cd2fee9783d6e2713dfbd1e.tar.gz
Mist formatting. Eliminate unneeded { and }. Format javascript.
Use / instead of </script>CVS: ----------------------------------------------------------------------
Diffstat (limited to 'usr/local/www/interfaces.php')
-rwxr-xr-xusr/local/www/interfaces.php102
1 files changed, 47 insertions, 55 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 6af849c..07bee03 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -325,11 +325,9 @@ if ($_POST) {
$input_errors[] = "A valid alias subnet bit count must be specified.";
if ($_POST['gateway'] != "none") {
$match = false;
- foreach($a_gateways as $gateway) {
- if(in_array($_POST['gateway'], $gateway)) {
+ foreach($a_gateways as $gateway)
+ if(in_array($_POST['gateway'], $gateway))
$match = true;
- }
- }
if(!$match)
$input_errors[] = "A valid gateway must be specified.";
}
@@ -676,69 +674,63 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe"
?>
-<script type="text/javascript" src="/javascript/numericupdown/js/numericupdown.js"></script>
+<script type="text/javascript" src="/javascript/numericupdown/js/numericupdown.js"/>
<link href="/javascript/numericupdown/css/numericupdown.css" rel="stylesheet" type="text/css" />
-
-<script type="text/javascript" src="/javascript/datepicker/js/datepicker.js"></script>
+<script type="text/javascript" src="/javascript/datepicker/js/datepicker.js"/>
<link href="/javascript/datepicker/css/datepicker.css" rel="stylesheet" type="text/css" />
-
-<script type="text/javascript" src="/javascript/scriptaculous/prototype.js"></script>
-<script type="text/javascript" src="/javascript/scriptaculous/scriptaculous.js"></script>
+<script type="text/javascript" src="/javascript/scriptaculous/prototype.js"/>
+<script type="text/javascript" src="/javascript/scriptaculous/scriptaculous.js"/>
<script type="text/javascript">
-<!--
-
-function updateType(t){
- switch(t) {
-<?php
- /* OK, so this is sick using php to generate javascript, but it needed to be done */
- foreach ($types as $key => $val) {
- echo " case \"{$key}\": {\n";
- $t = $types;
- foreach ($t as $k => $v) {
- if ($k != $key) {
- echo " $('{$k}').hide();\n";
+ function updateType(t){
+ switch(t) {
+ <?php
+ /* OK, so this is sick using php to generate javascript, but it needed to be done */
+ foreach ($types as $key => $val) {
+ echo " case \"{$key}\": {\n";
+ $t = $types;
+ foreach ($t as $k => $v) {
+ if ($k != $key) {
+ echo " $('{$k}').hide();\n";
+ }
}
+ echo " }\n";
}
- echo " }\n";
- }
-?>
+ ?>
+ }
+ $(t).appear();
}
- $(t).appear();
-}
-
-function show_allcfg(obj) {
- if (obj.checked)
- $('allcfg').appear();
- else
- $('allcfg').hide();
-}
-function show_mon_config() {
- document.getElementById("showmonbox").innerHTML='';
- aodiv = document.getElementById('showmon');
- aodiv.style.display = "block";
-}
+ function show_allcfg(obj) {
+ if (obj.checked)
+ $('allcfg').appear();
+ else
+ $('allcfg').hide();
+ }
-function openwindow(url) {
- var oWin = window.open(url,"pfSensePop","width=620,height=400,top=150,left=150");
- if (oWin==null || typeof(oWin)=="undefined")
- return false;
- else
- return true;
-}
+ function show_mon_config() {
+ document.getElementById("showmonbox").innerHTML='';
+ aodiv = document.getElementById('showmon');
+ aodiv.style.display = "block";
+ }
-//-->
+ function openwindow(url) {
+ var oWin = window.open(url,"pfSensePop","width=620,height=400,top=150,left=150");
+ if (oWin==null || typeof(oWin)=="undefined")
+ return false;
+ else
+ return true;
+ }
</script>
</head>
-<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
-<?php include("fbegin.inc"); ?>
-<form action="interfaces.php" method="post" name="iform" id="iform">
-<?php if ($input_errors) print_input_errors($input_errors); ?>
-<?php if (file_exists($d_landirty_path)): ?><p>
-<?php print_info_box_np(gettext("The {$wancfg['descr']} configuration has been changed.<p>You must apply the changes in order for them to take effect.<p>Don't forget to adjust the DHCP Server range if needed before applying."));?><br />
-<?php endif; ?>
-<?php if ($savemsg) print_info_box($savemsg); ?>
+ <body link="#0000CC" vlink="#0000CC" alink="#0000CC">
+ <?php include("fbegin.inc"); ?>
+ <form action="interfaces.php" method="post" name="iform" id="iform">
+ <?php if ($input_errors) print_input_errors($input_errors); ?>
+ <?php if (file_exists($d_landirty_path)): ?><p>
+ <?php print_info_box_np(gettext("The {$wancfg['descr']} configuration has been changed.<p>You must apply the changes in order for them to take effect.<p>Don't forget to adjust the DHCP Server range if needed before applying."));?><br />
+ <?php endif; ?>
+ <?php if ($savemsg) print_info_box($savemsg); ?>
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
<td colspan="2" valign="top" class="listtopic">General configuration</td>
OpenPOWER on IntegriCloud