Project

General

Profile

« Previous | Next » 

Revision fa94122b

Added by k-paulius over 9 years ago

Show interface name in the breadcrumb on DHCP Server page

View differences:

src/usr/local/www/services_dhcp.php
716 716
}
717 717

  
718 718
$pgtitle = array(gettext("Services"), gettext("DHCP Server"));
719

  
720
if (!empty($if) && !isset($config['dhcrelay']['enable']) && isset($iflist[$if])) {
721
	$pgtitle[] = $iflist[$if];
722
}
719 723
$shortcut_section = "dhcp";
720 724

  
721 725
include("head.inc");
src/usr/local/www/services_dhcp_edit.php
407 407
$mymac = `/usr/sbin/arp -an | grep '('{$ip}')' | cut -d" " -f4`;
408 408
$mymac = str_replace("\n", "", $mymac);
409 409

  
410
$pgtitle = array(gettext("Services"), gettext("DHCP Server"), gettext("Edit Static Mapping"));
410
$iflist = get_configured_interface_with_descr();
411
$ifname = '';
412

  
413
if (!empty($if) && isset($iflist[$if])) {
414
	$ifname = $iflist[$if];
415
}
416
$pgtitle = array(gettext("Services"), gettext("DHCP Server"), $ifname, gettext("Edit Static Mapping"));
411 417
$shortcut_section = "dhcp";
412 418

  
413 419
include("head.inc");

Also available in: Unified diff