summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_shaper_wizards.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-07-24 17:02:10 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-07-24 18:28:00 -0300
commitba782be2068109536e2e17ce32e5f54e279a7820 (patch)
tree82fca92deb463fc5be1a8d6179dc018358056a12 /usr/local/www/firewall_shaper_wizards.php
parent4844813b3e6cdfcbeae47dad4195bb6f0091f1e7 (diff)
downloadpfsense-ba782be2068109536e2e17ce32e5f54e279a7820.zip
pfsense-ba782be2068109536e2e17ce32e5f54e279a7820.tar.gz
Fix indent and whitespaces
Diffstat (limited to 'usr/local/www/firewall_shaper_wizards.php')
-rw-r--r--usr/local/www/firewall_shaper_wizards.php96
1 files changed, 54 insertions, 42 deletions
diff --git a/usr/local/www/firewall_shaper_wizards.php b/usr/local/www/firewall_shaper_wizards.php
index 4a319f4..e6b67ff 100644
--- a/usr/local/www/firewall_shaper_wizards.php
+++ b/usr/local/www/firewall_shaper_wizards.php
@@ -50,33 +50,34 @@ if($_GET['reset'] <> "") {
}
if ($_POST['apply']) {
- write_config();
-
- $retval = 0;
- /* Setup pf rules since the user may have changed the optimization value */
- $retval = filter_configure();
- $savemsg = get_std_save_message($retval);
- if (stristr($retval, "error") <> true)
- $savemsg = get_std_save_message($retval);
- else
- $savemsg = $retval;
-
- /* reset rrd queues */
- system("rm -f /var/db/rrd/*queuedrops.rrd");
- system("rm -f /var/db/rrd/*queues.rrd");
- enable_rrd_graphing();
-
- clear_subsystem_dirty('shaper');
+ write_config();
+
+ $retval = 0;
+ /* Setup pf rules since the user may have changed the optimization value */
+ $retval = filter_configure();
+ $savemsg = get_std_save_message($retval);
+ if (stristr($retval, "error") <> true)
+ $savemsg = get_std_save_message($retval);
+ else
+ $savemsg = $retval;
+
+ /* reset rrd queues */
+ system("rm -f /var/db/rrd/*queuedrops.rrd");
+ system("rm -f /var/db/rrd/*queues.rrd");
+ enable_rrd_graphing();
+
+ clear_subsystem_dirty('shaper');
}
$pgtitle = array(gettext("Firewall"),gettext("Traffic Shaper"),gettext("Wizards"));
$shortcut_section = "trafficshaper";
-$wizards = array(gettext("Single Lan multi Wan") => "traffic_shaper_wizard.xml",
- gettext("Single Wan multi Lan") => "traffic_shaper_wizard_multi_lan.xml",
- gettext("Multiple Lan/Wan") => "traffic_shaper_wizard_multi_all.xml",
- gettext("Dedicated Links") => "traffic_shaper_wizard_dedicated.xml",
- );
+$wizards = array(
+ gettext("Single Lan multi Wan") => "traffic_shaper_wizard.xml",
+ gettext("Single Wan multi Lan") => "traffic_shaper_wizard_multi_lan.xml",
+ gettext("Multiple Lan/Wan") => "traffic_shaper_wizard_multi_all.xml",
+ gettext("Dedicated Links") => "traffic_shaper_wizard_dedicated.xml",
+);
$closehead = false;
include("head.inc");
@@ -96,7 +97,7 @@ include("head.inc");
<?php print_info_box_np(gettext("The traffic shaper configuration has been changed.")."<br />".gettext("You must apply the changes in order for them to take effect."));?><br /></p>
<?php endif; ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="traffic shaper wizard">
- <tr><td>
+ <tr><td>
<?php
$tab_array = array();
$tab_array[0] = array(gettext("By Interface"), false, "firewall_shaper.php");
@@ -106,25 +107,36 @@ include("head.inc");
$tab_array[4] = array(gettext("Wizards"), true, "firewall_shaper_wizards.php");
display_top_tabs($tab_array);
?>
- </td></tr>
- <tr>
- <td>
- <div id="mainarea">
- <table width="100%" border="0" cellpadding="0" cellspacing="0" summary="main area">
- <tr>
- <td class="listhdrr" width="25%" align="center" ><?=gettext("Wizard function");?></td>
- <td class="listhdrr" width="75%" align="center"><?=gettext("Wizard Link");?></td>
- </tr>
- <?php foreach ($wizards as $key => $wizard): ?>
- <tr class="tabcont"><td class="listlr" style="background-color: #e0e0e0" width="25%" align="center">
- <?php echo $key;?>
- </td><td class="listr" style="background-color: #e0e0e0" width="75%" align="center">
- <?php echo "<a href=\"wizard.php?xml=" . $wizard ."\" >" .$wizard . "</a>"; ?>
- </td></tr>
- <?php endforeach; ?>
- </table>
- </div>
- </td>
+ </td></tr>
+ <tr>
+ <td>
+ <div id="mainarea">
+ <table width="100%" border="0" cellpadding="0" cellspacing="0" summary="main area">
+ <tr>
+ <td class="listhdrr" width="25%" align="center" ><?=gettext("Wizard function");?></td>
+ <td class="listhdrr" width="75%" align="center"><?=gettext("Wizard Link");?></td>
+ </tr>
+<?php
+ foreach ($wizards as $key => $wizard):
+?>
+ <tr class="tabcont">
+ <td class="listlr" style="background-color: #e0e0e0" width="25%" align="center">
+<?php
+ echo $key;
+?>
+ </td>
+ <td class="listr" style="background-color: #e0e0e0" width="75%" align="center">
+<?php
+ echo "<a href=\"wizard.php?xml=" . $wizard ."\" >" .$wizard . "</a>";
+?>
+ </td>
+ </tr>
+<?php
+ endforeach;
+?>
+ </table>
+ </div>
+ </td>
</tr>
</table>
</form>
OpenPOWER on IntegriCloud