From 2cb1563f63386b35a69e460051aa9b4a2851d104 Mon Sep 17 00:00:00 2001
From: ftimme <ft@falkotimme.com>
Date: Wed, 30 May 2012 07:30:44 -0400
Subject: [PATCH] - Added (clickable) placeholders to client messaging function. - Added check so that the client password isn't inserted into the message (for security reasons).

---
 server/mods-available/dns_module.inc.php |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/server/mods-available/dns_module.inc.php b/server/mods-available/dns_module.inc.php
index 4ea5d09..01c4526 100644
--- a/server/mods-available/dns_module.inc.php
+++ b/server/mods-available/dns_module.inc.php
@@ -47,7 +47,11 @@
 	function onInstall() {
 		global $conf;
 		
-		return true;
+		if($conf['services']['dns'] == true) {
+			return true;
+		} else {
+			return false;
+		}
 		
 	}
 	
@@ -115,7 +119,7 @@
 	
 	
 	function restartBind($action = 'restart') {
-		global $app;
+		global $app,$conf;
 		
 		$daemon = '';
 		if(is_file($conf['init_scripts'] . '/' . 'bind9')) {
@@ -133,7 +137,7 @@
 	}
 
 	function restartPowerDNS($action = 'restart') {
-		global $app;
+		global $app,$conf;
 	
 		$app->log("restartPDNS called.",LOGLEVEL_DEBUG);
 
@@ -166,7 +170,7 @@
 */
 		file_put_contents('/etc/powerdns/pdns.d/pdns.ispconfig-axfr',$options."\n");
 
-		daemon= '';
+		$daemon= '';
 		if (is_file($conf['init_scripts'] . '/' . 'powerdns')) {
 			$daemon = 'powerdns';
 		} else {

--
Gitblit v1.9.1