2010-12-14 12:18:18 +00:00
|
|
|
<?php
|
|
|
|
// MyDMS. Document Management System
|
|
|
|
// Copyright (C) 2002-2005 Markus Westphal
|
|
|
|
// Copyright (C) 2006-2008 Malcolm Cowe
|
|
|
|
// Copyright (C) 2010 Matteo Lucarelli
|
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation; either version 2 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with this program; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
class Settings
|
|
|
|
{
|
|
|
|
// Name of site -- used in the page titles. Default: MyDMS
|
|
|
|
var $_siteName = "letoDMS";
|
|
|
|
|
|
|
|
// Message to display at the bottom of every page.
|
|
|
|
var $_footNote = "letoDMS free document management system - www.letodms.com";
|
2010-10-29 13:19:51 +00:00
|
|
|
|
2011-02-03 15:12:06 +00:00
|
|
|
// if true the disclaimer message the lang.inc files will be print
|
|
|
|
// on the bottom of the page
|
2010-10-29 13:19:51 +00:00
|
|
|
var $_printDisclaimer = true;
|
|
|
|
|
2010-12-14 12:18:18 +00:00
|
|
|
// Default page on login. Defaults to out/out.ViewFolder.php
|
|
|
|
var $_siteDefaultPage = "";
|
|
|
|
|
|
|
|
// ID of guest-user used when logged in as guest (mostly no need to change)
|
|
|
|
var $_guestID = 2;
|
|
|
|
|
|
|
|
// ID of root-folder (mostly no need to change)
|
|
|
|
var $_rootFolderID = 1;
|
|
|
|
|
2010-10-29 13:19:51 +00:00
|
|
|
// If you want anybody to login as guest, set the following line to true
|
2010-12-14 12:18:18 +00:00
|
|
|
// note: guest login should be used only in a trusted environment
|
|
|
|
var $_enableGuestLogin = false;
|
|
|
|
|
|
|
|
// Restricted access: only allow users to log in if they have an entry in
|
|
|
|
// the local database (irrespective of successful authentication with LDAP).
|
|
|
|
var $_restricted = true;
|
|
|
|
|
|
|
|
// Strict form checking. If set to true, then all fields in the form will
|
|
|
|
// be checked for a value. If set to false, then (most) comments and
|
|
|
|
// keyword fields become optional. Comments are always required when
|
|
|
|
// submitting a review or overriding document status.
|
|
|
|
var $_strictFormCheck = false;
|
|
|
|
|
2011-01-21 08:36:21 +00:00
|
|
|
// Path to where letoDMS is located
|
|
|
|
var $_rootDir = "/var/www/letoDMS-3.0.0/";
|
|
|
|
|
|
|
|
// Path to LetoDMS_Core
|
2011-02-03 15:12:06 +00:00
|
|
|
// If left empty LetoDMS_Core will used from the standard include path
|
2011-01-21 08:36:21 +00:00
|
|
|
var $_coreDir = "/var/www/LetoDMS_Core-3.0.0/";
|
2010-12-14 12:18:18 +00:00
|
|
|
|
|
|
|
// The relative path in the URL, after the domain part. Do not include the
|
|
|
|
// http:// prefix or the web host name. e.g. If the full URL is
|
|
|
|
// http://www.example.com/mydms/, set $_httpRoot = "/mydms/".
|
|
|
|
// If the URL is http://www.example.com/, set $_httpRoot = "/".
|
2011-01-23 12:04:23 +00:00
|
|
|
var $_httpRoot = "/letoDMS-3.0.0/";
|
2010-12-14 12:18:18 +00:00
|
|
|
|
|
|
|
// Where the uploaded files are stored (best to choose a directory that
|
|
|
|
// is not accessible through your web-server)
|
2011-01-23 12:04:23 +00:00
|
|
|
var $_contentDir = "/var/www/letoDMS-3.0.0/data/";
|
2010-12-14 12:18:18 +00:00
|
|
|
|
2010-10-29 13:19:51 +00:00
|
|
|
// To work around limitations in the underlying file system, a new
|
|
|
|
// directory structure has been devised that exists within the content
|
|
|
|
// directory ($_contentDir). This requires a base directory from which
|
|
|
|
// to begin. Usually leave this to the default setting, 1048576, but can
|
|
|
|
// be any number or string that does not already exist within $_contentDir.
|
|
|
|
var $_contentOffsetDir = "1048576";
|
2010-12-14 12:18:18 +00:00
|
|
|
|
2011-03-10 14:51:54 +00:00
|
|
|
// File uploaded by the jumploader are first saved into the staging dir
|
|
|
|
// if they are partitioned
|
|
|
|
var $_stagingDir = "/var/www/letoDMS-3.0.0/data/staging/";
|
|
|
|
|
|
|
|
// Size of chunks created by jumploader when uploading files
|
|
|
|
var $_partitionSize = 10000;
|
|
|
|
|
2010-12-14 12:18:18 +00:00
|
|
|
// Maximum number of sub-directories per parent directory. Default: 32700.
|
|
|
|
var $_maxDirID = 32700;
|
|
|
|
|
|
|
|
// default language (name of a subfolder in folder "languages")
|
|
|
|
var $_language = "English";
|
|
|
|
|
2011-02-03 15:12:06 +00:00
|
|
|
// users are notified about document-changes that took place within the
|
|
|
|
// last $_updateNotifyTime seconds
|
|
|
|
var $_updateNotifyTime = 86400; // means 24 hours
|
2010-12-14 12:18:18 +00:00
|
|
|
|
2011-02-03 15:12:06 +00:00
|
|
|
// files with one of the following endings can be viewed online
|
|
|
|
// (USE ONLY LOWER CASE CHARACTERS)
|
2010-12-14 12:18:18 +00:00
|
|
|
// to disable: var $_viewOnlineFileTypes = array();
|
|
|
|
var $_viewOnlineFileTypes = array(".txt", ".text", ".html", ".htm", ".pdf", ".gif", ".png", ".jpg", ".jpeg");
|
|
|
|
|
|
|
|
// enable/disable converting of files
|
2011-01-23 12:04:23 +00:00
|
|
|
var $_enableConverting = false;
|
2010-12-14 12:18:18 +00:00
|
|
|
|
|
|
|
// default style (name of a subfolder in folder "styles")
|
2010-10-29 13:19:51 +00:00
|
|
|
var $_theme = "clean";
|
2010-12-14 12:18:18 +00:00
|
|
|
|
|
|
|
// Workaround for page titles that go over more than 2 lines.
|
2010-10-29 13:19:51 +00:00
|
|
|
var $_titleDisplayHack = true;
|
|
|
|
|
|
|
|
// enable/disable automatic email notification
|
|
|
|
var $_enableEmail = true;
|
|
|
|
|
|
|
|
// enable/disable group and user view for all users
|
|
|
|
var $_enableUsersView = true;
|
2011-02-03 15:12:06 +00:00
|
|
|
|
|
|
|
// enable/disable listing administrator as reviewer/approver
|
2010-10-29 13:19:51 +00:00
|
|
|
var $_enableAdminRevApp = false;
|
|
|
|
|
|
|
|
// the name of the versioning info file created by the backup tool
|
|
|
|
var $_versioningFileName = "versioning_info.txt";
|
|
|
|
|
2011-02-03 15:12:06 +00:00
|
|
|
// enable/disable log system
|
2010-10-29 13:19:51 +00:00
|
|
|
var $_logFileEnable = true;
|
|
|
|
|
|
|
|
// the log file rotation (h=hourly, d=daily, m=monthly)
|
|
|
|
var $_logFileRotation = "d";
|
|
|
|
|
2011-02-03 15:12:06 +00:00
|
|
|
// enable/disable users images
|
2010-10-29 13:19:51 +00:00
|
|
|
var $_enableUserImage = false;
|
|
|
|
|
2011-02-03 15:12:06 +00:00
|
|
|
// enable/disable calendar
|
2010-10-29 13:19:51 +00:00
|
|
|
var $_enableCalendar = true;
|
2010-11-08 13:46:04 +00:00
|
|
|
|
2011-01-23 12:04:23 +00:00
|
|
|
// calendar default view ("w" for week,"m" for month,"y" for year)
|
2010-11-08 13:46:04 +00:00
|
|
|
var $_calendarDefaultView = "y";
|
|
|
|
|
2011-02-03 15:12:06 +00:00
|
|
|
// first day of the week (0=sunday, 1=monday, 6=saturday)
|
2010-10-29 13:19:51 +00:00
|
|
|
var $_firstDayOfWeek = 0;
|
|
|
|
|
2011-02-03 15:12:06 +00:00
|
|
|
// enable/disable display of the folder tree
|
2010-10-29 13:19:51 +00:00
|
|
|
var $_enableFolderTree = true;
|
2010-11-08 12:52:53 +00:00
|
|
|
|
2011-01-23 12:04:23 +00:00
|
|
|
// 0 to start with tree hidden
|
2010-11-08 13:46:04 +00:00
|
|
|
// 1 to start with tree shown and first level expanded
|
|
|
|
// 2 to start with tree shown fully expanded
|
|
|
|
var $_expandFolderTree = 1;
|
|
|
|
|
2011-02-03 15:12:06 +00:00
|
|
|
// enable/disable editing of users own profile
|
2010-11-08 12:52:53 +00:00
|
|
|
var $_disableSelfEdit = false;
|
|
|
|
|
|
|
|
// if enabled admin can login only by specified IP addres
|
2011-02-03 15:12:06 +00:00
|
|
|
// leave ampty to turn off access control
|
2010-11-08 12:52:53 +00:00
|
|
|
// NOTE: works only with local autentication (no LDAP)
|
|
|
|
var $_adminIP = "";
|
|
|
|
|
2011-03-10 14:51:54 +00:00
|
|
|
// ----------- Fulltext-Search -------------------------------------------
|
|
|
|
var $_enableFullSearch = 1;
|
|
|
|
|
|
|
|
// Path to LetoDMS_Lucene
|
|
|
|
// If left empty LetoDMS_Lucene will be used from the standard include path
|
|
|
|
var $_luceneDir = "/var/www/LetoDMS_Lucene-3.0.0/";
|
|
|
|
|
|
|
|
var $_indexPath = '/var/www/letoDMS-3.0.0/data/lucene';
|
|
|
|
|
|
|
|
var $_stopWordsFile = '/var/www/letoDMS-3.0.0/conf/stopwords.txt';
|
|
|
|
|
2011-02-03 15:12:06 +00:00
|
|
|
// ----------- Database-Setup --------------------------------------------
|
2010-12-14 12:18:18 +00:00
|
|
|
|
2011-02-03 15:12:06 +00:00
|
|
|
// Path to adodb. This is the directory containing the adodb directory
|
|
|
|
// If left empty adodb will be used from the standard include path
|
2010-12-14 12:18:18 +00:00
|
|
|
var $_ADOdbPath = "/var/www/letoDMS-1.10/";
|
|
|
|
|
2011-02-03 15:12:06 +00:00
|
|
|
// DB-Driver used by adodb (see adodb-readme)
|
2010-12-14 12:18:18 +00:00
|
|
|
var $_dbDriver = "mysql";
|
|
|
|
|
2011-02-03 15:12:06 +00:00
|
|
|
// DB-Server
|
2010-12-14 12:18:18 +00:00
|
|
|
var $_dbHostname = "localhost";
|
|
|
|
|
2011-02-03 15:12:06 +00:00
|
|
|
// database where the tables for mydms are stored (optional - see adodb-readme)
|
2010-12-14 12:18:18 +00:00
|
|
|
var $_dbDatabase = "letodms";
|
|
|
|
|
2011-02-03 15:12:06 +00:00
|
|
|
// username for database-access
|
2010-12-14 12:18:18 +00:00
|
|
|
var $_dbUser = "letodms";
|
|
|
|
|
2011-02-03 15:12:06 +00:00
|
|
|
// password for database-access
|
2010-12-14 12:18:18 +00:00
|
|
|
var $_dbPass = "letodms";
|
|
|
|
|
2011-02-03 15:12:06 +00:00
|
|
|
// --- LDAP Authentication Setup -----------------------------------------
|
2010-12-14 12:18:18 +00:00
|
|
|
|
|
|
|
// var $_ldapHost = ""; // URIs are supported, e.g.: ldaps://ldap.host.com
|
|
|
|
// var $_ldapPort = 389; // Optional.
|
|
|
|
// var $_ldapBaseDN = "";
|
|
|
|
|
|
|
|
function Settings()
|
|
|
|
{
|
2011-02-03 15:12:06 +00:00
|
|
|
// files with one of the following endings will be converted with the
|
|
|
|
// given commands for windows users
|
2010-12-14 12:18:18 +00:00
|
|
|
$this->_convertFileTypes = array(".doc" => "cscript \"" . $this->_rootDir."op/convert_word.js\" {SOURCE} {TARGET}",
|
|
|
|
".xls" => "cscript \"".$this->_rootDir."op/convert_excel.js\" {SOURCE} {TARGET}",
|
|
|
|
".ppt" => "cscript \"".$this->_rootDir."op/convert_pp.js\" {SOURCE} {TARGET}");
|
2011-02-03 15:12:06 +00:00
|
|
|
// uncomment the next line for linux users
|
2010-12-14 12:18:18 +00:00
|
|
|
// $this->_convertFileTypes = array(".doc" => "mswordview -o {TARGET} {SOURCE}");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$settings = new Settings();
|
|
|
|
|
|
|
|
?>
|