Commit cd8db0a4e2cf9f2dae96bc458d874fc68b684b5e
1 parent
3d433c65
changed sitemap calls to use access constants instead of strings
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@542 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
23 additions
and
23 deletions
config/dmsDefaults.php
| ... | ... | @@ -137,43 +137,43 @@ $default->siteMap = new SiteMap(); |
| 137 | 137 | // action, page, section, group with access, link text |
| 138 | 138 | |
| 139 | 139 | // general pages |
| 140 | -$default->siteMap->addPage("login", "/presentation/login.php?loginAction=login", "General", "Anonymous", ""); | |
| 141 | -$default->siteMap->addPage("loginForm", "/presentation/login.php?loginAction=loginForm", "General", "Anonymous", "login"); | |
| 142 | -$default->siteMap->addPage("logout", "/presentation/logout.php", "General", "Anonymous", "logout"); | |
| 143 | -$default->siteMap->addPage("dashboard", "/presentation/dashboardBL.php", "General", "Anonymous", "dashboard"); | |
| 140 | +$default->siteMap->addPage("login", "/presentation/login.php?loginAction=login", "General", A, ""); | |
| 141 | +$default->siteMap->addPage("loginForm", "/presentation/login.php?loginAction=loginForm", "General", A, "login"); | |
| 142 | +$default->siteMap->addPage("logout", "/presentation/logout.php", "General", A, "logout"); | |
| 143 | +$default->siteMap->addPage("dashboard", "/presentation/dashboardBL.php", "General", A, "dashboard"); | |
| 144 | 144 | |
| 145 | 145 | //pages for manage documents section |
| 146 | -$default->siteMap->addDefaultPage("browse", "/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseBL.php", "Manage Documents", "Anonymous", "browse documents"); | |
| 147 | -$default->siteMap->addPage("viewDocument", "/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php", "Manage Documents", "Anonymous", ""); | |
| 148 | -$default->siteMap->addPage("addDocument", "/presentation/documentmanagement/addDocument.php", "Manage Documents", "Anonymous", "Add A Document"); | |
| 149 | -$default->siteMap->addPage("addFolder", "/presentation/documentmanagement/addFolder.php", "Manage Documents", "Unit Administrators", "Add A Folder"); | |
| 150 | -$default->siteMap->addPage("modifyFolderProperties", "/presentation/documentmanagement/modifyFolder.php", "Manage Documents", "Unit Administrators", "Modify Folder Properties"); | |
| 151 | -$default->siteMap->addPage("deleteFolder", "/presentation/documentmanagement/deleteFolder.php", "Manage Documents", "Unit Administrators", "Delete A Folder"); | |
| 152 | -$default->siteMap->addPage("moveFolder", "/presentation/documentmanagement/moveFolder.php", "Manage Documents", "Unit Administrators", "Move A Folder"); | |
| 146 | +$default->siteMap->addDefaultPage("browse", "/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseBL.php", "Manage Documents", A, "browse documents"); | |
| 147 | +$default->siteMap->addPage("viewDocument", "/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php", "Manage Documents", A, ""); | |
| 148 | +$default->siteMap->addPage("addDocument", "/presentation/documentmanagement/addDocument.php", "Manage Documents", A, "Add A Document"); | |
| 149 | +$default->siteMap->addPage("addFolder", "/presentation/documentmanagement/addFolder.php", "Manage Documents", UA, "Add A Folder"); | |
| 150 | +$default->siteMap->addPage("modifyFolderProperties", "/presentation/documentmanagement/modifyFolder.php", "Manage Documents", UA, "Modify Folder Properties"); | |
| 151 | +$default->siteMap->addPage("deleteFolder", "/presentation/documentmanagement/deleteFolder.php", "Manage Documents", UA, "Delete A Folder"); | |
| 152 | +$default->siteMap->addPage("moveFolder", "/presentation/documentmanagement/moveFolder.php", "Manage Documents", UA, "Move A Folder"); | |
| 153 | 153 | |
| 154 | 154 | // pages for administration section |
| 155 | -$default->siteMap->addDefaultPage("administration", "/admin.php", "Administration", "Unit Administrators", "Administration"); | |
| 156 | -$default->siteMap->addPage("unitAdministration", "/presentation/unitAdmin.php", "Administration", "Unit Administrators", "Unit Administration"); | |
| 157 | -$default->siteMap->addPage("systemAdministration", "/presentation/sysAdmin.php", "Administration", "System Administrators", "System Administration"); | |
| 155 | +$default->siteMap->addDefaultPage("administration", "/admin.php", "Administration", UA, "Administration"); | |
| 156 | +$default->siteMap->addPage("unitAdministration", "/presentation/unitAdmin.php", "Administration", UA, "Unit Administration"); | |
| 157 | +$default->siteMap->addPage("systemAdministration", "/presentation/sysAdmin.php", "Administration", SA, "System Administration"); | |
| 158 | 158 | |
| 159 | 159 | // pages for advanced search section |
| 160 | -$default->siteMap->addDefaultPage("advancedSearch", "/search.php", "Advanced Search", "Anonymous", "Advanced Search"); | |
| 160 | +$default->siteMap->addDefaultPage("advancedSearch", "/search.php", "Advanced Search", A, "Advanced Search"); | |
| 161 | 161 | |
| 162 | 162 | // pages for prefs section |
| 163 | -$default->siteMap->addDefaultPage("preferences", "/preferences.php", "Preferences", "Anonymous", "Preferences"); | |
| 164 | -$default->siteMap->addPage("viewPreferences", "/preferences.php", "Preferences", "Anonymous", "View Preferences"); | |
| 165 | -$default->siteMap->addPage("editPreferences", "/preferences.php", "Preferences", "Anonymous", "Edit Preferences"); | |
| 163 | +$default->siteMap->addDefaultPage("preferences", "/preferences.php", "Preferences", A, "Preferences"); | |
| 164 | +$default->siteMap->addPage("viewPreferences", "/preferences.php", "Preferences", A, "View Preferences"); | |
| 165 | +$default->siteMap->addPage("editPreferences", "/preferences.php", "Preferences", A, "Edit Preferences"); | |
| 166 | 166 | |
| 167 | 167 | // pages for Help section |
| 168 | -$default->siteMap->addDefaultPage("help", "/help.php", "Help", "Anonymous", "Help"); | |
| 168 | +$default->siteMap->addDefaultPage("help", "/help.php", "Help", A, "Help"); | |
| 169 | 169 | |
| 170 | 170 | // pages for logout section section |
| 171 | -$default->siteMap->addDefaultPage("logout", "/presentation/logout.php", "Logout", "Anonymous", "Logout"); | |
| 171 | +$default->siteMap->addDefaultPage("logout", "/presentation/logout.php", "Logout", A, "Logout"); | |
| 172 | 172 | |
| 173 | 173 | // test pages |
| 174 | -$default->siteMap->addPage("scratchPad", "/tests/scratchPad.php", "Tests", "Anonymous", "scratch"); | |
| 175 | -$default->siteMap->addPage("sitemap", "/tests/session/SiteMap.php", "Tests", "Anonymous", "sitemap"); | |
| 176 | -$default->siteMap->addPage("documentBrowserTest", "/tests/documentmanagement/DocumentBrowser.php", "Tests", "Anonymous", "test the document browser"); | |
| 174 | +$default->siteMap->addPage("scratchPad", "/tests/scratchPad.php", "Tests", A, "scratch"); | |
| 175 | +$default->siteMap->addPage("sitemap", "/tests/session/SiteMap.php", "Tests", A, "sitemap"); | |
| 176 | +$default->siteMap->addPage("documentBrowserTest", "/tests/documentmanagement/DocumentBrowser.php", "Tests", A, "test the document browser"); | |
| 177 | 177 | |
| 178 | 178 | // default requires |
| 179 | 179 | require_once("$default->owl_fs_root/lib/session/Session.inc"); | ... | ... |