From 476e56c6b8d5fb8999a6008ab3559710101999fa Mon Sep 17 00:00:00 2001 From: pedro_morgan <pedro_morgan@ispconfig3> Date: Sat, 18 Aug 2007 00:33:22 +0000 Subject: [PATCH] Trying to silence e_NOTICE warnings --- interface/lib/classes/tpl_ini.inc.php | 4 ++-- interface/lib/config.inc.php | 20 ++++++++------------ 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 8972114934..25b70a2029 100644 --- a/interface/lib/classes/tpl_ini.inc.php +++ b/interface/lib/classes/tpl_ini.inc.php @@ -85,8 +85,8 @@ if (!defined('vlibIniClassLoaded')) { /* 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 fa7d1405fb..53e7f185c6 100644 --- a/interface/lib/config.inc.php +++ b/interface/lib/config.inc.php @@ -27,21 +27,17 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 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"); +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"; - - -/* - 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'; -- GitLab