Commit 07923379 authored by Franco Fichtner's avatar Franco Fichtner

services: properly hook up dhcp services

parent 8f09dd01
...@@ -10,6 +10,6 @@ function clear_hook() ...@@ -10,6 +10,6 @@ function clear_hook()
} }
require_once 'services.inc'; require_once 'services.inc';
$shortcut_section = 'dhcp'; $shortcut_section = 'dhcpd';
require_once 'diag_logs_template.inc'; require_once 'diag_logs_template.inc';
...@@ -33,7 +33,10 @@ function find_service_by_shortcut($name) ...@@ -33,7 +33,10 @@ function find_service_by_shortcut($name)
{ {
$shortcuts = array(); $shortcuts = array();
$shortcuts['dhcp'] = 'dhcpd'; /* WIP unify mapping so "shortcuts" are no longer needed */
$shortcuts['dhcpd'] = 'dhcpd';
$shortcuts['dhcrelay'] = 'dhcrelay';
$shortcuts['dhcrelay6'] = 'dhcrelay6';
$shortcuts['forwarder'] = 'dnsmasq'; $shortcuts['forwarder'] = 'dnsmasq';
$shortcuts['gateways'] = 'apinger'; $shortcuts['gateways'] = 'apinger';
$shortcuts['ipsec'] = 'ipsec'; $shortcuts['ipsec'] = 'ipsec';
......
...@@ -535,7 +535,7 @@ if ($act == "del") { ...@@ -535,7 +535,7 @@ if ($act == "del") {
} }
} }
$shortcut_section = "dhcp"; $shortcut_section = 'dhcpd';
$closehead = false; $closehead = false;
include("head.inc"); include("head.inc");
......
...@@ -306,7 +306,7 @@ if ($_POST) { ...@@ -306,7 +306,7 @@ if ($_POST) {
} }
} }
$shortcut_section = "dhcp"; $shortcut_section = 'dhcpd';
$closehead = false; $closehead = false;
include("head.inc"); include("head.inc");
......
<?php <?php
/* /*
Copyright (C) 2014-2015 Deciso B.V. Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2003-2004 Justin Ellison <justin@techadvise.com>.
Copyright (C) 2010 Ermal Luçi Copyright (C) 2010 Ermal Luçi
Copyright (C) 2003-2004 Justin Ellison <justin@techadvise.com>
All rights reserved. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
...@@ -94,7 +95,7 @@ if ($_POST) { ...@@ -94,7 +95,7 @@ if ($_POST) {
} }
} }
$shortcut_section = "dhcp"; $shortcut_section = 'dhcrelay';
$closehead = false; $closehead = false;
include("head.inc"); include("head.inc");
......
...@@ -345,6 +345,7 @@ if ($_GET['act'] == "del") { ...@@ -345,6 +345,7 @@ if ($_GET['act'] == "del") {
} }
} }
$shortcut_section = 'dhcpd';
$closehead = false; $closehead = false;
include("head.inc"); include("head.inc");
......
...@@ -162,6 +162,8 @@ if ($_POST) { ...@@ -162,6 +162,8 @@ if ($_POST) {
} }
} }
$shortcut_section = 'dhcpd';
include("head.inc"); include("head.inc");
?> ?>
......
...@@ -90,6 +90,7 @@ if ($_POST) { ...@@ -90,6 +90,7 @@ if ($_POST) {
} }
} }
$shortcut_section = 'dhcrelay6';
$closehead = false; $closehead = false;
include("head.inc"); include("head.inc");
......
...@@ -34,7 +34,7 @@ require_once("services.inc"); ...@@ -34,7 +34,7 @@ require_once("services.inc");
require_once("pfsense-utils.inc"); require_once("pfsense-utils.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
$shortcut_section = "dhcp"; $shortcut_section = 'dhcpd';
$leasesfile = "{$g['dhcpd_chroot_path']}/var/db/dhcpd.leases"; $leasesfile = "{$g['dhcpd_chroot_path']}/var/db/dhcpd.leases";
......
...@@ -74,6 +74,8 @@ if (($_GET['deleteip']) && (is_ipaddr($_GET['deleteip']))) { ...@@ -74,6 +74,8 @@ if (($_GET['deleteip']) && (is_ipaddr($_GET['deleteip']))) {
// Load MAC-Manufacturer table // Load MAC-Manufacturer table
$mac_man = load_mac_manufacturer_table(); $mac_man = load_mac_manufacturer_table();
$shortcut_section = 'dhcpd';
include("head.inc"); include("head.inc");
?> ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment