Commit db4354306245c26116595a72f40d7a4b57cbf14f

Authored by Michael Joseph
1 parent 827503ee

added copyright and gpl notice

genericised environment information


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2560 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 28 additions and 16 deletions
config/environment.php
1 <?php 1 <?php
2 -  
3 /** 2 /**
4 * $Id$ 3 * $Id$
5 * 4 *
6 - * Stores the environment settings for the DMS application 5 + * Defines KnowledgeTree application environment settings.
  6 + *
  7 + * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
7 * 8 *
8 - * Copyright (c) 1999-2002 The Owl Project Team  
9 - * Licensed under the GNU GPL. For full terms see the file COPYING.  
10 - */ 9 + * This program is free software; you can redistribute it and/or modify
  10 + * it under the terms of the GNU General Public License as published by
  11 + * the Free Software Foundation; either version 2 of the License, or
  12 + * (at your option) any later version.
  13 + *
  14 + * This program is distributed in the hope that it will be useful,
  15 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17 + * GNU General Public License for more details.
  18 + *
  19 + * You should have received a copy of the GNU General Public License
  20 + * along with this program; if not, write to the Free Software
  21 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  22 + */
11 23
12 // install path 24 // install path
13 -$default->fileSystemRoot = "/usr/local/www/owl/dms"; 25 +$default->fileSystemRoot = "/usr/local/www/dms";
14 // server settings 26 // server settings
15 $default->serverName = "change.to.your.hostname"; 27 $default->serverName = "change.to.your.hostname";
16 // whether ssl is enabled or not 28 // whether ssl is enabled or not
@@ -21,10 +33,10 @@ $default-&gt;authenticationClass = &quot;DBAuthenticator&quot;; @@ -21,10 +33,10 @@ $default-&gt;authenticationClass = &quot;DBAuthenticator&quot;;
21 require_once("$default->fileSystemRoot/lib/authentication/$default->authenticationClass.inc"); 33 require_once("$default->fileSystemRoot/lib/authentication/$default->authenticationClass.inc");
22 34
23 // Database info 35 // Database info
24 -$default->dbUser = "dms";  
25 -$default->dbPass = "djw9281js";  
26 $default->dbHost = "localhost"; 36 $default->dbHost = "localhost";
27 $default->dbName = "dms"; 37 $default->dbName = "dms";
  38 +$default->dbUser = "dms";
  39 +$default->dbPass = "pass";
28 40
29 // Change this to reflect the database you are using 41 // Change this to reflect the database you are using
30 //require("$default->fileSystemRoot/phplib/db_pgsql.inc"); 42 //require("$default->fileSystemRoot/phplib/db_pgsql.inc");
@@ -39,7 +51,7 @@ require_once(&quot;$default-&gt;fileSystemRoot/lib/database/lookup.inc&quot;); @@ -39,7 +51,7 @@ require_once(&quot;$default-&gt;fileSystemRoot/lib/database/lookup.inc&quot;);
39 require_once("$default->fileSystemRoot/lib/System.inc"); 51 require_once("$default->fileSystemRoot/lib/System.inc");
40 $default->system = new System(); 52 $default->system = new System();
41 53
42 -// hack to set org to use 54 +// hack to set org to use for dashboard greeting
43 $default->organisationID = 1; 55 $default->organisationID = 1;
44 56
45 if ($default->system->initialised()) { 57 if ($default->system->initialised()) {
@@ -57,7 +69,7 @@ if ($default-&gt;system-&gt;initialised()) { @@ -57,7 +69,7 @@ if ($default-&gt;system-&gt;initialised()) {
57 } else { 69 } else {
58 // ldap settings 70 // ldap settings
59 $default->ldapServer = "192.168.1.9"; 71 $default->ldapServer = "192.168.1.9";
60 - $default->ldapRootDn = "o=Medical Research Council"; 72 + $default->ldapRootDn = "o=Organisation";
61 // current supported types=iPlanet, ActiveDirectory; 73 // current supported types=iPlanet, ActiveDirectory;
62 $default->ldapServerType = "iPlanet"; 74 $default->ldapServerType = "iPlanet";
63 $default->ldapDomain = "domain.com"; 75 $default->ldapDomain = "domain.com";
@@ -65,10 +77,10 @@ if ($default-&gt;system-&gt;initialised()) { @@ -65,10 +77,10 @@ if ($default-&gt;system-&gt;initialised()) {
65 $default->ldapSearchPassword = "pwd"; 77 $default->ldapSearchPassword = "pwd";
66 78
67 // email settings 79 // email settings
68 - $default->emailServer = "mail.jamwarehouse.com";  
69 - $default->emailFrom = "dms@jamwarehouse.com";  
70 - $default->emaiFromName = "MRC Document Management System";  
71 - $default->emailAdmin = "dmsHelp@jamwarehouse.com"; 80 + $default->emailServer = "mail.domain.com";
  81 + $default->emailFrom = "kt@domain.com";
  82 + $default->emaiFromName = "KnowledgeTree Document Management System";
  83 + $default->emailAdmin = "kt@jamwarehouse.com";
72 $default->emailAdminName = "DMS Administrator"; 84 $default->emailAdminName = "DMS Administrator";
73 85
74 // directories 86 // directories
@@ -77,7 +89,7 @@ if ($default-&gt;system-&gt;initialised()) { @@ -77,7 +89,7 @@ if ($default-&gt;system-&gt;initialised()) {
77 $default->uiDirectory = $default->fileSystemRoot . "/presentation/lookAndFeel/knowledgeTree"; 89 $default->uiDirectory = $default->fileSystemRoot . "/presentation/lookAndFeel/knowledgeTree";
78 90
79 // urls 91 // urls
80 - $default->rootUrl = "/dms"; 92 + $default->rootUrl = "";
81 $default->graphicsUrl = $default->rootUrl . "/graphics"; 93 $default->graphicsUrl = $default->rootUrl . "/graphics";
82 $default->uiUrl = $default->rootUrl . "/presentation/lookAndFeel/knowledgeTree"; 94 $default->uiUrl = $default->rootUrl . "/presentation/lookAndFeel/knowledgeTree";
83 95
@@ -88,4 +100,4 @@ if ($default-&gt;system-&gt;initialised()) { @@ -88,4 +100,4 @@ if ($default-&gt;system-&gt;initialised()) {
88 // session timeout (in seconds) 100 // session timeout (in seconds)
89 $default->sessionTimeout = 1200; 101 $default->sessionTimeout = 1200;
90 } 102 }
91 -?> 103 -?>
  104 +?>
92 \ No newline at end of file 105 \ No newline at end of file