fileSystemRoot = "/usr/local/www/owl/dms"; // server settings $default->serverName = "change.to.your.hostname"; // whether ssl is enabled or not $default->sslEnabled = true; // Change this to reflect the authentication method you are using // valid choices are: DBAuthenticator, LDAPAuthenticator $default->authenticationClass = "DBAuthenticator"; require_once("$default->fileSystemRoot/lib/authentication/$default->authenticationClass.inc"); // Database info $default->dbUser = "dms"; $default->dbPass = "djw9281js"; $default->dbHost = "localhost"; $default->dbName = "dms"; // Change this to reflect the database you are using //require("$default->fileSystemRoot/phplib/db_pgsql.inc"); require_once("$default->fileSystemRoot/phplib/db_mysql.inc"); // single db instantiation require_once("$default->fileSystemRoot/lib/database/db.inc"); $default->db = new Database(); // instantiate system settings class require_once("$default->fileSystemRoot/lib/database/lookup.inc"); require_once("$default->fileSystemRoot/lib/System.inc"); $default->system = new System(); // hack to set org to use $default->organisationID = 1; if ($default->system->initialised()) { $aSettings = array("ldapServer", "ldapRootDn", "ldapServerType", "ldapDomain", "ldapSearchUser", "ldapSearchPassword", "emailServer", "emailFrom", "emailFromName", "emailAdmin", "emailAdminName", "documentRoot", "languageDirectory", "uiDirectory", "rootUrl", "graphicsUrl", "uiUrl", "useFS", "defaultLanguage", "sessionTimeout"); for ($i=0; $i$aSettings[$i] = $default->system->get($aSettings[$i]); } } else { // ldap settings $default->ldapServer = "192.168.1.9"; $default->ldapRootDn = "o=Medical Research Council"; // current supported types=iPlanet, ActiveDirectory; $default->ldapServerType = "iPlanet"; $default->ldapDomain = "domain.com"; $default->ldapSearchUser = "searchUser@domain.com"; $default->ldapSearchPassword = "pwd"; // email settings $default->emailServer = "mail.jamwarehouse.com"; $default->emailFrom = "dms@jamwarehouse.com"; $default->emaiFromName = "MRC Document Management System"; $default->emailAdmin = "dmsHelp@jamwarehouse.com"; $default->emailAdminName = "DMS Administrator"; // directories $default->documentRoot = $default->fileSystemRoot . "/Documents"; $default->languageDirectory = $default->fileSystemRoot . "/locale"; $default->uiDirectory = $default->fileSystemRoot . "/presentation/lookAndFeel/knowledgeTree"; // urls $default->rootUrl = "/dms"; $default->graphicsUrl = $default->rootUrl . "/graphics"; $default->uiUrl = $default->rootUrl . "/presentation/lookAndFeel/knowledgeTree"; // app settings // TODO: in browse- scan current folder and sync db $default->useFS = true; $default->defaultLanguage = "NewEnglish"; // session timeout (in seconds) $default->sessionTimeout = 1200; } ?>