mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
22 lines
650 B
HTML
Executable file
22 lines
650 B
HTML
Executable file
<script type="text/javascript">//<![CDATA[
|
|
XHR.poll(3, '<%=url([[admin]], [[vpn]], [[ipsec-server]], [[status]])%>', null,
|
|
function(x, data) {
|
|
var tb = document.getElementById('ipsec_status');
|
|
if (data && tb) {
|
|
if (data.running) {
|
|
var links = '<em><b><font color=green>IPSec VPN <%:RUNNING%></font></b></em>';
|
|
tb.innerHTML = links;
|
|
} else {
|
|
tb.innerHTML = '<em><b><font color=red>IPSec VPN <%:NOT RUNNING%></font></b></em>';
|
|
}
|
|
}
|
|
}
|
|
);
|
|
//]]>
|
|
</script>
|
|
<style>.mar-10 {margin-left: 50px; margin-right: 10px;}</style>
|
|
<fieldset class="cbi-section">
|
|
<p id="ipsec_status">
|
|
<em><%:Collecting data...%></em>
|
|
</p>
|
|
</fieldset>
|