Commit db4354306245c26116595a72f40d7a4b57cbf14f
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 | 1 | <?php |
| 2 | - | |
| 3 | 2 | /** |
| 4 | 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 | 24 | // install path |
| 13 | -$default->fileSystemRoot = "/usr/local/www/owl/dms"; | |
| 25 | +$default->fileSystemRoot = "/usr/local/www/dms"; | |
| 14 | 26 | // server settings |
| 15 | 27 | $default->serverName = "change.to.your.hostname"; |
| 16 | 28 | // whether ssl is enabled or not |
| ... | ... | @@ -21,10 +33,10 @@ $default->authenticationClass = "DBAuthenticator"; |
| 21 | 33 | require_once("$default->fileSystemRoot/lib/authentication/$default->authenticationClass.inc"); |
| 22 | 34 | |
| 23 | 35 | // Database info |
| 24 | -$default->dbUser = "dms"; | |
| 25 | -$default->dbPass = "djw9281js"; | |
| 26 | 36 | $default->dbHost = "localhost"; |
| 27 | 37 | $default->dbName = "dms"; |
| 38 | +$default->dbUser = "dms"; | |
| 39 | +$default->dbPass = "pass"; | |
| 28 | 40 | |
| 29 | 41 | // Change this to reflect the database you are using |
| 30 | 42 | //require("$default->fileSystemRoot/phplib/db_pgsql.inc"); |
| ... | ... | @@ -39,7 +51,7 @@ require_once("$default->fileSystemRoot/lib/database/lookup.inc"); |
| 39 | 51 | require_once("$default->fileSystemRoot/lib/System.inc"); |
| 40 | 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 | 55 | $default->organisationID = 1; |
| 44 | 56 | |
| 45 | 57 | if ($default->system->initialised()) { |
| ... | ... | @@ -57,7 +69,7 @@ if ($default->system->initialised()) { |
| 57 | 69 | } else { |
| 58 | 70 | // ldap settings |
| 59 | 71 | $default->ldapServer = "192.168.1.9"; |
| 60 | - $default->ldapRootDn = "o=Medical Research Council"; | |
| 72 | + $default->ldapRootDn = "o=Organisation"; | |
| 61 | 73 | // current supported types=iPlanet, ActiveDirectory; |
| 62 | 74 | $default->ldapServerType = "iPlanet"; |
| 63 | 75 | $default->ldapDomain = "domain.com"; |
| ... | ... | @@ -65,10 +77,10 @@ if ($default->system->initialised()) { |
| 65 | 77 | $default->ldapSearchPassword = "pwd"; |
| 66 | 78 | |
| 67 | 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 | 84 | $default->emailAdminName = "DMS Administrator"; |
| 73 | 85 | |
| 74 | 86 | // directories |
| ... | ... | @@ -77,7 +89,7 @@ if ($default->system->initialised()) { |
| 77 | 89 | $default->uiDirectory = $default->fileSystemRoot . "/presentation/lookAndFeel/knowledgeTree"; |
| 78 | 90 | |
| 79 | 91 | // urls |
| 80 | - $default->rootUrl = "/dms"; | |
| 92 | + $default->rootUrl = ""; | |
| 81 | 93 | $default->graphicsUrl = $default->rootUrl . "/graphics"; |
| 82 | 94 | $default->uiUrl = $default->rootUrl . "/presentation/lookAndFeel/knowledgeTree"; |
| 83 | 95 | |
| ... | ... | @@ -88,4 +100,4 @@ if ($default->system->initialised()) { |
| 88 | 100 | // session timeout (in seconds) |
| 89 | 101 | $default->sessionTimeout = 1200; |
| 90 | 102 | } |
| 91 | 103 | -?> |
| 104 | +?> | |
| 92 | 105 | \ No newline at end of file | ... | ... |