Feature #15323 ยป services_wol-pf2.7.2-v1.0.php.patch
src/usr/local/www/services_wol.php | ||
---|---|---|
74 | 74 |
/* normalize MAC addresses - lowercase and convert Windows-ized hyphenated MACs to colon delimited */ |
75 | 75 |
$mac = strtolower(str_replace("-", ":", $_POST['mac'])); |
76 | 76 |
$if = $_POST['if']; |
77 |
$descr = $_POST['descr']; |
|
77 | 78 |
} |
78 | 79 | |
79 | 80 |
/* input validation */ |
... | ... | |
86 | 87 |
} |
87 | 88 | |
88 | 89 |
if (!$input_errors) { |
89 |
send_wol($if, $mac, '', $savemsg, $class);
|
|
90 |
send_wol($if, $mac, $descr, $savemsg, $class);
|
|
90 | 91 |
} |
91 | 92 |
} |
92 | 93 | |
... | ... | |
196 | 197 |
<?=convert_friendly_interface_to_friendly_descr($wolent['interface']);?> |
197 | 198 |
</td> |
198 | 199 |
<td> |
199 |
<a href="?mac=<?=$wolent['mac'];?>&if=<?=$wolent['interface'];?>" usepost><?=strtolower($wolent['mac']);?></a> |
|
200 |
<a href="?mac=<?=$wolent['mac'];?>&descr=<?=$wolent['descr'];?>&if=<?=$wolent['interface'];?>" usepost><?=strtolower($wolent['mac']);?></a>
|
|
200 | 201 |
</td> |
201 | 202 |
<td> |
202 | 203 |
<?=htmlspecialchars($wolent['descr']);?> |
... | ... | |
204 | 205 |
<td> |
205 | 206 |
<a class="fa fa-pencil" title="<?=gettext('Edit Device')?>" href="services_wol_edit.php?id=<?=$i?>"></a> |
206 | 207 |
<a class="fa fa-trash" title="<?=gettext('Delete Device')?>" href="services_wol.php?act=del&id=<?=$i?>" usepost></a> |
207 |
<a class="fa fa-power-off" title="<?=gettext('Wake Device')?>" href="?mac=<?=$wolent['mac'];?>&if=<?=$wolent['interface'];?>" usepost></a> |
|
208 |
<a class="fa fa-power-off" title="<?=gettext('Wake Device')?>" href="?mac=<?=$wolent['mac'];?>&descr=<?=$wolent['descr'];?>&if=<?=$wolent['interface'];?>" usepost></a>
|
|
208 | 209 |
</td> |
209 | 210 |
</tr> |
210 | 211 |
<?php endforeach?> |