2023-01-18 12:37:29 +00:00
|
|
|
<script type="text/javascript">//<![CDATA[
|
2023-01-18 13:21:55 +00:00
|
|
|
XHR.poll(3, '<%=url([[admin]], [[vpn]], [[zerotier]], [[status]])%>', null,
|
|
|
|
function (x, data) {
|
|
|
|
var tb = document.getElementById('zerotier_status');
|
|
|
|
if (data && tb) {
|
|
|
|
if (data.running) {
|
|
|
|
var links = '<em><b><font color=green>Zerotier <%:RUNNING%></font></b></em>';
|
|
|
|
tb.innerHTML = links;
|
|
|
|
} else {
|
|
|
|
tb.innerHTML = '<em><b><font color=red>Zerotier <%:NOT RUNNING%></font></b></em>';
|
|
|
|
}
|
2023-01-18 12:37:29 +00:00
|
|
|
}
|
|
|
|
}
|
2023-01-18 13:21:55 +00:00
|
|
|
);
|
2023-01-18 12:37:29 +00:00
|
|
|
//]]>
|
|
|
|
</script>
|
2023-01-18 13:21:55 +00:00
|
|
|
<style>
|
|
|
|
.mar-10 {
|
|
|
|
margin-left: 50px;
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
</style>
|
2023-01-18 12:37:29 +00:00
|
|
|
<fieldset class="cbi-section">
|
|
|
|
<p id="zerotier_status">
|
2023-01-18 13:21:55 +00:00
|
|
|
<em>
|
|
|
|
<%:Collecting data...%>
|
|
|
|
</em>
|
2023-01-18 12:37:29 +00:00
|
|
|
</p>
|
2023-01-18 13:21:55 +00:00
|
|
|
</fieldset>
|