diff options
author | Phil Davis <phil.davis@inf.org> | 2015-12-14 20:20:16 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-12-14 20:20:16 +0545 |
commit | 947141fd21b4496d8963d1598d6ca6a2e000702c (patch) | |
tree | c4f39f94d05059417f3e5743fc7c826ea52657fc /src/usr/local/www/diag_tables.php | |
parent | 9ba351c17e4c85e01832e38b6ba7b6a7898a290d (diff) | |
download | pfsense-947141fd21b4496d8963d1598d6ca6a2e000702c.zip pfsense-947141fd21b4496d8963d1598d6ca6a2e000702c.tar.gz |
Code style usr local www a-e
Diffstat (limited to 'src/usr/local/www/diag_tables.php')
-rw-r--r-- | src/usr/local/www/diag_tables.php | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/usr/local/www/diag_tables.php b/src/usr/local/www/diag_tables.php index 5fb0eba..c351701 100644 --- a/src/usr/local/www/diag_tables.php +++ b/src/usr/local/www/diag_tables.php @@ -105,15 +105,18 @@ if (($tablename == "bogons") || ($tablename == "bogonsv6")) { $loading = true; while ($loading == true) { $isrunning = `/bin/ps awwwux | /usr/bin/grep -v grep | /usr/bin/grep bogons`; - if ($isrunning == "") + if ($isrunning == "") { $loading = false; + } $maxtimetowait++; - if ($maxtimetowait > 89) + if ($maxtimetowait > 89) { $loading = false; + } sleep(1); } - if ($maxtimetowait < 90) + if ($maxtimetowait < 90) { $savemsg = gettext("The bogons database has been updated."); + } } } @@ -122,8 +125,9 @@ exec("/sbin/pfctl -sT", $tables); include("head.inc"); -if ($savemsg) +if ($savemsg) { print_info_box($savemsg); +} $form = new Form('Show'); @@ -142,8 +146,8 @@ print $form; <script type="text/javascript"> //<![CDATA[ -events.push(function(){ - $('a[data-entry]').on('click', function(){ +events.push(function() { + $('a[data-entry]').on('click', function() { var el = $(this); $.ajax( @@ -154,7 +158,7 @@ events.push(function(){ type: '<?=htmlspecialchars($tablename)?>', delete: $(this).data('entry') }, - success: function(){ + success: function() { el.parents('tr').remove(); }, }); |