summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7d16bba)
raw | patch | inline | side by side (parent: 7d16bba)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 31 May 2005 11:42:39 +0000 (11:42 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 31 May 2005 11:42:39 +0000 (11:42 +0000) |
include/setup_checks.inc | patch | blob | history |
index 91b45e51391682603b65116169f77c8650a28e7d..5c61c691bf3bc77074aa16178cbcbf02ef9fc563 100644 (file)
--- a/include/setup_checks.inc
+++ b/include/setup_checks.inc
$replacements['{CRYPT}'] = $ldapconf['arr_cryptkeys'][$ldapconf['arr_crypts']];
$replacements['{SID}\n'] = "";
$replacements['{RIDBASE}\n'] = "";
- if($ldapconf['mail'] == "disabled")
- $replacements['{MAILMETHOD}'] = "";
- else
+ if($ldapconf['mail'] != "disabled"){
$replacements['{MAILMETHOD}'] = $ldapconf['mail_methods'][$ldapconf['mail']];
- if($ldapconf['mail'] == "disabled")
+ }
$replacements['{SMBHASH}'] = $pwdhash;
$replacements['{GOVERNMENTMODE}']= "false";
$replacements['{kolabAccount}'] = "";
/* This array contains all preg_replace syntax to delete all unused plugins
THE kEY MUST BE THE CLASSNAME so we can check it with $ldapconf['classes'] */
+
$possible_plugins['fonreport'][] = "'\n.*<plugin.*fonreport+.*\n.*>.*\n'i";
$possible_plugins['phoneaccount'][]= "'\n.*<tab.*phoneAccount.*>.*\n'i";
$possible_plugins['logview'][] = "'\n.*<plugin.*logview+.*\n.*>.*\n'i";
$str = preg_replace("/".$key."/",$val,$str);
}
+ if($ldapconf['mail'] == "disabled"){
+ $str = str_replace("mailMethod=\"{MAILMETHOD}\"","",$str);
+ }
+
+
/* Remove all unused plugins */
foreach($possible_plugins as $plugin) {
foreach($plugin as $key=>$val) {