dmsDefaults.php 13.6 KB
<?php

/**
 * $Id$
 *
 * Stores the defaults for the DMS application
 *
 * Copyright (c) 1999-2002 The Owl Project Team
 * Licensed under the GNU GPL. For full terms see the file COPYING.
 */

// include the environment settings
require_once("environment.php");

$default->owl_graphics_url = $default->owl_root_url . "/graphics";
$default->owl_LangDir  = $default->owl_fs_root . "/locale";
// change this to reflect a directory with a different look and feel
$default->owl_ui_directory  = $default->owl_fs_root . "/presentation/lookAndFeel/knowledgeTree";
$default->owl_ui_url  = $default->owl_root_url . "/presentation/lookAndFeel/knowledgeTree";


// Set to true to use the file system to store documents, false only uses the database
$default->owl_use_fs            = true;
//$default->owl_use_fs            = false;
// the Trailing Slash is important here.
//$default->owl_compressed_database = 1;

//****************************************************
// Pick your language system default language
// now each user can pick his language
// if they are allowed by the admin to change their
// preferences.
//****************************************************
// b5
// Chinese
// Danish
// Deutsch
// Dutch
// English
// Francais
// Hungarian
// Italian
// NewEnglish <-  NEW LOOK, English will be obsoleted in a future version
// Norwegian
// Portuguese
// Spanish

$default->owl_lang  = "NewEnglish";
$default->owl_notify_link       = "http://$_SERVER[SERVER_NAME]$default->owl_root_url/";

// Table mappings

// session information
$default->owl_sessions_table = "active_sessions";
// document type fields
$default->owl_fields_table = "document_fields";
// links document
$default->owl_document_fields_table = "document_fields_link";
// meta data value lookup table
$default->owl_document_fields_lookup_tables = "document_fields_lookup";
// document subscriptions
$default->owl_document_subscriptions_table = "document_subscriptions";
// document transaction types
$default->owl_transaction_types_table = "document_transaction_types_lookup";
// document transactions
$default->owl_document_transactions_table = "document_transactions";
// links document types to document type fields
$default->owl_document_type_fields_table = "document_type_fields_link";
// document type information
$default->owl_document_types_table = "document_types_lookup";
// links documents to words
$default->owl_document_words_table = "document_words_link";
// stores documents
$default->owl_documents_table = "documents";
// stores folder subscriptions
$default->owl_folder_subscriptions_table = "folder_subscriptions";
// stores folders
$default->owl_folders_table = "folders";
// links folders to users (and roles) for approval collaboration
$default->owl_folders_user_roles_table = "folders_users_roles_link";
// stores approval collaboration information- approval roles mapped to folders with order
$default->owl_groups_folders_approval_table = "groups_folders_approval_link";
// links groups to folders
$default->owl_groups_folders_table = "groups_folders_link";
// stores group information
$default->owl_groups_table = "groups_lookup";
// links groups to units
$default->owl_groups_units_table = "groups_units_link";
// links
$default->owl_links_table = "links";
// Table with mime info
$default->owl_mime_table = "mime_types";
// organisation information
$default->owl_organisations_table = "organisations_lookup";
// stores role information (name and access)
$default->owl_roles_table = "roles";
// sitemap access classes
$default->owl_site_access_table = "site_access_lookup";
// sitemap sections
$default->owl_site_sections_table = "site_sections_lookup";
// sitemap definition
$default->owl_sitemap_table = "sitemap";
// stores document subscription information
$default->owl_subscriptions_table = "subscriptions";
// stores default system settings
$default->owl_system_settings_table = "system_settings";
// Table with unit information
$default->owl_units_table = "units_lookup";
// Table with unit organisation link tables
$default->owl_units_organisations_link_table = "units_organisations_link";
// Table with user info
$default->owl_users_table = "users";
// links groups to users
$default->owl_users_groups_table = "users_groups_link";
// Table with web documents info for web publishing
$default->owl_web_documents_table = "web_documents";
// Table with web documents info for web publishing
$default->owl_web_documents_status_table = "web_documents_status_lookup";
// stores websites for web publishing
$default->owl_web_sites_table = "web_sites";
// stores indexed words
$default->owl_words_lookup_table = "words_lookup";

// Change this to reflect the database you are using
require_once("$default->owl_fs_root/phplib/db_mysql.inc");
//require("$default->owl_fs_root/phplib/db_pgsql.inc");

// Change this to reflect the authentication method you are using
//require_once("$default->owl_fs_root/lib/LDAPAuthenticator.inc");
//require_once("$default->owl_fs_root/lib/Authenticator.inc");
$default->authentication_class = "DBAuthenticator";
require_once("$default->owl_fs_root/lib/authentication/$default->authentication_class.inc");

