summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcp_edit.php
diff options
context:
space:
mode:
authorAnthony Wrather <github@anthonywrather.me.uk>2011-12-01 17:33:27 +0000
committerAnthony Wrather <github@anthonywrather.me.uk>2011-12-01 17:33:27 +0000
commita2578c27479c1afad0dfbeb6dba484adcc10473a (patch)
treeab5d525e4c28a614e7cb112e215f3b2aabb2f137 /usr/local/www/services_dhcp_edit.php
parent769891b5a48f10e1feb5f017fa7e3269168e8c44 (diff)
downloadpfsense-a2578c27479c1afad0dfbeb6dba484adcc10473a.zip
pfsense-a2578c27479c1afad0dfbeb6dba484adcc10473a.tar.gz
Updated DHCP IPv4 and IPv6 to allow global and host based filename and root-path.
Diffstat (limited to 'usr/local/www/services_dhcp_edit.php')
-rwxr-xr-xusr/local/www/services_dhcp_edit.php19
1 files changed, 14 insertions, 5 deletions
diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php
index 15e1fee..2869ba2 100755
--- a/usr/local/www/services_dhcp_edit.php
+++ b/usr/local/www/services_dhcp_edit.php
@@ -87,12 +87,14 @@ if (isset($id) && $a_maps[$id]) {
$pconfig['mac'] = $a_maps[$id]['mac'];
$pconfig['hostname'] = $a_maps[$id]['hostname'];
$pconfig['ipaddr'] = $a_maps[$id]['ipaddr'];
- $pconfig['netbootfile'] = $a_maps[$id]['netbootfile'];
+ $pconfig['filename'] = $a_maps[$id]['filename'];
+ $pconfig['rootpath'] = $a_maps[$id]['rootpath'];
$pconfig['descr'] = $a_maps[$id]['descr'];
} else {
$pconfig['mac'] = $_GET['mac'];
$pconfig['hostname'] = $_GET['hostname'];
- $pconfig['netbootfile'] = $_GET['netbootfile'];
+ $pconfig['filename'] = $_GET['filename'];
+ $pconfig['rootpath'] = $_GET['rootpath'];
$pconfig['descr'] = $_GET['descr'];
}
@@ -166,7 +168,8 @@ if ($_POST) {
$mapent['ipaddr'] = $_POST['ipaddr'];
$mapent['hostname'] = $_POST['hostname'];
$mapent['descr'] = $_POST['descr'];
- $mapent['netbootfile'] = $_POST['netbootfile'];
+ $mapent['filename'] = $_POST['filename'];
+ $mapent['rootpath'] = $_POST['rootpath'];
if (isset($id) && $a_maps[$id])
$a_maps[$id] = $mapent;
@@ -232,11 +235,17 @@ include("head.inc");
</tr>
<?php if($netboot_enabled) { ?>
<tr>
- <td width="22%" valign="top" class="vncell">Netboot filename</td>
+ <td width="22%" valign="top" class="vncell">Netboot Filename</td>
<td width="78%" class="vtable">
- <input name="netbootfile" type="text" class="formfld unknown" id="netbootfile" size="20" value="<?=htmlspecialchars($pconfig['netbootfile']);?>">
+ <input name="filename" type="text" class="formfld unknown" id="filename" size="20" value="<?=htmlspecialchars($pconfig['filename']);?>">
<br> <span class="vexpl">Name of the file that should be loaded when this host boots off of the network, overrides setting on main page.</span></td>
</tr>
+ <tr>
+ <td width="22%" valign="top" class="vncell">Root Path</td>
+ <td width="78%" class="vtable">
+ <input name="rootpath" type="text" class="formfld unknown" id="rootpath" size="90" value="<?=htmlspecialchars($pconfig['rootpath']);?>">
+ <br> <span class="vexpl"><?=gettext("Enter the"); ?> <b><?=gettext("root-path"); ?></b>-<?=gettext("string");?>, overrides setting on main page.</span></td>
+ </tr>
<?php } ?>
<tr>
<td width="22%" valign="top" class="vncell"><?=gettext("Description");?></td>
OpenPOWER on IntegriCloud