From 4d6ba181c8322b8e694e09623944c70cb87d51d3 Mon Sep 17 00:00:00 2001
From: Scott Ullrich
Date: Fri, 1 Jul 2005 19:00:13 +0000
Subject: Minor code cleanups (style related).
---
usr/local/www/services_dnsmasq.php | 37 ++++++++++++++++-----------------
usr/local/www/services_dnsmasq_edit.php | 21 +++++++++----------
2 files changed, 28 insertions(+), 30 deletions(-)
(limited to 'usr/local/www')
diff --git a/usr/local/www/services_dnsmasq.php b/usr/local/www/services_dnsmasq.php
index 3a1da17..5e0a835 100755
--- a/usr/local/www/services_dnsmasq.php
+++ b/usr/local/www/services_dnsmasq.php
@@ -32,19 +32,18 @@
require("guiconfig.inc");
-$pconfig['enable'] = isset($config['dnsmasq']['enable']);
+$pconfig['enable'] = isset($config['dnsmasq']['enable']);
$pconfig['regdhcp'] = isset($config['dnsmasq']['regdhcp']);
-if (!is_array($config['dnsmasq']['hosts'])) {
+if (!is_array($config['dnsmasq']['hosts']))
$config['dnsmasq']['hosts'] = array();
-}
-if (!is_array($config['dnsmasq']['domainoverrides'])) {
+if (!is_array($config['dnsmasq']['domainoverrides']))
$config['dnsmasq']['domainoverrides'] = array();
-}
hosts_sort();
-$a_hosts = &$config['dnsmasq']['hosts'];
+
+$a_hosts = &$config['dnsmasq']['hosts'];
$a_domainOverrides = &$config['dnsmasq']['domainoverrides'];
if ($_POST) {
@@ -75,7 +74,7 @@ if ($_GET['act'] == "del") {
if ($a_hosts[$_GET['id']]) {
unset($a_hosts[$_GET['id']]);
write_config();
- touch($d_dnsmasqdirty_path);
+ touch($d_hostsdirty_path);
header("Location: services_dnsmasq.php");
exit;
}
@@ -84,7 +83,7 @@ if ($_GET['act'] == "del") {
if ($a_domainOverrides[$_GET['id']]) {
unset($a_domainOverrides[$_GET['id']]);
write_config();
- touch($d_dnsmasqdirty_path);
+ touch($d_hostsdirty_path);
header("Location: services_dnsmasq.php");
exit;
}
@@ -110,7 +109,7 @@ if ($_GET['act'] == "del") {
You must apply the changes in order for them to take effect.");?>
-
+
-
-
+
+
Host |
Domain |
@@ -191,17 +190,17 @@ if ($_GET['act'] == "del") {
-
+
-
+
|
Below you can override an entire domain by specifying an
authoritative dns server to be queried for that domain. |
-
-
-
+
+
Domain |
IP |
@@ -227,8 +226,8 @@ if ($_GET['act'] == "del") {
|
![](plus.gif) |
-
-
+
+