// logo file that must reside inside lang/graphics directory
$default->logo = "kt.jpg";

// BUG Number: 457588
// This is to display the version information in the footer
//$default->version = "owl 0.7 20021129";
$default->version = "owl-dms 1.0 @build-date@";
$default->phpversion = "4.0.2";

// session timeout (in seconds)
$default->owl_timeout = 1200;
$default->debug = True;

// whether ssl is enabled or not
$default->sslEnabled = true;

// define site mappings
require_once("$default->owl_fs_root/lib/session/SiteMap.inc");
$default->siteMap = new SiteMap(false);

// action, page, section, group with access, link text

// general pages
$default->siteMap->addPage("login", "/presentation/login.php?loginAction=login", "General", None, "");
$default->siteMap->addPage("loginForm", "/presentation/login.php?loginAction=loginForm", "General", None, "login");
$default->siteMap->addPage("dashboard", "/presentation/dashboardBL.php", "General", Guest, "dashboard");

//pages for manage documents section
$default->siteMap->addDefaultPage("browse", "/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseBL.php", "Manage Documents", Guest, "browse documents");
$default->siteMap->addPage("viewDocument", "/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php", "Manage Documents", Guest, "");
$default->siteMap->addPage("addDocument", "/presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentBL.php", "Manage Documents", User, "Add A Document");
$default->siteMap->addPage("modifyDocumentRouting", "/presentation/lookAndFeel/knowledgeTree/documentmanagement/collaborationBL.php", "Manage Documents", User, "");
$default->siteMap->addPage("modifyDocument", "/presentation/lookAndFeel/knowledgeTree/documentmanagement/modifyBL.php", "Manage Documents", User, "");
$default->siteMap->addPage("addFolder", "/presentation/lookAndFeel/knowledgeTree/foldermanagement/addFolderBL.php", "Manage Documents", User, "Add A Folder");
$default->siteMap->addPage("editFolder", "/presentation/lookAndFeel/knowledgeTree/folderManagement/editBL.php", "Manage Documents", UnitAdmin, "Modify Folder Properties", false);
$default->siteMap->addPage("deleteFolder", "/presentation/documentmanagement/deleteFolder.php?fFolderID=", "Manage Documents", UnitAdmin, "Delete A Folder", false);
$default->siteMap->addPage("moveFolder", "/presentation/documentmanagement/moveFolder.php", "Manage Documents", UnitAdmin, "Move A Folder", false);
$default->siteMap->addPage("modifyFolderCollaboration", "/presentation/lookAndFeel/knowledgeTree/foldermanagement/collaborationBL.php", "Manage Documents", User, "", false);
$default->siteMap->addPage("addFolderCollaboration", "/presentation/lookAndFeel/knowledgeTree/folderManagement/addFolderCollaborationBL.php", "Manage Documents", User, "", false);
$default->siteMap->addPage("deleteFolderCollaboration", "/presentation/lookAndFeel/knowledgeTree/folderManagement/deleteFolderCollaborationBL.php", "Manage Documents", User, "", false);
$default->siteMap->addPage("emailDocument", "/presentation/lookAndFeel/knowledgeTree/documentmanagement/emailBL.php", "Manage Documents", User, "Email A Document", false);


// pages for administration section
$default->siteMap->addDefaultPage("administration", "/admin.php", "Administration", UnitAdmin, "Administration");
$default->siteMap->addPage("userManagement", "/admin.php?sectionName=UserAdministration", "Administration", UnitAdmin, "User Management");
$default->siteMap->addPage("groupManagement", "/admin.php?sectionName=groupAdministration", "Administration", UnitAdmin, "Group Management");
$default->siteMap->addPage("unitManagement", "/admin.php?sectionName=SystemAdministration", "Administration", SysAdmin, "Unit Management");
$default->siteMap->addPage("orgManagement", "/admin.php?sectionName=SystemAdministration", "Administration", SysAdmin, "Organisation Management");
$default->siteMap->addPage("roleManagement", "/admin.php?sectionName=SystemAdministration", "Administration", SysAdmin, "Role Management");
$default->siteMap->addPage("systemAdministration", "/presentation/admin.php?sectionName=SystemAdministration", "Administration", SysAdmin, "System Settings");


