support dns options in dnsmasq configuration

This commit is contained in:
Yusnel Rojas Garcia
2019-10-11 13:24:22 -04:00
parent cf69881767
commit 4d45afa27b
3 changed files with 50 additions and 4 deletions

View File

@@ -63,7 +63,22 @@
</select>
</div>
</div>
<?php if (!RASPI_MONITOR_ENABLED) : ?>
<div class="row">
<div class="form-group col-md-4">
<label for="code"><?php echo _("DNS Server 1"); ?></label>
<input type="text" class="form-control"name="DNS1" value="<?php echo htmlspecialchars($DNS1, ENT_QUOTES); ?>" />
</div>
</div>
<div class="row">
<div class="form-group col-md-4">
<label for="code"><?php echo _("DNS Server 2"); ?></label>
<input type="text" class="form-control" name="DNS2" value="<?php echo htmlspecialchars($DNS2, ENT_QUOTES); ?>" />
</div>
</div>
<?php if (!RASPI_MONITOR_ENABLED) : ?>
<input type="submit" class="btn btn-outline btn-primary" value="<?php echo _("Save settings"); ?>" name="savedhcpdsettings" />
<?php if ($dnsmasq_state) : ?>
<input type="submit" class="btn btn-warning" value="<?php echo _("Stop dnsmasq") ?>" name="stopdhcpd" />
@@ -94,11 +109,11 @@
</thead>
<tbody>
<?php foreach ($leases as $lease) : ?>
<?php foreach (explode(' ', $lease) as $prop) : ?>
<tr>
<td><?php echo htmlspecialchars($prop, ENT_QUOTES) ?></td>
<?php foreach (explode(' ', $lease) as $prop) : ?>
<td><?php echo htmlspecialchars($prop, ENT_QUOTES) ?></td>
<?php endforeach ?>
</tr>
<?php endforeach ?>
<?php endforeach ?>
</tbody>
</table>