' . gettext("Computer / Device") . ''; echo ''; echo ''; ?> 0) { foreach($wolcomputers as $wolent) { echo '' . "\n"; echo '' . "\n"; $is_active = exec("/usr/sbin/arp -an |/usr/bin/grep {$wolent['mac']}| /usr/bin/wc -l|/usr/bin/awk '{print $1;}'"); if($is_active == 1) { echo '\n"; } else { echo '\n"; } echo '\n"; } } else { echo "\n"; } ?>
' . gettext("Interface") . '' . gettext("Status") . ' 
' . $wolent['descr'] . '
' . $wolent['mac'] . '
' . convert_friendly_interface_to_friendly_descr($wolent['interface']) . '' . "\n"; echo "\"pass\" " . gettext("Online") . "' . "\n"; echo "\"block\" " . gettext("Offline") . "'; /*if($is_active) { */ /* Will always show wake-up button even if pfsense thinks it is awake */ /* } else { */ echo " "; echo "wol\n"; /* } */ echo "
" . gettext("No saved WoL addresses") . ".
DHCP Leases Status