Die Datei config.inc.php wird während der Installationsroutine erstellt. Darin werden wichtige Parameter für moregroupware gespeichert. Alle Parameter sind im Array $appconf gespeichert. Hier sehen Sie ein Beispiel:
<?php
// this file is auto-generated by setup, only modify if you are sure what you do
// Config File
// Moregroupware.org
// programmed by Marc Logemann
// 01/04/01 (c)
$appconf["dbvendor"] = "mysql";
$appconf["dbhost"] = "localhost";
$appconf["dbuser"] = "mgwuser";
$appconf["dbpassword"] = "mgwpass";
$appconf["dbname"] = "moregw";
$appconf["rooturl"] = "http://localhost/moregroupware";
$appconf["rootpath"] = "/home/apache/moregroupware";
$appconf["theme"] = "default";
$appconf["auth_method"]= "sql";
$appconf["auth_ldaptype"]= "0";//0 for openldap; 1 for ADSI
$appconf["auth_ldaphost"] = "";
$appconf["auth_ldapbase"] = "";
$appconf["auth_ldapuid"] = "";
$appconf["auth_ldappasswd"] = "";
$appconf["auth_ldapsuffixe"] = "";
$appconf["create_accounts_on_login"] = 0;
$appconf["mgw_version"] = "";
$appconf["mgw_releasedate"] = "";
$appconf["def_language"] = "de";
$appconf["def_charset"] = "iso-8859-1";
$appconf["html_compressor"] = false;
$appconf["html_compressor_debug"] = false;
define("SMARTY_DIR", "/home/apache/mgw/include/smarty/");
define("ROOTPATH","/home/apache/mgw");
define("INCLUDEPATH","/home/apache/mgw/include/");
?>
Wissenswert ist, das Ihr Script, das mit den oben beschriebenen Zeilen beginnt, Zugang zum Array $appconf hat. Sie können benötigte Einstellungen direkt einbinden, wie z.B. $appconf["rooturl"] oder $appconf["rootpath"]. Sie können auch über die Konstanten ROOTPATH und INCLUDEPATH zurückgreifen, um Ihre Dateien einzubinden.