From 476e56c6b8d5fb8999a6008ab3559710101999fa Mon Sep 17 00:00:00 2001
From: pedro_morgan <pedro_morgan@ispconfig3>
Date: Fri, 17 Aug 2007 20:33:22 -0400
Subject: [PATCH] Trying to silence e_NOTICE warnings

---
 interface/lib/config.inc.php          |   20 ++++++++------------
 interface/lib/classes/tpl_ini.inc.php |    4 ++--
 2 files changed, 10 insertions(+), 14 deletions(-)

diff --git a/interface/lib/classes/tpl_ini.inc.php b/interface/lib/classes/tpl_ini.inc.php
index 8972114..25b70a2 100644
--- a/interface/lib/classes/tpl_ini.inc.php
+++ b/interface/lib/classes/tpl_ini.inc.php
@@ -85,8 +85,8 @@
 
 
                         /* the following are only used by the vlibTemplateCache class. */
-
-                        'CACHE_DIRECTORY' => $conf["template"]["cache_dir"],
+                        // TODO: triggers a notice as its not set
+                        'CACHE_DIRECTORY' => $conf['template']['cache_dir'],
                                                                    // Directory where the cached filesystem
                                                                    // will be set up (full path, and must be writable)
                                                                    // '/' or '\' off the end of the directory.
diff --git a/interface/lib/config.inc.php b/interface/lib/config.inc.php
index fa7d140..53e7f18 100644
--- a/interface/lib/config.inc.php
+++ b/interface/lib/config.inc.php
@@ -27,21 +27,17 @@
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 
-Header("Pragma: no-cache");
-Header("Cache-Control: no-store, no-cache, max-age=0, must-revalidate");
-Header("Content-Type: text/html");
-
-ini_set('register_globals',0);
-
-$conf["app_title"] = "ISPConfig";
-$conf["app_version"] = "3.0.0";
-$conf["modules_available"] 	= "admin,mail,sites,monitor,client,dns";
+Header('Pragma: no-cache');
+Header('Cache-Control: no-store, no-cache, max-age=0, must-revalidate');
+Header('Content-Type: text/html');
 
 
-/*
-        Database Settings
-*/
+//** Key paramaters
+$conf['app_title'] = 'ISPConfig';
+$conf['app_version'] = '3.0.0';
+$conf['modules_available'] 	= 'admin,mail,sites,monitor,client,dns';
 
+//** Database Settings
 $conf["db_type"]			= 'mysql';
 $conf["db_host"]			= 'localhost';
 $conf["db_database"]		= 'ispconfig3';

--
Gitblit v1.9.1