summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 78a3fd0)
raw | patch | inline | side by side (parent: 78a3fd0)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 22 Jun 2005 06:06:10 +0000 (06:06 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 22 Jun 2005 06:06:10 +0000 (06:06 +0000) |
include/functions_setup.inc | patch | blob | history |
index 90427bcdf19795a8a74e932e2412c3a71335cecf..fe42e27e3e06a72f716ba31fbde4014908b8e447 100644 (file)
$replacements['{LDAPHOST}'] = $ldapconf['uri'];
$replacements['{PASSWORD}'] = $ldapconf['password'];
$replacements['{CRYPT}'] = $ldapconf['arr_cryptkeys'][$ldapconf['arr_crypts']];
- $replacements['{SID}\n'] = "";
- $replacements['{RIDBASE}\n'] = "";
+ $replacements['{SID}'] = "";
+ $replacements['{RIDBASE}'] = "";
if($ldapconf['mail'] != "disabled"){
$replacements['{MAILMETHOD}'] = $ldapconf['mail_methods'][$ldapconf['mail']];
}
$possible_plugins['phpgroupware'][]= "'\n.*<tab.*phpgroupware.*>.*\n'i";
/* Header information
- Needed to send the generated gosa.conf to the browser */
+ Needed to send the generated gosa.conf to the browser
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-cache");
} else {
header('Content-Disposition: attachment; filename="gosa.conf"');
}
-
+ */
if(!$fp=fopen(CONFIG_TEMPLATE_DIR."/gosa.conf","r")) {
echo "Can't open file ".CONFIG_TEMPLATE_DIR."/gosa.conf";
} else {
/* Try to find a Samba Domain Objekt */
$ldap->search("(objectClass=sambaDomain)");
-
+
/* Something found ??? so we need to define ridbase an SID by ourselfs */
if($ldap->count()< 1) {
$replacements['{SID}']= "sid=\"123412-11\"";
/* Remove all unused plugins */
- foreach($possible_plugins as $plugin) {
+ foreach($possible_plugins as $key=> $plugin) {
foreach($plugin as $key=>$val) {
if(in_array($plugin,$classes)) {
$str = preg_replace($val,"\n",$str);
}
}
- return ((($str)));
+ return (nl2br(htmlentities($str)));
}