diff options
author | PiBa-NL <pba_2k3@yahoo.com> | 2017-06-13 19:54:39 +0200 |
---|---|---|
committer | PiBa-NL <pba_2k3@yahoo.com> | 2017-06-14 19:54:40 +0200 |
commit | 9cc7e37b710c869cacd9bee0397abe05e0a72323 (patch) | |
tree | ae5ed593e3071ed44f67eb71a4f823ecd20f9a2e /src | |
parent | 2c8c85787b3c2e0071b157891425afb819fe2ff1 (diff) | |
download | pfsense-9cc7e37b710c869cacd9bee0397abe05e0a72323.zip pfsense-9cc7e37b710c869cacd9bee0397abe05e0a72323.tar.gz |
wol, use 'usepost' for links that need to send the magic packet
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/services_wol.php | 4 | ||||
-rw-r--r-- | src/usr/local/www/status_dhcp_leases.php | 2 | ||||
-rw-r--r-- | src/usr/local/www/widgets/widgets/wake_on_lan.widget.php | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/usr/local/www/services_wol.php b/src/usr/local/www/services_wol.php index 6061b90..6ea7e0f 100644 --- a/src/usr/local/www/services_wol.php +++ b/src/usr/local/www/services_wol.php @@ -131,7 +131,7 @@ $form = new Form(false); $section = new Form_Section('Wake-on-LAN'); $section->addInput(new Form_Select( - 'interface', + 'if', '*Interface', (link_interface_to_bridge($if) ? null : $if), get_configured_interface_with_descr() @@ -180,7 +180,7 @@ print $form; <?=convert_friendly_interface_to_friendly_descr($wolent['interface']);?> </td> <td> - <a href="?mac=<?=$wolent['mac'];?>&if=<?=$wolent['interface'];?>"><?=strtolower($wolent['mac']);?></a> + <a href="?mac=<?=$wolent['mac'];?>&if=<?=$wolent['interface'];?>" usepost><?=strtolower($wolent['mac']);?></a> </td> <td> <?=htmlspecialchars($wolent['descr']);?> diff --git a/src/usr/local/www/status_dhcp_leases.php b/src/usr/local/www/status_dhcp_leases.php index c4be58c..05164bd 100644 --- a/src/usr/local/www/status_dhcp_leases.php +++ b/src/usr/local/www/status_dhcp_leases.php @@ -466,7 +466,7 @@ if ($got_cid) { <?php endif; ?> <a class="fa fa-plus-square" title="<?=gettext("Add WOL mapping")?>" href="services_wol_edit.php?if=<?=htmlspecialchars($data['if'])?>&mac=<?=htmlspecialchars($data['mac'])?>&descr=<?=htmlspecialchars($data['hostname'])?>"></a> <?php if ($data['online'] != $online_string):?> - <a class="fa fa-power-off" title="<?=gettext("Send WOL packet")?>" href="services_wol.php?if=<?=htmlspecialchars($data['if'])?>&mac=<?=htmlspecialchars($data['mac'])?>"></a> + <a class="fa fa-power-off" title="<?=gettext("Send WOL packet")?>" href="services_wol.php?if=<?=htmlspecialchars($data['if'])?>&mac=<?=htmlspecialchars($data['mac'])?>" usepost></a> <?php endif; ?> <?php if ($data['type'] == $dynamic_string && $data['online'] != $online_string):?> diff --git a/src/usr/local/www/widgets/widgets/wake_on_lan.widget.php b/src/usr/local/www/widgets/widgets/wake_on_lan.widget.php index e3df33d..04ab7bd 100644 --- a/src/usr/local/www/widgets/widgets/wake_on_lan.widget.php +++ b/src/usr/local/www/widgets/widgets/wake_on_lan.widget.php @@ -102,7 +102,7 @@ if (count($wolcomputers) > 0): <?php endif; ?> </td> <td> - <a href="services_wol.php?mac=<?= $wolent['mac'] ?>&if=<?= $wolent['interface']?>"> + <a href="services_wol.php?mac=<?= $wolent['mac'] ?>&if=<?= $wolent['interface']?>" usepost> <i class="fa fa-power-off" data-toggle="tooltip" title="<?= gettext("Wake up!") ?>"></i> </a> </td> |