/////////// pages for administration section
//$default->siteMap->addDefaultPage("unitadministration", "/presentation/unitadmin.php", "UnitAdministration", UnitAdmin, "groAdministration");
//group management
$default->siteMap->addPage("addGroup", "/presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/addGroupBL.php", "groupAdministration", UnitAdmin, "Add A Group");
$default->siteMap->addPage("editGroup", "/presentation/lookAndFeel/knowledgeTree/administration/groupmanagement/editGroupBL.php", "groupAdministration", UnitAdmin, "Edit Group Properties");
$default->siteMap->addPage("removeGroup", "/tests/groups/addgroups.php", "groupAdministration", UnitAdmin, "Remove a Group");
$default->siteMap->addPage("addGroupToUnit", "/tests/groups/addgroups.php", "groupAdministration", UnitAdmin, "Assign Group to Unit");

//user management
$default->siteMap->addPage("addUser", "/tests/groups/adduser.php", "UserAdministration", UnitAdmin, "Add User to System");
$default->siteMap->addPage("editUser", "/tests/groups/adduser.php", "UserAdministration", UnitAdmin, "Edit User Properties");
$default->siteMap->addPage("removeUser", "/tests/groups/adduser.php", "UserAdministration", UnitAdmin, "Remove User from System");
$default->siteMap->addPage("addUsersToGroup", "/tests/groups/adduser.php", "UserAdministration", UnitAdmin, "Add User to A Group");

$default->siteMap->addPage("systemAdministration", "/presentation/blah.php", "UnitAdministration", SysAdmin, "systemBlaaah");


/////// pages for subscriptions section
$default->siteMap->addDefaultPage("subscriptions", "/subscriptions.php", "Subscriptions", Guest, "SubScriptions", false);
$default->siteMap->addDefaultPage("viewAlert", "/presentation/lookAndFeel/knowledgeTree/subscriptions/viewAlertBL.php", "Subscriptions", User, "Subscriptions", false);

// pages for advanced search section
// $default->siteMap->addDefaultPage("advancedSearch", "/email.php", "Advanced Search", "Anonymous", "Advanced Search");
$default->siteMap->addDefaultPage("advancedSearch", "/search.php", "Advanced Search", Guest, "Advanced Search", false);


// pages for prefs section
//$default->siteMap->addDefaultPage("preferences", "/presentation/lookAndFeel/knowledgeTree/Help/emailHelp.php", "Preferences", User, "Preferences",false);
$default->siteMap->addPage("viewPreferences", "/preferences.php", "Preferences", User, "View Preferences", false);
$default->siteMap->addPage("editPreferences", "/preferences.php", "Preferences", User, "Edit Preferences", false);

// pages for Help section
$default->siteMap->addDefaultPage("help", "/presentation/lookAndFeel/knowledgeTree/Help/emailHelp.php", "Help", Guest, "Help");

// pages for logout section section
$default->siteMap->addDefaultPage("logout", "/presentation/logout.php", "Logout", Guest, "Logout");

// test pages
$default->siteMap->addPage("scratchPad", "/tests/scratchPad.php", "Tests", Guest, "scratch", false);
$default->siteMap->addPage("sitemap", "/tests/session/SiteMap.php", "Tests", Guest, "sitemap", false);
$default->siteMap->addPage("documentBrowserTest", "/tests/documentmanagement/DocumentBrowser.php", "Tests", Guest, "test the document browser", false);
$default->siteMap->addPage("scroll", "/tests/scroll/textScrollTest.php", "Tests", Guest, "test scrolling", false);
$default->siteMap->addPage("subTest", "/tests/subscriptions/subscription.php", "Tests", Guest, "subscription unit test", false);
$default->siteMap->addPage("subManager", "/tests/subscriptions/subscriptionManager.php", "Tests", Guest, "manage subscription unit test", false);
$default->siteMap->addPage("subEngine", "/tests/subscriptions/subscriptionEngine.php", "Tests", Guest, "subscription firing unit test", false);
$default->siteMap->addPage("auth", "/tests/authentication/authentication.php", "Tests", Guest, "authentication unit test", false);

// default requires
require_once("$default->owl_fs_root/phpmailer/class.phpmailer.php");
require_once("$default->owl_fs_root/lib/session/Session.inc");
require_once("$default->owl_fs_root/lib/session/control.inc");
require_once("$default->owl_fs_root/lib/database/db.inc");
require_once("$default->owl_fs_root/lib/database/lookup.inc");
require_once("$default->owl_fs_root/lib/System.inc");
require_once("$default->owl_fs_root/phpSniff/phpSniff.class.php");

// single db instantiation
$default->db = new Database();

// instantiate system settings class
$default->system = new System();

// instantiate phpsniffer
$default->phpSniff = new phpSniff($_SERVER["HTTP_USER_AGENT"]);

// import request variables and setup language
require_once("$default->owl_fs_root/lib/dms.inc");


?>