Commit 2e734b67d14b4d52cf9d0d68c47c942eacec87ab

Authored by michael
1 parent 09cc79a4

move db instantiation code to environment

added sitemap entries for managing categories and document types
fixed sitemap default page operation


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1087 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 8 additions and 17 deletions
config/dmsDefaults.php
@@ -110,12 +110,7 @@ $default->owl_words_lookup_table = "words_lookup"; @@ -110,12 +110,7 @@ $default->owl_words_lookup_table = "words_lookup";
110 //require_once("$default->fileSystemRoot/lib/LDAPAuthenticator.inc"); 110 //require_once("$default->fileSystemRoot/lib/LDAPAuthenticator.inc");
111 //require_once("$default->fileSystemRoot/lib/Authenticator.inc"); 111 //require_once("$default->fileSystemRoot/lib/Authenticator.inc");
112 $default->authenticationClass = "DBAuthenticator"; 112 $default->authenticationClass = "DBAuthenticator";
113 -/*  
114 -echo "<pre>";  
115 -print_r($default);  
116 -echo "</pre>";  
117 -exit;  
118 -*/ 113 +
119 require_once("$default->fileSystemRoot/lib/authentication/$default->authenticationClass.inc"); 114 require_once("$default->fileSystemRoot/lib/authentication/$default->authenticationClass.inc");
120 115
121 // logo file that must reside inside lang/graphics directory 116 // logo file that must reside inside lang/graphics directory
@@ -124,14 +119,6 @@ $default-&gt;logo = &quot;kt.jpg&quot;; @@ -124,14 +119,6 @@ $default-&gt;logo = &quot;kt.jpg&quot;;
124 $default->version = "owl-dms 1.0 @build-date@"; 119 $default->version = "owl-dms 1.0 @build-date@";
125 $default->phpversion = "4.0.2"; 120 $default->phpversion = "4.0.2";
126 121
127 -// Change this to reflect the database you are using  
128 -//require("$default->fileSystemRoot/phplib/db_pgsql.inc");  
129 -require_once("$default->fileSystemRoot/phplib/db_mysql.inc");  
130 -  
131 -// single db instantiation  
132 -require_once("$default->fileSystemRoot/lib/database/db.inc");  
133 -$default->db = new Database();  
134 -  
135 // define site mappings 122 // define site mappings
136 require_once("$default->fileSystemRoot/lib/session/SiteMap.inc"); 123 require_once("$default->fileSystemRoot/lib/session/SiteMap.inc");
137 $default->siteMap = new SiteMap(false); 124 $default->siteMap = new SiteMap(false);
@@ -162,6 +149,11 @@ $default-&gt;siteMap-&gt;addPage(&quot;modifyFolderCollaboration&quot;, &quot;/presentation/lookAndFe @@ -162,6 +149,11 @@ $default-&gt;siteMap-&gt;addPage(&quot;modifyFolderCollaboration&quot;, &quot;/presentation/lookAndFe
162 $default->siteMap->addPage("addFolderCollaboration", "/presentation/lookAndFeel/knowledgeTree/foldermanagement/addFolderCollaborationBL.php", "Manage Documents", User, "", false); 149 $default->siteMap->addPage("addFolderCollaboration", "/presentation/lookAndFeel/knowledgeTree/foldermanagement/addFolderCollaborationBL.php", "Manage Documents", User, "", false);
163 $default->siteMap->addPage("deleteFolderCollaboration", "/presentation/lookAndFeel/knowledgeTree/foldermanagement/deleteFolderCollaborationBL.php", "Manage Documents", User, "", false); 150 $default->siteMap->addPage("deleteFolderCollaboration", "/presentation/lookAndFeel/knowledgeTree/foldermanagement/deleteFolderCollaborationBL.php", "Manage Documents", User, "", false);
164 151
  152 +// category management
  153 +$default->siteMap->addPage("manageCategories", "/presentation/lookAndFeel/knowledgeTree/administration/manageCategoriesBL.php", "Manage Categories", SysAdmin, "Manage Categories");
  154 +// document type management
  155 +$default->siteMap->addPage("manageDocumentTypes", "/presentation/lookAndFeel/knowledgeTree/administration/manageDocumentTypesBL.php?", "Manage Document Types", SysAdmin, "Manage Document Types");
  156 +
165 // pages for administration section 157 // pages for administration section
166 $default->siteMap->addDefaultPage("administration", "/presentation/lookAndFeel/knowledgeTree/administration/admin.php", "Administration", UnitAdmin, "Administration"); 158 $default->siteMap->addDefaultPage("administration", "/presentation/lookAndFeel/knowledgeTree/administration/admin.php", "Administration", UnitAdmin, "Administration");
167 $default->siteMap->addPage("userManagement", "/presentation/lookAndFeel/knowledgeTree/administration/admin.php?sectionName=userAdministration", "Administration", UnitAdmin, "User Management"); 159 $default->siteMap->addPage("userManagement", "/presentation/lookAndFeel/knowledgeTree/administration/admin.php?sectionName=userAdministration", "Administration", UnitAdmin, "User Management");
@@ -208,11 +200,10 @@ $default-&gt;siteMap-&gt;addPage(&quot;editRoleSuccess&quot;, &quot;/presentation/lookAndFeel/knowled @@ -208,11 +200,10 @@ $default-&gt;siteMap-&gt;addPage(&quot;editRoleSuccess&quot;, &quot;/presentation/lookAndFeel/knowled
208 $default->siteMap->addPage("removeRole", "/presentation/lookAndFeel/knowledgeTree/administration/rolemanagement/removeRoleBL.php", "roleAdministration", SysAdmin, "Remove a Role"); 200 $default->siteMap->addPage("removeRole", "/presentation/lookAndFeel/knowledgeTree/administration/rolemanagement/removeRoleBL.php", "roleAdministration", SysAdmin, "Remove a Role");
209 201
210 /////// pages for subscriptions section 202 /////// pages for subscriptions section
211 -$default->siteMap->addDefaultPage("subscriptions", "/subscriptions.php", "Subscriptions", Guest, "SubScriptions", false);  
212 -$default->siteMap->addDefaultPage("viewAlert", "/presentation/lookAndFeel/knowledgeTree/subscriptions/viewAlertBL.php", "Subscriptions", User, "Subscriptions", false); 203 +$default->siteMap->addDefaultPage("subscriptions", "/subscriptions.php", "Subscriptions", Guest, "SubScriptions");
  204 +$default->siteMap->addPage("viewAlert", "/presentation/lookAndFeel/knowledgeTree/subscriptions/viewAlertBL.php", "Subscriptions", User, "Subscriptions", false);
213 205
214 // pages for advanced search section 206 // pages for advanced search section
215 -// $default->siteMap->addDefaultPage("advancedSearch", "/email.php", "Advanced Search", "Anonymous", "Advanced Search");  
216 $default->siteMap->addDefaultPage("advancedSearch", "/search.php", "Advanced Search", Guest, "Advanced Search", false); 207 $default->siteMap->addDefaultPage("advancedSearch", "/search.php", "Advanced Search", Guest, "Advanced Search", false);
217 208
218 // pages for prefs section 209 // pages for prefs section