From b7028110e228545e9df1e3bddb38f2a4dd2b9b62 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 16 Aug 2005 16:20:44 +0000 Subject: Wake all clients Ticket #360 --- usr/local/www/services_wol.php | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'usr/local/www') diff --git a/usr/local/www/services_wol.php b/usr/local/www/services_wol.php index 245e4cb..0a0667e 100755 --- a/usr/local/www/services_wol.php +++ b/usr/local/www/services_wol.php @@ -59,6 +59,19 @@ if ($_POST || $_GET['mac']) { if (!$if) $input_errors[] = "A valid interface must be specified."; + if($_GET['wakeall'] <> "") { + $i = 0; + $savemsg = ""; + foreach ($a_wol as $wolent) { + $mac = $wolent['mac']; + $if = $wolent['interface']; + $bcip = gen_subnet_max($config['interfaces'][$if]['ipaddr'], + $config['interfaces'][$if]['subnet']); + mwexec("/usr/local/bin/wol -i {$bcip} {$mac}"); + $savemsg .= "Sent magic packet to {$mac}.
"; + } + } + if (!$input_errors) { /* determine broadcast address */ $bcip = gen_subnet_max($config['interfaces'][$if]['ipaddr'], @@ -164,7 +177,10 @@ Click the MAC address to wake up a computer.
- +
+ + Wake All Clients +
-- cgit v1.1