Commit cf8a0c7a112f8d9437ca215ad4dbe070da7cf7ef

Authored by nbm
1 parent 562d6b30

sslEnabled and rootUrl are now automatically determined. Reorganise and

header-ise the sections of configuration to help people figure out what
they might need to change.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3225 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 40 additions and 13 deletions
config/environment.php
... ... @@ -21,6 +21,11 @@
21 21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 22 */
23 23  
  24 +// ----------------------------------------------------------------
  25 +// The options in this section should automatically be detected by
  26 +// KnowledgeTree.
  27 +// ----------------------------------------------------------------
  28 +
24 29 // install path (file path)
25 30 //
26 31 // Leave commented to have it automatically detected.
... ... @@ -33,15 +38,27 @@
33 38 //
34 39 // $default->serverName = "";
35 40  
36   -// whether ssl is enabled or not
37   -$default->sslEnabled = false;
  41 +// Whether ssl is enabled or not
  42 +//
  43 +// Leave commented to have it automatically detected.
  44 +//
  45 +//$default->sslEnabled = false;
38 46  
39   -// Change this to reflect the authentication method you are using
40   -// valid choices are: DBAuthenticator, LDAPAuthenticator
41   -$default->authenticationClass = "DBAuthenticator";
  47 +// Path to the web application from the root of the web site.
  48 +// If KT is at http://example.org/foo/, then rootUrl should be '/foo'
  49 +//
  50 +// Leave commented to have it automatically detected.
  51 +//
  52 +//$default->rootUrl = "";
42 53  
43   -// enable folder hiding flag
44   -$default->folderHidingFlag = 1;
  54 +// ----------------------------------------------------------------
  55 +// At a minimum, you may need to change some of settings in this
  56 +// section.
  57 +// ----------------------------------------------------------------
  58 +
  59 +// Change this to reflect the database you are using
  60 +// currently mysql is the only supported type
  61 +$default->dbType = "mysql";
45 62  
46 63 // Database info
47 64 $default->dbHost = "localhost";
... ... @@ -49,9 +66,16 @@ $default->dbName = "dms";
49 66 $default->dbUser = "dms";
50 67 $default->dbPass = "pass";
51 68  
52   -// Change this to reflect the database you are using
53   -// currently mysql is the only supported type
54   -$default->dbType = "mysql";
  69 +// ----------------------------------------------------------------
  70 +// This section is for more esoteric settings.
  71 +// ----------------------------------------------------------------
  72 +
  73 +// Change this to reflect the authentication method you are using
  74 +// valid choices are: DBAuthenticator, LDAPAuthenticator
  75 +$default->authenticationClass = "DBAuthenticator";
  76 +
  77 +// enable folder hiding flag
  78 +$default->folderHidingFlag = 1;
55 79  
56 80 // default language
57 81 $default->defaultLanguage = "en";
... ... @@ -68,6 +92,10 @@ $default->organisationID = 1;
68 92 // $default->scrollingNews = true;
69 93 $default->scrollingNews = false;
70 94  
  95 +// If you don't require all documents to have all their generic metadata
  96 +// filled in, then set $default->genericMetaDataRequired = false;
  97 +$default->genericMetaDataRequired = true;
  98 +
71 99 // ----------------------------------------------------------------
72 100 // WARNING: Settings below here may be overridden if using database
73 101 // configuration
... ... @@ -95,11 +123,10 @@ $default->emailAdmin = "kt@jamwarehouse.com";
95 123 $default->emailAdminName = "DMS Administrator";
96 124  
97 125 // directories
98   -$default->documentRoot = $default->fileSystemRoot . "/Documents";
99   -$default->uiDirectory = $default->fileSystemRoot . "/presentation/lookAndFeel/knowledgeTree";
  126 +$default->documentRoot = $default->fileSystemRoot . "/Documents";
  127 +$default->uiDirectory = $default->fileSystemRoot . "/presentation/lookAndFeel/knowledgeTree";
100 128  
101 129 // urls
102   -$default->rootUrl = "";
103 130 $default->graphicsUrl = $default->rootUrl . "/graphics";
104 131 $default->uiUrl = $default->rootUrl . "/presentation/lookAndFeel/knowledgeTree";
105 132  
... ...