aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tinydns/tinydns_status.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-12-09 04:49:46 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-12-09 04:49:46 +0000
commit21027b49183891f801aa999c90e970a6df3e4a9e (patch)
tree9dde5915d8e3cfa8d82c8a1669731e9fa1a498d8 /packages/tinydns/tinydns_status.php
parent09694af54bb7515f20be8eb51b21d152c05b5935 (diff)
downloadpfsense-packages-21027b49183891f801aa999c90e970a6df3e4a9e.tar.gz
pfsense-packages-21027b49183891f801aa999c90e970a6df3e4a9e.tar.bz2
pfsense-packages-21027b49183891f801aa999c90e970a6df3e4a9e.zip
Default to tinydns_status.php. Redirect to settings page when not configured.
Diffstat (limited to 'packages/tinydns/tinydns_status.php')
-rw-r--r--packages/tinydns/tinydns_status.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/tinydns/tinydns_status.php b/packages/tinydns/tinydns_status.php
index 9c862afe..0093c8aa 100644
--- a/packages/tinydns/tinydns_status.php
+++ b/packages/tinydns/tinydns_status.php
@@ -31,6 +31,10 @@
require("guiconfig.inc");
+/* Defaults to this page but if no settings are present, redirect to setup page */
+if(!$config['installedpackages']['miniupnpd']['config'][0]['iface_array'])
+ Header("Location: /pkg_edit.php?xml=tinydns.xml&id=0");
+
$pgtitle = "TinyDNS: Status";
include("head.inc");
@@ -87,7 +91,7 @@ foreach($config['installedpackages']['tinydnsdomains']['config'] as $ping) {
$inservice = "<FONT COLOR='BLUE'>NO</FONT>";
echo "<tr>";
echo "<td class=\"listlr\">";
- echo "$hostname<br>&nbsp;&nbsp;&nbsp;$ipaddress";
+ echo "$hostname<br>&nbsp;&nbsp;&nbsp;|->&nbsp;$ipaddress";
echo "</td>";
echo "<td class=\"listlr\">";
if(stristr($status,"DOWN"))
@@ -113,7 +117,7 @@ foreach($config['installedpackages']['tinydnsdomains']['config'] as $ping) {
$ipaddress = $row['failoverip'];
$status = file_get_contents("/var/db/pingstatus/$ipaddress");
echo "<tr>";
- echo "<td class=\"listlr\">&nbsp;&nbsp;&nbsp;&nbsp;|->&nbsp;&nbsp;";
+ echo "<td class=\"listlr\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|->&nbsp;&nbsp;";
echo $ipaddress;
if($row['loadbalance'])
echo " (LB)";