diff options
author | N0YB <Al_Stu@Frontier.com> | 2014-02-15 13:24:17 -0800 |
---|---|---|
committer | N0YB <Al_Stu@Frontier.com> | 2014-02-15 13:24:17 -0800 |
commit | 6aa8b0deecaa3156538896003040459648c3e0fa (patch) | |
tree | 9473e34d107e3661f33aa7282070e347c621e462 /usr/local/www/status_filter_reload.php | |
parent | 349fdb3c4f6a47aef5358770674069afcc2ae8a0 (diff) | |
download | pfsense-6aa8b0deecaa3156538896003040459648c3e0fa.zip pfsense-6aa8b0deecaa3156538896003040459648c3e0fa.tar.gz |
XHTML Compliance
Filter Reload Status
Diffstat (limited to 'usr/local/www/status_filter_reload.php')
-rw-r--r-- | usr/local/www/status_filter_reload.php | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/usr/local/www/status_filter_reload.php b/usr/local/www/status_filter_reload.php index 8a64c86..1ea3e4f 100644 --- a/usr/local/www/status_filter_reload.php +++ b/usr/local/www/status_filter_reload.php @@ -70,56 +70,56 @@ include("head.inc"); <?php include("fbegin.inc"); ?> <br/> <form action="status_filter_reload.php" method="post" name="filter"> -<input type="submit" value="Reload Filter" name="reloadfilter" id="reloadfilter"> +<input type="submit" value="Reload Filter" name="reloadfilter" id="reloadfilter"/> <?php if ($config['hasync'] && $config['hasync']["synchronizetoip"] != ""): ?> -<input type="submit" value="Force Config Sync" name="syncfilter" id="syncfilter"> +<input type="submit" value="Force Config Sync" name="syncfilter" id="syncfilter"/> <?php endif; ?> </form> <br/><br/><br/> -<div id="status" name="status" style="padding:5px; border:1px dashed #990000; background-color: #ffffff; color: #000000;"> +<div id="status" style="padding:5px; border:1px dashed #990000; background-color: #ffffff; color: #000000;"> <?php echo $status; ?> </div> -<div id="doneurl" name="doneurl"> +<div id="doneurl"> </div> -<p> -<div id="reloadinfo" name="reloadinfo"><?=gettext("This page will automatically refresh every 3 seconds until the filter is done reloading"); ?>.</div> +<div id="reloadinfo"><?=gettext("This page will automatically refresh every 3 seconds until the filter is done reloading"); ?>.</div> -<script language="javascript"> +<script type="text/javascript"> /* init update "thread */ function update_status_thread() { getURL('status_filter_reload.php?getstatus=true', update_data); } function update_data(obj) { + var lt = decodeURIComponent("%3C"); var result_text = obj.content; var result_text_split = result_text.split("|"); result_text = result_text_split[1]; result_text = result_text.replace("\n",""); result_text = result_text.replace("\r",""); if (result_text) { - jQuery('#status').html('<img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif"> ' + result_text + '...'); + jQuery('#status').html(lt+'img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif" alt=""/> ' + result_text + '...'); } else { - jQuery('#status').html('<img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif"> Obtaining filter status...'); + jQuery('#status').html(lt+'img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif" alt=""/> Obtaining filter status...'); } if(result_text == "Initializing") { - jQuery('#status').html('<img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif"> Initializing...'); + jQuery('#status').html(lt+'img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif" alt=""/> Initializing...'); } else if(result_text == "Done") { jQuery('#status').effect('highlight'); jQuery('#status').html('Done. The filter rules have been reloaded.'); jQuery('#reloadinfo').css("visibility","hidden"); jQuery('#doneurl').css("visibility","visible"); - jQuery('#doneurl').html("<p/><a href='status_queues.php'>Queue Status</a>"); + jQuery('#doneurl').html(lt+"p/>"+lt+"a href='status_queues.php'>Queue Status"+lt+"/a>"); } window.setTimeout('update_status_thread()', 2500); } </script> -<script language="javascript"> +<script type="text/javascript"> /* * getURL is a proprietary Adobe function, but it's simplicity has made it very * popular. If getURL is undefined we spin our own by wrapping XMLHttpRequest. |