mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-27 18:10:42 +00:00
- removed old configuration variables
This commit is contained in:
parent
8a856e9db3
commit
fda33a7e2d
|
|
@ -1,96 +1,97 @@
|
||||||
<?php
|
<?php
|
||||||
// MyDMS. Document Management System
|
// MyDMS. Document Management System
|
||||||
// Copyright (C) 2002-2005 Markus Westphal
|
// Copyright (C) 2002-2005 Markus Westphal
|
||||||
// Copyright (C) 2006-2008 Malcolm Cowe
|
// Copyright (C) 2006-2008 Malcolm Cowe
|
||||||
// Copyright (C) 2010 Matteo Lucarelli
|
// Copyright (C) 2010 Matteo Lucarelli
|
||||||
//
|
//
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// 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
|
// it under the terms of the GNU General Public License as published by
|
||||||
// the Free Software Foundation; either version 2 of the License, or
|
// the Free Software Foundation; either version 2 of the License, or
|
||||||
// (at your option) any later version.
|
// (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This program is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// GNU General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with this program; if not, write to the Free Software
|
// along with this program; if not, write to the Free Software
|
||||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
class Settings
|
class Settings
|
||||||
{
|
{
|
||||||
// Name of site -- used in the page titles. Default: MyDMS
|
// Name of site -- used in the page titles. Default: MyDMS
|
||||||
var $_siteName = "letoDMS";
|
var $_siteName = "letoDMS";
|
||||||
|
|
||||||
// Message to display at the bottom of every page.
|
// Message to display at the bottom of every page.
|
||||||
var $_footNote = "letoDMS free document management system - www.letodms.com";
|
var $_footNote = "letoDMS free document management system - www.letodms.com";
|
||||||
|
|
||||||
// if true the disclaimer message the lang.inc files will be print on the bottom of the page
|
// if true the disclaimer message the lang.inc files will be print on the bottom of the page
|
||||||
var $_printDisclaimer = true;
|
var $_printDisclaimer = true;
|
||||||
|
|
||||||
// Default page on login. Defaults to out/out.ViewFolder.php
|
// Default page on login. Defaults to out/out.ViewFolder.php
|
||||||
var $_siteDefaultPage = "";
|
var $_siteDefaultPage = "";
|
||||||
|
|
||||||
// IDs of admin-user, guest-user and root-folder (no need to change)
|
// ID of guest-user used when logged in as guest (mostly no need to change)
|
||||||
var $_adminID = 1;
|
var $_guestID = 2;
|
||||||
var $_guestID = 2;
|
|
||||||
var $_rootFolderID = 1;
|
// ID of root-folder (mostly no need to change)
|
||||||
|
var $_rootFolderID = 1;
|
||||||
|
|
||||||
// If you want anybody to login as guest, set the following line to true
|
// If you want anybody to login as guest, set the following line to true
|
||||||
// note: guest login should be used only in a trusted environment
|
// note: guest login should be used only in a trusted environment
|
||||||
var $_enableGuestLogin = false;
|
var $_enableGuestLogin = false;
|
||||||
|
|
||||||
// Restricted access: only allow users to log in if they have an entry in
|
// Restricted access: only allow users to log in if they have an entry in
|
||||||
// the local database (irrespective of successful authentication with LDAP).
|
// the local database (irrespective of successful authentication with LDAP).
|
||||||
var $_restricted = true;
|
var $_restricted = true;
|
||||||
|
|
||||||
// Strict form checking. If set to true, then all fields in the form will
|
// 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
|
// be checked for a value. If set to false, then (most) comments and
|
||||||
// keyword fields become optional. Comments are always required when
|
// keyword fields become optional. Comments are always required when
|
||||||
// submitting a review or overriding document status.
|
// submitting a review or overriding document status.
|
||||||
var $_strictFormCheck = false;
|
var $_strictFormCheck = false;
|
||||||
|
|
||||||
// path to where mydms is located
|
// path to where mydms is located
|
||||||
var $_rootDir = "/var/www/letoDMS-1.10/";
|
var $_rootDir = "/var/www/letoDMS-1.10/";
|
||||||
|
|
||||||
// The relative path in the URL, after the domain part. Do not include the
|
// 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:// prefix or the web host name. e.g. If the full URL is
|
||||||
// http://www.example.com/mydms/, set $_httpRoot = "/mydms/".
|
// http://www.example.com/mydms/, set $_httpRoot = "/mydms/".
|
||||||
// If the URL is http://www.example.com/, set $_httpRoot = "/".
|
// If the URL is http://www.example.com/, set $_httpRoot = "/".
|
||||||
var $_httpRoot = "/letoDMS-1.10/";
|
var $_httpRoot = "/letoDMS-1.10/";
|
||||||
|
|
||||||
// Where the uploaded files are stored (best to choose a directory that
|
// Where the uploaded files are stored (best to choose a directory that
|
||||||
// is not accessible through your web-server)
|
// is not accessible through your web-server)
|
||||||
var $_contentDir = "/var/www/letoDMS-1.10/data/";
|
var $_contentDir = "/var/www/letoDMS-1.10/data/";
|
||||||
|
|
||||||
// To work around limitations in the underlying file system, a new
|
// To work around limitations in the underlying file system, a new
|
||||||
// directory structure has been devised that exists within the content
|
// directory structure has been devised that exists within the content
|
||||||
// directory ($_contentDir). This requires a base directory from which
|
// directory ($_contentDir). This requires a base directory from which
|
||||||
// to begin. Usually leave this to the default setting, 1048576, but can
|
// to begin. Usually leave this to the default setting, 1048576, but can
|
||||||
// be any number or string that does not already exist within $_contentDir.
|
// be any number or string that does not already exist within $_contentDir.
|
||||||
var $_contentOffsetDir = "1048576";
|
var $_contentOffsetDir = "1048576";
|
||||||
|
|
||||||
// Maximum number of sub-directories per parent directory. Default: 32700.
|
// Maximum number of sub-directories per parent directory. Default: 32700.
|
||||||
var $_maxDirID = 32700;
|
var $_maxDirID = 32700;
|
||||||
|
|
||||||
// default language (name of a subfolder in folder "languages")
|
// default language (name of a subfolder in folder "languages")
|
||||||
var $_language = "English";
|
var $_language = "English";
|
||||||
|
|
||||||
// users are notified about document-changes that took place within the last $_updateNotifyTime seconds
|
// users are notified about document-changes that took place within the last $_updateNotifyTime seconds
|
||||||
var $_updateNotifyTime = 86400; //means 24 hours
|
var $_updateNotifyTime = 86400; //means 24 hours
|
||||||
|
|
||||||
// files with one of the following endings can be viewed online (USE ONLY LOWER CASE CHARACTERS)
|
// files with one of the following endings can be viewed online (USE ONLY LOWER CASE CHARACTERS)
|
||||||
// to disable: var $_viewOnlineFileTypes = array();
|
// to disable: var $_viewOnlineFileTypes = array();
|
||||||
var $_viewOnlineFileTypes = array(".txt", ".text", ".html", ".htm", ".pdf", ".gif", ".png", ".jpg", ".jpeg");
|
var $_viewOnlineFileTypes = array(".txt", ".text", ".html", ".htm", ".pdf", ".gif", ".png", ".jpg", ".jpeg");
|
||||||
|
|
||||||
// enable/disable converting of files
|
// enable/disable converting of files
|
||||||
var $_enableConverting = true;
|
var $_enableConverting = true;
|
||||||
|
|
||||||
// default style (name of a subfolder in folder "styles")
|
// default style (name of a subfolder in folder "styles")
|
||||||
var $_theme = "clean";
|
var $_theme = "clean";
|
||||||
|
|
||||||
// Workaround for page titles that go over more than 2 lines.
|
// Workaround for page titles that go over more than 2 lines.
|
||||||
var $_titleDisplayHack = true;
|
var $_titleDisplayHack = true;
|
||||||
|
|
||||||
// enable/disable automatic email notification
|
// enable/disable automatic email notification
|
||||||
|
|
@ -98,7 +99,7 @@ class Settings
|
||||||
|
|
||||||
// enable/disable group and user view for all users
|
// enable/disable group and user view for all users
|
||||||
var $_enableUsersView = true;
|
var $_enableUsersView = true;
|
||||||
|
|
||||||
// false to don't list administrator as reviewer/approver
|
// false to don't list administrator as reviewer/approver
|
||||||
var $_enableAdminRevApp = false;
|
var $_enableAdminRevApp = false;
|
||||||
|
|
||||||
|
|
@ -139,44 +140,44 @@ class Settings
|
||||||
// NOTE: works only with local autentication (no LDAP)
|
// NOTE: works only with local autentication (no LDAP)
|
||||||
var $_adminIP = "";
|
var $_adminIP = "";
|
||||||
|
|
||||||
// -------------------------------- Database-Setup --------------------------------------------
|
// -------------------------------- Database-Setup --------------------------------------------
|
||||||
|
|
||||||
//Path to adodb
|
//Path to adodb. This is the directory containing the adodb directory
|
||||||
var $_ADOdbPath = "/var/www/letoDMS-1.10/adodb/";
|
var $_ADOdbPath = "/var/www/letoDMS-1.10/";
|
||||||
|
|
||||||
//DB-Driver used by adodb (see adodb-readme)
|
//DB-Driver used by adodb (see adodb-readme)
|
||||||
var $_dbDriver = "mysql";
|
var $_dbDriver = "mysql";
|
||||||
|
|
||||||
//DB-Server
|
//DB-Server
|
||||||
var $_dbHostname = "localhost";
|
var $_dbHostname = "localhost";
|
||||||
|
|
||||||
//database where the tables for mydms are stored (optional - see adodb-readme)
|
//database where the tables for mydms are stored (optional - see adodb-readme)
|
||||||
var $_dbDatabase = "letodms";
|
var $_dbDatabase = "letodms";
|
||||||
|
|
||||||
//username for database-access
|
//username for database-access
|
||||||
var $_dbUser = "letodms";
|
var $_dbUser = "letodms";
|
||||||
|
|
||||||
//password for database-access
|
//password for database-access
|
||||||
var $_dbPass = "letodms";
|
var $_dbPass = "letodms";
|
||||||
|
|
||||||
// -------------------------------- LDAP Authentication Setup --------------------------------------------
|
// -------------------------------- LDAP Authentication Setup --------------------------------------------
|
||||||
|
|
||||||
// var $_ldapHost = ""; // URIs are supported, e.g.: ldaps://ldap.host.com
|
// var $_ldapHost = ""; // URIs are supported, e.g.: ldaps://ldap.host.com
|
||||||
// var $_ldapPort = 389; // Optional.
|
// var $_ldapPort = 389; // Optional.
|
||||||
// var $_ldapBaseDN = "";
|
// var $_ldapBaseDN = "";
|
||||||
|
|
||||||
function Settings()
|
function Settings()
|
||||||
{
|
{
|
||||||
//files with one of the following endings will be converted with the given commands
|
//files with one of the following endings will be converted with the given commands
|
||||||
//for windows users
|
//for windows users
|
||||||
$this->_convertFileTypes = array(".doc" => "cscript \"" . $this->_rootDir."op/convert_word.js\" {SOURCE} {TARGET}",
|
$this->_convertFileTypes = array(".doc" => "cscript \"" . $this->_rootDir."op/convert_word.js\" {SOURCE} {TARGET}",
|
||||||
".xls" => "cscript \"".$this->_rootDir."op/convert_excel.js\" {SOURCE} {TARGET}",
|
".xls" => "cscript \"".$this->_rootDir."op/convert_excel.js\" {SOURCE} {TARGET}",
|
||||||
".ppt" => "cscript \"".$this->_rootDir."op/convert_pp.js\" {SOURCE} {TARGET}");
|
".ppt" => "cscript \"".$this->_rootDir."op/convert_pp.js\" {SOURCE} {TARGET}");
|
||||||
// For linux users
|
// For linux users
|
||||||
// $this->_convertFileTypes = array(".doc" => "mswordview -o {TARGET} {SOURCE}");
|
// $this->_convertFileTypes = array(".doc" => "mswordview -o {TARGET} {SOURCE}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$settings = new Settings();
|
$settings = new Settings();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user