From fb66b7870bce2b5f04cbaee82042b016b0de46b5 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Wed, 17 Dec 2008 08:05:19 -0500
Subject: [PATCH] - Added Warning message when network configuration is disabled. - Added some general php settings to config.inc.php

---
 server/plugins-available/network_settings_plugin.inc.php |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/server/plugins-available/network_settings_plugin.inc.php b/server/plugins-available/network_settings_plugin.inc.php
index 866e37c..53619b2 100644
--- a/server/plugins-available/network_settings_plugin.inc.php
+++ b/server/plugins-available/network_settings_plugin.inc.php
@@ -122,6 +122,12 @@
 			$app->log("Changed Network settings",LOGLEVEL_DEBUG);
 			
 			exec('/etc/init.d/networking force-reload');
+		} else {
+			if(is_file('/etc/debian_version')) {
+				$app->log("Network configuration disabled in server settings.",LOGLEVEL_WARN);
+			} else {
+				$app->log("Network configuration not available for this linux distribution.",LOGLEVEL_DEBUG);
+			}
 		}
 		
 	}

--
Gitblit v1.9.1