Files
recycled-ni-neutrino/data/y-web/Y_Settings_wol.yhtm
vanhofen fa8d630a8a yWeb: rename Y-Web.conf => yWeb.conf
Origin commit data
------------------
Branch: ni/coolstream
Commit: 3e6d6f3da0
Author: vanhofen <vanhofen@gmx.de>
Date: 2023-02-20 (Mon, 20 Feb 2023)

Origin message was:
------------------
- yWeb: rename Y-Web.conf => yWeb.conf

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2023-02-20 20:47:53 +01:00

54 lines
2.0 KiB
Plaintext

{=include-block:Y_Blocks.txt;management_check_top=}
{=include-block:Y_Blocks.txt;head=}
<script src="/Y_Baselib.js"></script>
<script>
var g_wol = new Array(
"{=ini-get:%(CONFIGDIR)/yWeb.conf;wol_mac_1=}",
"{=ini-get:%(CONFIGDIR)/yWeb.conf;wol_mac_2=}",
"{=ini-get:%(CONFIGDIR)/yWeb.conf;wol_mac_3=}");
function do_wol(_nr)
{
var nhttpd_version = loadSyncURL("/control/exec?Y_Tools&wol&"+g_wol[_nr-1]);
}
function init_wol()
{
for(i=1;i<=3;i++)
document.getElementById("wol"+i).disabled = (g_wol[i-1] == "");
}
function goto_settings(){
top.top_main.prim_menu.nav("settings", "Y_Settings_yWeb.yhtm");
}
</script>
{=include-block:Y_Blocks.txt;head_close=}
<body>
<div class="work_box">
<div class="work_box_head">
<div class="work_box_head_h2">{=var-set:menu=Wake on LAN=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<form name="f" action="/y/cgi">
<table border="0" class="y_form_table">
<tr>
<td>Wake on Lan MAC 1 ({=ini-get:%(CONFIGDIR)/yWeb.conf;wol_mac_1=}) {=ini-get:%(CONFIGDIR)/yWeb.conf;wol_desc_1=}</td>
<td><input id="wol1" type="button" name="wol_mac_1" value="wake up" title="wake up that MAC" onclick='do_wol(1)'/></td>
</tr>
<tr>
<td>Wake on Lan MAC 2 ({=ini-get:%(CONFIGDIR)/yWeb.conf;wol_mac_2=}) {=ini-get:%(CONFIGDIR)/yWeb.conf;wol_desc_2=}</td>
<td><input id="wol2" type="button" name="wol_mac_2" value="wake up" title="wake up that MAC" onclick='do_wol(2)'/></td>
</tr>
<tr>
<td>Wake on Lan MAC 3 ({=ini-get:%(CONFIGDIR)/yWeb.conf;wol_mac_3=}) {=ini-get:%(CONFIGDIR)/yWeb.conf;wol_desc_3=}</td>
<td><input id="wol3" type="button" name="wol_mac_3" value="wake up" title="wake up that MAC" onclick='do_wol(3)'/></td>
</tr>
<tr><td colspan="2"><a href="javascript:goto_settings()" class="inlink">{=L:main.settings=}</a></td></tr>
</table>
</form>
<!--<a href="Y_Settings_yWeb.yhtm" title="WOL Settings">{=L:settings=}</a>-->
</div>
</div>
<script>
init_wol();
</script>
</body>
</html>
{=include-block:Y_Blocks.txt;management_check_bottom=}