backend: * add low priority mode (nice level 10), disabled by default * enhance 'Force DNS' to redirect ports 53, 853 and 5353 frontend: * switch to dynamic XHR polling for runtime information and logfile viewing * add new 'Refresh' button to reload blocklists * various cleanups & small fixes Signed-off-by: Dirk Brenken <dev@brenken.org>
35 lines
933 B
HTML
35 lines
933 B
HTML
<%#
|
|
Copyright 2017-2018 Dirk Brenken (dev@brenken.org)
|
|
This is free software, licensed under the Apache License, Version 2.0
|
|
-%>
|
|
|
|
<%+header%>
|
|
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
function log_update()
|
|
{
|
|
XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "services", "adblock", "logread")%>', null,
|
|
function(x)
|
|
{
|
|
if (!x)
|
|
{
|
|
return;
|
|
}
|
|
var view = document.getElementById("view_id");
|
|
view.value = x.responseText;
|
|
view.scrollTop = view.scrollHeight;
|
|
});
|
|
}
|
|
window.onload = log_update();
|
|
//]]>
|
|
</script>
|
|
|
|
<div class="cbi-map">
|
|
<div class="cbi-section">
|
|
<div class="cbi-section-descr"><%:The syslog output, pre-filtered for adblock related messages only.%></div>
|
|
<textarea id="view_id" style="width:100%;height:450px;border:1px solid #cccccc;padding:5px;font-size:12px;font-family:monospace;resize:none;" readonly="readonly" wrap="off" value=""></textarea>
|
|
</div>
|
|
</div>
|
|
|
|
<%+footer%>
|