Project

General

Profile

Todo #16961 ยป 16961.patch

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

View differences:

src/usr/local/www/services_wol.php
57 57
$savemsg = "";
58 58
$class = "";
59 59

  
60
if ($_REQUEST['wakeall'] != "") {
60
if ($_POST['wakeall'] != "") {
61 61
	foreach (config_get_path('wol/wolentry', []) as $wolent) {
62 62
		send_wol($wolent['interface'], $wolent['mac'], $wolent['descr'], $savemsg, $class);
63 63
	}
......
167 167
			<?=gettext("Add");?>
168 168
		</a>
169 169

  
170
		<a href="services_wol.php?wakeall=true" role="button" class="btn btn-primary">
170
		<a href="services_wol.php?wakeall=true" role="button" class="btn btn-primary do-confirm" usepost>
171 171
			<i class="fa-solid fa-power-off icon-embed-btn"></i>
172 172
			<?=gettext("Wake All Devices")?>
173 173
		</a>
......
215 215
			<?=gettext("Add");?>
216 216
		</a>
217 217

  
218
		<button id="wakeall" class="btn btn-primary">
218
		<a href="services_wol.php?wakeall=true" role="button" class="btn btn-primary do-confirm" usepost>
219 219
			<i class="fa-solid fa-power-off icon-embed-btn"></i>
220 220
			<?=gettext("Wake All Devices")?>
221
		</button>
221
		</a>
222 222
	</div>
223 223
</div>
224

  
225
<script type="text/javascript">
226
//<![CDATA[
227
events.push(function() {
228

  
229
	$('#wakeall').click(function() {
230
		if (confirm("Are you sure you wish to Wake All Devices?")) {
231
			postSubmit({wakeall: 'true'}, 'services_wol.php');
232
		}
233
	});
234

  
235
});
236
//]]>
237
</script>
238

  
239 224
<?php
240

  
241 225
include("foot.inc");
    (1-1/1)