Project

General

Profile

Todo #16961 ยป 16961.patch

Jim Pingle, 07/20/2026 06:39 PM

View differences:

src/usr/local/www/services_wol.php
$savemsg = "";
$class = "";
if ($_REQUEST['wakeall'] != "") {
if ($_POST['wakeall'] != "") {
foreach (config_get_path('wol/wolentry', []) as $wolent) {
send_wol($wolent['interface'], $wolent['mac'], $wolent['descr'], $savemsg, $class);
}
......
<?=gettext("Add");?>
</a>
<a href="services_wol.php?wakeall=true" role="button" class="btn btn-primary">
<a href="services_wol.php?wakeall=true" role="button" class="btn btn-primary do-confirm" usepost>
<i class="fa-solid fa-power-off icon-embed-btn"></i>
<?=gettext("Wake All Devices")?>
</a>
......
<?=gettext("Add");?>
</a>
<button id="wakeall" class="btn btn-primary">
<a href="services_wol.php?wakeall=true" role="button" class="btn btn-primary do-confirm" usepost>
<i class="fa-solid fa-power-off icon-embed-btn"></i>
<?=gettext("Wake All Devices")?>
</button>
</a>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
events.push(function() {
$('#wakeall').click(function() {
if (confirm("Are you sure you wish to Wake All Devices?")) {
postSubmit({wakeall: 'true'}, 'services_wol.php');
}
});
});
//]]>
</script>
<?php
include("foot.inc");
    (1-1/1)