environment.php
3.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
/**
* $Id$
*
* Stores the environment settings for the DMS application
*
* Copyright (c) 1999-2002 The Owl Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*/
// install path
$default->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<count($aSettings); $i++) {
$default->$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;
}
?>