Commit 41232ca5 authored by Ad Schellevis's avatar Ad Schellevis

whitespace diag_limiter_info.php

parent 72ef0b01
...@@ -29,18 +29,19 @@ ...@@ -29,18 +29,19 @@
require_once("guiconfig.inc"); require_once("guiconfig.inc");
if(isset($_POST['getactivity'])) { if (isset($_POST['getactivity'])) {
$text = `/sbin/ipfw pipe show`; $text = `/sbin/ipfw pipe show`;
if($text == "") if ($text == "") {
$text = gettext('We could not find any limiters on this system.'); $text = gettext('We could not find any limiters on this system.');
echo "Limiters:\n"; }
echo $text; echo "Limiters:\n";
$text = `/sbin/ipfw queue show`; echo $text;
if($text != "") { $text = `/sbin/ipfw queue show`;
echo "\n\nQueues:\n"; if ($text != "") {
echo $text; echo "\n\nQueues:\n";
} echo $text;
exit; }
exit;
} }
include("head.inc"); include("head.inc");
...@@ -50,48 +51,46 @@ include("head.inc"); ...@@ -50,48 +51,46 @@ include("head.inc");
<?php include("fbegin.inc"); ?> <?php include("fbegin.inc"); ?>
<script type="text/javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
function getlimiteractivity() { function getlimiteractivity() {
var url = "/diag_limiter_info.php"; var url = "/diag_limiter_info.php";
var pars = 'getactivity=yes'; var pars = 'getactivity=yes';
jQuery.ajax( jQuery.ajax(
url, url,
{ {
type: 'post', type: 'post',
data: pars, data: pars,
complete: activitycallback complete: activitycallback
}); });
} }
function activitycallback(transport) { function activitycallback(transport) {
jQuery('#limiteractivitydiv').html('<font face="Courier" size="2"><pre style="text-align:left;">' + transport.responseText + '<\/pre><\/font>'); jQuery('#limiteractivitydiv').html('<font face="Courier" size="2"><pre style="text-align:left;">' + transport.responseText + '<\/pre><\/font>');
setTimeout('getlimiteractivity()', 2000); setTimeout('getlimiteractivity()', 2000);
} }
setTimeout('getlimiteractivity()', 1000); setTimeout('getlimiteractivity()', 1000);
//]]> //]]>
</script> </script>
<section class="page-content-main"> <section class="page-content-main">
<div class="container-fluid col-xs-12 col-sm-10 col-md-9"> <div class="container-fluid col-xs-12 col-sm-10 col-md-9">
<div class="row"> <div class="row">
<section class="col-xs-12"> <section class="col-xs-12">
<?php
<?php if($savemsg) {
if($savemsg) { echo "<div id=\"savemsg\">";
echo "<div id=\"savemsg\">"; print_info_box($savemsg);
print_info_box($savemsg); echo "</div>";
echo "</div>"; }
} if (isset($input_errors) && count($input_errors) > 0)
if (isset($input_errors) && count($input_errors) > 0) print_input_errors($input_errors);
print_input_errors($input_errors); ?>
?> <div id="limiteractivitydiv">
<?=gettext("Gathering Limiter information, please wait...");?>
<div id="limiteractivitydiv"> </div>
<?=gettext("Gathering Limiter information, please wait...");?> </section>
</div> </div>
</section> </div>
</div>
</div>
</section> </section>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment