73 |
73 |
}
|
74 |
74 |
|
75 |
75 |
$static_map_enabled=isset($config['dhcpd'][$if]['staticarp']);
|
76 |
|
|
|
76 |
$netboot_enabled=isset($config['dhcpd'][$if]['netboot']);
|
77 |
77 |
$a_maps = &$config['dhcpd'][$if]['staticmap'];
|
78 |
78 |
$ifcfgip = get_interface_ip($if);
|
79 |
79 |
$ifcfgsn = get_interface_subnet($if);
|
... | ... | |
87 |
87 |
$pconfig['mac'] = $a_maps[$id]['mac'];
|
88 |
88 |
$pconfig['hostname'] = $a_maps[$id]['hostname'];
|
89 |
89 |
$pconfig['ipaddr'] = $a_maps[$id]['ipaddr'];
|
|
90 |
$pconfig['netbootfile'] = $a_maps[$id]['netbootfile'];
|
90 |
91 |
$pconfig['descr'] = $a_maps[$id]['descr'];
|
91 |
92 |
} else {
|
92 |
93 |
$pconfig['mac'] = $_GET['mac'];
|
93 |
94 |
$pconfig['hostname'] = $_GET['hostname'];
|
|
95 |
$pconfig['netbootfile'] = $_GET['netbootfile'];
|
94 |
96 |
$pconfig['descr'] = $_GET['descr'];
|
95 |
97 |
}
|
96 |
98 |
|
... | ... | |
156 |
158 |
$mapent['ipaddr'] = $_POST['ipaddr'];
|
157 |
159 |
$mapent['hostname'] = $_POST['hostname'];
|
158 |
160 |
$mapent['descr'] = $_POST['descr'];
|
|
161 |
$mapent['netbootfile'] = $_POST['netbootfile'];
|
159 |
162 |
|
160 |
163 |
if (isset($id) && $a_maps[$id])
|
161 |
164 |
$a_maps[$id] = $mapent;
|
... | ... | |
219 |
222 |
<input name="hostname" type="text" class="formfld unknown" id="hostname" size="20" value="<?=htmlspecialchars($pconfig['hostname']);?>">
|
220 |
223 |
<br> <span class="vexpl">Name of the host, without domain part.</span></td>
|
221 |
224 |
</tr>
|
|
225 |
<?php if($netboot_enabled) { ?>
|
|
226 |
<tr>
|
|
227 |
<td width="22%" valign="top" class="vncell">Netboot filename</td>
|
|
228 |
<td width="78%" class="vtable">
|
|
229 |
<input name="netbootfile" type="text" class="formfld unknown" id="netbootfile" size="20" value="<?=htmlspecialchars($pconfig['netbootfile']);?>">
|
|
230 |
<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>
|
|
231 |
</tr>
|
|
232 |
<?php } ?>
|
222 |
233 |
<tr>
|
223 |
234 |
<td width="22%" valign="top" class="vncell">Description</td>
|
224 |
235 |
<td width="78%" class="vtable">
|