mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Changes submitted by databeestje which adds links to dhcp and other pages
that display mac easily allowing the addition of the item to the WOL db.
This commit is contained in:
parent
195b6162b5
commit
7477df4f99
@ -177,8 +177,10 @@ foreach ($leases as $data) {
|
||||
echo "<td class=\"listr\">{$fspans}{$data['hostname']}{$fspane} </td>\n";
|
||||
echo "<td class=\"listr\">{$fspans}" . adjust_gmt($data['start']) . "{$fspane} </td>\n";
|
||||
echo "<td class=\"listr\">{$fspans}" . adjust_gmt($data['end']) . "{$fspane} </td>\n";
|
||||
echo "<td class=\"list\" valign=\"middle\"><a href=\"services_dhcp_edit.php?if={$data['if']}&mac={$data['mac']}\">";
|
||||
echo "<td class=\"list\" valign=\"middle\"><a href=\"services_dhcp_edit.php?if={$data['if']}&mac={$data['mac']}&descr={$data['hostname']}\">";
|
||||
echo "<img src=\"/themes/{$g['theme']}/images/icons/icon_plus.gif\" width=\"17\" height=\"17\" border=\"0\" title=\"add a static mapping for this MAC address\"></a></td>\n";
|
||||
echo "<td valign=\"middle\"><a href=\"services_wol_edit.php?if={$data['if']}&mac={$data['mac']}&descr={$data['hostname']}\">";
|
||||
echo "<img src=\"/themes/{$g['theme']}/images/icons/icon_wol_all.gif\" width=\"17\" height=\"17\" border=\"0\" title=\"add a wake on lan mapping for this MAC address\"></a></td>\n";
|
||||
echo "</tr>\n";
|
||||
}
|
||||
}
|
||||
|
||||
@ -58,6 +58,7 @@ if (isset($id) && $a_maps[$id]) {
|
||||
$pconfig['descr'] = $a_maps[$id]['descr'];
|
||||
} else {
|
||||
$pconfig['mac'] = $_GET['mac'];
|
||||
$pconfig['descr'] = $_GET['descr'];
|
||||
}
|
||||
|
||||
if ($_POST) {
|
||||
|
||||
@ -47,6 +47,12 @@ if (isset($id) && $a_wol[$id]) {
|
||||
$pconfig['mac'] = $a_wol[$id]['mac'];
|
||||
$pconfig['descr'] = $a_wol[$id]['descr'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$pconfig['interface'] = $_GET['if'];
|
||||
$pconfig['mac'] = $_GET['mac'];
|
||||
$pconfig['descr'] = $_GET['descr'];
|
||||
}
|
||||
|
||||
if ($_POST) {
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user