From 6dfc1f8aef2d75f5ca8fe694fb8ef27ef885b12c Mon Sep 17 00:00:00 2001 From: vogelor <vogelor@ispconfig3> Date: Sat, 01 May 2010 18:15:28 -0400 Subject: [PATCH] Added a new module called "domain". With this module you can manage all domains (web + mail). Per default this module is not active. To activate it, you have to change the System Interface Config -> domains -> use the domain module. You also have to activate the domain-module for the admin (and for every client if you want). Important: you can not use this module if you have reseller! --- install/lib/install.lib.php | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/install/lib/install.lib.php b/install/lib/install.lib.php index d19a2dd..6e9379f 100644 --- a/install/lib/install.lib.php +++ b/install/lib/install.lib.php @@ -56,6 +56,10 @@ $FILE = realpath('../install.php'); //** Get distribution identifier +//** IMPORTANT! +// This is the same code as in /server/mods-available/monitor_core_module.inc.php +// So if you change it here, you also have to change it in +// /server/mods-available/monitor_core_module.inc.php! function get_distname() { $distname = ''; @@ -259,10 +263,14 @@ function rf($file){ clearstatcache(); - if(!$fp = fopen ($file, 'rb')){ - ilog('WARNING: could not open file '.$file); + if(is_file($file)) { + if(!$fp = fopen ($file, 'rb')){ + ilog('WARNING: could not open file '.$file); + } + return filesize($file) > 0 ? fread($fp, filesize($file)) : ''; + } else { + return ''; } - return filesize($file) > 0 ? fread($fp, filesize($file)) : ''; } function wf($file, $content){ -- Gitblit v1.9.1