Commit 1c5993985adad73f752838eb34907c3a1a86b051

Authored by Michael Joseph
1 parent 3cf08371

moved authentication class setting from dmsDefaults.php to environment.php; move…

…d serverName and sslEnabled outside db config; removed uMask system setting


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1680 c91229c3-7414-0410-bfa2-8a42b809f60b
config/dmsDefaults.php
@@ -114,12 +114,6 @@ $default->owl_words_lookup_table = "words_lookup"; @@ -114,12 +114,6 @@ $default->owl_words_lookup_table = "words_lookup";
114 //stores help text 114 //stores help text
115 $default->owl_help_table = "help"; 115 $default->owl_help_table = "help";
116 116
117 -  
118 -// Change this to reflect the authentication method you are using  
119 -$default->authenticationClass = "DBAuthenticator";  
120 -  
121 -require_once("$default->fileSystemRoot/lib/authentication/$default->authenticationClass.inc");  
122 -  
123 // logo file that must reside inside lang/graphics directory 117 // logo file that must reside inside lang/graphics directory
124 $default->logo = "kt.jpg"; 118 $default->logo = "kt.jpg";
125 119
config/environment.php
@@ -11,6 +11,13 @@ @@ -11,6 +11,13 @@
11 11
12 // install path 12 // install path
13 $default->fileSystemRoot = "/usr/local/www/owl/dms"; 13 $default->fileSystemRoot = "/usr/local/www/owl/dms";
  14 +// server settings
  15 +$default->serverName = "change.to.your.hostname";
  16 +// whether ssl is enabled or not
  17 +$default->sslEnabled = true;
  18 +// Change this to reflect the authentication method you are using
  19 +$default->authenticationClass = "DBAuthenticator";
  20 +require_once("$default->fileSystemRoot/lib/authentication/$default->authenticationClass.inc");
14 21
15 // Database info 22 // Database info
16 $default->dbUser = "dms"; 23 $default->dbUser = "dms";
@@ -34,20 +41,14 @@ $default->system = new System(); @@ -34,20 +41,14 @@ $default->system = new System();
34 if ($default->system->initialised()) { 41 if ($default->system->initialised()) {
35 $aSettings = array("ldapServer", "ldapRootDn", "emailServer", "emailFrom", "emailFromName", 42 $aSettings = array("ldapServer", "ldapRootDn", "emailServer", "emailFrom", "emailFromName",
36 "emailAdmin", "emailAdminName", 43 "emailAdmin", "emailAdminName",
37 - "serverName", "documentRoot", "languageDirectory",  
38 - "uiDirectory", "uMask", "rootUrl", "graphicsUrl", "uiUrl", "useFS", "defaultLanguage",  
39 - "sessionTimeout", "sslEnabled"); 44 + "documentRoot", "languageDirectory",
  45 + "uiDirectory", "rootUrl", "graphicsUrl", "uiUrl", "useFS", "defaultLanguage",
  46 + "sessionTimeout");
40 47
41 for ($i=0; $i<count($aSettings); $i++) { 48 for ($i=0; $i<count($aSettings); $i++) {
42 - if ($aSettings[$i] == "uMask") {  
43 - $default->$aSettings[$i] = $default->system->getInt($aSettings[$i]);  
44 - } else {  
45 - $default->$aSettings[$i] = $default->system->get($aSettings[$i]);  
46 - } 49 + $default->$aSettings[$i] = $default->system->get($aSettings[$i]);
47 } 50 }
48 } else { 51 } else {
49 - // TODO: redirect to system setup form  
50 -  
51 // ldap settings 52 // ldap settings
52 $default->ldapServer = "192.168.1.9"; 53 $default->ldapServer = "192.168.1.9";
53 $default->ldapRootDn = "o=Medical Research Council"; 54 $default->ldapRootDn = "o=Medical Research Council";
@@ -59,13 +60,10 @@ if ($default-&gt;system-&gt;initialised()) { @@ -59,13 +60,10 @@ if ($default-&gt;system-&gt;initialised()) {
59 $default->emailAdmin = "dmsHelp@jamwarehouse.com"; 60 $default->emailAdmin = "dmsHelp@jamwarehouse.com";
60 $default->emailAdminName = "DMS Administrator"; 61 $default->emailAdminName = "DMS Administrator";
61 62
62 - $default->serverName = "ktdev.jamwarehouse.com";  
63 -  
64 // directories 63 // directories
65 $default->documentRoot = "/usr/local/www/owl/dms/Documents"; 64 $default->documentRoot = "/usr/local/www/owl/dms/Documents";
66 $default->languageDirectory = $default->fileSystemRoot . "/locale"; 65 $default->languageDirectory = $default->fileSystemRoot . "/locale";
67 $default->uiDirectory = $default->fileSystemRoot . "/presentation/lookAndFeel/knowledgeTree"; 66 $default->uiDirectory = $default->fileSystemRoot . "/presentation/lookAndFeel/knowledgeTree";
68 - $default->uMask = "0755";  
69 67
70 // urls 68 // urls
71 $default->rootUrl = "/dms"; 69 $default->rootUrl = "/dms";
@@ -78,7 +76,5 @@ if ($default-&gt;system-&gt;initialised()) { @@ -78,7 +76,5 @@ if ($default-&gt;system-&gt;initialised()) {
78 $default->defaultLanguage = "NewEnglish"; 76 $default->defaultLanguage = "NewEnglish";
79 // session timeout (in seconds) 77 // session timeout (in seconds)
80 $default->sessionTimeout = 1200; 78 $default->sessionTimeout = 1200;
81 - // whether ssl is enabled or not  
82 - $default->sslEnabled = true;  
83 } 79 }
84 ?> 80 ?>