mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 07:22:11 +00:00
major name change from letodms to seeddms
This commit is contained in:
parent
717493061c
commit
73c6ff9427
24
Makefile
24
Makefile
|
@ -1,25 +1,25 @@
|
|||
VERSION=4.0.0-pre4
|
||||
SRC=CHANGELOG inc conf utils index.php languages views op out README README.Notification drop-tables-innodb.sql styles js TODO LICENSE Makefile webdav install
|
||||
VERSION=4.0.0-pre5
|
||||
SRC=CHANGELOG inc conf utils index.php languages views op out README.md README.Notification drop-tables-innodb.sql styles js TODO LICENSE Makefile webdav install
|
||||
#restapi webapp
|
||||
|
||||
dist:
|
||||
mkdir -p tmp/letoDMS-$(VERSION)
|
||||
cp -a $(SRC) tmp/letoDMS-$(VERSION)
|
||||
(cd tmp; tar --exclude=.svn -czvf ../LetoDMS-$(VERSION).tar.gz letoDMS-$(VERSION))
|
||||
mkdir -p tmp/seeddms-$(VERSION)
|
||||
cp -a $(SRC) tmp/seeddms-$(VERSION)
|
||||
(cd tmp; tar --exclude=.svn -czvf ../seeddms-$(VERSION).tar.gz seeddms-$(VERSION))
|
||||
rm -rf tmp
|
||||
|
||||
pear:
|
||||
(cd LetoDMS_Core/; pear package)
|
||||
(cd LetoDMS_Lucene/; pear package)
|
||||
(cd LetoDMS_Preview/; pear package)
|
||||
(cd SeedDMS_Core/; pear package)
|
||||
(cd SeedDMS_Lucene/; pear package)
|
||||
(cd SeedDMS_Preview/; pear package)
|
||||
|
||||
webdav:
|
||||
mkdir -p tmp/letoDMS-webdav-$(VERSION)
|
||||
cp webdav/* tmp/letoDMS-webdav-$(VERSION)
|
||||
(cd tmp; tar --exclude=.svn -czvf ../LetoDMS-webdav-$(VERSION).tar.gz letoDMS-webdav-$(VERSION))
|
||||
mkdir -p tmp/seeddms-webdav-$(VERSION)
|
||||
cp webdav/* tmp/seeddms-webdav-$(VERSION)
|
||||
(cd tmp; tar --exclude=.svn -czvf ../seeddms-webdav-$(VERSION).tar.gz seeddms-webdav-$(VERSION))
|
||||
rm -rf tmp
|
||||
|
||||
doc:
|
||||
phpdoc -d LetoDMS_Core --ignore 'getusers.php,getfoldertree.php,config.php,reverselookup.php' -t html
|
||||
phpdoc -d SeedDMS_Core --ignore 'getusers.php,getfoldertree.php,config.php,reverselookup.php' -t html
|
||||
|
||||
.PHONY: webdav
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Notifications
|
||||
-----------------------------------------------
|
||||
|
||||
Most changes made to documents or folders in LetoDMS can be monitored
|
||||
Most changes made to documents or folders in SeedDMS can be monitored
|
||||
by the users. Notifications are send by email if a user or group
|
||||
has subscribed it.
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
Workflows in LetoDMS
|
||||
Workflows in SeedDMS
|
||||
====================
|
||||
|
||||
LetoDMS supports approval and review of documents for a long time.
|
||||
SeedDMS supports approval and review of documents for a long time.
|
||||
In many cases this is sufficient for a simple workflow management.
|
||||
Nevertheless there was growing demand for a more powerful document
|
||||
workflow. Since version 4.0.0 LetoDMS allows to define arbitrary
|
||||
workflow. Since version 4.0.0 SeedDMS allows to define arbitrary
|
||||
workflows for each document content. In order to understand how
|
||||
workflows in LetoDMS work, one has to understand how a workflow is modelled.
|
||||
workflows in SeedDMS work, one has to understand how a workflow is modelled.
|
||||
Let's start with a definition of some terms.
|
||||
|
||||
workflow: a list of document states and transitions. A workflow starts
|
||||
|
|
46
README.md
46
README.md
|
@ -67,16 +67,16 @@ BEFORE YOU START
|
|||
|
||||
SeedDMS has changed its installation process with version 3.0.0. This gives
|
||||
you many more options in how to install SeedDMS. First of all, SeedDMS was
|
||||
split into a core package (`LetoDMS_Core-<version>.tar.gz`) and the web
|
||||
split into a core package (`SeedDMS_Core-<version>.tar.gz`) and the web
|
||||
application itself (`seeddms-<version>.tar.gz`). The core is a pear package
|
||||
which could be installed as one. It is responsible for all the database
|
||||
operations. The web application contains the ui not knowing anything about
|
||||
the database layout. Second, one SeedDMS installation can be used for
|
||||
various customer instances by sharing a common source. Starting with
|
||||
version 3.2.0 a full text search engine has been added. This requires
|
||||
the zend framework and another pear package `LetoDMS_Lucene-<version>.tar.gz`
|
||||
the zend framework and another pear package `SeedDMS_Lucene-<version>.tar.gz`
|
||||
which can be downloaded from the SeedDMS web page. Version 4.0.0 show
|
||||
preview images of documents which requires `LetoDMS_Preview-<version>.tar.gz`.
|
||||
preview images of documents which requires `SeedDMS_Preview-<version>.tar.gz`.
|
||||
Finally, SeedDMS has
|
||||
got a web based installation, which takes care of most of the installation
|
||||
process.
|
||||
|
@ -113,7 +113,7 @@ php.ini or adding a line like
|
|||
to your apache configuration or setting the `extraPath` configuration
|
||||
variable of SeedDMS.
|
||||
|
||||
For historical reasons the path to the LetoDMS_Core and LetoDMS_Lucene package
|
||||
For historical reasons the path to the SeedDMS_Core and SeedDMS_Lucene package
|
||||
can still be set
|
||||
in the configuration, which is not recommend anymore. Just leave those
|
||||
parameters empty.
|
||||
|
@ -123,11 +123,11 @@ parameters empty.
|
|||
|
||||
Unpack seeddms-<version>.tar.gz below the document root of
|
||||
your web server.
|
||||
Install `LetoDMS_Preview-<version>.tar.gz` and
|
||||
`LetoDMS_Core-<version>.tar.gz` either as a regular pear package or
|
||||
Install `SeedDMS_Preview-<version>.tar.gz` and
|
||||
`SeedDMS_Core-<version>.tar.gz` either as a regular pear package or
|
||||
set up a file system structure like pear did somewhere on you server.
|
||||
For the full text search engine support, you will also
|
||||
need to install `LetoDMS_Lucene-<version>.tar.gz`.
|
||||
need to install `SeedDMS_Lucene-<version>.tar.gz`.
|
||||
|
||||
For the following instructions we will assume a structure like above
|
||||
and seeddms-<version> being accessible through
|
||||
|
@ -154,29 +154,29 @@ http://localhost/seeddms/
|
|||
-------------------------------------------------------
|
||||
|
||||
You need a working web server with MySQL/PHP5 support and the files
|
||||
`SeedDMS-<version>.tar.gz`, `LetoDMS_Preview-<version>.tar.gz` and
|
||||
`LetoDMS_Core-<version>.tgz`. For the
|
||||
`SeedDMS-<version>.tar.gz`, `SeedDMS_Preview-<version>.tar.gz` and
|
||||
`SeedDMS_Core-<version>.tgz`. For the
|
||||
full text search engine support, you will also need to unpack
|
||||
`LetoDMS_Lucene-<version>.tgz`.
|
||||
`SeedDMS_Lucene-<version>.tgz`.
|
||||
|
||||
* Unpack all the files in a public web server folder. If you're working on
|
||||
a host machine your provider will tell you where to upload the files.
|
||||
If possible, do not unpack the pear packages `LetoDMS_Core-<version>.tgz`,
|
||||
`LetoDMS_Preview-<version>.tgz` and
|
||||
`LetoDMS_Lucene-<version>.tgz` below the document root of your web server.
|
||||
If possible, do not unpack the pear packages `SeedDMS_Core-<version>.tgz`,
|
||||
`SeedDMS_Preview-<version>.tgz` and
|
||||
`SeedDMS_Lucene-<version>.tgz` below the document root of your web server.
|
||||
Choose a temporary folder, as the files will be moved in a second.
|
||||
|
||||
Create a directory e.g. `pear` in the same directory where you unpacked
|
||||
seeddms and create a sub directory LetoDMS. Move the content except for the
|
||||
`tests` directory of all LetoDMS pear
|
||||
packages into that directory. Please note that `pear/LetoDMS` may not
|
||||
seeddms and create a sub directory SeedDMS. Move the content except for the
|
||||
`tests` directory of all SeedDMS pear
|
||||
packages into that directory. Please note that `pear/SeedDMS` may not
|
||||
(and for security reasons should not) be below your document root.
|
||||
|
||||
You will end up with a directory structure like the following
|
||||
|
||||
> seeddms-<version>
|
||||
> pear
|
||||
> LetoDMS
|
||||
> SeedDMS
|
||||
> Core.php
|
||||
> Core
|
||||
> Lucene.php
|
||||
|
@ -186,9 +186,9 @@ full text search engine support, you will also need to unpack
|
|||
|
||||
Since they are pear packages they can also be installed with
|
||||
|
||||
> pear install LetoDMS_Core-<version>.tgz
|
||||
> pear install LetoDMS_Lucene-<version>.tgz
|
||||
> pear install LetoDMS_Preview-<version>.tgz
|
||||
> pear install SeedDMS_Core-<version>.tgz
|
||||
> pear install SeedDMS_Lucene-<version>.tgz
|
||||
> pear install SeedDMS_Preview-<version>.tgz
|
||||
|
||||
* The PEAR package Log is also needed. It can be downloaded from
|
||||
http://pear.php.net/package/Log. Either install it as a pear package
|
||||
|
@ -232,10 +232,10 @@ If you install SeedDMS for the first time continue with the database setup.
|
|||
your browser at http://hostname/seeddms/install
|
||||
|
||||
|
||||
NOTE: UPDATING FROM A PREVIOUS VERSION OR LETODMS
|
||||
NOTE: UPDATING FROM A PREVIOUS VERSION OR SEEDDMS
|
||||
|
||||
As SeedDMS is a smooth continuation of LetoDMS there is no difference
|
||||
in updating from LetoDMS or SeedDMS
|
||||
As SeedDMS is a smooth continuation of SeedDMS there is no difference
|
||||
in updating from SeedDMS or SeedDMS
|
||||
|
||||
- make a backup archive of your installation folder
|
||||
- make a backup archive of your data folder
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* Implementation of a document in the document management system
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @license GPL2
|
||||
* @author Markus Westphal, Malcolm Cowe, Matteo Lucarelli,
|
||||
* Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
@ -13,7 +13,7 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* @uses LetoDMS_DatabaseAccess
|
||||
* @uses SeedDMS_DatabaseAccess
|
||||
*/
|
||||
define('USE_PDO', 1);
|
||||
if(defined('USE_PDO'))
|
||||
|
@ -22,63 +22,63 @@ else
|
|||
require_once('Core/inc.DBAccess.php');
|
||||
|
||||
/**
|
||||
* @uses LetoDMS_DMS
|
||||
* @uses SeedDMS_DMS
|
||||
*/
|
||||
require_once('Core/inc.ClassDMS.php');
|
||||
|
||||
/**
|
||||
* @uses LetoDMS_Object
|
||||
* @uses SeedDMS_Object
|
||||
*/
|
||||
require_once('Core/inc.ClassObject.php');
|
||||
|
||||
/**
|
||||
* @uses LetoDMS_Folder
|
||||
* @uses SeedDMS_Folder
|
||||
*/
|
||||
require_once('Core/inc.ClassFolder.php');
|
||||
|
||||
/**
|
||||
* @uses LetoDMS_Document
|
||||
* @uses SeedDMS_Document
|
||||
*/
|
||||
require_once('Core/inc.ClassDocument.php');
|
||||
|
||||
/**
|
||||
* @uses LetoDMS_Attribute
|
||||
* @uses SeedDMS_Attribute
|
||||
*/
|
||||
require_once('Core/inc.ClassAttribute.php');
|
||||
|
||||
/**
|
||||
* @uses LetoDMS_Group
|
||||
* @uses SeedDMS_Group
|
||||
*/
|
||||
require_once('Core/inc.ClassGroup.php');
|
||||
|
||||
/**
|
||||
* @uses LetoDMS_User
|
||||
* @uses SeedDMS_User
|
||||
*/
|
||||
require_once('Core/inc.ClassUser.php');
|
||||
|
||||
/**
|
||||
* @uses LetoDMS_KeywordCategory
|
||||
* @uses SeedDMS_KeywordCategory
|
||||
*/
|
||||
require_once('Core/inc.ClassKeywords.php');
|
||||
|
||||
/**
|
||||
* @uses LetoDMS_DocumentCategory
|
||||
* @uses SeedDMS_DocumentCategory
|
||||
*/
|
||||
require_once('Core/inc.ClassDocumentCategory.php');
|
||||
|
||||
/**
|
||||
* @uses LetoDMS_Notification
|
||||
* @uses SeedDMS_Notification
|
||||
*/
|
||||
require_once('Core/inc.ClassNotification.php');
|
||||
|
||||
/**
|
||||
* @uses LetoDMS_UserAccess
|
||||
* @uses LetoDMS_GroupAccess
|
||||
* @uses SeedDMS_UserAccess
|
||||
* @uses SeedDMS_GroupAccess
|
||||
*/
|
||||
require_once('Core/inc.ClassAccess.php');
|
||||
|
||||
/**
|
||||
* @uses LetoDMS_Workflow
|
||||
* @uses SeedDMS_Workflow
|
||||
*/
|
||||
require_once('Core/inc.ClassWorkflow.php');
|
||||
|
||||
|
@ -87,7 +87,7 @@ require_once('Core/inc.ClassWorkflow.php');
|
|||
require_once('Core/inc.AccessUtils.php');
|
||||
|
||||
/**
|
||||
* @uses LetoDMS_File
|
||||
* @uses SeedDMS_File
|
||||
*/
|
||||
require_once('Core/inc.FileUtils.php');
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
* Some definitions for access control
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
@ -14,7 +14,7 @@
|
|||
|
||||
/**
|
||||
* Used to indicate that a search should return all
|
||||
* results in the ACL table. See {@link LetoDMS_Core_Folder::getAccessList()}
|
||||
* results in the ACL table. See {@link SeedDMS_Core_Folder::getAccessList()}
|
||||
*/
|
||||
define("M_ANY", -1);
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
* Implementation of user and group access object
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
@ -17,17 +17,17 @@
|
|||
* This class cannot be used to modify access rights.
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2002-2005 Markus Westphal, 2006-2008 Malcolm Cowe,
|
||||
* 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Core_UserAccess { /* {{{ */
|
||||
class SeedDMS_Core_UserAccess { /* {{{ */
|
||||
var $_user;
|
||||
var $_mode;
|
||||
|
||||
function LetoDMS_Core_UserAccess($user, $mode) {
|
||||
function SeedDMS_Core_UserAccess($user, $mode) {
|
||||
$this->_user = $user;
|
||||
$this->_mode = $mode;
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ class LetoDMS_Core_UserAccess { /* {{{ */
|
|||
function getMode() { return $this->_mode; }
|
||||
|
||||
function isAdmin() {
|
||||
return ($this->_mode == LetoDMS_Core_User::role_admin);
|
||||
return ($this->_mode == SeedDMS_Core_User::role_admin);
|
||||
}
|
||||
|
||||
function getUser() {
|
||||
|
@ -51,16 +51,16 @@ class LetoDMS_Core_UserAccess { /* {{{ */
|
|||
* This class cannot be used to modify access rights.
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2002-2005 Markus Westphal, 2006-2008 Malcolm Cowe, 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Core_GroupAccess { /* {{{ */
|
||||
class SeedDMS_Core_GroupAccess { /* {{{ */
|
||||
var $_group;
|
||||
var $_mode;
|
||||
|
||||
function LetoDMS_Core_GroupAccess($group, $mode) {
|
||||
function SeedDMS_Core_GroupAccess($group, $mode) {
|
||||
$this->_group = $group;
|
||||
$this->_mode = $mode;
|
||||
}
|
|
@ -3,7 +3,7 @@
|
|||
* Implementation of the attribute object in the document management system
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
@ -19,15 +19,15 @@
|
|||
* Each attribute has a value and is related to an attribute definition,
|
||||
* which holds the name and other information about the attribute.
|
||||
*
|
||||
* @see LetoDMS_Core_AttributeDefinition
|
||||
* @see SeedDMS_Core_AttributeDefinition
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2012-2013 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Core_Attribute { /* {{{ */
|
||||
class SeedDMS_Core_Attribute { /* {{{ */
|
||||
/**
|
||||
* @var integer id of attribute
|
||||
*
|
||||
|
@ -36,7 +36,7 @@ class LetoDMS_Core_Attribute { /* {{{ */
|
|||
protected $_id;
|
||||
|
||||
/**
|
||||
* @var object LetoDMS_Core_Object folder, document or document content
|
||||
* @var object SeedDMS_Core_Object folder, document or document content
|
||||
* this attribute belongs to
|
||||
*
|
||||
* @access protected
|
||||
|
@ -44,7 +44,7 @@ class LetoDMS_Core_Attribute { /* {{{ */
|
|||
protected $_obj;
|
||||
|
||||
/**
|
||||
* @var object LetoDMS_Core_AttributeDefinition definition of this attribute
|
||||
* @var object SeedDMS_Core_AttributeDefinition definition of this attribute
|
||||
*
|
||||
* @access protected
|
||||
*/
|
||||
|
@ -58,7 +58,7 @@ class LetoDMS_Core_Attribute { /* {{{ */
|
|||
protected $_value;
|
||||
|
||||
/**
|
||||
* @var object LetoDMS_Core_DMS reference to the dms instance this attribute belongs to
|
||||
* @var object SeedDMS_Core_DMS reference to the dms instance this attribute belongs to
|
||||
*
|
||||
* @access protected
|
||||
*/
|
||||
|
@ -68,11 +68,11 @@ class LetoDMS_Core_Attribute { /* {{{ */
|
|||
* Constructor
|
||||
*
|
||||
* @param integer $id internal id of attribute
|
||||
* @param LetoDMS_Core_Object $obj object this attribute is attached to
|
||||
* @param LetoDMS_Core_AttributeDefinition $attrdef reference to the attribute definition
|
||||
* @param SeedDMS_Core_Object $obj object this attribute is attached to
|
||||
* @param SeedDMS_Core_AttributeDefinition $attrdef reference to the attribute definition
|
||||
* @param string $value value of the attribute
|
||||
*/
|
||||
function LetoDMS_Core_Attribute($id, $obj, $attrdef, $value) { /* {{{ */
|
||||
function SeedDMS_Core_Attribute($id, $obj, $attrdef, $value) { /* {{{ */
|
||||
$this->_id = $id;
|
||||
$this->_obj = $obj;
|
||||
$this->_attrdef = $attrdef;
|
||||
|
@ -83,7 +83,7 @@ class LetoDMS_Core_Attribute { /* {{{ */
|
|||
/**
|
||||
* Set reference to dms
|
||||
*
|
||||
* @param LetoDMS_Core_DMS $dms
|
||||
* @param SeedDMS_Core_DMS $dms
|
||||
*/
|
||||
function setDMS($dms) { /* {{{ */
|
||||
$this->_dms = $dms;
|
||||
|
@ -104,19 +104,19 @@ class LetoDMS_Core_Attribute { /* {{{ */
|
|||
$db = $this->_dms->getDB();
|
||||
|
||||
switch(get_class($this->_obj)) {
|
||||
case "LetoDMS_Core_Document":
|
||||
case "SeedDMS_Core_Document":
|
||||
if(trim($value) === '')
|
||||
$queryStr = "DELETE FROM tblDocumentAttributes WHERE `document` = " . $this->_obj->getID() . " AND `attrdef` = " . $this->_attrdef->getId();
|
||||
else
|
||||
$queryStr = "UPDATE tblDocumentAttributes SET value = ".$db->qstr($value)." WHERE `document` = " . $this->_obj->getID() . " AND `attrdef` = " . $this->_attrdef->getId();
|
||||
break;
|
||||
case "LetoDMS_Core_DocumentContent":
|
||||
case "SeedDMS_Core_DocumentContent":
|
||||
if(trim($value) === '')
|
||||
$queryStr = "DELETE FROM tblDocumentContentAttributes WHERE `content` = " . $this->_obj->getID() . " AND `attrdef` = " . $this->_attrdef->getId();
|
||||
else
|
||||
$queryStr = "UPDATE tblDocumentContentAttributes SET value = ".$db->qstr($value)." WHERE `content` = " . $this->_obj->getID() . " AND `attrdef` = " . $this->_attrdef->getId();
|
||||
break;
|
||||
case "LetoDMS_Core_Folder":
|
||||
case "SeedDMS_Core_Folder":
|
||||
if(trim($value) === '')
|
||||
$queryStr = "DELETE FROM tblFolderAttributes WHERE `folder` = " . $this->_obj->getID() . " AND `attrdef` = " . $this->_attrdef->getId();
|
||||
else
|
||||
|
@ -154,15 +154,15 @@ class LetoDMS_Core_Attribute { /* {{{ */
|
|||
* If multiple values are allowed, then minvalues and maxvalues may
|
||||
* restrict the allowed number of values.
|
||||
*
|
||||
* @see LetoDMS_Core_Attribute
|
||||
* @see SeedDMS_Core_Attribute
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Core_AttributeDefinition { /* {{{ */
|
||||
class SeedDMS_Core_AttributeDefinition { /* {{{ */
|
||||
/**
|
||||
* @var integer id of attribute definition
|
||||
*
|
||||
|
@ -222,7 +222,7 @@ class LetoDMS_Core_AttributeDefinition { /* {{{ */
|
|||
protected $_valueset;
|
||||
|
||||
/**
|
||||
* @var object LetoDMS_Core_DMS reference to the dms instance this attribute definition belongs to
|
||||
* @var object SeedDMS_Core_DMS reference to the dms instance this attribute definition belongs to
|
||||
*
|
||||
* @access protected
|
||||
*/
|
||||
|
@ -258,7 +258,7 @@ class LetoDMS_Core_AttributeDefinition { /* {{{ */
|
|||
* @param string $valueset separated list of allowed values, the first char
|
||||
* is taken as the separator
|
||||
*/
|
||||
function LetoDMS_Core_AttributeDefinition($id, $name, $objtype, $type, $multiple, $minvalues, $maxvalues, $valueset) { /* {{{ */
|
||||
function SeedDMS_Core_AttributeDefinition($id, $name, $objtype, $type, $multiple, $minvalues, $maxvalues, $valueset) { /* {{{ */
|
||||
$this->_id = $id;
|
||||
$this->_name = $name;
|
||||
$this->_type = $type;
|
||||
|
@ -274,7 +274,7 @@ class LetoDMS_Core_AttributeDefinition { /* {{{ */
|
|||
/**
|
||||
* Set reference to dms
|
||||
*
|
||||
* @param LetoDMS_Core_DMS $dms
|
||||
* @param SeedDMS_Core_DMS $dms
|
||||
*/
|
||||
function setDMS($dms) { /* {{{ */
|
||||
$this->_dms = $dms;
|
|
@ -3,7 +3,7 @@
|
|||
* Implementation of the document management system
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
@ -29,7 +29,7 @@ require_once("inc.ClassAttribute.php");
|
|||
/**
|
||||
* Class to represent the complete document management system.
|
||||
* This class is needed to do most of the dms operations. It needs
|
||||
* an instance of {@link LetoDMS_Core_DatabaseAccess} to access the
|
||||
* an instance of {@link SeedDMS_Core_DatabaseAccess} to access the
|
||||
* underlying database. Many methods are factory functions which create
|
||||
* objects representing the entities in the dms, like folders, documents,
|
||||
* users, or groups.
|
||||
|
@ -41,47 +41,47 @@ require_once("inc.ClassAttribute.php");
|
|||
*
|
||||
* This class does not enforce any access rights on documents and folders
|
||||
* by design. It is up to the calling application to use the methods
|
||||
* {@link LetoDMS_Core_Folder::getAccessMode()} and
|
||||
* {@link LetoDMS_Core_Document::getAccessMode()} and interpret them as desired.
|
||||
* {@link SeedDMS_Core_Folder::getAccessMode()} and
|
||||
* {@link SeedDMS_Core_Document::getAccessMode()} and interpret them as desired.
|
||||
* Though, there are two convinient functions to filter a list of
|
||||
* documents/folders for which users have access rights for. See
|
||||
* {@link LetoDMS_Core_DMS::filterAccess()}
|
||||
* and {@link LetoDMS_Core_DMS::filterUsersByAccess()}
|
||||
* {@link SeedDMS_Core_DMS::filterAccess()}
|
||||
* and {@link SeedDMS_Core_DMS::filterUsersByAccess()}
|
||||
*
|
||||
* Though, this class has two methods to set the currently logged in user
|
||||
* ({@link setUser} and {@link login}), none of them need to be called, because
|
||||
* there is currently no class within the LetoDMS core which needs the logged
|
||||
* there is currently no class within the SeedDMS core which needs the logged
|
||||
* in user.
|
||||
*
|
||||
* <code>
|
||||
* <?php
|
||||
* include("inc/inc.ClassDMS.php");
|
||||
* $db = new LetoDMS_Core_DatabaseAccess($type, $hostname, $user, $passwd, $name);
|
||||
* $db = new SeedDMS_Core_DatabaseAccess($type, $hostname, $user, $passwd, $name);
|
||||
* $db->connect() or die ("Could not connect to db-server");
|
||||
* $dms = new LetoDMS_Core_DMS($db, $contentDir);
|
||||
* $dms = new SeedDMS_Core_DMS($db, $contentDir);
|
||||
* $dms->setRootFolderID(1);
|
||||
* ...
|
||||
* ?>
|
||||
* </code>
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2010, Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Core_DMS {
|
||||
class SeedDMS_Core_DMS {
|
||||
/**
|
||||
* @var object $db reference to database object. This must be an instance
|
||||
* of {@link LetoDMS_Core_DatabaseAccess}.
|
||||
* of {@link SeedDMS_Core_DatabaseAccess}.
|
||||
* @access protected
|
||||
*/
|
||||
protected $db;
|
||||
|
||||
/**
|
||||
* @var object $user reference to currently logged in user. This must be
|
||||
* an instance of {@link LetoDMS_Core_User}. This variable is currently not
|
||||
* an instance of {@link SeedDMS_Core_User}. This variable is currently not
|
||||
* used. It is set by {@link setUser}.
|
||||
* @access private
|
||||
*/
|
||||
|
@ -129,7 +129,7 @@ class LetoDMS_Core_DMS {
|
|||
/**
|
||||
* @var array $callbacks list of methods called when certain operations,
|
||||
* like removing a document, are executed. Set a callback with
|
||||
* {@link LetoDMS_Core_DMS::setCallback()}.
|
||||
* {@link SeedDMS_Core_DMS::setCallback()}.
|
||||
* The key of the array is the internal callback function name. Each
|
||||
* array element is an array with two elements: the function name
|
||||
* and the parameter passed to the function.
|
||||
|
@ -211,7 +211,7 @@ class LetoDMS_Core_DMS {
|
|||
* @param object $db object to access the underlying database
|
||||
* @param string $contentDir path in filesystem containing the data store
|
||||
* all document contents is stored
|
||||
* @return object instance of {@link LetoDMS_Core_DMS}
|
||||
* @return object instance of {@link SeedDMS_Core_DMS}
|
||||
*/
|
||||
function __construct($db, $contentDir) { /* {{{ */
|
||||
$this->db = $db;
|
||||
|
@ -281,7 +281,7 @@ class LetoDMS_Core_DMS {
|
|||
/**
|
||||
* Set id of root folder
|
||||
* This function must be called right after creating an instance of
|
||||
* {@link LetoDMS_Core_DMS}
|
||||
* {@link SeedDMS_Core_DMS}
|
||||
*
|
||||
* @param interger $id id of root folder
|
||||
*/
|
||||
|
@ -296,12 +296,12 @@ class LetoDMS_Core_DMS {
|
|||
* associated with a directory in the filesystem. Consequently, there is
|
||||
* maximum number of documents, because depending on the file system
|
||||
* the maximum number of subdirectories is limited. Since version 3.3.0 of
|
||||
* letodms an additional directory level has been introduced. All documents
|
||||
* SeedDMS an additional directory level has been introduced. All documents
|
||||
* from 1 to maxDirID-1 will be saved in 1/<docid>, documents from maxDirID
|
||||
* to 2*maxDirID-1 are stored in 2/<docid> and so on.
|
||||
*
|
||||
* This function must be called right after creating an instance of
|
||||
* {@link LetoDMS_Core_DMS}
|
||||
* {@link SeedDMS_Core_DMS}
|
||||
*
|
||||
* @param interger $id id of root folder
|
||||
*/
|
||||
|
@ -346,7 +346,7 @@ class LetoDMS_Core_DMS {
|
|||
* @param string $username login name of user
|
||||
* @param string $password password of user
|
||||
*
|
||||
* @return object instance of class {@link LetoDMS_Core_User} or false
|
||||
* @return object instance of class {@link SeedDMS_Core_User} or false
|
||||
*/
|
||||
function login($username, $password) { /* {{{ */
|
||||
} /* }}} */
|
||||
|
@ -370,7 +370,7 @@ class LetoDMS_Core_DMS {
|
|||
* This function retrieves a document from the database by its id.
|
||||
*
|
||||
* @param integer $id internal id of document
|
||||
* @return object instance of {@link LetoDMS_Core_Document} or false
|
||||
* @return object instance of {@link SeedDMS_Core_Document} or false
|
||||
*/
|
||||
function getDocument($id) { /* {{{ */
|
||||
if (!is_numeric($id)) return false;
|
||||
|
@ -395,7 +395,7 @@ class LetoDMS_Core_DMS {
|
|||
$lock = $lockArr[0]["userID"];
|
||||
}
|
||||
|
||||
$document = new LetoDMS_Core_Document($resArr["id"], $resArr["name"], $resArr["comment"], $resArr["date"], $resArr["expires"], $resArr["owner"], $resArr["folder"], $resArr["inheritAccess"], $resArr["defaultAccess"], $lock, $resArr["keywords"], $resArr["sequence"]);
|
||||
$document = new SeedDMS_Core_Document($resArr["id"], $resArr["name"], $resArr["comment"], $resArr["date"], $resArr["expires"], $resArr["owner"], $resArr["folder"], $resArr["inheritAccess"], $resArr["defaultAccess"], $lock, $resArr["keywords"], $resArr["sequence"]);
|
||||
$document->setDMS($this);
|
||||
return $document;
|
||||
} /* }}} */
|
||||
|
@ -451,7 +451,7 @@ class LetoDMS_Core_DMS {
|
|||
return false;
|
||||
|
||||
$row = $resArr[0];
|
||||
$document = new LetoDMS_Core_Document($row["id"], $row["name"], $row["comment"], $row["date"], $row["expires"], $row["owner"], $row["folder"], $row["inheritAccess"], $row["defaultAccess"], $row["lockUser"], $row["keywords"], $row["sequence"]);
|
||||
$document = new SeedDMS_Core_Document($row["id"], $row["name"], $row["comment"], $row["date"], $row["expires"], $row["owner"], $row["folder"], $row["inheritAccess"], $row["defaultAccess"], $row["lockUser"], $row["keywords"], $row["sequence"]);
|
||||
$document->setDMS($this);
|
||||
return $document;
|
||||
} /* }}} */
|
||||
|
@ -572,13 +572,13 @@ class LetoDMS_Core_DMS {
|
|||
// Is the search restricted to documents created between two specific dates?
|
||||
$searchCreateDate = "";
|
||||
if ($creationstartdate) {
|
||||
$startdate = LetoDMS_Core_DMS::makeTimeStamp($creationstartdate['hour'], $creationstartdate['minute'], $creationstartdate['second'], $creationstartdate['year'], $creationstartdate["month"], $creationstartdate["day"]);
|
||||
$startdate = SeedDMS_Core_DMS::makeTimeStamp($creationstartdate['hour'], $creationstartdate['minute'], $creationstartdate['second'], $creationstartdate['year'], $creationstartdate["month"], $creationstartdate["day"]);
|
||||
if ($startdate) {
|
||||
$searchCreateDate .= "`tblFolders`.`date` >= ".$startdate;
|
||||
}
|
||||
}
|
||||
if ($creationenddate) {
|
||||
$stopdate = LetoDMS_Core_DMS::makeTimeStamp($creationenddate['hour'], $creationstartdate['minute'], $creationstartdate['second'], $creationenddate["year"], $creationenddate["month"], $creationenddate["day"]);
|
||||
$stopdate = SeedDMS_Core_DMS::makeTimeStamp($creationenddate['hour'], $creationstartdate['minute'], $creationstartdate['second'], $creationenddate["year"], $creationenddate["month"], $creationenddate["day"]);
|
||||
if ($stopdate) {
|
||||
if($startdate)
|
||||
$searchCreateDate .= " AND ";
|
||||
|
@ -708,12 +708,12 @@ class LetoDMS_Core_DMS {
|
|||
foreach($attributes as $attrdefid=>$attribute) {
|
||||
if($attribute) {
|
||||
$attrdef = $this->getAttributeDefinition($attrdefid);
|
||||
if($attrdef->getObjType() == LetoDMS_Core_AttributeDefinition::objtype_document) {
|
||||
if($attrdef->getObjType() == SeedDMS_Core_AttributeDefinition::objtype_document) {
|
||||
if($attrdef->getValueSet())
|
||||
$searchAttributes[] = "`tblDocumentAttributes`.`attrdef`=".$attrdefid." AND `tblDocumentAttributes`.`value`='".$attribute."'";
|
||||
else
|
||||
$searchAttributes[] = "`tblDocumentAttributes`.`attrdef`=".$attrdefid." AND `tblDocumentAttributes`.`value` like '%".$attribute."%'";
|
||||
} elseif($attrdef->getObjType() == LetoDMS_Core_AttributeDefinition::objtype_documentcontent) {
|
||||
} elseif($attrdef->getObjType() == SeedDMS_Core_AttributeDefinition::objtype_documentcontent) {
|
||||
if($attrdef->getValueSet())
|
||||
$searchAttributes[] = "`tblDocumentContentAttributes`.`attrdef`=".$attrdefid." AND `tblDocumentContentAttributes`.`value`='".$attribute."'";
|
||||
else
|
||||
|
@ -726,13 +726,13 @@ class LetoDMS_Core_DMS {
|
|||
// Is the search restricted to documents created between two specific dates?
|
||||
$searchCreateDate = "";
|
||||
if ($creationstartdate) {
|
||||
$startdate = LetoDMS_Core_DMS::makeTimeStamp($creationstartdate['hour'], $creationstartdate['minute'], $creationstartdate['second'], $creationstartdate['year'], $creationstartdate["month"], $creationstartdate["day"]);
|
||||
$startdate = SeedDMS_Core_DMS::makeTimeStamp($creationstartdate['hour'], $creationstartdate['minute'], $creationstartdate['second'], $creationstartdate['year'], $creationstartdate["month"], $creationstartdate["day"]);
|
||||
if ($startdate) {
|
||||
$searchCreateDate .= "`tblDocuments`.`date` >= ".$startdate;
|
||||
}
|
||||
}
|
||||
if ($creationenddate) {
|
||||
$stopdate = LetoDMS_Core_DMS::makeTimeStamp($creationenddate['hour'], $creationenddate['minute'], $creationenddate['second'], $creationenddate["year"], $creationenddate["month"], $creationenddate["day"]);
|
||||
$stopdate = SeedDMS_Core_DMS::makeTimeStamp($creationenddate['hour'], $creationenddate['minute'], $creationenddate['second'], $creationenddate["year"], $creationenddate["month"], $creationenddate["day"]);
|
||||
if ($stopdate) {
|
||||
if($searchCreateDate)
|
||||
$searchCreateDate .= " AND ";
|
||||
|
@ -740,7 +740,7 @@ class LetoDMS_Core_DMS {
|
|||
}
|
||||
}
|
||||
if ($modificationstartdate) {
|
||||
$startdate = LetoDMS_Core_DMS::makeTimeStamp($modificationstartdate['hour'], $modificationstartdate['minute'], $modificationstartdate['second'], $modificationstartdate['year'], $modificationstartdate["month"], $modificationstartdate["day"]);
|
||||
$startdate = SeedDMS_Core_DMS::makeTimeStamp($modificationstartdate['hour'], $modificationstartdate['minute'], $modificationstartdate['second'], $modificationstartdate['year'], $modificationstartdate["month"], $modificationstartdate["day"]);
|
||||
if ($startdate) {
|
||||
if($searchCreateDate)
|
||||
$searchCreateDate .= " AND ";
|
||||
|
@ -748,7 +748,7 @@ class LetoDMS_Core_DMS {
|
|||
}
|
||||
}
|
||||
if ($modificationenddate) {
|
||||
$stopdate = LetoDMS_Core_DMS::makeTimeStamp($modificationenddate['hour'], $modificationenddate['minute'], $modificationenddate['second'], $modificationenddate["year"], $modificationenddate["month"], $modificationenddate["day"]);
|
||||
$stopdate = SeedDMS_Core_DMS::makeTimeStamp($modificationenddate['hour'], $modificationenddate['minute'], $modificationenddate['second'], $modificationenddate["year"], $modificationenddate["month"], $modificationenddate["day"]);
|
||||
if ($stopdate) {
|
||||
if($searchCreateDate)
|
||||
$searchCreateDate .= " AND ";
|
||||
|
@ -757,7 +757,7 @@ class LetoDMS_Core_DMS {
|
|||
}
|
||||
$searchExpirationDate = '';
|
||||
if ($expirationstartdate) {
|
||||
$startdate = LetoDMS_Core_DMS::makeTimeStamp($expirationstartdate['hour'], $expirationstartdate['minute'], $expirationstartdate['second'], $expirationstartdate['year'], $expirationstartdate["month"], $expirationstartdate["day"]);
|
||||
$startdate = SeedDMS_Core_DMS::makeTimeStamp($expirationstartdate['hour'], $expirationstartdate['minute'], $expirationstartdate['second'], $expirationstartdate['year'], $expirationstartdate["month"], $expirationstartdate["day"]);
|
||||
if ($startdate) {
|
||||
if($searchExpirationDate)
|
||||
$searchExpirationDate .= " AND ";
|
||||
|
@ -765,7 +765,7 @@ class LetoDMS_Core_DMS {
|
|||
}
|
||||
}
|
||||
if ($expirationenddate) {
|
||||
$stopdate = LetoDMS_Core_DMS::makeTimeStamp($expirationenddate['hour'], $expirationenddate['minute'], $expirationenddate['second'], $expirationenddate["year"], $expirationenddate["month"], $expirationenddate["day"]);
|
||||
$stopdate = SeedDMS_Core_DMS::makeTimeStamp($expirationenddate['hour'], $expirationenddate['minute'], $expirationenddate['second'], $expirationenddate["year"], $expirationenddate["month"], $expirationenddate["day"]);
|
||||
if ($stopdate) {
|
||||
if($searchExpirationDate)
|
||||
$searchExpirationDate .= " AND ";
|
||||
|
@ -893,7 +893,7 @@ class LetoDMS_Core_DMS {
|
|||
* This function retrieves a folder from the database by its id.
|
||||
*
|
||||
* @param integer $id internal id of folder
|
||||
* @return object instance of LetoDMS_Core_Folder or false
|
||||
* @return object instance of SeedDMS_Core_Folder or false
|
||||
*/
|
||||
function getFolder($id) { /* {{{ */
|
||||
if (!is_numeric($id)) return false;
|
||||
|
@ -907,7 +907,7 @@ class LetoDMS_Core_DMS {
|
|||
return false;
|
||||
|
||||
$resArr = $resArr[0];
|
||||
$folder = new LetoDMS_Core_Folder($resArr["id"], $resArr["name"], $resArr["parent"], $resArr["comment"], $resArr["date"], $resArr["owner"], $resArr["inheritAccess"], $resArr["defaultAccess"], $resArr["sequence"]);
|
||||
$folder = new SeedDMS_Core_Folder($resArr["id"], $resArr["name"], $resArr["parent"], $resArr["comment"], $resArr["date"], $resArr["owner"], $resArr["inheritAccess"], $resArr["defaultAccess"], $resArr["sequence"]);
|
||||
$folder->setDMS($this);
|
||||
return $folder;
|
||||
} /* }}} */
|
||||
|
@ -940,7 +940,7 @@ class LetoDMS_Core_DMS {
|
|||
return false;
|
||||
|
||||
$resArr = $resArr[0];
|
||||
$folder = new LetoDMS_Core_Folder($resArr["id"], $resArr["name"], $resArr["parent"], $resArr["comment"], $resArr["date"], $resArr["owner"], $resArr["inheritAccess"], $resArr["defaultAccess"], $resArr["sequence"]);
|
||||
$folder = new SeedDMS_Core_Folder($resArr["id"], $resArr["name"], $resArr["parent"], $resArr["comment"], $resArr["date"], $resArr["owner"], $resArr["inheritAccess"], $resArr["defaultAccess"], $resArr["sequence"]);
|
||||
$folder->setDMS($this);
|
||||
return $folder;
|
||||
} /* }}} */
|
||||
|
@ -951,7 +951,7 @@ class LetoDMS_Core_DMS {
|
|||
* This function retrieves a user from the database by its id.
|
||||
*
|
||||
* @param integer $id internal id of user
|
||||
* @return object instance of {@link LetoDMS_Core_User} or false
|
||||
* @return object instance of {@link SeedDMS_Core_User} or false
|
||||
*/
|
||||
function getUser($id) { /* {{{ */
|
||||
if (!is_numeric($id))
|
||||
|
@ -965,7 +965,7 @@ class LetoDMS_Core_DMS {
|
|||
|
||||
$resArr = $resArr[0];
|
||||
|
||||
$user = new LetoDMS_Core_User($resArr["id"], $resArr["login"], $resArr["pwd"], $resArr["fullName"], $resArr["email"], $resArr["language"], $resArr["theme"], $resArr["comment"], $resArr["role"], $resArr["hidden"], $resArr["disabled"], $resArr["pwdExpiration"], $resArr["loginfailures"], $resArr["quota"]);
|
||||
$user = new SeedDMS_Core_User($resArr["id"], $resArr["login"], $resArr["pwd"], $resArr["fullName"], $resArr["email"], $resArr["language"], $resArr["theme"], $resArr["comment"], $resArr["role"], $resArr["hidden"], $resArr["disabled"], $resArr["pwdExpiration"], $resArr["loginfailures"], $resArr["quota"]);
|
||||
$user->setDMS($this);
|
||||
return $user;
|
||||
} /* }}} */
|
||||
|
@ -979,7 +979,7 @@ class LetoDMS_Core_DMS {
|
|||
*
|
||||
* @param string $login internal login of user
|
||||
* @param string $email email of user
|
||||
* @return object instance of {@link LetoDMS_Core_User} or false
|
||||
* @return object instance of {@link SeedDMS_Core_User} or false
|
||||
*/
|
||||
function getUserByLogin($login, $email='') { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblUsers WHERE login = ".$this->db->qstr($login);
|
||||
|
@ -992,7 +992,7 @@ class LetoDMS_Core_DMS {
|
|||
|
||||
$resArr = $resArr[0];
|
||||
|
||||
$user = new LetoDMS_Core_User($resArr["id"], $resArr["login"], $resArr["pwd"], $resArr["fullName"], $resArr["email"], $resArr["language"], $resArr["theme"], $resArr["comment"], $resArr["role"], $resArr["hidden"], $resArr["disabled"], $resArr["pwdExpiration"], $resArr["loginfailures"], $resArr["quota"]);
|
||||
$user = new SeedDMS_Core_User($resArr["id"], $resArr["login"], $resArr["pwd"], $resArr["fullName"], $resArr["email"], $resArr["language"], $resArr["theme"], $resArr["comment"], $resArr["role"], $resArr["hidden"], $resArr["disabled"], $resArr["pwdExpiration"], $resArr["loginfailures"], $resArr["quota"]);
|
||||
$user->setDMS($this);
|
||||
return $user;
|
||||
} /* }}} */
|
||||
|
@ -1004,7 +1004,7 @@ class LetoDMS_Core_DMS {
|
|||
* It is needed when the user requests a new password.
|
||||
*
|
||||
* @param integer $email email address of user
|
||||
* @return object instance of {@link LetoDMS_Core_User} or false
|
||||
* @return object instance of {@link SeedDMS_Core_User} or false
|
||||
*/
|
||||
function getUserByEmail($email) { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblUsers WHERE email = ".$this->db->qstr($email);
|
||||
|
@ -1015,7 +1015,7 @@ class LetoDMS_Core_DMS {
|
|||
|
||||
$resArr = $resArr[0];
|
||||
|
||||
$user = new LetoDMS_Core_User($resArr["id"], $resArr["login"], $resArr["pwd"], $resArr["fullName"], $resArr["email"], $resArr["language"], $resArr["theme"], $resArr["comment"], $resArr["role"], $resArr["hidden"], $resArr["disabled"], $resArr["pwdExpiration"], $resArr["loginfailures"], $resArr["quota"]);
|
||||
$user = new SeedDMS_Core_User($resArr["id"], $resArr["login"], $resArr["pwd"], $resArr["fullName"], $resArr["email"], $resArr["language"], $resArr["theme"], $resArr["comment"], $resArr["role"], $resArr["hidden"], $resArr["disabled"], $resArr["pwdExpiration"], $resArr["loginfailures"], $resArr["quota"]);
|
||||
$user->setDMS($this);
|
||||
return $user;
|
||||
} /* }}} */
|
||||
|
@ -1023,7 +1023,7 @@ class LetoDMS_Core_DMS {
|
|||
/**
|
||||
* Return list of all users
|
||||
*
|
||||
* @return array of instances of {@link LetoDMS_Core_User} or false
|
||||
* @return array of instances of {@link SeedDMS_Core_User} or false
|
||||
*/
|
||||
function getAllUsers($orderby = '') { /* {{{ */
|
||||
if($orderby == 'fullname')
|
||||
|
@ -1038,7 +1038,7 @@ class LetoDMS_Core_DMS {
|
|||
$users = array();
|
||||
|
||||
for ($i = 0; $i < count($resArr); $i++) {
|
||||
$user = new LetoDMS_Core_User($resArr[$i]["id"], $resArr[$i]["login"], $resArr[$i]["pwd"], $resArr[$i]["fullName"], $resArr[$i]["email"], (isset($resArr["language"])?$resArr["language"]:NULL), (isset($resArr["theme"])?$resArr["theme"]:NULL), $resArr[$i]["comment"], $resArr[$i]["role"], $resArr[$i]["hidden"], $resArr[$i]["disabled"], $resArr[$i]["pwdExpiration"], $resArr[$i]["loginfailures"], $resArr[$i]["quota"]);
|
||||
$user = new SeedDMS_Core_User($resArr[$i]["id"], $resArr[$i]["login"], $resArr[$i]["pwd"], $resArr[$i]["fullName"], $resArr[$i]["email"], (isset($resArr["language"])?$resArr["language"]:NULL), (isset($resArr["theme"])?$resArr["theme"]:NULL), $resArr[$i]["comment"], $resArr[$i]["role"], $resArr[$i]["hidden"], $resArr[$i]["disabled"], $resArr[$i]["pwdExpiration"], $resArr[$i]["loginfailures"], $resArr[$i]["quota"]);
|
||||
$user->setDMS($this);
|
||||
$users[$i] = $user;
|
||||
}
|
||||
|
@ -1058,7 +1058,7 @@ class LetoDMS_Core_DMS {
|
|||
* @param integer $isHidden hide user in all lists, if this is set login
|
||||
* is still allowed
|
||||
* @param integer $isDisabled disable user and prevent login
|
||||
* @return object of {@link LetoDMS_Core_User}
|
||||
* @return object of {@link SeedDMS_Core_User}
|
||||
*/
|
||||
function addUser($login, $pwd, $fullName, $email, $language, $theme, $comment, $role='0', $isHidden=0, $isDisabled=0, $pwdexpiration='') { /* {{{ */
|
||||
$db = $this->db;
|
||||
|
@ -1095,7 +1095,7 @@ class LetoDMS_Core_DMS {
|
|||
|
||||
$resArr = $resArr[0];
|
||||
|
||||
$group = new LetoDMS_Core_Group($resArr["id"], $resArr["name"], $resArr["comment"]);
|
||||
$group = new SeedDMS_Core_Group($resArr["id"], $resArr["name"], $resArr["comment"]);
|
||||
$group->setDMS($this);
|
||||
return $group;
|
||||
} /* }}} */
|
||||
|
@ -1117,7 +1117,7 @@ class LetoDMS_Core_DMS {
|
|||
|
||||
$resArr = $resArr[0];
|
||||
|
||||
$group = new LetoDMS_Core_Group($resArr["id"], $resArr["name"], $resArr["comment"]);
|
||||
$group = new SeedDMS_Core_Group($resArr["id"], $resArr["name"], $resArr["comment"]);
|
||||
$group->setDMS($this);
|
||||
return $group;
|
||||
} /* }}} */
|
||||
|
@ -1125,7 +1125,7 @@ class LetoDMS_Core_DMS {
|
|||
/**
|
||||
* Get a list of all groups
|
||||
*
|
||||
* @return array array of instances of {@link LetoDMS_Core_Group}
|
||||
* @return array array of instances of {@link SeedDMS_Core_Group}
|
||||
*/
|
||||
function getAllGroups() { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblGroups ORDER BY name";
|
||||
|
@ -1138,7 +1138,7 @@ class LetoDMS_Core_DMS {
|
|||
|
||||
for ($i = 0; $i < count($resArr); $i++) {
|
||||
|
||||
$group = new LetoDMS_Core_Group($resArr[$i]["id"], $resArr[$i]["name"], $resArr[$i]["comment"]);
|
||||
$group = new SeedDMS_Core_Group($resArr[$i]["id"], $resArr[$i]["name"], $resArr[$i]["comment"]);
|
||||
$group->setDMS($this);
|
||||
$groups[$i] = $group;
|
||||
}
|
||||
|
@ -1151,7 +1151,7 @@ class LetoDMS_Core_DMS {
|
|||
*
|
||||
* @param string $name name of group
|
||||
* @param string $comment comment of group
|
||||
* @return object/boolean instance of {@link LetoDMS_Core_Group} or false in
|
||||
* @return object/boolean instance of {@link SeedDMS_Core_Group} or false in
|
||||
* case of an error.
|
||||
*/
|
||||
function addGroup($name, $comment) { /* {{{ */
|
||||
|
@ -1176,7 +1176,7 @@ class LetoDMS_Core_DMS {
|
|||
return false;
|
||||
|
||||
$resArr = $resArr[0];
|
||||
$cat = new LetoDMS_Core_Keywordcategory($resArr["id"], $resArr["owner"], $resArr["name"]);
|
||||
$cat = new SeedDMS_Core_Keywordcategory($resArr["id"], $resArr["owner"], $resArr["name"]);
|
||||
$cat->setDMS($this);
|
||||
return $cat;
|
||||
} /* }}} */
|
||||
|
@ -1188,7 +1188,7 @@ class LetoDMS_Core_DMS {
|
|||
return false;
|
||||
|
||||
$resArr = $resArr[0];
|
||||
$cat = new LetoDMS_Core_Keywordcategory($resArr["id"], $resArr["owner"], $resArr["name"]);
|
||||
$cat = new SeedDMS_Core_Keywordcategory($resArr["id"], $resArr["owner"], $resArr["name"]);
|
||||
$cat->setDMS($this);
|
||||
return $cat;
|
||||
} /* }}} */
|
||||
|
@ -1204,7 +1204,7 @@ class LetoDMS_Core_DMS {
|
|||
|
||||
$categories = array();
|
||||
foreach ($resArr as $row) {
|
||||
$cat = new LetoDMS_Core_KeywordCategory($row["id"], $row["owner"], $row["name"]);
|
||||
$cat = new SeedDMS_Core_KeywordCategory($row["id"], $row["owner"], $row["name"]);
|
||||
$cat->setDMS($this);
|
||||
array_push($categories, $cat);
|
||||
}
|
||||
|
@ -1226,7 +1226,7 @@ class LetoDMS_Core_DMS {
|
|||
|
||||
$categories = array();
|
||||
foreach ($resArr as $row) {
|
||||
$cat = new LetoDMS_Core_KeywordCategory($row["id"], $row["owner"], $row["name"]);
|
||||
$cat = new SeedDMS_Core_KeywordCategory($row["id"], $row["owner"], $row["name"]);
|
||||
$cat->setDMS($this);
|
||||
array_push($categories, $cat);
|
||||
}
|
||||
|
@ -1255,7 +1255,7 @@ class LetoDMS_Core_DMS {
|
|||
return false;
|
||||
|
||||
$resArr = $resArr[0];
|
||||
$cat = new LetoDMS_Core_DocumentCategory($resArr["id"], $resArr["name"]);
|
||||
$cat = new SeedDMS_Core_DocumentCategory($resArr["id"], $resArr["name"]);
|
||||
$cat->setDMS($this);
|
||||
return $cat;
|
||||
} /* }}} */
|
||||
|
@ -1269,7 +1269,7 @@ class LetoDMS_Core_DMS {
|
|||
|
||||
$categories = array();
|
||||
foreach ($resArr as $row) {
|
||||
$cat = new LetoDMS_Core_DocumentCategory($row["id"], $row["name"]);
|
||||
$cat = new SeedDMS_Core_DocumentCategory($row["id"], $row["name"]);
|
||||
$cat->setDMS($this);
|
||||
array_push($categories, $cat);
|
||||
}
|
||||
|
@ -1283,7 +1283,7 @@ class LetoDMS_Core_DMS {
|
|||
* The name of a category is by default unique.
|
||||
*
|
||||
* @param string $name human readable name of category
|
||||
* @return object instance of {@link LetoDMS_Core_DocumentCategory}
|
||||
* @return object instance of {@link SeedDMS_Core_DocumentCategory}
|
||||
*/
|
||||
function getDocumentCategoryByName($name) { /* {{{ */
|
||||
if (!$name) return false;
|
||||
|
@ -1294,7 +1294,7 @@ class LetoDMS_Core_DMS {
|
|||
return false;
|
||||
|
||||
$row = $resArr[0];
|
||||
$cat = new LetoDMS_Core_DocumentCategory($row["id"], $row["name"]);
|
||||
$cat = new SeedDMS_Core_DocumentCategory($row["id"], $row["name"]);
|
||||
$cat->setDMS($this);
|
||||
|
||||
return $cat;
|
||||
|
@ -1331,7 +1331,7 @@ class LetoDMS_Core_DMS {
|
|||
|
||||
$notifications = array();
|
||||
foreach ($resArr as $row) {
|
||||
$not = new LetoDMS_Core_Notification($row["target"], $row["targetType"], $row["userID"], $row["groupID"]);
|
||||
$not = new SeedDMS_Core_Notification($row["target"], $row["targetType"], $row["userID"], $row["groupID"]);
|
||||
$not->setDMS($this);
|
||||
array_push($notifications, $cat);
|
||||
}
|
||||
|
@ -1359,7 +1359,7 @@ class LetoDMS_Core_DMS {
|
|||
|
||||
$notifications = array();
|
||||
foreach ($resArr as $row) {
|
||||
$not = new LetoDMS_Core_Notification($row["target"], $row["targetType"], $row["userID"], $row["groupID"]);
|
||||
$not = new SeedDMS_Core_Notification($row["target"], $row["targetType"], $row["userID"], $row["groupID"]);
|
||||
$not->setDMS($this);
|
||||
array_push($notifications, $cat);
|
||||
}
|
||||
|
@ -1425,7 +1425,7 @@ class LetoDMS_Core_DMS {
|
|||
* its id.
|
||||
*
|
||||
* @param integer $id internal id of attribute defintion
|
||||
* @return object instance of {@link LetoDMS_Core_AttributeDefinition} or false
|
||||
* @return object instance of {@link SeedDMS_Core_AttributeDefinition} or false
|
||||
*/
|
||||
function getAttributeDefinition($id) { /* {{{ */
|
||||
if (!is_numeric($id))
|
||||
|
@ -1439,7 +1439,7 @@ class LetoDMS_Core_DMS {
|
|||
|
||||
$resArr = $resArr[0];
|
||||
|
||||
$attrdef = new LetoDMS_Core_AttributeDefinition($resArr["id"], $resArr["name"], $resArr["objtype"], $resArr["type"], $resArr["multiple"], $resArr["minvalues"], $resArr["maxvalues"], $resArr["valueset"]);
|
||||
$attrdef = new SeedDMS_Core_AttributeDefinition($resArr["id"], $resArr["name"], $resArr["objtype"], $resArr["type"], $resArr["multiple"], $resArr["minvalues"], $resArr["maxvalues"], $resArr["valueset"]);
|
||||
$attrdef->setDMS($this);
|
||||
return $attrdef;
|
||||
} /* }}} */
|
||||
|
@ -1450,7 +1450,7 @@ class LetoDMS_Core_DMS {
|
|||
* This function retrieves an attribute def. from the database by its name.
|
||||
*
|
||||
* @param string $name internal name of attribute def.
|
||||
* @return object instance of {@link LetoDMS_Core_AttributeDefinition} or false
|
||||
* @return object instance of {@link SeedDMS_Core_AttributeDefinition} or false
|
||||
*/
|
||||
function getAttributeDefinitionByName($name) { /* {{{ */
|
||||
if (!$name) return false;
|
||||
|
@ -1463,7 +1463,7 @@ class LetoDMS_Core_DMS {
|
|||
|
||||
$resArr = $resArr[0];
|
||||
|
||||
$attrdef = new LetoDMS_Core_AttributeDefinition($resArr["id"], $resArr["name"], $resArr["objtype"], $resArr["type"], $resArr["multiple"], $resArr["minvalues"], $resArr["maxvalues"], $resArr["valueset"]);
|
||||
$attrdef = new SeedDMS_Core_AttributeDefinition($resArr["id"], $resArr["name"], $resArr["objtype"], $resArr["type"], $resArr["multiple"], $resArr["minvalues"], $resArr["maxvalues"], $resArr["valueset"]);
|
||||
$attrdef->setDMS($this);
|
||||
return $attrdef;
|
||||
} /* }}} */
|
||||
|
@ -1472,7 +1472,7 @@ class LetoDMS_Core_DMS {
|
|||
* Return list of all attributes definitions
|
||||
*
|
||||
* @param integer $objtype select those attributes defined for an object type
|
||||
* @return array of instances of {@link LetoDMS_Core_AttributeDefinition} or false
|
||||
* @return array of instances of {@link SeedDMS_Core_AttributeDefinition} or false
|
||||
*/
|
||||
function getAllAttributeDefinitions($objtype=0) { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblAttributeDefinitions";
|
||||
|
@ -1491,7 +1491,7 @@ class LetoDMS_Core_DMS {
|
|||
$attrdefs = array();
|
||||
|
||||
for ($i = 0; $i < count($resArr); $i++) {
|
||||
$attrdef = new LetoDMS_Core_AttributeDefinition($resArr[$i]["id"], $resArr[$i]["name"], $resArr[$i]["objtype"], $resArr[$i]["type"], $resArr[$i]["multiple"], $resArr[$i]["minvalues"], $resArr[$i]["maxvalues"], $resArr[$i]["valueset"]);
|
||||
$attrdef = new SeedDMS_Core_AttributeDefinition($resArr[$i]["id"], $resArr[$i]["name"], $resArr[$i]["objtype"], $resArr[$i]["type"], $resArr[$i]["multiple"], $resArr[$i]["minvalues"], $resArr[$i]["maxvalues"], $resArr[$i]["valueset"]);
|
||||
$attrdef->setDMS($this);
|
||||
$attrdefs[$i] = $attrdef;
|
||||
}
|
||||
|
@ -1508,7 +1508,7 @@ class LetoDMS_Core_DMS {
|
|||
* @param integer $minvalues minimum number of values
|
||||
* @param integer $maxvalues maximum number of values if multiple is set
|
||||
* @param string $valueset list of allowed values (csv format)
|
||||
* @return object of {@link LetoDMS_Core_User}
|
||||
* @return object of {@link SeedDMS_Core_User}
|
||||
*/
|
||||
function addAttributeDefinition($name, $objtype, $type, $multiple=0, $minvalues=0, $maxvalues=1, $valueset='') { /* {{{ */
|
||||
if (is_object($this->getAttributeDefinitionByName($name))) {
|
||||
|
@ -1527,7 +1527,7 @@ class LetoDMS_Core_DMS {
|
|||
/**
|
||||
* Return list of all workflows
|
||||
*
|
||||
* @return array of instances of {@link LetoDMS_Core_Workflow} or false
|
||||
* @return array of instances of {@link SeedDMS_Core_Workflow} or false
|
||||
*/
|
||||
function getAllWorkflows() { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblWorkflows ORDER BY name";
|
||||
|
@ -1543,12 +1543,12 @@ class LetoDMS_Core_DMS {
|
|||
return false;
|
||||
|
||||
for ($i = 0; $i < count($ressArr); $i++) {
|
||||
$wkfstates[$ressArr[$i]["id"]] = new LetoDMS_Core_Workflow_State($ressArr[$i]["id"], $ressArr[$i]["name"], $ressArr[$i]["maxtime"], $ressArr[$i]["precondfunc"], $ressArr[$i]["documentstatus"]);
|
||||
$wkfstates[$ressArr[$i]["id"]] = new SeedDMS_Core_Workflow_State($ressArr[$i]["id"], $ressArr[$i]["name"], $ressArr[$i]["maxtime"], $ressArr[$i]["precondfunc"], $ressArr[$i]["documentstatus"]);
|
||||
}
|
||||
|
||||
$workflows = array();
|
||||
for ($i = 0; $i < count($resArr); $i++) {
|
||||
$workflow = new LetoDMS_Core_Workflow($resArr[$i]["id"], $resArr[$i]["name"], $wkfstates[$resArr[$i]["initstate"]]);
|
||||
$workflow = new SeedDMS_Core_Workflow($resArr[$i]["id"], $resArr[$i]["name"], $wkfstates[$resArr[$i]["initstate"]]);
|
||||
$workflow->setDMS($this);
|
||||
$workflows[$i] = $workflow;
|
||||
}
|
||||
|
@ -1559,7 +1559,7 @@ class LetoDMS_Core_DMS {
|
|||
/**
|
||||
* Return workflow by its Id
|
||||
*
|
||||
* @return object of instances of {@link LetoDMS_Core_Workflow} or false
|
||||
* @return object of instances of {@link SeedDMS_Core_Workflow} or false
|
||||
*/
|
||||
function getWorkflow($id) { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblWorkflows WHERE id=".intval($id);
|
||||
|
@ -1573,7 +1573,7 @@ class LetoDMS_Core_DMS {
|
|||
|
||||
$initstate = $this->getWorkflowState($resArr[0]['initstate']);
|
||||
|
||||
$workflow = new LetoDMS_Core_Workflow($resArr[0]["id"], $resArr[0]["name"], $initstate);
|
||||
$workflow = new SeedDMS_Core_Workflow($resArr[0]["id"], $resArr[0]["name"], $initstate);
|
||||
$workflow->setDMS($this);
|
||||
|
||||
return $workflow;
|
||||
|
@ -1582,7 +1582,7 @@ class LetoDMS_Core_DMS {
|
|||
/**
|
||||
* Return workflow by its name
|
||||
*
|
||||
* @return object of instances of {@link LetoDMS_Core_Workflow} or false
|
||||
* @return object of instances of {@link SeedDMS_Core_Workflow} or false
|
||||
*/
|
||||
function getWorkflowByName($name) { /* {{{ */
|
||||
if (!$name) return false;
|
||||
|
@ -1598,7 +1598,7 @@ class LetoDMS_Core_DMS {
|
|||
|
||||
$initstate = $this->getWorkflowState($resArr[0]['initstate']);
|
||||
|
||||
$workflow = new LetoDMS_Core_Workflow($resArr[0]["id"], $resArr[0]["name"], $initstate);
|
||||
$workflow = new SeedDMS_Core_Workflow($resArr[0]["id"], $resArr[0]["name"], $initstate);
|
||||
$workflow->setDMS($this);
|
||||
|
||||
return $workflow;
|
||||
|
@ -1623,7 +1623,7 @@ class LetoDMS_Core_DMS {
|
|||
* This function retrieves a workflow state from the database by its id.
|
||||
*
|
||||
* @param integer $id internal id of workflow state
|
||||
* @return object instance of {@link LetoDMS_Core_Workflow_State} or false
|
||||
* @return object instance of {@link SeedDMS_Core_Workflow_State} or false
|
||||
*/
|
||||
function getWorkflowState($id) { /* {{{ */
|
||||
if (!is_numeric($id))
|
||||
|
@ -1637,7 +1637,7 @@ class LetoDMS_Core_DMS {
|
|||
|
||||
$resArr = $resArr[0];
|
||||
|
||||
$state = new LetoDMS_Core_Workflow_State($resArr["id"], $resArr["name"], $resArr["maxtime"], $resArr["precondfunc"], $resArr["documentstatus"]);
|
||||
$state = new SeedDMS_Core_Workflow_State($resArr["id"], $resArr["name"], $resArr["maxtime"], $resArr["precondfunc"], $resArr["documentstatus"]);
|
||||
$state->setDMS($this);
|
||||
return $state;
|
||||
} /* }}} */
|
||||
|
@ -1646,7 +1646,7 @@ class LetoDMS_Core_DMS {
|
|||
* Return workflow state by its name
|
||||
*
|
||||
* @param string $name name of workflow state
|
||||
* @return object of instances of {@link LetoDMS_Core_Workflow_State} or false
|
||||
* @return object of instances of {@link SeedDMS_Core_Workflow_State} or false
|
||||
*/
|
||||
function getWorkflowStateByName($name) { /* {{{ */
|
||||
if (!$name) return false;
|
||||
|
@ -1662,7 +1662,7 @@ class LetoDMS_Core_DMS {
|
|||
|
||||
$resArr = $resArr[0];
|
||||
|
||||
$state = new LetoDMS_Core_Workflow_State($resArr["id"], $resArr["name"], $resArr["maxtime"], $resArr["precondfunc"], $resArr["documentstatus"]);
|
||||
$state = new SeedDMS_Core_Workflow_State($resArr["id"], $resArr["name"], $resArr["maxtime"], $resArr["precondfunc"], $resArr["documentstatus"]);
|
||||
$state->setDMS($this);
|
||||
|
||||
return $state;
|
||||
|
@ -1671,7 +1671,7 @@ class LetoDMS_Core_DMS {
|
|||
/**
|
||||
* Return list of all workflow states
|
||||
*
|
||||
* @return array of instances of {@link LetoDMS_Core_Workflow_State} or false
|
||||
* @return array of instances of {@link SeedDMS_Core_Workflow_State} or false
|
||||
*/
|
||||
function getAllWorkflowStates() { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblWorkflowStates ORDER BY name";
|
||||
|
@ -1682,7 +1682,7 @@ class LetoDMS_Core_DMS {
|
|||
|
||||
$wkfstates = array();
|
||||
for ($i = 0; $i < count($ressArr); $i++) {
|
||||
$wkfstate = new LetoDMS_Core_Workflow_State($ressArr[$i]["id"], $ressArr[$i]["name"], $ressArr[$i]["maxtime"], $ressArr[$i]["precondfunc"], $ressArr[$i]["documentstatus"]);
|
||||
$wkfstate = new SeedDMS_Core_Workflow_State($ressArr[$i]["id"], $ressArr[$i]["name"], $ressArr[$i]["maxtime"], $ressArr[$i]["precondfunc"], $ressArr[$i]["documentstatus"]);
|
||||
$wkfstate->setDMS($this);
|
||||
$wkfstates[$i] = $wkfstate;
|
||||
}
|
||||
|
@ -1716,7 +1716,7 @@ class LetoDMS_Core_DMS {
|
|||
* This function retrieves a workflow action from the database by its id.
|
||||
*
|
||||
* @param integer $id internal id of workflow action
|
||||
* @return object instance of {@link LetoDMS_Core_Workflow_Action} or false
|
||||
* @return object instance of {@link SeedDMS_Core_Workflow_Action} or false
|
||||
*/
|
||||
function getWorkflowAction($id) { /* {{{ */
|
||||
if (!is_numeric($id))
|
||||
|
@ -1730,7 +1730,7 @@ class LetoDMS_Core_DMS {
|
|||
|
||||
$resArr = $resArr[0];
|
||||
|
||||
$action = new LetoDMS_Core_Workflow_Action($resArr["id"], $resArr["name"]);
|
||||
$action = new SeedDMS_Core_Workflow_Action($resArr["id"], $resArr["name"]);
|
||||
$action->setDMS($this);
|
||||
return $action;
|
||||
} /* }}} */
|
||||
|
@ -1741,7 +1741,7 @@ class LetoDMS_Core_DMS {
|
|||
* This function retrieves a workflow action from the database by its name.
|
||||
*
|
||||
* @param string $name name of workflow action
|
||||
* @return object instance of {@link LetoDMS_Core_Workflow_Action} or false
|
||||
* @return object instance of {@link SeedDMS_Core_Workflow_Action} or false
|
||||
*/
|
||||
function getWorkflowActionByName($name) { /* {{{ */
|
||||
if (!$name) return false;
|
||||
|
@ -1754,7 +1754,7 @@ class LetoDMS_Core_DMS {
|
|||
|
||||
$resArr = $resArr[0];
|
||||
|
||||
$action = new LetoDMS_Core_Workflow_Action($resArr["id"], $resArr["name"]);
|
||||
$action = new SeedDMS_Core_Workflow_Action($resArr["id"], $resArr["name"]);
|
||||
$action->setDMS($this);
|
||||
return $action;
|
||||
} /* }}} */
|
||||
|
@ -1762,7 +1762,7 @@ class LetoDMS_Core_DMS {
|
|||
/**
|
||||
* Return list of workflow action
|
||||
*
|
||||
* @return array list of instances of {@link LetoDMS_Core_Workflow_Action} or false
|
||||
* @return array list of instances of {@link SeedDMS_Core_Workflow_Action} or false
|
||||
*/
|
||||
function getAllWorkflowActions() { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblWorkflowActions";
|
||||
|
@ -1773,7 +1773,7 @@ class LetoDMS_Core_DMS {
|
|||
|
||||
$wkfactions = array();
|
||||
for ($i = 0; $i < count($resArr); $i++) {
|
||||
$action = new LetoDMS_Core_Workflow_Action($resArr[$i]["id"], $resArr[$i]["name"]);
|
||||
$action = new SeedDMS_Core_Workflow_Action($resArr[$i]["id"], $resArr[$i]["name"]);
|
||||
$action->setDMS($this);
|
||||
$wkfactions[$i] = $action;
|
||||
}
|
||||
|
@ -1806,7 +1806,7 @@ class LetoDMS_Core_DMS {
|
|||
* This function retrieves a workflow transition from the database by its id.
|
||||
*
|
||||
* @param integer $id internal id of workflow transition
|
||||
* @return object instance of {@link LetoDMS_Core_Workflow_Transition} or false
|
||||
* @return object instance of {@link SeedDMS_Core_Workflow_Transition} or false
|
||||
*/
|
||||
function getWorkflowTransition($id) { /* {{{ */
|
||||
if (!is_numeric($id))
|
||||
|
@ -1820,7 +1820,7 @@ class LetoDMS_Core_DMS {
|
|||
|
||||
$resArr = $resArr[0];
|
||||
|
||||
$transition = new LetoDMS_Core_Workflow_Transition($resArr["id"], $this->getWorkflow($resArr["workflow"]), $this->getWorkflowState($resArr["state"]), $this->getWorkflowAction($resArr["action"]), $this->getWorkflowState($resArr["nextstate"]), $resArr["maxtime"]);
|
||||
$transition = new SeedDMS_Core_Workflow_Transition($resArr["id"], $this->getWorkflow($resArr["workflow"]), $this->getWorkflowState($resArr["state"]), $this->getWorkflowAction($resArr["action"]), $this->getWorkflowState($resArr["nextstate"]), $resArr["maxtime"]);
|
||||
$transition->setDMS($this);
|
||||
return $transition;
|
||||
} /* }}} */
|
||||
|
@ -1842,9 +1842,9 @@ class LetoDMS_Core_DMS {
|
|||
|
||||
$versions = array();
|
||||
foreach($resArr as $row) {
|
||||
$document = new LetoDMS_Core_Document($row['document'], '', '', '', '', '', '', '', '', '', '', '');
|
||||
$document = new SeedDMS_Core_Document($row['document'], '', '', '', '', '', '', '', '', '', '', '');
|
||||
$document->setDMS($this);
|
||||
$version = new LetoDMS_Core_DocumentContent($row['id'], $document, $row['version'], $row['comment'], $row['date'], $row['createdBy'], $row['dir'], $row['orgFileName'], $row['fileType'], $row['mimeType'], $row['fileSize'], $row['checksum']);
|
||||
$version = new SeedDMS_Core_DocumentContent($row['id'], $document, $row['version'], $row['comment'], $row['date'], $row['createdBy'], $row['dir'], $row['orgFileName'], $row['fileType'], $row['mimeType'], $row['fileSize'], $row['checksum']);
|
||||
$versions[] = $version;
|
||||
}
|
||||
return $versions;
|
||||
|
@ -1856,7 +1856,7 @@ class LetoDMS_Core_DMS {
|
|||
*
|
||||
* This method is for finding document content without a file size
|
||||
* set in the database. The file size of a document content was introduced
|
||||
* in version 4.0.0 of letodms for implementation of user quotas.
|
||||
* in version 4.0.0 of SeedDMS for implementation of user quotas.
|
||||
*/
|
||||
function getNoFileSizeDocumentContent() { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblDocumentContent WHERE fileSize = 0 OR fileSize is null";
|
||||
|
@ -1866,9 +1866,9 @@ class LetoDMS_Core_DMS {
|
|||
|
||||
$versions = array();
|
||||
foreach($resArr as $row) {
|
||||
$document = new LetoDMS_Core_Document($row['document'], '', '', '', '', '', '', '', '', '', '', '');
|
||||
$document = new SeedDMS_Core_Document($row['document'], '', '', '', '', '', '', '', '', '', '', '');
|
||||
$document->setDMS($this);
|
||||
$version = new LetoDMS_Core_DocumentContent($row['id'], $document, $row['version'], $row['comment'], $row['date'], $row['createdBy'], $row['dir'], $row['orgFileName'], $row['fileType'], $row['mimeType'], $row['fileSize'], $row['checksum'], $row['fileSize'], $row['checksum']);
|
||||
$version = new SeedDMS_Core_DocumentContent($row['id'], $document, $row['version'], $row['comment'], $row['date'], $row['createdBy'], $row['dir'], $row['orgFileName'], $row['fileType'], $row['mimeType'], $row['fileSize'], $row['checksum'], $row['fileSize'], $row['checksum']);
|
||||
$versions[] = $version;
|
||||
}
|
||||
return $versions;
|
||||
|
@ -1880,7 +1880,7 @@ class LetoDMS_Core_DMS {
|
|||
*
|
||||
* This method is for finding document content without a checksum
|
||||
* set in the database. The checksum of a document content was introduced
|
||||
* in version 4.0.0 of letodms for finding duplicates.
|
||||
* in version 4.0.0 of SeedDMS for finding duplicates.
|
||||
*/
|
||||
function getNoChecksumDocumentContent() { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblDocumentContent WHERE checksum = '' OR checksum is null";
|
||||
|
@ -1890,9 +1890,9 @@ class LetoDMS_Core_DMS {
|
|||
|
||||
$versions = array();
|
||||
foreach($resArr as $row) {
|
||||
$document = new LetoDMS_Core_Document($row['document'], '', '', '', '', '', '', '', '', '', '', '');
|
||||
$document = new SeedDMS_Core_Document($row['document'], '', '', '', '', '', '', '', '', '', '', '');
|
||||
$document->setDMS($this);
|
||||
$version = new LetoDMS_Core_DocumentContent($row['id'], $document, $row['version'], $row['comment'], $row['date'], $row['createdBy'], $row['dir'], $row['orgFileName'], $row['fileType'], $row['mimeType'], $row['fileSize'], $row['checksum']);
|
||||
$version = new SeedDMS_Core_DocumentContent($row['id'], $document, $row['version'], $row['comment'], $row['date'], $row['createdBy'], $row['dir'], $row['orgFileName'], $row['fileType'], $row['mimeType'], $row['fileSize'], $row['checksum']);
|
||||
$versions[] = $version;
|
||||
}
|
||||
return $versions;
|
|
@ -3,7 +3,7 @@
|
|||
* Implementation of a document in the document management system
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @license GPL2
|
||||
* @author Markus Westphal, Malcolm Cowe, Matteo Lucarelli,
|
||||
* Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
@ -61,9 +61,9 @@ define("S_EXPIRED", -3);
|
|||
/**
|
||||
* Class to represent a document in the document management system
|
||||
*
|
||||
* A document in LetoDMS is similar to files in a regular file system.
|
||||
* A document in SeedDMS is similar to files in a regular file system.
|
||||
* Documents may have any number of content elements
|
||||
* ({@link LetoDMS_Core_DocumentContent}). These content elements are often
|
||||
* ({@link SeedDMS_Core_DocumentContent}). These content elements are often
|
||||
* called versions ordered in a timely manner. The most recent content element
|
||||
* is the current version.
|
||||
*
|
||||
|
@ -72,14 +72,14 @@ define("S_EXPIRED", -3);
|
|||
* file.
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @author Markus Westphal, Malcolm Cowe, Matteo Lucarelli,
|
||||
* Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2002-2005 Markus Westphal, 2006-2008 Malcolm Cowe,
|
||||
* 2010 Matteo Lucarelli, 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
||||
class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
||||
/**
|
||||
* @var string name of document
|
||||
*/
|
||||
|
@ -150,7 +150,7 @@ class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
|||
*/
|
||||
protected $_sequence;
|
||||
|
||||
function LetoDMS_Core_Document($id, $name, $comment, $date, $expires, $ownerID, $folderID, $inheritAccess, $defaultAccess, $locked, $keywords, $sequence) { /* {{{ */
|
||||
function SeedDMS_Core_Document($id, $name, $comment, $date, $expires, $ownerID, $folderID, $inheritAccess, $defaultAccess, $locked, $keywords, $sequence) { /* {{{ */
|
||||
parent::__construct($id);
|
||||
$this->_name = $name;
|
||||
$this->_comment = $comment;
|
||||
|
@ -256,7 +256,7 @@ class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
|||
return false;
|
||||
|
||||
foreach ($resArr as $row) {
|
||||
$cat = new LetoDMS_Core_DocumentCategory($row['id'], $row['name']);
|
||||
$cat = new SeedDMS_Core_DocumentCategory($row['id'], $row['name']);
|
||||
$cat->setDMS($this->_dms);
|
||||
$this->_categories[] = $cat;
|
||||
}
|
||||
|
@ -351,7 +351,7 @@ class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
|||
/**
|
||||
* Return owner of document
|
||||
*
|
||||
* @return object owner of document as an instance of {@link LetoDMS_Core_User}
|
||||
* @return object owner of document as an instance of {@link SeedDMS_Core_User}
|
||||
*/
|
||||
function getOwner() { /* {{{ */
|
||||
if (!isset($this->_owner))
|
||||
|
@ -629,8 +629,8 @@ class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
|||
* $mode and $op can be set to restrict the list of returned access
|
||||
* privileges. If $mode is set to M_ANY no restriction will apply
|
||||
* regardless of the value of $op. The returned array contains a list
|
||||
* of {@link LetoDMS_Core_UserAccess} and
|
||||
* {@link LetoDMS_Core_GroupAccess} objects. Even if the document
|
||||
* of {@link SeedDMS_Core_UserAccess} and
|
||||
* {@link SeedDMS_Core_GroupAccess} objects. Even if the document
|
||||
* has no access list the returned array contains the two elements
|
||||
* 'users' and 'groups' which are than empty. The methode returns false
|
||||
* if the function fails.
|
||||
|
@ -665,9 +665,9 @@ class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
|||
$this->_accessList[$mode] = array("groups" => array(), "users" => array());
|
||||
foreach ($resArr as $row) {
|
||||
if ($row["userID"] != -1)
|
||||
array_push($this->_accessList[$mode]["users"], new LetoDMS_Core_UserAccess($this->_dms->getUser($row["userID"]), $row["mode"]));
|
||||
array_push($this->_accessList[$mode]["users"], new SeedDMS_Core_UserAccess($this->_dms->getUser($row["userID"]), $row["mode"]));
|
||||
else //if ($row["groupID"] != -1)
|
||||
array_push($this->_accessList[$mode]["groups"], new LetoDMS_Core_GroupAccess($this->_dms->getGroup($row["groupID"]), $row["mode"]));
|
||||
array_push($this->_accessList[$mode]["groups"], new SeedDMS_Core_GroupAccess($this->_dms->getGroup($row["groupID"]), $row["mode"]));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -780,7 +780,7 @@ class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
|||
* The function takes inherited access rights into account.
|
||||
* For a list of possible access rights see @file inc.AccessUtils.php
|
||||
*
|
||||
* @param $user object instance of class LetoDMS_Core_User
|
||||
* @param $user object instance of class SeedDMS_Core_User
|
||||
* @return integer access mode
|
||||
*/
|
||||
function getAccessMode($user) { /* {{{ */
|
||||
|
@ -834,7 +834,7 @@ class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
|||
* The function takes inherited access rights into account.
|
||||
* For a list of possible access rights see @file inc.AccessUtils.php
|
||||
*
|
||||
* @param $group object instance of class LetoDMS_Core_Group
|
||||
* @param $group object instance of class SeedDMS_Core_Group
|
||||
* @return integer access mode
|
||||
*/
|
||||
function getGroupAccessMode($group) { /* {{{ */
|
||||
|
@ -867,8 +867,8 @@ class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
|||
* Returns a list of all notifications
|
||||
*
|
||||
* The returned list has two elements called 'users' and 'groups'. Each one
|
||||
* is an array itself countaining objects of class LetoDMS_Core_User and
|
||||
* LetoDMS_Core_Group.
|
||||
* is an array itself countaining objects of class SeedDMS_Core_User and
|
||||
* SeedDMS_Core_Group.
|
||||
*
|
||||
* @param integer $type type of notification (not yet used)
|
||||
* @return array list of notifications
|
||||
|
@ -1124,8 +1124,8 @@ class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
|||
$version = $resArr[0]['m']+1;
|
||||
}
|
||||
|
||||
$filesize = LetoDMS_Core_File::fileSize($tmpFile);
|
||||
$checksum = LetoDMS_Core_File::checksum($tmpFile);
|
||||
$filesize = SeedDMS_Core_File::fileSize($tmpFile);
|
||||
$checksum = SeedDMS_Core_File::checksum($tmpFile);
|
||||
|
||||
$db->startTransaction();
|
||||
$queryStr = "INSERT INTO tblDocumentContent (document, version, comment, date, createdBy, dir, orgFileName, fileType, mimeType, fileSize, checksum) VALUES ".
|
||||
|
@ -1138,21 +1138,21 @@ class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
|||
$contentID = $db->getInsertID();
|
||||
|
||||
// copy file
|
||||
if (!LetoDMS_Core_File::makeDir($this->_dms->contentDir . $dir)) {
|
||||
if (!SeedDMS_Core_File::makeDir($this->_dms->contentDir . $dir)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
if (!LetoDMS_Core_File::copyFile($tmpFile, $this->_dms->contentDir . $dir . $version . $fileType)) {
|
||||
if (!SeedDMS_Core_File::copyFile($tmpFile, $this->_dms->contentDir . $dir . $version . $fileType)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
unset($this->_content);
|
||||
unset($this->_latestContent);
|
||||
$content = new LetoDMS_Core_DocumentContent($contentID, $this, $version, $comment, $date, $user->getID(), $dir, $orgFileName, $fileType, $mimeType, $filesize, $checksum);
|
||||
$content = new SeedDMS_Core_DocumentContent($contentID, $this, $version, $comment, $date, $user->getID(), $dir, $orgFileName, $fileType, $mimeType, $filesize, $checksum);
|
||||
if($workflow)
|
||||
$content->setWorkflow($workflow, $user);
|
||||
$docResultSet = new LetoDMS_Core_AddContentResultSet($content);
|
||||
$docResultSet = new SeedDMS_Core_AddContentResultSet($content);
|
||||
|
||||
if($attributes) {
|
||||
foreach($attributes as $attrdefid=>$attribute) {
|
||||
|
@ -1250,7 +1250,7 @@ class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
|||
*
|
||||
* This functions returns an array of content elements ordered by version
|
||||
*
|
||||
* @return array list of objects of class LetoDMS_Core_DocumentContent
|
||||
* @return array list of objects of class SeedDMS_Core_DocumentContent
|
||||
*/
|
||||
function getContent() { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
@ -1263,7 +1263,7 @@ class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
|||
|
||||
$this->_content = array();
|
||||
foreach ($resArr as $row)
|
||||
array_push($this->_content, new LetoDMS_Core_DocumentContent($row["id"], $this, $row["version"], $row["comment"], $row["date"], $row["createdBy"], $row["dir"], $row["orgFileName"], $row["fileType"], $row["mimeType"], $row['fileSize'], $row['checksum']));
|
||||
array_push($this->_content, new SeedDMS_Core_DocumentContent($row["id"], $this, $row["version"], $row["comment"], $row["date"], $row["createdBy"], $row["dir"], $row["orgFileName"], $row["fileType"], $row["mimeType"], $row['fileSize'], $row['checksum']));
|
||||
}
|
||||
|
||||
return $this->_content;
|
||||
|
@ -1273,7 +1273,7 @@ class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
|||
* Return the content element of a document with a given version number
|
||||
*
|
||||
* @param integer $version version number of content element
|
||||
* @return object object of class LetoDMS_Core_DocumentContent
|
||||
* @return object object of class SeedDMS_Core_DocumentContent
|
||||
*/
|
||||
function getContentByVersion($version) { /* {{{ */
|
||||
if (!is_numeric($version)) return false;
|
||||
|
@ -1295,7 +1295,7 @@ class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
|||
return false;
|
||||
|
||||
$resArr = $resArr[0];
|
||||
return new LetoDMS_Core_DocumentContent($resArr["id"], $this, $resArr["version"], $resArr["comment"], $resArr["date"], $resArr["createdBy"], $resArr["dir"], $resArr["orgFileName"], $resArr["fileType"], $resArr["mimeType"], $resArr['fileSize'], $resArr['checksum']);
|
||||
return new SeedDMS_Core_DocumentContent($resArr["id"], $this, $resArr["version"], $resArr["comment"], $resArr["date"], $resArr["createdBy"], $resArr["dir"], $resArr["orgFileName"], $resArr["fileType"], $resArr["mimeType"], $resArr['fileSize'], $resArr['checksum']);
|
||||
} /* }}} */
|
||||
|
||||
function getLatestContent() { /* {{{ */
|
||||
|
@ -1309,7 +1309,7 @@ class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
|||
return false;
|
||||
|
||||
$resArr = $resArr[0];
|
||||
$this->_latestContent = new LetoDMS_Core_DocumentContent($resArr["id"], $this, $resArr["version"], $resArr["comment"], $resArr["date"], $resArr["createdBy"], $resArr["dir"], $resArr["orgFileName"], $resArr["fileType"], $resArr["mimeType"], $resArr['fileSize'], $resArr['checksum']);
|
||||
$this->_latestContent = new SeedDMS_Core_DocumentContent($resArr["id"], $this, $resArr["version"], $resArr["comment"], $resArr["date"], $resArr["createdBy"], $resArr["dir"], $resArr["orgFileName"], $resArr["fileType"], $resArr["mimeType"], $resArr['fileSize'], $resArr['checksum']);
|
||||
}
|
||||
return $this->_latestContent;
|
||||
} /* }}} */
|
||||
|
@ -1321,7 +1321,7 @@ class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
|||
$emailList[] = $version->_userID;
|
||||
|
||||
if (file_exists( $this->_dms->contentDir.$version->getPath() ))
|
||||
if (!LetoDMS_Core_File::removeFile( $this->_dms->contentDir.$version->getPath() ))
|
||||
if (!SeedDMS_Core_File::removeFile( $this->_dms->contentDir.$version->getPath() ))
|
||||
return false;
|
||||
|
||||
$db->startTransaction();
|
||||
|
@ -1418,7 +1418,7 @@ class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
|||
$resArr = $resArr[0];
|
||||
$document = $this->_dms->getDocument($resArr["document"]);
|
||||
$target = $this->_dms->getDocument($resArr["target"]);
|
||||
return new LetoDMS_Core_DocumentLink($resArr["id"], $document, $target, $resArr["userID"], $resArr["public"]);
|
||||
return new SeedDMS_Core_DocumentLink($resArr["id"], $document, $target, $resArr["userID"], $resArr["public"]);
|
||||
} /* }}} */
|
||||
|
||||
function getDocumentLinks() { /* {{{ */
|
||||
|
@ -1433,7 +1433,7 @@ class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
|||
|
||||
foreach ($resArr as $row) {
|
||||
$target = $this->_dms->getDocument($row["target"]);
|
||||
array_push($this->_documentLinks, new LetoDMS_Core_DocumentLink($row["id"], $this, $target, $row["userID"], $row["public"]));
|
||||
array_push($this->_documentLinks, new SeedDMS_Core_DocumentLink($row["id"], $this, $target, $row["userID"], $row["public"]));
|
||||
}
|
||||
}
|
||||
return $this->_documentLinks;
|
||||
|
@ -1473,7 +1473,7 @@ class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
|||
if ((is_bool($resArr) && !$resArr) || count($resArr)==0) return false;
|
||||
|
||||
$resArr = $resArr[0];
|
||||
return new LetoDMS_Core_DocumentFile($resArr["id"], $this, $resArr["userID"], $resArr["comment"], $resArr["date"], $resArr["dir"], $resArr["fileType"], $resArr["mimeType"], $resArr["orgFileName"], $resArr["name"]);
|
||||
return new SeedDMS_Core_DocumentFile($resArr["id"], $this, $resArr["userID"], $resArr["comment"], $resArr["date"], $resArr["dir"], $resArr["fileType"], $resArr["mimeType"], $resArr["orgFileName"], $resArr["name"]);
|
||||
} /* }}} */
|
||||
|
||||
function getDocumentFiles() { /* {{{ */
|
||||
|
@ -1487,7 +1487,7 @@ class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
|||
$this->_documentFiles = array();
|
||||
|
||||
foreach ($resArr as $row) {
|
||||
array_push($this->_documentFiles, new LetoDMS_Core_DocumentFile($row["id"], $this, $row["userID"], $row["comment"], $row["date"], $row["dir"], $row["fileType"], $row["mimeType"], $row["orgFileName"], $row["name"]));
|
||||
array_push($this->_documentFiles, new SeedDMS_Core_DocumentFile($row["id"], $this, $row["userID"], $row["comment"], $row["date"], $row["dir"], $row["fileType"], $row["mimeType"], $row["orgFileName"], $row["name"]));
|
||||
}
|
||||
}
|
||||
return $this->_documentFiles;
|
||||
|
@ -1508,8 +1508,8 @@ class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
|||
if (is_bool($file) && !$file) return false;
|
||||
|
||||
// copy file
|
||||
if (!LetoDMS_Core_File::makeDir($this->_dms->contentDir . $dir)) return false;
|
||||
if (!LetoDMS_Core_File::copyFile($tmpFile, $this->_dms->contentDir . $file->getPath() )) return false;
|
||||
if (!SeedDMS_Core_File::makeDir($this->_dms->contentDir . $dir)) return false;
|
||||
if (!SeedDMS_Core_File::copyFile($tmpFile, $this->_dms->contentDir . $file->getPath() )) return false;
|
||||
|
||||
return true;
|
||||
} /* }}} */
|
||||
|
@ -1523,7 +1523,7 @@ class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
|||
if (is_bool($file) && !$file) return false;
|
||||
|
||||
if (file_exists( $this->_dms->contentDir . $file->getPath() )){
|
||||
if (!LetoDMS_Core_File::removeFile( $this->_dms->contentDir . $file->getPath() ))
|
||||
if (!SeedDMS_Core_File::removeFile( $this->_dms->contentDir . $file->getPath() ))
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1592,7 +1592,7 @@ class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
|||
// TODO: versioning file?
|
||||
|
||||
if (file_exists( $this->_dms->contentDir . $this->getDir() ))
|
||||
if (!LetoDMS_Core_File::removeDir( $this->_dms->contentDir . $this->getDir() )) {
|
||||
if (!SeedDMS_Core_File::removeDir( $this->_dms->contentDir . $this->getDir() )) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
@ -1656,7 +1656,7 @@ class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
|||
* Get List of users and groups which have read access on the document
|
||||
*
|
||||
* This function is deprecated. Use
|
||||
* {@see LetoDMS_Core_Document::getReadAccessList()} instead.
|
||||
* {@see SeedDMS_Core_Document::getReadAccessList()} instead.
|
||||
*/
|
||||
function getApproversList() { /* {{{ */
|
||||
return $this->getReadAccessList();
|
||||
|
@ -1704,13 +1704,13 @@ class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
|||
$queryStr = "SELECT `tblUsers`.* FROM `tblUsers` ".
|
||||
"LEFT JOIN `tblGroupMembers` ON `tblGroupMembers`.`userID`=`tblUsers`.`id` ".
|
||||
"WHERE `tblGroupMembers`.`groupID` IN (". $groupIDs .") ".
|
||||
"AND `tblUsers`.`role` != ".LetoDMS_Core_User::role_guest." UNION ";
|
||||
"AND `tblUsers`.`role` != ".SeedDMS_Core_User::role_guest." UNION ";
|
||||
}
|
||||
$queryStr .=
|
||||
"SELECT `tblUsers`.* FROM `tblUsers` ".
|
||||
"WHERE (`tblUsers`.`role` != ".LetoDMS_Core_User::role_guest.") ".
|
||||
"WHERE (`tblUsers`.`role` != ".SeedDMS_Core_User::role_guest.") ".
|
||||
"AND ((`tblUsers`.`id` = ". $this->_ownerID . ") ".
|
||||
"OR (`tblUsers`.`role` = ".LetoDMS_Core_User::role_admin.")".
|
||||
"OR (`tblUsers`.`role` = ".SeedDMS_Core_User::role_admin.")".
|
||||
(strlen($userIDs) == 0 ? "" : " OR (`tblUsers`.`id` IN (". $userIDs ."))").
|
||||
") ORDER BY `login`";
|
||||
}
|
||||
|
@ -1722,16 +1722,16 @@ class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
|||
$queryStr = "SELECT `tblUsers`.* FROM `tblUsers` ".
|
||||
"LEFT JOIN `tblGroupMembers` ON `tblGroupMembers`.`userID`=`tblUsers`.`id` ".
|
||||
"WHERE `tblGroupMembers`.`groupID` NOT IN (". $groupIDs .")".
|
||||
"AND `tblUsers`.`role` != ".LetoDMS_Core_User::role_guest." ".
|
||||
"AND `tblUsers`.`role` != ".SeedDMS_Core_User::role_guest." ".
|
||||
(strlen($userIDs) == 0 ? "" : " AND (`tblUsers`.`id` NOT IN (". $userIDs ."))")." UNION ";
|
||||
}
|
||||
$queryStr .=
|
||||
"SELECT `tblUsers`.* FROM `tblUsers` ".
|
||||
"WHERE (`tblUsers`.`id` = ". $this->_ownerID . ") ".
|
||||
"OR (`tblUsers`.`role` = ".LetoDMS_Core_User::role_admin.") ".
|
||||
"OR (`tblUsers`.`role` = ".SeedDMS_Core_User::role_admin.") ".
|
||||
"UNION ".
|
||||
"SELECT `tblUsers`.* FROM `tblUsers` ".
|
||||
"WHERE `tblUsers`.`role` != ".LetoDMS_Core_User::role_guest." ".
|
||||
"WHERE `tblUsers`.`role` != ".SeedDMS_Core_User::role_guest." ".
|
||||
(strlen($userIDs) == 0 ? "" : " AND (`tblUsers`.`id` NOT IN (". $userIDs ."))").
|
||||
" ORDER BY `login`";
|
||||
}
|
||||
|
@ -1851,10 +1851,10 @@ class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
|||
* meta data stored in the database. A document content has a version number
|
||||
* which is incremented with each replacement of the old content. Old versions
|
||||
* are kept unless they are explicitly deleted by
|
||||
* {@link LetoDMS_Core_Document::removeContent()}.
|
||||
* {@link SeedDMS_Core_Document::removeContent()}.
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @author Markus Westphal, Malcolm Cowe, Matteo Lucarelli,
|
||||
* Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2002-2005 Markus Westphal,
|
||||
|
@ -1862,7 +1862,7 @@ class LetoDMS_Core_Document extends LetoDMS_Core_Object { /* {{{ */
|
|||
* 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Core_DocumentContent extends LetoDMS_Core_Object { /* {{{ */
|
||||
class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
||||
|
||||
/**
|
||||
* Recalculate the status of a document
|
||||
|
@ -1920,7 +1920,7 @@ class LetoDMS_Core_DocumentContent extends LetoDMS_Core_Object { /* {{{ */
|
|||
else $this->setStatus(S_RELEASED,"",$user);
|
||||
} /* }}} */
|
||||
|
||||
function LetoDMS_Core_DocumentContent($id, $document, $version, $comment, $date, $userID, $dir, $orgFileName, $fileType, $mimeType, $fileSize=0, $checksum='') { /* {{{ */
|
||||
function SeedDMS_Core_DocumentContent($id, $document, $version, $comment, $date, $userID, $dir, $orgFileName, $fileType, $mimeType, $fileSize=0, $checksum='') { /* {{{ */
|
||||
parent::__construct($id);
|
||||
$this->_document = $document;
|
||||
$this->_version = (int) $version;
|
||||
|
@ -1933,7 +1933,7 @@ class LetoDMS_Core_DocumentContent extends LetoDMS_Core_Object { /* {{{ */
|
|||
$this->_mimeType = $mimeType;
|
||||
$this->_dms = $document->_dms;
|
||||
if(!$fileSize) {
|
||||
$this->_fileSize = LetoDMS_Core_File::fileSize($this->_dms->contentDir . $this->getPath());
|
||||
$this->_fileSize = SeedDMS_Core_File::fileSize($this->_dms->contentDir . $this->getPath());
|
||||
} else {
|
||||
$this->_fileSize = $fileSize;
|
||||
}
|
||||
|
@ -1983,7 +1983,7 @@ class LetoDMS_Core_DocumentContent extends LetoDMS_Core_Object { /* {{{ */
|
|||
* Set file size by reading the file
|
||||
*/
|
||||
function setFileSize() { /* {{{ */
|
||||
$filesize = LetoDMS_Core_File::fileSize($this->_dms->contentDir . $this->_document->getDir() . $this->getFileName());
|
||||
$filesize = SeedDMS_Core_File::fileSize($this->_dms->contentDir . $this->_document->getDir() . $this->getFileName());
|
||||
if($filesize === false)
|
||||
return false;
|
||||
|
||||
|
@ -2004,7 +2004,7 @@ class LetoDMS_Core_DocumentContent extends LetoDMS_Core_Object { /* {{{ */
|
|||
* Set checksum by reading the file
|
||||
*/
|
||||
function setChecksum() { /* {{{ */
|
||||
$checksum = LetoDMS_Core_File::checksum($this->_dms->contentDir . $this->_document->getDir() . $this->getFileName());
|
||||
$checksum = SeedDMS_Core_File::checksum($this->_dms->contentDir . $this->_document->getDir() . $this->getFileName());
|
||||
if($checksum === false)
|
||||
return false;
|
||||
|
||||
|
@ -2236,7 +2236,7 @@ class LetoDMS_Core_DocumentContent extends LetoDMS_Core_Object { /* {{{ */
|
|||
* In such a case only those user involved in the workflow/review/approval
|
||||
* process should be allowed to see the document. This method could
|
||||
* be called by any function that returns the content e.g. getLatestContent()
|
||||
* It may as well be used by LetoDMS_Core_Document::getAccessMode() to
|
||||
* It may as well be used by SeedDMS_Core_Document::getAccessMode() to
|
||||
* prevent access on the whole document if there is just one version.
|
||||
* The return value is planed to be either M_NONE or M_READ.
|
||||
*
|
||||
|
@ -2481,7 +2481,7 @@ class LetoDMS_Core_DocumentContent extends LetoDMS_Core_Object { /* {{{ */
|
|||
* be set again and 0 will be returned. Іf the review could be succesfully
|
||||
* added the review log id will be returned.
|
||||
*
|
||||
* @see LetoDMS_Core_DocumentContent::setApprovalByInd()
|
||||
* @see SeedDMS_Core_DocumentContent::setApprovalByInd()
|
||||
* @param object $user user doing the review
|
||||
* @param object $requestUser user asking for the review, this is mostly
|
||||
* the user currently logged in.
|
||||
|
@ -2529,7 +2529,7 @@ class LetoDMS_Core_DocumentContent extends LetoDMS_Core_Object { /* {{{ */
|
|||
* Add a review to the document content
|
||||
*
|
||||
* This method is similar to
|
||||
* {@see LetoDMS_Core_DocumentContent::setReviewByInd()} but adds a review
|
||||
* {@see SeedDMS_Core_DocumentContent::setReviewByInd()} but adds a review
|
||||
* for a group instead of a user.
|
||||
*
|
||||
* @param object $group group doing the review
|
||||
|
@ -2705,7 +2705,7 @@ class LetoDMS_Core_DocumentContent extends LetoDMS_Core_Object { /* {{{ */
|
|||
* Then it is check if the approval status is already -2. In both cases
|
||||
* the function returns with an error.
|
||||
*
|
||||
* @see LetoDMS_Core_DocumentContent::setReviewByInd()
|
||||
* @see SeedDMS_Core_DocumentContent::setReviewByInd()
|
||||
* @param object $user user in charge for doing the approval
|
||||
* @param object $requestUser user actually calling this function
|
||||
* @param integer $status the status of the approval, possible values are
|
||||
|
@ -2713,7 +2713,7 @@ class LetoDMS_Core_DocumentContent extends LetoDMS_Core_Object { /* {{{ */
|
|||
* 1=approved,
|
||||
* -1=rejected,
|
||||
* -2=user is deleted (use {link
|
||||
* LetoDMS_Core_DocumentContent::delIndApprover} instead)
|
||||
* SeedDMS_Core_DocumentContent::delIndApprover} instead)
|
||||
* @param string $comment approval comment
|
||||
* @return integer 0 on success, < 0 in case of an error
|
||||
*/
|
||||
|
@ -2754,7 +2754,7 @@ class LetoDMS_Core_DocumentContent extends LetoDMS_Core_Object { /* {{{ */
|
|||
/**
|
||||
* Sets approval status of a document content for a group
|
||||
* The functions behaves like
|
||||
* {link LetoDMS_Core_DocumentContent::setApprovalByInd} but does it for
|
||||
* {link SeedDMS_Core_DocumentContent::setApprovalByInd} but does it for
|
||||
* group instead of a user
|
||||
*/
|
||||
function setApprovalByGrp($group, $requestUser, $status, $comment) { /* {{{ */
|
||||
|
@ -2939,7 +2939,7 @@ class LetoDMS_Core_DocumentContent extends LetoDMS_Core_Object { /* {{{ */
|
|||
/**
|
||||
* Get state of workflow assigned to the document content
|
||||
*
|
||||
* @return object/boolean an object of class LetoDMS_Core_Workflow_State
|
||||
* @return object/boolean an object of class SeedDMS_Core_Workflow_State
|
||||
* or false in case of error, e.g. the version has not a workflow
|
||||
*/
|
||||
function getWorkflowState() { /* {{{ */
|
||||
|
@ -2959,7 +2959,7 @@ class LetoDMS_Core_DocumentContent extends LetoDMS_Core_Object { /* {{{ */
|
|||
$recs = $db->getResultArray($queryStr);
|
||||
if (is_bool($recs) && !$recs)
|
||||
return false;
|
||||
$this->_workflowState = new LetoDMS_Core_Workflow_State($recs[0]['id'], $recs[0]['name'], $recs[0]['maxtime'], $recs[0]['precondfunc'], $recs[0]['documentstatus']);
|
||||
$this->_workflowState = new SeedDMS_Core_Workflow_State($recs[0]['id'], $recs[0]['name'], $recs[0]['maxtime'], $recs[0]['precondfunc'], $recs[0]['documentstatus']);
|
||||
$this->_workflowState->setDMS($this->_document->_dms);
|
||||
}
|
||||
return $this->_workflowState;
|
||||
|
@ -2998,7 +2998,7 @@ class LetoDMS_Core_DocumentContent extends LetoDMS_Core_Object { /* {{{ */
|
|||
*
|
||||
* The method returns the last sub workflow if one was assigned.
|
||||
*
|
||||
* @return object/boolean an object of class LetoDMS_Core_Workflow
|
||||
* @return object/boolean an object of class SeedDMS_Core_Workflow
|
||||
* or false in case of error, e.g. the version has not a workflow
|
||||
*/
|
||||
function getWorkflow() { /* {{{ */
|
||||
|
@ -3014,7 +3014,7 @@ class LetoDMS_Core_DocumentContent extends LetoDMS_Core_Object { /* {{{ */
|
|||
return false;
|
||||
if(!$recs)
|
||||
return false;
|
||||
$this->_workflow = new LetoDMS_Core_Workflow($recs[0]['id'], $recs[0]['name'], $this->_document->_dms->getWorkflowState($recs[0]['initstate']));
|
||||
$this->_workflow = new SeedDMS_Core_Workflow($recs[0]['id'], $recs[0]['name'], $this->_document->_dms->getWorkflowState($recs[0]['initstate']));
|
||||
$this->_workflow->setDMS($this->_document->_dms);
|
||||
}
|
||||
return $this->_workflow;
|
||||
|
@ -3063,7 +3063,7 @@ class LetoDMS_Core_DocumentContent extends LetoDMS_Core_Object { /* {{{ */
|
|||
* document but do not remove the workflow log. The $unlink
|
||||
* flag has been added to detach the workflow from the document
|
||||
* when it has reached a valid end state
|
||||
(see LetoDMS_Core_DocumentContent::enterNextState())
|
||||
(see SeedDMS_Core_DocumentContent::enterNextState())
|
||||
* @return boolean true if workflow could be removed
|
||||
* or false in case of error
|
||||
*/
|
||||
|
@ -3076,7 +3076,7 @@ class LetoDMS_Core_DocumentContent extends LetoDMS_Core_Object { /* {{{ */
|
|||
return true;
|
||||
}
|
||||
|
||||
if(LetoDMS_Core_DMS::checkIfEqual($this->_workflow->getInitState(), $this->getWorkflowState()) || $unlink == true) {
|
||||
if(SeedDMS_Core_DMS::checkIfEqual($this->_workflow->getInitState(), $this->getWorkflowState()) || $unlink == true) {
|
||||
$db->startTransaction();
|
||||
$queryStr=
|
||||
"DELETE FROM tblWorkflowDocumentContent WHERE "
|
||||
|
@ -3538,7 +3538,7 @@ class LetoDMS_Core_DocumentContent extends LetoDMS_Core_Object { /* {{{ */
|
|||
|
||||
$workflowlogs = array();
|
||||
for ($i = 0; $i < count($resArr); $i++) {
|
||||
$workflowlog = new LetoDMS_Core_Workflow_Log($resArr[$i]["id"], $this->_document->_dms->getDocument($resArr[$i]["document"]), $resArr[$i]["version"], $this->_workflow, $this->_document->_dms->getUser($resArr[$i]["userid"]), $this->_workflow->getTransition($resArr[$i]["transition"]), $resArr[$i]["date"], $resArr[$i]["comment"]);
|
||||
$workflowlog = new SeedDMS_Core_Workflow_Log($resArr[$i]["id"], $this->_document->_dms->getDocument($resArr[$i]["document"]), $resArr[$i]["version"], $this->_workflow, $this->_document->_dms->getUser($resArr[$i]["userid"]), $this->_workflow->getTransition($resArr[$i]["transition"]), $resArr[$i]["date"], $resArr[$i]["comment"]);
|
||||
$workflowlog->setDMS($this);
|
||||
$workflowlogs[$i] = $workflowlog;
|
||||
}
|
||||
|
@ -3570,7 +3570,7 @@ class LetoDMS_Core_DocumentContent extends LetoDMS_Core_Object { /* {{{ */
|
|||
|
||||
$workflowlogs = array();
|
||||
$i = 0;
|
||||
$workflowlog = new LetoDMS_Core_Workflow_Log($resArr[$i]["id"], $this->_document->_dms->getDocument($resArr[$i]["document"]), $resArr[$i]["version"], $this->_workflow, $this->_document->_dms->getUser($resArr[$i]["userid"]), $this->_workflow->getTransition($resArr[$i]["transition"]), $resArr[$i]["date"], $resArr[$i]["comment"]);
|
||||
$workflowlog = new SeedDMS_Core_Workflow_Log($resArr[$i]["id"], $this->_document->_dms->getDocument($resArr[$i]["document"]), $resArr[$i]["version"], $this->_workflow, $this->_document->_dms->getUser($resArr[$i]["userid"]), $this->_workflow->getTransition($resArr[$i]["transition"]), $resArr[$i]["date"], $resArr[$i]["comment"]);
|
||||
$workflowlog->setDMS($this);
|
||||
|
||||
return $workflowlog;
|
||||
|
@ -3585,11 +3585,11 @@ class LetoDMS_Core_DocumentContent extends LetoDMS_Core_Object { /* {{{ */
|
|||
* Document links are to establish a reference from one document to
|
||||
* another document. The owner of the document link may not be the same
|
||||
* as the owner of one of the documents.
|
||||
* Use {@link LetoDMS_Core_Document::addDocumentLink()} to add a reference
|
||||
* Use {@link SeedDMS_Core_Document::addDocumentLink()} to add a reference
|
||||
* to another document.
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @author Markus Westphal, Malcolm Cowe, Matteo Lucarelli,
|
||||
* Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2002-2005 Markus Westphal,
|
||||
|
@ -3597,7 +3597,7 @@ class LetoDMS_Core_DocumentContent extends LetoDMS_Core_Object { /* {{{ */
|
|||
* 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Core_DocumentLink { /* {{{ */
|
||||
class SeedDMS_Core_DocumentLink { /* {{{ */
|
||||
/**
|
||||
* @var integer internal id of document link
|
||||
*/
|
||||
|
@ -3623,7 +3623,7 @@ class LetoDMS_Core_DocumentLink { /* {{{ */
|
|||
*/
|
||||
protected $_public;
|
||||
|
||||
function LetoDMS_Core_DocumentLink($id, $document, $target, $userID, $public) {
|
||||
function SeedDMS_Core_DocumentLink($id, $document, $target, $userID, $public) {
|
||||
$this->_id = $id;
|
||||
$this->_document = $document;
|
||||
$this->_target = $target;
|
||||
|
@ -3657,10 +3657,10 @@ class LetoDMS_Core_DocumentLink { /* {{{ */
|
|||
* Beside the regular document content arbitrary files can be attached
|
||||
* to a document. This is a similar concept as attaching files to emails.
|
||||
* The owner of the attached file and the document may not be the same.
|
||||
* Use {@link LetoDMS_Core_Document::addDocumentFile()} to attach a file.
|
||||
* Use {@link SeedDMS_Core_Document::addDocumentFile()} to attach a file.
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @author Markus Westphal, Malcolm Cowe, Matteo Lucarelli,
|
||||
* Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2002-2005 Markus Westphal,
|
||||
|
@ -3668,7 +3668,7 @@ class LetoDMS_Core_DocumentLink { /* {{{ */
|
|||
* 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Core_DocumentFile { /* {{{ */
|
||||
class SeedDMS_Core_DocumentFile { /* {{{ */
|
||||
/**
|
||||
* @var integer internal id of document file
|
||||
*/
|
||||
|
@ -3722,7 +3722,7 @@ class LetoDMS_Core_DocumentFile { /* {{{ */
|
|||
*/
|
||||
protected $_name;
|
||||
|
||||
function LetoDMS_Core_DocumentFile($id, $document, $userID, $comment, $date, $dir, $fileType, $mimeType, $orgFileName,$name) {
|
||||
function SeedDMS_Core_DocumentFile($id, $document, $userID, $comment, $date, $dir, $fileType, $mimeType, $orgFileName,$name) {
|
||||
$this->_id = $id;
|
||||
$this->_document = $document;
|
||||
$this->_userID = $userID;
|
||||
|
@ -3768,7 +3768,7 @@ class LetoDMS_Core_DocumentFile { /* {{{ */
|
|||
* Class to represent a list of document contents
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @author Markus Westphal, Malcolm Cowe, Matteo Lucarelli,
|
||||
* Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2002-2005 Markus Westphal,
|
||||
|
@ -3776,7 +3776,7 @@ class LetoDMS_Core_DocumentFile { /* {{{ */
|
|||
* 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Core_AddContentResultSet { /* {{{ */
|
||||
class SeedDMS_Core_AddContentResultSet { /* {{{ */
|
||||
|
||||
protected $_indReviewers;
|
||||
protected $_grpReviewers;
|
||||
|
@ -3785,7 +3785,7 @@ class LetoDMS_Core_AddContentResultSet { /* {{{ */
|
|||
protected $_content;
|
||||
protected $_status;
|
||||
|
||||
function LetoDMS_Core_AddContentResultSet($content) { /* {{{ */
|
||||
function SeedDMS_Core_AddContentResultSet($content) { /* {{{ */
|
||||
$this->_content = $content;
|
||||
$this->_indReviewers = null;
|
||||
$this->_grpReviewers = null;
|
||||
|
@ -3800,7 +3800,7 @@ class LetoDMS_Core_AddContentResultSet { /* {{{ */
|
|||
return false;
|
||||
}
|
||||
if (!strcasecmp($type, "i")) {
|
||||
if (strcasecmp(get_class($reviewer), "LetoDMS_Core_User")) {
|
||||
if (strcasecmp(get_class($reviewer), "SeedDMS_Core_User")) {
|
||||
return false;
|
||||
}
|
||||
if ($this->_indReviewers == null) {
|
||||
|
@ -3809,7 +3809,7 @@ class LetoDMS_Core_AddContentResultSet { /* {{{ */
|
|||
$this->_indReviewers[$status][] = $reviewer;
|
||||
}
|
||||
if (!strcasecmp($type, "g")) {
|
||||
if (strcasecmp(get_class($reviewer), "LetoDMS_Core_Group")) {
|
||||
if (strcasecmp(get_class($reviewer), "SeedDMS_Core_Group")) {
|
||||
return false;
|
||||
}
|
||||
if ($this->_grpReviewers == null) {
|
||||
|
@ -3826,7 +3826,7 @@ class LetoDMS_Core_AddContentResultSet { /* {{{ */
|
|||
return false;
|
||||
}
|
||||
if (!strcasecmp($type, "i")) {
|
||||
if (strcasecmp(get_class($approver), "LetoDMS_Core_User")) {
|
||||
if (strcasecmp(get_class($approver), "SeedDMS_Core_User")) {
|
||||
return false;
|
||||
}
|
||||
if ($this->_indApprovers == null) {
|
||||
|
@ -3835,7 +3835,7 @@ class LetoDMS_Core_AddContentResultSet { /* {{{ */
|
|||
$this->_indApprovers[$status][] = $approver;
|
||||
}
|
||||
if (!strcasecmp($type, "g")) {
|
||||
if (strcasecmp(get_class($approver), "LetoDMS_Core_Group")) {
|
||||
if (strcasecmp(get_class($approver), "SeedDMS_Core_Group")) {
|
||||
return false;
|
||||
}
|
||||
if ($this->_grpApprovers == null) {
|
|
@ -3,7 +3,7 @@
|
|||
* Implementation of document categories in the document management system
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
@ -15,12 +15,12 @@
|
|||
* Class to represent a document category in the document management system
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C)2011 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Core_DocumentCategory {
|
||||
class SeedDMS_Core_DocumentCategory {
|
||||
/**
|
||||
* @var integer $_id id of document category
|
||||
* @access protected
|
||||
|
@ -39,7 +39,7 @@ class LetoDMS_Core_DocumentCategory {
|
|||
*/
|
||||
protected $_dms;
|
||||
|
||||
function LetoDMS_Core_DocumentCategory($id, $name) { /* {{{ */
|
||||
function SeedDMS_Core_DocumentCategory($id, $name) { /* {{{ */
|
||||
$this->_id = $id;
|
||||
$this->_name = $name;
|
||||
$this->_dms = null;
|
|
@ -3,7 +3,7 @@
|
|||
* Implementation of a folder in the document management system
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @license GPL2
|
||||
* @author Markus Westphal, Malcolm Cowe, Matteo Lucarelli,
|
||||
* Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
@ -15,19 +15,19 @@
|
|||
/**
|
||||
* Class to represent a folder in the document management system
|
||||
*
|
||||
* A folder in LetoDMS is equivalent to a directory in a regular file
|
||||
* A folder in SeedDMS is equivalent to a directory in a regular file
|
||||
* system. It can contain further subfolders and documents. Each folder
|
||||
* has a single parent except for the root folder which has no parent.
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2002-2005 Markus Westphal, 2006-2008 Malcolm Cowe,
|
||||
* 2010 Matteo Lucarelli, 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Core_Folder extends LetoDMS_Core_Object {
|
||||
class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
||||
/**
|
||||
* @var string name of folder
|
||||
*/
|
||||
|
@ -73,7 +73,7 @@ class LetoDMS_Core_Folder extends LetoDMS_Core_Object {
|
|||
*/
|
||||
protected $_sequence;
|
||||
|
||||
function LetoDMS_Core_Folder($id, $name, $parentID, $comment, $date, $ownerID, $inheritAccess, $defaultAccess, $sequence) { /* {{{ */
|
||||
function SeedDMS_Core_Folder($id, $name, $parentID, $comment, $date, $ownerID, $inheritAccess, $defaultAccess, $sequence) { /* {{{ */
|
||||
parent::__construct($id);
|
||||
$this->_id = $id;
|
||||
$this->_name = $name;
|
||||
|
@ -339,7 +339,7 @@ class LetoDMS_Core_Folder extends LetoDMS_Core_Object {
|
|||
/**
|
||||
* Returns a list of subfolders
|
||||
* This function does not check for access rights. Use
|
||||
* {@link LetoDMS_Core_DMS::filterAccess} for checking each folder against
|
||||
* {@link SeedDMS_Core_DMS::filterAccess} for checking each folder against
|
||||
* the currently logged in user and the access rights.
|
||||
*
|
||||
* @param string $orderby if set to 'n' the list is ordered by name, otherwise
|
||||
|
@ -358,7 +358,7 @@ class LetoDMS_Core_Folder extends LetoDMS_Core_Object {
|
|||
|
||||
$this->_subFolders = array();
|
||||
for ($i = 0; $i < count($resArr); $i++)
|
||||
// $this->_subFolders[$i] = new LetoDMS_Core_Folder($resArr[$i]["id"], $resArr[$i]["name"], $resArr[$i]["parent"], $resArr[$i]["comment"], $resArr[$i]["owner"], $resArr[$i]["inheritAccess"], $resArr[$i]["defaultAccess"], $resArr[$i]["sequence"]);
|
||||
// $this->_subFolders[$i] = new SeedDMS_Core_Folder($resArr[$i]["id"], $resArr[$i]["name"], $resArr[$i]["parent"], $resArr[$i]["comment"], $resArr[$i]["owner"], $resArr[$i]["inheritAccess"], $resArr[$i]["defaultAccess"], $resArr[$i]["sequence"]);
|
||||
$this->_subFolders[$i] = $this->_dms->getFolder($resArr[$i]["id"]);
|
||||
}
|
||||
|
||||
|
@ -374,7 +374,7 @@ class LetoDMS_Core_Folder extends LetoDMS_Core_Object {
|
|||
* @param integer $sequence position of folder in list of sub folders.
|
||||
* @param array $attributes list of document attributes. The element key
|
||||
* must be the id of the attribute definition.
|
||||
* @return object object of type LetoDMS_Core_Folder or false in case of
|
||||
* @return object object of type SeedDMS_Core_Folder or false in case of
|
||||
* an error.
|
||||
*/
|
||||
function addSubFolder($name, $comment, $owner, $sequence, $attributes=array()) { /* {{{ */
|
||||
|
@ -514,7 +514,7 @@ class LetoDMS_Core_Folder extends LetoDMS_Core_Object {
|
|||
/**
|
||||
* Get all documents of the folder
|
||||
* This function does not check for access rights. Use
|
||||
* {@link LetoDMS_Core_DMS::filterAccess} for checking each document against
|
||||
* {@link SeedDMS_Core_DMS::filterAccess} for checking each document against
|
||||
* the currently logged in user and the access rights.
|
||||
*
|
||||
* @param string $orderby if set to 'n' the list is ordered by name, otherwise
|
||||
|
@ -534,7 +534,7 @@ class LetoDMS_Core_Folder extends LetoDMS_Core_Object {
|
|||
|
||||
$this->_documents = array();
|
||||
foreach ($resArr as $row) {
|
||||
// array_push($this->_documents, new LetoDMS_Core_Document($row["id"], $row["name"], $row["comment"], $row["date"], $row["expires"], $row["owner"], $row["folder"], $row["inheritAccess"], $row["defaultAccess"], isset($row["lockUser"])?$row["lockUser"]:NULL, $row["keywords"], $row["sequence"]));
|
||||
// array_push($this->_documents, new SeedDMS_Core_Document($row["id"], $row["name"], $row["comment"], $row["date"], $row["expires"], $row["owner"], $row["folder"], $row["inheritAccess"], $row["defaultAccess"], isset($row["lockUser"])?$row["lockUser"]:NULL, $row["keywords"], $row["sequence"]));
|
||||
array_push($this->_documents, $this->_dms->getDocument($row["id"]));
|
||||
}
|
||||
}
|
||||
|
@ -691,8 +691,8 @@ class LetoDMS_Core_Folder extends LetoDMS_Core_Object {
|
|||
* $mode and $op can be set to restrict the list of returned access
|
||||
* privileges. If $mode is set to M_ANY no restriction will apply
|
||||
* regardless of the value of $op. The returned array contains a list
|
||||
* of {@link LetoDMS_Core_UserAccess} and
|
||||
* {@link LetoDMS_Core_GroupAccess} objects. Even if the document
|
||||
* of {@link SeedDMS_Core_UserAccess} and
|
||||
* {@link SeedDMS_Core_GroupAccess} objects. Even if the document
|
||||
* has no access list the returned array contains the two elements
|
||||
* 'users' and 'groups' which are than empty. The methode returns false
|
||||
* if the function fails.
|
||||
|
@ -727,9 +727,9 @@ class LetoDMS_Core_Folder extends LetoDMS_Core_Object {
|
|||
$this->_accessList[$mode] = array("groups" => array(), "users" => array());
|
||||
foreach ($resArr as $row) {
|
||||
if ($row["userID"] != -1)
|
||||
array_push($this->_accessList[$mode]["users"], new LetoDMS_Core_UserAccess($this->_dms->getUser($row["userID"]), $row["mode"]));
|
||||
array_push($this->_accessList[$mode]["users"], new SeedDMS_Core_UserAccess($this->_dms->getUser($row["userID"]), $row["mode"]));
|
||||
else //if ($row["groupID"] != -1)
|
||||
array_push($this->_accessList[$mode]["groups"], new LetoDMS_Core_GroupAccess($this->_dms->getGroup($row["groupID"]), $row["mode"]));
|
||||
array_push($this->_accessList[$mode]["groups"], new SeedDMS_Core_GroupAccess($this->_dms->getGroup($row["groupID"]), $row["mode"]));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1158,7 +1158,7 @@ class LetoDMS_Core_Folder extends LetoDMS_Core_Object {
|
|||
* Get List of users and groups which have read access on the document
|
||||
*
|
||||
* This function is deprecated. Use
|
||||
* {@see LetoDMS_Core_Folder::getReadAccessList()} instead.
|
||||
* {@see SeedDMS_Core_Folder::getReadAccessList()} instead.
|
||||
*/
|
||||
function getApproversList() { /* {{{ */
|
||||
return $this->getReadAccessList();
|
||||
|
@ -1219,13 +1219,13 @@ class LetoDMS_Core_Folder extends LetoDMS_Core_Object {
|
|||
$queryStr = "SELECT `tblUsers`.* FROM `tblUsers` ".
|
||||
"LEFT JOIN `tblGroupMembers` ON `tblGroupMembers`.`userID`=`tblUsers`.`id` ".
|
||||
"WHERE `tblGroupMembers`.`groupID` IN (". $groupIDs .") ".
|
||||
"AND `tblUsers`.`role` != ".LetoDMS_Core_User::role_guest." UNION ";
|
||||
"AND `tblUsers`.`role` != ".SeedDMS_Core_User::role_guest." UNION ";
|
||||
}
|
||||
$queryStr .=
|
||||
"SELECT `tblUsers`.* FROM `tblUsers` ".
|
||||
"WHERE (`tblUsers`.`role` != ".LetoDMS_Core_User::role_guest.") ".
|
||||
"WHERE (`tblUsers`.`role` != ".SeedDMS_Core_User::role_guest.") ".
|
||||
"AND ((`tblUsers`.`id` = ". $this->_ownerID . ") ".
|
||||
"OR (`tblUsers`.`role` = ".LetoDMS_Core_User::role_admin.")".
|
||||
"OR (`tblUsers`.`role` = ".SeedDMS_Core_User::role_admin.")".
|
||||
(strlen($userIDs) == 0 ? "" : " OR (`tblUsers`.`id` IN (". $userIDs ."))").
|
||||
") ORDER BY `login`";
|
||||
}
|
||||
|
@ -1237,16 +1237,16 @@ class LetoDMS_Core_Folder extends LetoDMS_Core_Object {
|
|||
$queryStr = "SELECT `tblUsers`.* FROM `tblUsers` ".
|
||||
"LEFT JOIN `tblGroupMembers` ON `tblGroupMembers`.`userID`=`tblUsers`.`id` ".
|
||||
"WHERE `tblGroupMembers`.`groupID` NOT IN (". $groupIDs .")".
|
||||
"AND `tblUsers`.`role` != ".LetoDMS_Core_User::role_guest." ".
|
||||
"AND `tblUsers`.`role` != ".SeedDMS_Core_User::role_guest." ".
|
||||
(strlen($userIDs) == 0 ? "" : " AND (`tblUsers`.`id` NOT IN (". $userIDs ."))")." UNION ";
|
||||
}
|
||||
$queryStr .=
|
||||
"SELECT `tblUsers`.* FROM `tblUsers` ".
|
||||
"WHERE (`tblUsers`.`id` = ". $this->_ownerID . ") ".
|
||||
"OR (`tblUsers`.`role` = ".LetoDMS_Core_User::role_admin.") ".
|
||||
"OR (`tblUsers`.`role` = ".SeedDMS_Core_User::role_admin.") ".
|
||||
"UNION ".
|
||||
"SELECT `tblUsers`.* FROM `tblUsers` ".
|
||||
"WHERE `tblUsers`.`role` != ".LetoDMS_Core_User::role_guest." ".
|
||||
"WHERE `tblUsers`.`role` != ".SeedDMS_Core_User::role_guest." ".
|
||||
(strlen($userIDs) == 0 ? "" : " AND (`tblUsers`.`id` NOT IN (". $userIDs ."))").
|
||||
" ORDER BY `login`";
|
||||
}
|
|
@ -3,7 +3,7 @@
|
|||
* Implementation of the group object in the document management system
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
@ -16,12 +16,12 @@
|
|||
* Class to represent a user group in the document management system
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2002-2005 Markus Westphal, 2006-2008 Malcolm Cowe, 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Core_Group {
|
||||
class SeedDMS_Core_Group {
|
||||
/**
|
||||
* The id of the user group
|
||||
*
|
||||
|
@ -43,7 +43,7 @@ class LetoDMS_Core_Group {
|
|||
*/
|
||||
protected $_dms;
|
||||
|
||||
function LetoDMS_Core_Group($id, $name, $comment) { /* {{{ */
|
||||
function SeedDMS_Core_Group($id, $name, $comment) { /* {{{ */
|
||||
$this->_id = $id;
|
||||
$this->_name = $name;
|
||||
$this->_comment = $comment;
|
||||
|
@ -96,7 +96,7 @@ class LetoDMS_Core_Group {
|
|||
$this->_users = array();
|
||||
|
||||
foreach ($resArr as $row) {
|
||||
$user = new LetoDMS_Core_User($row["id"], $row["login"], $row["pwd"], $row["fullName"], $row["email"], $row["language"], $row["theme"], $row["comment"], $row["role"], $row['hidden']);
|
||||
$user = new SeedDMS_Core_User($row["id"], $row["login"], $row["pwd"], $row["fullName"], $row["email"], $row["language"], $row["theme"], $row["comment"], $row["role"], $row['hidden']);
|
||||
array_push($this->_users, $user);
|
||||
}
|
||||
}
|
||||
|
@ -116,7 +116,7 @@ class LetoDMS_Core_Group {
|
|||
$managers = array();
|
||||
|
||||
foreach ($resArr as $row) {
|
||||
$user = new LetoDMS_Core_User($row["id"], $row["login"], $row["pwd"], $row["fullName"], $row["email"], $row["language"], $row["theme"], $row["comment"], $row["role"], $row['hidden']);
|
||||
$user = new SeedDMS_Core_User($row["id"], $row["login"], $row["pwd"], $row["fullName"], $row["email"], $row["language"], $row["theme"], $row["comment"], $row["role"], $row['hidden']);
|
||||
array_push($managers, $user);
|
||||
}
|
||||
return $managers;
|
|
@ -3,7 +3,7 @@
|
|||
* Implementation of keyword categories in the document management system
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
@ -16,13 +16,13 @@
|
|||
* Class to represent a keyword category in the document management system
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2002-2005 Markus Westphal, 2006-2008 Malcolm Cowe,
|
||||
* 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Core_KeywordCategory {
|
||||
class SeedDMS_Core_KeywordCategory {
|
||||
/**
|
||||
* @var integer $_id id of keyword category
|
||||
* @access protected
|
||||
|
@ -47,7 +47,7 @@ class LetoDMS_Core_KeywordCategory {
|
|||
*/
|
||||
protected $_dms;
|
||||
|
||||
function LetoDMS_Core_KeywordCategory($id, $ownerID, $name) {
|
||||
function SeedDMS_Core_KeywordCategory($id, $ownerID, $name) {
|
||||
$this->_id = $id;
|
||||
$this->_name = $name;
|
||||
$this->_ownerID = $ownerID;
|
|
@ -3,7 +3,7 @@
|
|||
* Implementation of a notification object
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
@ -15,12 +15,12 @@
|
|||
* Class to represent a notification
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Core_Notification { /* {{{ */
|
||||
class SeedDMS_Core_Notification { /* {{{ */
|
||||
/**
|
||||
* @var integer id of target (document or folder)
|
||||
*
|
||||
|
@ -56,7 +56,7 @@ class LetoDMS_Core_Notification { /* {{{ */
|
|||
*/
|
||||
protected $_dms;
|
||||
|
||||
function LetoDMS_Core_Notification($target, $targettype, $userid, $groupid) { /* {{{ */
|
||||
function SeedDMS_Core_Notification($target, $targettype, $userid, $groupid) { /* {{{ */
|
||||
$this->_target = $target;
|
||||
$this->_targettype = $targettype;
|
||||
$this->_userid = $userid;
|
|
@ -3,7 +3,7 @@
|
|||
* Implementation of an generic object in the document management system
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @license GPL2
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2010-2012 Uwe Steinmann
|
||||
|
@ -14,15 +14,15 @@
|
|||
/**
|
||||
* Class to represent a generic object in the document management system
|
||||
*
|
||||
* This is the base class for generic objects in LetoDMS.
|
||||
* This is the base class for generic objects in SeedDMS.
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Core_Object { /* {{{ */
|
||||
class SeedDMS_Core_Object { /* {{{ */
|
||||
/**
|
||||
* @var integer unique id of object
|
||||
*/
|
||||
|
@ -38,7 +38,7 @@ class LetoDMS_Core_Object { /* {{{ */
|
|||
*/
|
||||
public $_dms;
|
||||
|
||||
function LetoDMS_Core_Object($id) { /* {{{ */
|
||||
function SeedDMS_Core_Object($id) { /* {{{ */
|
||||
$this->_id = $id;
|
||||
$this->_dms = null;
|
||||
} /* }}} */
|
||||
|
@ -67,20 +67,20 @@ class LetoDMS_Core_Object { /* {{{ */
|
|||
/**
|
||||
* Returns all attributes set for the object
|
||||
*
|
||||
* @return array list of objects of class LetoDMS_Core_Attribute
|
||||
* @return array list of objects of class SeedDMS_Core_Attribute
|
||||
*/
|
||||
function getAttributes() { /* {{{ */
|
||||
if (!$this->_attributes) {
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
switch(get_class($this)) {
|
||||
case "LetoDMS_Core_Document":
|
||||
case "SeedDMS_Core_Document":
|
||||
$queryStr = "SELECT * FROM tblDocumentAttributes WHERE document = " . $this->_id." ORDER BY `id`";
|
||||
break;
|
||||
case "LetoDMS_Core_DocumentContent":
|
||||
case "SeedDMS_Core_DocumentContent":
|
||||
$queryStr = "SELECT * FROM tblDocumentContentAttributes WHERE content = " . $this->_id." ORDER BY `id`";
|
||||
break;
|
||||
case "LetoDMS_Core_Folder":
|
||||
case "SeedDMS_Core_Folder":
|
||||
$queryStr = "SELECT * FROM tblFolderAttributes WHERE folder = " . $this->_id." ORDER BY `id`";
|
||||
break;
|
||||
default:
|
||||
|
@ -93,7 +93,7 @@ class LetoDMS_Core_Object { /* {{{ */
|
|||
|
||||
foreach ($resArr as $row) {
|
||||
$attrdef = $this->_dms->getAttributeDefinition($row['attrdef']);
|
||||
$attr = new LetoDMS_Core_Attribute($row["id"], $this, $attrdef, $row["value"]);
|
||||
$attr = new SeedDMS_Core_Attribute($row["id"], $this, $attrdef, $row["value"]);
|
||||
$attr->setDMS($this->_dms);
|
||||
$this->_attributes[$attrdef->getId()] = $attr;
|
||||
}
|
||||
|
@ -105,7 +105,7 @@ class LetoDMS_Core_Object { /* {{{ */
|
|||
/**
|
||||
* Returns an attribute of the object for the given attribute definition
|
||||
*
|
||||
* @return object object of class LetoDMS_Core_Attribute or false
|
||||
* @return object object of class SeedDMS_Core_Attribute or false
|
||||
*/
|
||||
function getAttributeValue($attrdef) { /* {{{ */
|
||||
if (!$this->_attributes) {
|
||||
|
@ -131,13 +131,13 @@ class LetoDMS_Core_Object { /* {{{ */
|
|||
}
|
||||
if(!isset($this->_attributes[$attrdef->getId()])) {
|
||||
switch(get_class($this)) {
|
||||
case "LetoDMS_Core_Document":
|
||||
case "SeedDMS_Core_Document":
|
||||
$queryStr = "INSERT INTO tblDocumentAttributes (document, attrdef, value) VALUES (".$this->_id.", ".$attrdef->getId().", ".$db->qstr($value).")";
|
||||
break;
|
||||
case "LetoDMS_Core_DocumentContent":
|
||||
case "SeedDMS_Core_DocumentContent":
|
||||
$queryStr = "INSERT INTO tblDocumentContentAttributes (content, attrdef, value) VALUES (".$this->_id.", ".$attrdef->getId().", ".$db->qstr($value).")";
|
||||
break;
|
||||
case "LetoDMS_Core_Folder":
|
||||
case "SeedDMS_Core_Folder":
|
||||
$queryStr = "INSERT INTO tblFolderAttributes (folder, attrdef, value) VALUES (".$this->_id.", ".$attrdef->getId().", ".$db->qstr($value).")";
|
||||
break;
|
||||
default:
|
||||
|
@ -147,7 +147,7 @@ class LetoDMS_Core_Object { /* {{{ */
|
|||
if (!$res)
|
||||
return false;
|
||||
|
||||
$attr = new LetoDMS_Core_Attribute($db->getInsertID(), $this, $attrdef, $value);
|
||||
$attr = new SeedDMS_Core_Attribute($db->getInsertID(), $this, $attrdef, $value);
|
||||
$attr->setDMS($this->_dms);
|
||||
$this->_attributes[$attrdef->getId()] = $attr;
|
||||
return true;
|
|
@ -3,7 +3,7 @@
|
|||
* Implementation of the user object in the document management system
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
@ -16,13 +16,13 @@
|
|||
* Class to represent a user in the document management system
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2002-2005 Markus Westphal, 2006-2008 Malcolm Cowe,
|
||||
* 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Core_User {
|
||||
class SeedDMS_Core_User {
|
||||
/**
|
||||
* @var integer id of user
|
||||
*
|
||||
|
@ -90,8 +90,8 @@ class LetoDMS_Core_User {
|
|||
var $_comment;
|
||||
|
||||
/**
|
||||
* @var string role of user. Can be one of LetoDMS_Core_User::role_user,
|
||||
* LetoDMS_Core_User::role_admin, LetoDMS_Core_User::role_guest
|
||||
* @var string role of user. Can be one of SeedDMS_Core_User::role_user,
|
||||
* SeedDMS_Core_User::role_admin, SeedDMS_Core_User::role_guest
|
||||
*
|
||||
* @access protected
|
||||
*/
|
||||
|
@ -129,7 +129,7 @@ class LetoDMS_Core_User {
|
|||
const role_admin = '1';
|
||||
const role_guest = '2';
|
||||
|
||||
function LetoDMS_Core_User($id, $login, $pwd, $fullName, $email, $language, $theme, $comment, $role, $isHidden=0, $isDisabled=0, $pwdExpiration='', $loginFailures=0, $quota=0) {
|
||||
function SeedDMS_Core_User($id, $login, $pwd, $fullName, $email, $language, $theme, $comment, $role, $isHidden=0, $isDisabled=0, $pwdExpiration='', $loginFailures=0, $quota=0) {
|
||||
$this->_id = $id;
|
||||
$this->_login = $login;
|
||||
$this->_pwd = $pwd;
|
||||
|
@ -278,29 +278,29 @@ class LetoDMS_Core_User {
|
|||
return true;
|
||||
} /* }}} */
|
||||
|
||||
function isAdmin() { return ($this->_role == LetoDMS_Core_User::role_admin); }
|
||||
function isAdmin() { return ($this->_role == SeedDMS_Core_User::role_admin); }
|
||||
|
||||
function setAdmin($isAdmin) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblUsers SET role = " . LetoDMS_Core_User::role_admin . " WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE tblUsers SET role = " . SeedDMS_Core_User::role_admin . " WHERE id = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
$this->_role = LetoDMS_Core_User::role_admin;
|
||||
$this->_role = SeedDMS_Core_User::role_admin;
|
||||
return true;
|
||||
} /* }}} */
|
||||
|
||||
function isGuest() { return ($this->_role == LetoDMS_Core_User::role_guest); }
|
||||
function isGuest() { return ($this->_role == SeedDMS_Core_User::role_guest); }
|
||||
|
||||
function setGuest($isGuest) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblUsers SET role = " . LetoDMS_Core_User::role_guest . " WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE tblUsers SET role = " . SeedDMS_Core_User::role_guest . " WHERE id = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
$this->_role = LetoDMS_Core_User::role_guest;
|
||||
$this->_role = SeedDMS_Core_User::role_guest;
|
||||
return true;
|
||||
} /* }}} */
|
||||
|
||||
|
@ -607,7 +607,7 @@ class LetoDMS_Core_User {
|
|||
|
||||
/**
|
||||
* Make the user a member of a group
|
||||
* This function uses {@link LetoDMS_Group::addUser} but checks before if
|
||||
* This function uses {@link SeedDMS_Group::addUser} but checks before if
|
||||
* the user is already a member of the group.
|
||||
*
|
||||
* @param object $group group to be the member of
|
||||
|
@ -627,7 +627,7 @@ class LetoDMS_Core_User {
|
|||
|
||||
/**
|
||||
* Removes the user from a group
|
||||
* This function uses {@link LetoDMS_Group::removeUser} but checks before if
|
||||
* This function uses {@link SeedDMS_Group::removeUser} but checks before if
|
||||
* the user is a member of the group at all.
|
||||
*
|
||||
* @param object $group group to leave
|
||||
|
@ -664,7 +664,7 @@ class LetoDMS_Core_User {
|
|||
|
||||
$this->_groups = array();
|
||||
foreach ($resArr as $row) {
|
||||
$group = new LetoDMS_Core_Group($row["id"], $row["name"], $row["comment"]);
|
||||
$group = new SeedDMS_Core_Group($row["id"], $row["name"], $row["comment"]);
|
||||
$group->setDMS($this->_dms);
|
||||
array_push($this->_groups, $group);
|
||||
}
|
||||
|
@ -760,7 +760,7 @@ class LetoDMS_Core_User {
|
|||
|
||||
$documents = array();
|
||||
foreach ($resArr as $row) {
|
||||
$document = new LetoDMS_Core_Document($row["id"], $row["name"], $row["comment"], $row["date"], $row["expires"], $row["owner"], $row["folder"], $row["inheritAccess"], $row["defaultAccess"], $row["lockUser"], $row["keywords"], $row["sequence"]);
|
||||
$document = new SeedDMS_Core_Document($row["id"], $row["name"], $row["comment"], $row["date"], $row["expires"], $row["owner"], $row["folder"], $row["inheritAccess"], $row["defaultAccess"], $row["lockUser"], $row["keywords"], $row["sequence"]);
|
||||
$document->setDMS($this->_dms);
|
||||
$documents[] = $document;
|
||||
}
|
||||
|
@ -789,7 +789,7 @@ class LetoDMS_Core_User {
|
|||
|
||||
$documents = array();
|
||||
foreach ($resArr as $row) {
|
||||
$document = new LetoDMS_Core_Document($row["id"], $row["name"], $row["comment"], $row["date"], $row["expires"], $row["owner"], $row["folder"], $row["inheritAccess"], $row["defaultAccess"], $row["lockUser"], $row["keywords"], $row["sequence"]);
|
||||
$document = new SeedDMS_Core_Document($row["id"], $row["name"], $row["comment"], $row["date"], $row["expires"], $row["owner"], $row["folder"], $row["inheritAccess"], $row["defaultAccess"], $row["lockUser"], $row["keywords"], $row["sequence"]);
|
||||
$document->setDMS($this->_dms);
|
||||
$documents[] = $document;
|
||||
}
|
||||
|
@ -805,7 +805,7 @@ class LetoDMS_Core_User {
|
|||
* further.
|
||||
*
|
||||
* For a detaile description of the result array see
|
||||
* {link LetoDMS_Core_User::getApprovalStatus} which does the same for
|
||||
* {link SeedDMS_Core_User::getApprovalStatus} which does the same for
|
||||
* approvals.
|
||||
*
|
||||
* @param int $documentID optional document id for which to retrieve the
|
||||
|
@ -1069,7 +1069,7 @@ class LetoDMS_Core_User {
|
|||
|
||||
/**
|
||||
* Get a list of mandatory approvers
|
||||
* See {link LetoDMS_Core_User::getMandatoryReviewers}
|
||||
* See {link SeedDMS_Core_User::getMandatoryReviewers}
|
||||
*
|
||||
* @return array list of arrays with two elements containing the user id
|
||||
* (approverUserID) and group id (approverGroupID) of the approver.
|
|
@ -3,7 +3,7 @@
|
|||
* Implementation of the workflow object in the document management system
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
@ -15,12 +15,12 @@
|
|||
* Class to represent an workflow in the document management system
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Core_Workflow { /* {{{ */
|
||||
class SeedDMS_Core_Workflow { /* {{{ */
|
||||
/**
|
||||
* @var integer id of workflow
|
||||
*
|
||||
|
@ -56,7 +56,7 @@ class LetoDMS_Core_Workflow { /* {{{ */
|
|||
*/
|
||||
var $_dms;
|
||||
|
||||
function LetoDMS_Core_Workflow($id, $name, $initstate) { /* {{{ */
|
||||
function SeedDMS_Core_Workflow($id, $name, $initstate) { /* {{{ */
|
||||
$this->_id = $id;
|
||||
$this->_name = $name;
|
||||
$this->_initstate = $initstate;
|
||||
|
@ -111,7 +111,7 @@ class LetoDMS_Core_Workflow { /* {{{ */
|
|||
|
||||
$wkftransitions = array();
|
||||
for ($i = 0; $i < count($resArr); $i++) {
|
||||
$wkftransition = new LetoDMS_Core_Workflow_Transition($resArr[$i]["id"], $this, $this->_dms->getWorkflowState($resArr[$i]["state"]), $this->_dms->getWorkflowAction($resArr[$i]["action"]), $this->_dms->getWorkflowState($resArr[$i]["nextstate"]), $resArr[$i]["maxtime"]);
|
||||
$wkftransition = new SeedDMS_Core_Workflow_Transition($resArr[$i]["id"], $this, $this->_dms->getWorkflowState($resArr[$i]["state"]), $this->_dms->getWorkflowAction($resArr[$i]["action"]), $this->_dms->getWorkflowState($resArr[$i]["nextstate"]), $resArr[$i]["maxtime"]);
|
||||
$wkftransition->setDMS($this->_dms);
|
||||
$wkftransitions[$resArr[$i]["id"]] = $wkftransition;
|
||||
}
|
||||
|
@ -172,7 +172,7 @@ class LetoDMS_Core_Workflow { /* {{{ */
|
|||
|
||||
$wkftransitions = array();
|
||||
for ($i = 0; $i < count($resArr); $i++) {
|
||||
$wkftransition = new LetoDMS_Core_Workflow_Transition($resArr[$i]["id"], $this, $this->_dms->getWorkflowState($resArr[$i]["state"]), $this->_dms->getWorkflowAction($resArr[$i]["action"]), $this->_dms->getWorkflowState($resArr[$i]["nextstate"]), $resArr[$i]["maxtime"]);
|
||||
$wkftransition = new SeedDMS_Core_Workflow_Transition($resArr[$i]["id"], $this, $this->_dms->getWorkflowState($resArr[$i]["state"]), $this->_dms->getWorkflowAction($resArr[$i]["action"]), $this->_dms->getWorkflowState($resArr[$i]["nextstate"]), $resArr[$i]["maxtime"]);
|
||||
$wkftransition->setDMS($this->_dms);
|
||||
$wkftransitions[$i] = $wkftransition;
|
||||
}
|
||||
|
@ -196,7 +196,7 @@ class LetoDMS_Core_Workflow { /* {{{ */
|
|||
|
||||
$wkftransitions = array();
|
||||
for ($i = 0; $i < count($resArr); $i++) {
|
||||
$wkftransition = new LetoDMS_Core_Workflow_Transition($resArr[$i]["id"], $this, $this->_dms->getWorkflowState($resArr[$i]["state"]), $this->_dms->getWorkflowAction($resArr[$i]["action"]), $this->_dms->getWorkflowState($resArr[$i]["nextstate"]), $resArr[$i]["maxtime"]);
|
||||
$wkftransition = new SeedDMS_Core_Workflow_Transition($resArr[$i]["id"], $this, $this->_dms->getWorkflowState($resArr[$i]["state"]), $this->_dms->getWorkflowAction($resArr[$i]["action"]), $this->_dms->getWorkflowState($resArr[$i]["nextstate"]), $resArr[$i]["maxtime"]);
|
||||
$wkftransition->setDMS($this->_dms);
|
||||
$wkftransitions[$i] = $wkftransition;
|
||||
}
|
||||
|
@ -221,7 +221,7 @@ class LetoDMS_Core_Workflow { /* {{{ */
|
|||
|
||||
$wkftransitions = array();
|
||||
for ($i = 0; $i < count($resArr); $i++) {
|
||||
$wkftransition = new LetoDMS_Core_Workflow_Transition($resArr[$i]["id"], $this, $this->_dms->getWorkflowState($resArr[$i]["state"]), $this->_dms->getWorkflowAction($resArr[$i]["action"]), $this->_dms->getWorkflowState($resArr[$i]["nextstate"]), $resArr[$i]["maxtime"]);
|
||||
$wkftransition = new SeedDMS_Core_Workflow_Transition($resArr[$i]["id"], $this, $this->_dms->getWorkflowState($resArr[$i]["state"]), $this->_dms->getWorkflowAction($resArr[$i]["action"]), $this->_dms->getWorkflowState($resArr[$i]["nextstate"]), $resArr[$i]["maxtime"]);
|
||||
$wkftransition->setDMS($this->_dms);
|
||||
$wkftransitions[$i] = $wkftransition;
|
||||
}
|
||||
|
@ -231,7 +231,7 @@ class LetoDMS_Core_Workflow { /* {{{ */
|
|||
|
||||
/**
|
||||
* Remove a transition from a workflow
|
||||
* Deprecated! User LetoDMS_Core_Workflow_Transition::remove() instead.
|
||||
* Deprecated! User SeedDMS_Core_Workflow_Transition::remove() instead.
|
||||
*
|
||||
* @param object $transition
|
||||
* @return boolean true if no error occured, otherwise false
|
||||
|
@ -342,12 +342,12 @@ class LetoDMS_Core_Workflow { /* {{{ */
|
|||
* Class to represent a workflow state in the document management system
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Core_Workflow_State { /* {{{ */
|
||||
class SeedDMS_Core_Workflow_State { /* {{{ */
|
||||
/**
|
||||
* @var integer id of workflow state
|
||||
*
|
||||
|
@ -390,7 +390,7 @@ class LetoDMS_Core_Workflow_State { /* {{{ */
|
|||
*/
|
||||
var $_dms;
|
||||
|
||||
function LetoDMS_Core_Workflow_State($id, $name, $maxtime, $precondfunc, $documentstatus) {
|
||||
function SeedDMS_Core_Workflow_State($id, $name, $maxtime, $precondfunc, $documentstatus) {
|
||||
$this->_id = $id;
|
||||
$this->_name = $name;
|
||||
$this->_maxtime = $maxtime;
|
||||
|
@ -516,12 +516,12 @@ class LetoDMS_Core_Workflow_State { /* {{{ */
|
|||
* Class to represent a workflow action in the document management system
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Core_Workflow_Action { /* {{{ */
|
||||
class SeedDMS_Core_Workflow_Action { /* {{{ */
|
||||
/**
|
||||
* @var integer id of workflow action
|
||||
*
|
||||
|
@ -543,7 +543,7 @@ class LetoDMS_Core_Workflow_Action { /* {{{ */
|
|||
*/
|
||||
var $_dms;
|
||||
|
||||
function LetoDMS_Core_Workflow_Action($id, $name) {
|
||||
function SeedDMS_Core_Workflow_Action($id, $name) {
|
||||
$this->_id = $id;
|
||||
$this->_name = $name;
|
||||
$this->_dms = null;
|
||||
|
@ -616,12 +616,12 @@ class LetoDMS_Core_Workflow_Action { /* {{{ */
|
|||
* Class to represent a workflow transition in the document management system
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Core_Workflow_Transition { /* {{{ */
|
||||
class SeedDMS_Core_Workflow_Transition { /* {{{ */
|
||||
/**
|
||||
* @var integer id of workflow transition
|
||||
*
|
||||
|
@ -685,7 +685,7 @@ class LetoDMS_Core_Workflow_Transition { /* {{{ */
|
|||
*/
|
||||
var $_dms;
|
||||
|
||||
function LetoDMS_Core_Workflow_Transition($id, $workflow, $state, $action, $nextstate, $maxtime) {
|
||||
function SeedDMS_Core_Workflow_Transition($id, $workflow, $state, $action, $nextstate, $maxtime) {
|
||||
$this->_id = $id;
|
||||
$this->_workflow = $workflow;
|
||||
$this->_state = $state;
|
||||
|
@ -789,7 +789,7 @@ class LetoDMS_Core_Workflow_Transition { /* {{{ */
|
|||
|
||||
$users = array();
|
||||
for ($i = 0; $i < count($resArr); $i++) {
|
||||
$user = new LetoDMS_Core_Workflow_Transition_User($resArr[$i]['id'], $this, $this->_dms->getUser($resArr[$i]['userid']));
|
||||
$user = new SeedDMS_Core_Workflow_Transition_User($resArr[$i]['id'], $this, $this->_dms->getUser($resArr[$i]['userid']));
|
||||
$user->setDMS($this->_dms);
|
||||
$users[$i] = $user;
|
||||
}
|
||||
|
@ -817,7 +817,7 @@ class LetoDMS_Core_Workflow_Transition { /* {{{ */
|
|||
|
||||
$groups = array();
|
||||
for ($i = 0; $i < count($resArr); $i++) {
|
||||
$group = new LetoDMS_Core_Workflow_Transition_Group($resArr[$i]['id'], $this, $this->_dms->getGroup($resArr[$i]['groupid']), $resArr[$i]['minusers']);
|
||||
$group = new SeedDMS_Core_Workflow_Transition_Group($resArr[$i]['id'], $this, $this->_dms->getGroup($resArr[$i]['groupid']), $resArr[$i]['minusers']);
|
||||
$group->setDMS($this->_dms);
|
||||
$groups[$i] = $group;
|
||||
}
|
||||
|
@ -856,12 +856,12 @@ class LetoDMS_Core_Workflow_Transition { /* {{{ */
|
|||
* Class to represent a user allowed to trigger a workflow transition
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Core_Workflow_Transition_User { /* {{{ */
|
||||
class SeedDMS_Core_Workflow_Transition_User { /* {{{ */
|
||||
/**
|
||||
* @var integer id of workflow transition
|
||||
*
|
||||
|
@ -890,7 +890,7 @@ class LetoDMS_Core_Workflow_Transition_User { /* {{{ */
|
|||
*/
|
||||
var $_dms;
|
||||
|
||||
function LetoDMS_Core_Workflow_Transition_User($id, $transition, $user) {
|
||||
function SeedDMS_Core_Workflow_Transition_User($id, $transition, $user) {
|
||||
$this->_id = $id;
|
||||
$this->_transition = $transition;
|
||||
$this->_user = $user;
|
||||
|
@ -923,12 +923,12 @@ class LetoDMS_Core_Workflow_Transition_User { /* {{{ */
|
|||
* Class to represent a group allowed to trigger a workflow transition
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Core_Workflow_Transition_Group { /* {{{ */
|
||||
class SeedDMS_Core_Workflow_Transition_Group { /* {{{ */
|
||||
/**
|
||||
* @var integer id of workflow transition
|
||||
*
|
||||
|
@ -964,7 +964,7 @@ class LetoDMS_Core_Workflow_Transition_Group { /* {{{ */
|
|||
*/
|
||||
var $_dms;
|
||||
|
||||
function LetoDMS_Core_Workflow_Transition_Group($id, $transition, $group, $numOfUsers) { /* {{{ */
|
||||
function SeedDMS_Core_Workflow_Transition_Group($id, $transition, $group, $numOfUsers) { /* {{{ */
|
||||
$this->_id = $id;
|
||||
$this->_transition = $transition;
|
||||
$this->_group = $group;
|
||||
|
@ -1008,12 +1008,12 @@ class LetoDMS_Core_Workflow_Transition_Group { /* {{{ */
|
|||
* Class to represent a group allowed to trigger a workflow transition
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Core_Workflow_Log { /* {{{ */
|
||||
class SeedDMS_Core_Workflow_Log { /* {{{ */
|
||||
/**
|
||||
* @var integer id of workflow log
|
||||
*
|
||||
|
@ -1077,7 +1077,7 @@ class LetoDMS_Core_Workflow_Log { /* {{{ */
|
|||
*/
|
||||
var $_dms;
|
||||
|
||||
function LetoDMS_Core_Workflow_Log($id, $document, $version, $workflow, $user, $transition, $date, $comment) {
|
||||
function SeedDMS_Core_Workflow_Log($id, $document, $version, $workflow, $user, $transition, $date, $comment) {
|
||||
$this->_id = $id;
|
||||
$this->_document = $document;
|
||||
$this->_version = $version;
|
|
@ -3,7 +3,7 @@
|
|||
* Implementation of database access
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
@ -21,12 +21,12 @@ require_once "adodb/adodb.inc.php";
|
|||
* Class to represent the database access for the document management
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @author Markus Westphal, Malcolm Cowe, Matteo Lucarelli, Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2002-2005 Markus Westphal, 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Core_DatabaseAccess {
|
||||
class SeedDMS_Core_DatabaseAccess {
|
||||
var $_debug;
|
||||
var $_driver;
|
||||
var $_hostname;
|
||||
|
@ -57,7 +57,7 @@ class LetoDMS_Core_DatabaseAccess {
|
|||
}
|
||||
|
||||
/**
|
||||
* Constructor of LetoDMS_Core_DatabaseAccess
|
||||
* Constructor of SeedDMS_Core_DatabaseAccess
|
||||
*
|
||||
* Sets all database parameters but does not connect.
|
||||
*
|
||||
|
@ -67,7 +67,7 @@ class LetoDMS_Core_DatabaseAccess {
|
|||
* @param string $passw password of user
|
||||
* @param string $database name of database
|
||||
*/
|
||||
function LetoDMS_Core_DatabaseAccess($driver, $hostname, $user, $passw, $database = false) {
|
||||
function SeedDMS_Core_DatabaseAccess($driver, $hostname, $user, $passw, $database = false) {
|
||||
$this->_driver = $driver;
|
||||
$this->_hostname = $hostname;
|
||||
$this->_database = $database;
|
|
@ -3,7 +3,7 @@
|
|||
* Implementation of database access using PDO
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
@ -16,12 +16,12 @@
|
|||
* This class uses PDO for the actual database access.
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Core_DatabaseAccess {
|
||||
class SeedDMS_Core_DatabaseAccess {
|
||||
/**
|
||||
* @var boolean set to true for debug mode
|
||||
*/
|
||||
|
@ -97,7 +97,7 @@ class LetoDMS_Core_DatabaseAccess {
|
|||
function TableList() { /* {{{ */
|
||||
switch($this->_driver) {
|
||||
case 'mysql':
|
||||
$sql = "select TABLE_NAME as name from information_schema.tables where TABLE_SCHEMA='letodms' and TABLE_TYPE='BASE TABLE'";
|
||||
$sql = "select TABLE_NAME as name from information_schema.tables where TABLE_SCHEMA='seeddms' and TABLE_TYPE='BASE TABLE'";
|
||||
break;
|
||||
case 'sqlite':
|
||||
$sql = "select tbl_name as name from sqlite_master where type='table'";
|
||||
|
@ -113,7 +113,7 @@ class LetoDMS_Core_DatabaseAccess {
|
|||
} /* }}} */
|
||||
|
||||
/**
|
||||
* Constructor of LetoDMS_Core_DatabaseAccess
|
||||
* Constructor of SeedDMS_Core_DatabaseAccess
|
||||
*
|
||||
* Sets all database parameters but does not connect.
|
||||
*
|
||||
|
@ -123,7 +123,7 @@ class LetoDMS_Core_DatabaseAccess {
|
|||
* @param string $passw password of user
|
||||
* @param string $database name of database
|
||||
*/
|
||||
function LetoDMS_Core_DatabaseAccess($driver, $hostname, $user, $passw, $database = false) { /* {{{ */
|
||||
function SeedDMS_Core_DatabaseAccess($driver, $hostname, $user, $passw, $database = false) { /* {{{ */
|
||||
$this->_driver = $driver;
|
||||
$this->_hostname = $hostname;
|
||||
$this->_database = $database;
|
|
@ -3,7 +3,7 @@
|
|||
* Implementation of various file system operations
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
@ -17,14 +17,14 @@
|
|||
* Class to represent a user in the document management system
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Core
|
||||
* @package SeedDMS_Core
|
||||
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2002-2005 Markus Westphal,
|
||||
* 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli,
|
||||
* 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Core_File {
|
||||
class SeedDMS_Core_File {
|
||||
function renameFile($old, $new) { /* {{{ */
|
||||
return @rename($old, $new);
|
||||
} /* }}} */
|
|
@ -1,9 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<package packagerversion="1.8.1" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd">
|
||||
<name>LetoDMS_Core</name>
|
||||
<name>SeedDMS_Core</name>
|
||||
<channel>pear.php.net</channel>
|
||||
<summary>Document management system</summary>
|
||||
<description>LetoDMS is a web based document management system (DMS). This is
|
||||
<description>SeedDMS is a web based document management system (DMS). This is
|
||||
the core of it, providing the basic functionality to create/update and delete
|
||||
folders and documents. It also contains a user and group managment</description>
|
||||
<lead>
|
||||
|
@ -27,12 +27,12 @@
|
|||
- calculate checksum for document versions
|
||||
- some bug fixes
|
||||
- some more documentation
|
||||
- added new methods LetoDMS_Core_Document::getReadUserList() and
|
||||
LetoDMS_Core_Folder::getReadUserList() which replaces getApproversList()
|
||||
- added new methods SeedDMS_Core_Document::getReadUserList() and
|
||||
SeedDMS_Core_Folder::getReadUserList() which replaces getApproversList()
|
||||
- fixed sql statement in getReadUserList() for sqlite3
|
||||
</notes>
|
||||
<contents>
|
||||
<dir baseinstalldir="LetoDMS" name="/">
|
||||
<dir baseinstalldir="SeedDMS" name="/">
|
||||
<dir name="Core">
|
||||
<file name="inc.ClassDocument.php" role="php">
|
||||
<tasks:replace from="@package_version@" to="version" type="package-info" />
|
|
@ -1,11 +1,11 @@
|
|||
<?php
|
||||
include("config.php");
|
||||
include("LetoDMS/LetoDMS_Core.php");
|
||||
include("SeedDMS/SeedDMS_Core.php");
|
||||
|
||||
$db = new LetoDMS_Core_DatabaseAccess($g_config['type'], $g_config['hostname'], $g_config['user'], $g_config['passwd'], $g_config['name']);
|
||||
$db = new SeedDMS_Core_DatabaseAccess($g_config['type'], $g_config['hostname'], $g_config['user'], $g_config['passwd'], $g_config['name']);
|
||||
$db->connect() or die ("Could not connect to db-server \"" . $g_config['hostname'] . "\"");
|
||||
|
||||
$dms = new LetoDMS_Core_DMS($db, $g_config['contentDir'], $g_config['contentOffsetDir']);
|
||||
$dms = new SeedDMS_Core_DMS($db, $g_config['contentDir'], $g_config['contentOffsetDir']);
|
||||
|
||||
function tree($folder, $indent='') {
|
||||
echo $indent."D ".$folder->getName()."\n";
|
|
@ -1,11 +1,11 @@
|
|||
<?php
|
||||
include("config.php");
|
||||
include("LetoDMS/LetoDMS_Core.php");
|
||||
include("SeedDMS/SeedDMS_Core.php");
|
||||
|
||||
$db = new LetoDMS_Core_DatabaseAccess($g_config['type'], $g_config['hostname'], $g_config['user'], $g_config['passwd'], $g_config['name']);
|
||||
$db = new SeedDMS_Core_DatabaseAccess($g_config['type'], $g_config['hostname'], $g_config['user'], $g_config['passwd'], $g_config['name']);
|
||||
$db->connect() or die ("Could not connect to db-server \"" . $g_config['hostname'] . "\"");
|
||||
|
||||
$dms = new LetoDMS_Core_DMS($db, $g_config['contentDir'], $g_config['contentOffsetDir']);
|
||||
$dms = new SeedDMS_Core_DMS($db, $g_config['contentDir'], $g_config['contentOffsetDir']);
|
||||
|
||||
$users = $dms->getAllUsers();
|
||||
foreach($users as $user)
|
|
@ -1,11 +1,11 @@
|
|||
<?php
|
||||
include("config.php");
|
||||
include("LetoDMS/LetoDMS_Core.php");
|
||||
include("SeedDMS/SeedDMS_Core.php");
|
||||
|
||||
$db = new LetoDMS_Core_DatabaseAccess($g_config['type'], $g_config['hostname'], $g_config['user'], $g_config['passwd'], $g_config['name']);
|
||||
$db = new SeedDMS_Core_DatabaseAccess($g_config['type'], $g_config['hostname'], $g_config['user'], $g_config['passwd'], $g_config['name']);
|
||||
$db->connect() or die ("Could not connect to db-server \"" . $g_config['hostname'] . "\"");
|
||||
|
||||
$dms = new LetoDMS_Core_DMS($db, $g_config['contentDir'], $g_config['contentOffsetDir']);
|
||||
$dms = new SeedDMS_Core_DMS($db, $g_config['contentDir'], $g_config['contentOffsetDir']);
|
||||
|
||||
$path = '/Test 1/';
|
||||
echo "Searching for folder or document with path '".$path."'\n";
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
// LetoDMS. Document Management System
|
||||
// SeedDMS. Document Management System
|
||||
// Copyright (C) 2011-2013 Uwe Steinmann
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
|
@ -27,17 +27,17 @@ require_once('Zend/Search/Lucene.php');
|
|||
require_once("Zend/Search/Lucene/Analysis/TokenFilter/StopWords.php");
|
||||
|
||||
/**
|
||||
* @uses LetoDMS_Lucene_Indexer
|
||||
* @uses SeedDMS_Lucene_Indexer
|
||||
*/
|
||||
require_once('Lucene/Indexer.php');
|
||||
|
||||
/**
|
||||
* @uses LetoDMS_Lucene_Search
|
||||
* @uses SeedDMS_Lucene_Search
|
||||
*/
|
||||
require_once('Lucene/Search.php');
|
||||
|
||||
/**
|
||||
* @uses LetoDMS_Lucene_IndexedDocument
|
||||
* @uses SeedDMS_Lucene_IndexedDocument
|
||||
*/
|
||||
require_once('Lucene/IndexedDocument.php');
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
* Implementation of an indexed document
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Lucene
|
||||
* @package SeedDMS_Lucene
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
@ -16,13 +16,13 @@
|
|||
* Class for managing an indexed document.
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Lucene
|
||||
* @package SeedDMS_Lucene
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2011, Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Lucene_IndexedDocument extends Zend_Search_Lucene_Document {
|
||||
class SeedDMS_Lucene_IndexedDocument extends Zend_Search_Lucene_Document {
|
||||
/**
|
||||
* Constructor. Creates our indexable document and adds all
|
||||
* necessary fields to it using the passed in document
|
|
@ -3,7 +3,7 @@
|
|||
* Implementation of lucene index
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Lucene
|
||||
* @package SeedDMS_Lucene
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
@ -16,13 +16,13 @@
|
|||
* Class for managing a lucene index.
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Lucene
|
||||
* @package SeedDMS_Lucene
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2011, Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Lucene_Indexer {
|
||||
class SeedDMS_Lucene_Indexer {
|
||||
/**
|
||||
* @var string $indexname name of lucene index
|
||||
* @access protected
|
|
@ -3,7 +3,7 @@
|
|||
* Implementation of search in lucene index
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Lucene
|
||||
* @package SeedDMS_Lucene
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
@ -16,13 +16,13 @@
|
|||
* Class for searching in a lucene index.
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Lucene
|
||||
* @package SeedDMS_Lucene
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2011, Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Lucene_Search {
|
||||
class SeedDMS_Lucene_Search {
|
||||
/**
|
||||
* @var object $index lucene index
|
||||
* @access protected
|
||||
|
@ -33,7 +33,7 @@ class LetoDMS_Lucene_Search {
|
|||
* Create a new instance of the search
|
||||
*
|
||||
* @param object $index lucene index
|
||||
* @return object instance of LetoDMS_Lucene_Search
|
||||
* @return object instance of SeedDMS_Lucene_Search
|
||||
*/
|
||||
function __construct($index) { /* {{{ */
|
||||
$this->index = $index;
|
||||
|
@ -46,7 +46,7 @@ class LetoDMS_Lucene_Search {
|
|||
* Search in index
|
||||
*
|
||||
* @param object $index lucene index
|
||||
* @return object instance of LetoDMS_Lucene_Search
|
||||
* @return object instance of SeedDMS_Lucene_Search
|
||||
*/
|
||||
function search($term, $owner, $status='', $categories=array(), $fields=array()) { /* {{{ */
|
||||
$query = '';
|
|
@ -1,9 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<package packagerversion="1.8.1" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd">
|
||||
<name>LetoDMS_Lucene</name>
|
||||
<name>SeedDMS_Lucene</name>
|
||||
<channel>pear.php.net</channel>
|
||||
<summary>Fulltext search for LetoDMS</summary>
|
||||
<description>LetoDMS is a web based document management system (DMS). This is
|
||||
<summary>Fulltext search for SeedDMS</summary>
|
||||
<description>SeedDMS is a web based document management system (DMS). This is
|
||||
the fulltext search engine for it, based on Lucene.</description>
|
||||
<lead>
|
||||
<name>Uwe Steinmann</name>
|
||||
|
@ -26,7 +26,7 @@
|
|||
catch exception if index is opened but not available
|
||||
</notes>
|
||||
<contents>
|
||||
<dir baseinstalldir="LetoDMS" name="/">
|
||||
<dir baseinstalldir="SeedDMS" name="/">
|
||||
<dir name="Lucene">
|
||||
<file name="Indexer.php" role="php">
|
||||
<tasks:replace from="@package_version@" to="version" type="package-info" />
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
// LetoDMS. Document Management System
|
||||
// SeedDMS. Document Management System
|
||||
// Copyright (C) 2011-2013 Uwe Steinmann
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
|
@ -3,7 +3,7 @@
|
|||
* Implementation of preview documents
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Preview
|
||||
* @package SeedDMS_Preview
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
@ -16,13 +16,13 @@
|
|||
* Class for managing creation of preview images for documents.
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS_Preview
|
||||
* @package SeedDMS_Preview
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2011, Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Preview_Previewer {
|
||||
class SeedDMS_Preview_Previewer {
|
||||
/**
|
||||
* @var string $cacheDir location in the file system where all the
|
||||
* cached data like thumbnails are located. This should be an
|
||||
|
@ -39,7 +39,7 @@ class LetoDMS_Preview_Previewer {
|
|||
|
||||
function __construct($previewDir, $width=40) {
|
||||
if(!is_dir($previewDir)) {
|
||||
if (!LetoDMS_Core_File::makeDir($previewDir)) {
|
||||
if (!SeedDMS_Core_File::makeDir($previewDir)) {
|
||||
$this->previewDir = '';
|
||||
} else {
|
||||
$this->previewDir = $previewDir;
|
||||
|
@ -60,7 +60,7 @@ class LetoDMS_Preview_Previewer {
|
|||
$document = $documentcontent->getDocument();
|
||||
$dir = $this->previewDir.'/'.$document->getDir();
|
||||
if(!is_dir($dir)) {
|
||||
if (!LetoDMS_Core_File::makeDir($dir)) {
|
||||
if (!SeedDMS_Core_File::makeDir($dir)) {
|
||||
return false;
|
||||
}
|
||||
}
|
|
@ -1,9 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<package packagerversion="1.8.1" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd">
|
||||
<name>LetoDMS_Preview</name>
|
||||
<name>SeedDMS_Preview</name>
|
||||
<channel>pear.php.net</channel>
|
||||
<summary>Create thumbnails from document content for LetoDMS</summary>
|
||||
<description>LetoDMS is a web based document management system (DMS). These
|
||||
<summary>Create thumbnails from document content for SeedDMS</summary>
|
||||
<description>SeedDMS is a web based document management system (DMS). These
|
||||
are the classes to create preview images from the document content.</description>
|
||||
<lead>
|
||||
<name>Uwe Steinmann</name>
|
||||
|
@ -26,7 +26,7 @@
|
|||
initial version
|
||||
</notes>
|
||||
<contents>
|
||||
<dir baseinstalldir="LetoDMS" name="/">
|
||||
<dir baseinstalldir="SeedDMS" name="/">
|
||||
<dir name="Preview">
|
||||
<file name="Previewer.php" role="php">
|
||||
<tasks:replace from="@package_version@" to="version" type="package-info" />
|
2
TODO
2
TODO
|
@ -37,7 +37,7 @@ Allow to specify fine grained notification (e.g. deleting a document, folder)
|
|||
Have access rights depending on document status. This will allow to
|
||||
restrict access when a document is in a workflow or has been rejected.
|
||||
|
||||
There are still global variable in class LetoDMS_Bootstrap_Style
|
||||
There are still global variable in class SeedetoDMS_Bootstrap_Style
|
||||
|
||||
extend search by expiration date, add utitility to search for expiring documents
|
||||
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
<site>
|
||||
<!-- siteName: Name of site used in the page titles. Default: letoDMS
|
||||
<!-- siteName: Name of site used in the page titles. Default: SeedDMS
|
||||
- footNote: Message to display at the bottom of every page
|
||||
- printDisclaimer: if true the disclaimer message the lang.inc files will be print on the bottom of the page
|
||||
- language: default language (name of a subfolder in folder "languages")
|
||||
- theme: default style (name of a subfolder in folder "styles")
|
||||
-->
|
||||
<display
|
||||
siteName = "letoDMS"
|
||||
footNote = "letoDMS free document management system - www.letodms.org"
|
||||
siteName = "SeedDMS"
|
||||
footNote = "SeedDMS free document management system - www.seeddms.org"
|
||||
printDisclaimer="true"
|
||||
language = "English"
|
||||
theme = "clean"
|
||||
|
@ -56,10 +56,10 @@
|
|||
</site>
|
||||
|
||||
<system>
|
||||
<!-- rootDir: Path to where letoDMS is located
|
||||
<!-- rootDir: Path to where SeedDMS is located
|
||||
- httpRoot: 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/letodms/, set $_httpRoot = "/letodms/".
|
||||
- http://www.example.com/seeddms/, set $_httpRoot = "/seeddms/".
|
||||
- If the URL is http://www.example.com/, set $_httpRoot = "/".
|
||||
- contentDir: Where the uploaded files are stored (best to choose a directory that
|
||||
- is not accessible through your web-server)
|
||||
|
@ -74,7 +74,7 @@
|
|||
-->
|
||||
<server
|
||||
rootDir = ""
|
||||
httpRoot = "/letodms/"
|
||||
httpRoot = "/seeddms/"
|
||||
contentDir = ""
|
||||
stagingDir = ""
|
||||
luceneDir = ""
|
||||
|
@ -140,7 +140,7 @@
|
|||
<!-- ADOdbPath: Path to adodb. This is the directory containing the adodb directory
|
||||
- dbDriver: DB-Driver used by adodb (see adodb-readme)
|
||||
- dbHostname: DB-Server
|
||||
- dbDatabase: database where the tables for letodms are stored (optional - see adodb-readme)
|
||||
- dbDatabase: database where the tables for seeddms are stored (optional - see adodb-readme)
|
||||
- dbUser: username for database-access
|
||||
- dbPass: password for database-access
|
||||
-->
|
||||
|
@ -160,7 +160,7 @@
|
|||
<smtp
|
||||
smtpServer = "localhost"
|
||||
smtpPort = "25"
|
||||
smtpSendFrom = "letodms@localhost"
|
||||
smtpSendFrom = "seeddms@localhost"
|
||||
/>
|
||||
</system>
|
||||
|
||||
|
@ -202,8 +202,8 @@
|
|||
enableDuplicateDocNames = "true"
|
||||
>
|
||||
</edition>
|
||||
<!-- coreDir: Path to LetoDMS_Core (optional)
|
||||
- luceneClassDir: Path to LetoDMS_Lucene (optional)
|
||||
<!-- coreDir: Path to SeedDMS_Core (optional)
|
||||
- luceneClassDir: Path to SeedDMS_Lucene (optional)
|
||||
- contentOffsetDir: 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
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* Do authentication of users and session management
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
@ -27,7 +27,7 @@ require_once("inc.ClassSession.php");
|
|||
|
||||
/* Load session */
|
||||
$dms_session = $_COOKIE["mydms_session"];
|
||||
$session = new LetoDMS_Session($db);
|
||||
$session = new SeedDMS_Session($db);
|
||||
if(!$resArr = $session->load($dms_session)) {
|
||||
setcookie("mydms_session", $dms_session, time()-3600, $settings->_httpRoot); //delete cookie
|
||||
header("Location: " . $settings->_httpRoot . "out/out.Login.php?referuri=".$refer);
|
||||
|
@ -43,7 +43,7 @@ if (!is_object($user)) {
|
|||
}
|
||||
|
||||
$dms->setUser($user);
|
||||
$notifier = new LetoDMS_Email();
|
||||
$notifier = new SeedDMS_Email();
|
||||
$notifier->setSender($user);
|
||||
|
||||
/* Include the language file as specified in the session. If that is not
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* Implementation of access restricitions
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
@ -15,12 +15,12 @@
|
|||
* Class to check certain access restrictions
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS
|
||||
* @package SeedDMS
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_AccessOperation {
|
||||
class SeedDMS_AccessOperation {
|
||||
/**
|
||||
* @var object $obj object being accessed
|
||||
* @access protected
|
||||
|
@ -34,7 +34,7 @@ class LetoDMS_AccessOperation {
|
|||
private $user;
|
||||
|
||||
/**
|
||||
* @var object $settings LetoDMS Settings
|
||||
* @var object $settings SeedDMS Settings
|
||||
* @access protected
|
||||
*/
|
||||
private $settings;
|
||||
|
@ -55,7 +55,7 @@ class LetoDMS_AccessOperation {
|
|||
* even if is disallowed in the settings.
|
||||
*/
|
||||
function mayRemoveVersion() { /* {{{ */
|
||||
if(get_class($this->obj) == 'LetoDMS_Core_Document') {
|
||||
if(get_class($this->obj) == 'SeedDMS_Core_Document') {
|
||||
$versions = $this->obj->getContent();
|
||||
if ((($this->settings->_enableVersionDeletion && ($this->obj->getAccessMode($this->user) == M_ALL)) || $this->user->isAdmin() ) && (count($versions) > 1)) {
|
||||
return true;
|
||||
|
@ -75,7 +75,7 @@ class LetoDMS_AccessOperation {
|
|||
* even if is disallowed in the settings.
|
||||
*/
|
||||
function mayOverwriteStatus() { /* {{{ */
|
||||
if(get_class($this->obj) == 'LetoDMS_Core_Document') {
|
||||
if(get_class($this->obj) == 'SeedDMS_Core_Document') {
|
||||
$latestContent = $this->obj->getLatestContent();
|
||||
$status = $latestContent->getStatus();
|
||||
if ((($this->settings->_enableVersionModification && ($this->obj->getAccessMode($this->user) == M_ALL)) || $this->user->isAdmin()) && ($status["status"]==S_RELEASED || $status["status"]==S_OBSOLETE )) {
|
||||
|
@ -95,7 +95,7 @@ class LetoDMS_AccessOperation {
|
|||
* settings.
|
||||
*/
|
||||
function maySetReviewersApprovers() { /* {{{ */
|
||||
if(get_class($this->obj) == 'LetoDMS_Core_Document') {
|
||||
if(get_class($this->obj) == 'SeedDMS_Core_Document') {
|
||||
$latestContent = $this->obj->getLatestContent();
|
||||
$status = $latestContent->getStatus();
|
||||
if ((($this->settings->_enableVersionModification && ($this->obj->getAccessMode($this->user) == M_ALL)) || $this->user->isAdmin()) && ($status["status"]==S_DRAFT_REV)) {
|
||||
|
@ -115,7 +115,7 @@ class LetoDMS_AccessOperation {
|
|||
* settings.
|
||||
*/
|
||||
function maySetWorkflow() { /* {{{ */
|
||||
if(get_class($this->obj) == 'LetoDMS_Core_Document') {
|
||||
if(get_class($this->obj) == 'SeedDMS_Core_Document') {
|
||||
$latestContent = $this->obj->getLatestContent();
|
||||
$workflow = $latestContent->getWorkflow();
|
||||
if ((($this->settings->_enableVersionModification && ($this->obj->getAccessMode($this->user) == M_ALL)) || $this->user->isAdmin()) && (!$workflow || ($workflow->getInitState()->getID() == $latestContent->getWorkflowState()->getID()))) {
|
||||
|
@ -135,7 +135,7 @@ class LetoDMS_AccessOperation {
|
|||
* disallowed in the settings.
|
||||
*/
|
||||
function maySetExpires() { /* {{{ */
|
||||
if(get_class($this->obj) == 'LetoDMS_Core_Document') {
|
||||
if(get_class($this->obj) == 'SeedDMS_Core_Document') {
|
||||
$latestContent = $this->obj->getLatestContent();
|
||||
$status = $latestContent->getStatus();
|
||||
if ((($this->settings->_enableVersionModification && ($this->obj->getAccessMode($this->user) == M_ALL)) || $this->user->isAdmin()) && ($status["status"]!=S_OBSOLETE)) {
|
||||
|
@ -155,7 +155,7 @@ class LetoDMS_AccessOperation {
|
|||
* disallowed in the settings.
|
||||
*/
|
||||
function mayEditComment() { /* {{{ */
|
||||
if(get_class($this->obj) == 'LetoDMS_Core_Document') {
|
||||
if(get_class($this->obj) == 'SeedDMS_Core_Document') {
|
||||
$latestContent = $this->obj->getLatestContent();
|
||||
$status = $latestContent->getStatus();
|
||||
if ((($this->settings->_enableVersionModification && ($this->obj->getAccessMode($this->user) >= M_READWRITE)) || $this->user->isAdmin()) && ($status["status"]!=S_OBSOLETE)) {
|
||||
|
@ -175,7 +175,7 @@ class LetoDMS_AccessOperation {
|
|||
* disallowed in the settings.
|
||||
*/
|
||||
function mayEditAttributes() { /* {{{ */
|
||||
if(get_class($this->obj) == 'LetoDMS_Core_Document') {
|
||||
if(get_class($this->obj) == 'SeedDMS_Core_Document') {
|
||||
$latestContent = $this->obj->getLatestContent();
|
||||
$status = $latestContent->getStatus();
|
||||
$workflow = $latestContent->getWorkflow();
|
||||
|
@ -194,7 +194,7 @@ class LetoDMS_AccessOperation {
|
|||
* account here.
|
||||
*/
|
||||
function mayReview() { /* {{{ */
|
||||
if(get_class($this->obj) == 'LetoDMS_Core_Document') {
|
||||
if(get_class($this->obj) == 'SeedDMS_Core_Document') {
|
||||
$latestContent = $this->obj->getLatestContent();
|
||||
$status = $latestContent->getStatus();
|
||||
if ($status["status"]!=S_OBSOLETE) {
|
||||
|
@ -212,7 +212,7 @@ class LetoDMS_AccessOperation {
|
|||
* account here.
|
||||
*/
|
||||
function mayApprove() { /* {{{ */
|
||||
if(get_class($this->obj) == 'LetoDMS_Core_Document') {
|
||||
if(get_class($this->obj) == 'SeedDMS_Core_Document') {
|
||||
$latestContent = $this->obj->getLatestContent();
|
||||
$status = $latestContent->getStatus();
|
||||
if ($status["status"]!=S_OBSOLETE) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* Implementation of notifation system using email
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
@ -22,14 +22,14 @@ require_once("inc.ClassNotify.php");
|
|||
* Class to send email notifications to individuals or groups
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS
|
||||
* @package SeedDMS
|
||||
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2002-2005 Markus Westphal,
|
||||
* 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli,
|
||||
* 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Email extends LetoDMS_Notify {
|
||||
class SeedDMS_Email extends SeedDMS_Notify {
|
||||
|
||||
function toIndividual($sender, $recipient, $subject, $message) { /* {{{ */
|
||||
|
||||
|
@ -38,8 +38,8 @@ class LetoDMS_Email extends LetoDMS_Notify {
|
|||
|
||||
if ($recipient->getEmail()=="") return 0;
|
||||
|
||||
if ((!is_object($sender) && strcasecmp(get_class($sender), "LetoDMS_Core_User")) ||
|
||||
(!is_object($recipient) && strcasecmp(get_class($recipient), "LetoDMS_Core_User"))) {
|
||||
if ((!is_object($sender) && strcasecmp(get_class($sender), "SeedDMS_Core_User")) ||
|
||||
(!is_object($recipient) && strcasecmp(get_class($recipient), "SeedDMS_Core_User"))) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -57,8 +57,8 @@ class LetoDMS_Email extends LetoDMS_Notify {
|
|||
global $settings;
|
||||
if (!$settings->_enableEmail) return 0;
|
||||
|
||||
if ((!is_object($sender) && strcasecmp(get_class($sender), "LetoDMS_Core_User")) ||
|
||||
(!is_object($groupRecipient) && strcasecmp(get_class($groupRecipient), "LetoDMS_Core_Group"))) {
|
||||
if ((!is_object($sender) && strcasecmp(get_class($sender), "SeedDMS_Core_User")) ||
|
||||
(!is_object($groupRecipient) && strcasecmp(get_class($groupRecipient), "SeedDMS_Core_Group"))) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -87,7 +87,7 @@ class LetoDMS_Email extends LetoDMS_Notify {
|
|||
global $settings;
|
||||
if (!$settings->_enableEmail) return 0;
|
||||
|
||||
if ((!is_object($sender) && strcasecmp(get_class($sender), "LetoDMS_Core_User")) ||
|
||||
if ((!is_object($sender) && strcasecmp(get_class($sender), "SeedDMS_Core_User")) ||
|
||||
(!is_array($recipients) && count($recipients)==0)) {
|
||||
return -1;
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ class LetoDMS_Email extends LetoDMS_Notify {
|
|||
|
||||
$toList = "";
|
||||
foreach ($recipients as $recipient) {
|
||||
if (is_object($recipient) && !strcasecmp(get_class($recipient), "LetoDMS_Core_User")) {
|
||||
if (is_object($recipient) && !strcasecmp(get_class($recipient), "SeedDMS_Core_User")) {
|
||||
|
||||
if ($recipient->getEmail()!="")
|
||||
$toList .= (strlen($toList)==0 ? "" : ", ") . $recipient->getEmail();
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* Abstract class of notifation system
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
@ -17,14 +17,14 @@
|
|||
* Abstract class of notification systems
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS
|
||||
* @package SeedDMS
|
||||
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2002-2005 Markus Westphal,
|
||||
* 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli,
|
||||
* 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
abstract class LetoDMS_Notify {
|
||||
abstract class SeedDMS_Notify {
|
||||
/* User sending the notification
|
||||
* Will only be used if the sender of one of the notify methods
|
||||
* is not set
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* new passwords and not reusing old ones.
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
@ -23,15 +23,15 @@
|
|||
* once used by users.
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS
|
||||
* @package SeedDMS
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright 2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_PasswordHistoryManager {
|
||||
class SeedDMS_PasswordHistoryManager {
|
||||
/**
|
||||
* @var object $db reference to database object. This must be an instance
|
||||
* of {@link LetoDMS_Core_DatabaseAccess}.
|
||||
* of {@link SeedDMS_Core_DatabaseAccess}.
|
||||
* @access protected
|
||||
*/
|
||||
protected $db;
|
||||
|
@ -40,7 +40,7 @@ class LetoDMS_PasswordHistoryManager {
|
|||
* Create a new instance of the password history manager
|
||||
*
|
||||
* @param object $db object to access the underlying database
|
||||
* @return object instance of LetoDMS_PasswordHistory
|
||||
* @return object instance of SeedDMS_PasswordHistory
|
||||
*/
|
||||
function __construct($db) { /* {{{ */
|
||||
$this->db = $db;
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
/**
|
||||
* Implementation of a simple session management.
|
||||
*
|
||||
* LetoDMS uses its own simple session management, storing sessions
|
||||
* SeedDMS uses its own simple session management, storing sessions
|
||||
* into the database. A session holds the currently logged in user,
|
||||
* the theme and the language.
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
@ -24,15 +24,15 @@
|
|||
* table.
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS
|
||||
* @package SeedDMS
|
||||
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright 2011 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Session {
|
||||
class SeedDMS_Session {
|
||||
/**
|
||||
* @var object $db reference to database object. This must be an instance
|
||||
* of {@link LetoDMS_Core_DatabaseAccess}.
|
||||
* of {@link SeedDMS_Core_DatabaseAccess}.
|
||||
* @access protected
|
||||
*/
|
||||
protected $db;
|
||||
|
@ -53,7 +53,7 @@ class LetoDMS_Session {
|
|||
* Create a new instance of the session handler
|
||||
*
|
||||
* @param object $db object to access the underlying database
|
||||
* @return object instance of LetoDMS_Session
|
||||
* @return object instance of SeedDMS_Session
|
||||
*/
|
||||
function __construct($db) { /* {{{ */
|
||||
$this->db = $db;
|
||||
|
@ -221,10 +221,10 @@ class LetoDMS_Session {
|
|||
function addToClipboard($object) { /* {{{ */
|
||||
/* id is only set if load() was called before */
|
||||
if($this->id) {
|
||||
if(get_class($object) == 'LetoDMS_Core_Document') {
|
||||
if(get_class($object) == 'SeedDMS_Core_Document') {
|
||||
if(!in_array($object->getID(), $this->data['clipboard']['docs']))
|
||||
array_push($this->data['clipboard']['docs'], $object->getID());
|
||||
} elseif(get_class($object) == 'LetoDMS_Core_Folder') {
|
||||
} elseif(get_class($object) == 'SeedDMS_Core_Folder') {
|
||||
if(!in_array($object->getID(), $this->data['clipboard']['folders']))
|
||||
array_push($this->data['clipboard']['folders'], $object->getID());
|
||||
}
|
||||
|
@ -243,11 +243,11 @@ class LetoDMS_Session {
|
|||
function removeFromClipboard($object) { /* {{{ */
|
||||
/* id is only set if load() was called before */
|
||||
if($this->id) {
|
||||
if(get_class($object) == 'LetoDMS_Core_Document') {
|
||||
if(get_class($object) == 'SeedDMS_Core_Document') {
|
||||
$key = array_search($object->getID(), $this->data['clipboard']['docs']);
|
||||
if($key !== false)
|
||||
unset($this->data['clipboard']['docs'][$key]);
|
||||
} elseif(get_class($object) == 'LetoDMS_Core_Folder') {
|
||||
} elseif(get_class($object) == 'SeedDMS_Core_Folder') {
|
||||
$key = array_search($object->getID(), $this->data['clipboard']['folders']);
|
||||
if($key !== false)
|
||||
unset($this->data['clipboard']['folders'][$key]);
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* Reading and writing the configuration from and to an xml file
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
@ -15,7 +15,7 @@
|
|||
* Class for reading and writing the configuration file
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS
|
||||
* @package SeedDMS
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2011 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
|
@ -25,9 +25,9 @@ class Settings { /* {{{ */
|
|||
var $_configFilePath = null;
|
||||
|
||||
// Name of site
|
||||
var $_siteName = "letoDMS";
|
||||
var $_siteName = "SeedDMS";
|
||||
// Message to display at the bottom of every page.
|
||||
var $_footNote = "letoDMS free document management \"system - www.letodms.com";
|
||||
var $_footNote = "SeedDMS free document management \"system - www.seeddms.org";
|
||||
// if true the disclaimer message the lang.inc files will be print on the bottom of the page
|
||||
var $_printDisclaimer = true;
|
||||
// Default page on login
|
||||
|
@ -62,14 +62,14 @@ class Settings { /* {{{ */
|
|||
var $_cookieLifetime = '';
|
||||
// Strict form checking
|
||||
var $_strictFormCheck = false;
|
||||
// Path to where letoDMS is located
|
||||
// Path to where SeedDMS is located
|
||||
var $_rootDir = null;
|
||||
// Path to LetoDMS_Core
|
||||
// Path to SeedDMS_Core
|
||||
var $_coreDir = null;
|
||||
// Path to LetoDMS_Lucene
|
||||
// Path to SeedDMS_Lucene
|
||||
var $_luceneClassDir = null;
|
||||
// The relative path in the URL, after the domain part.
|
||||
var $_httpRoot = "/letodms/";
|
||||
var $_httpRoot = "/seeddms/";
|
||||
// Where the uploaded files are stored (best to choose a directory that
|
||||
// is not accessible through your web-server)
|
||||
var $_contentDir = null;
|
||||
|
@ -194,7 +194,7 @@ class Settings { /* {{{ */
|
|||
}
|
||||
|
||||
// Load config file
|
||||
if (!defined("LETODMS_INSTALL")) {
|
||||
if (!defined("SEEDDMS_INSTALL")) {
|
||||
if(!file_exists($configFilePath)) {
|
||||
echo "You does not seem to have a valid configuration. Run the <a href=\"install/install.php\">install tool</a> first.";
|
||||
exit;
|
||||
|
@ -735,7 +735,7 @@ class Settings { /* {{{ */
|
|||
* This function checks three directories for a configuration directory
|
||||
* 1. The directory where the current script is located adding '/conf'
|
||||
* 2. The parent directory of the current script adding '/conf'
|
||||
* 3. The directory /etc/letodms
|
||||
* 3. The directory /etc/seeddms
|
||||
* @return NULL|string config directory
|
||||
*/
|
||||
function getConfigDir() { /* {{{ */
|
||||
|
@ -749,8 +749,8 @@ class Settings { /* {{{ */
|
|||
if(file_exists(implode('/', $_arr)."/conf/")) {
|
||||
$configDir = implode('/', $_arr)."/conf/";
|
||||
} else {
|
||||
if(file_exists('/etc/letodms'))
|
||||
$configDir = '/etc/letodms';
|
||||
if(file_exists('/etc/seeddms'))
|
||||
$configDir = '/etc/seeddms';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -841,7 +841,7 @@ class Settings { /* {{{ */
|
|||
);
|
||||
}
|
||||
} else {
|
||||
$found = Settings::findInIncPath('LetoDMS/Core.php');
|
||||
$found = Settings::findInIncPath('SeedDMS/Core.php');
|
||||
if(!$found) {
|
||||
$result["coreDir"] = array(
|
||||
"status" => "notfound",
|
||||
|
@ -991,16 +991,16 @@ class Settings { /* {{{ */
|
|||
if($dsn) {
|
||||
$connTmp = new PDO($dsn, $this->_dbUser, $this->_dbPass);
|
||||
/* Check if there wasn't a previous error while searching for
|
||||
* LetoDMS_Core.
|
||||
* SeedDMS_Core.
|
||||
*/
|
||||
if(!isset($result["coreDir"])) {
|
||||
/* Instanciate LetoDMS_Core to check version */
|
||||
/* Instanciate SeedDMS_Core to check version */
|
||||
if(!empty($this->_coreDir))
|
||||
require_once($this->_coreDir.'/Core.php');
|
||||
else
|
||||
require_once('LetoDMS/Core.php');
|
||||
$tmpcore = new LetoDMS_Core_DMS(null, $this->_contentDir);
|
||||
$db = new LetoDMS_Core_DatabaseAccess($this->_dbDriver, $this->_dbHostname, $this->_dbUser, $this->_dbPass, $this->_dbDatabase);
|
||||
require_once('SeedDMS/Core.php');
|
||||
$tmpcore = new SeedDMS_Core_DMS(null, $this->_contentDir);
|
||||
$db = new SeedDMS_Core_DatabaseAccess($this->_dbDriver, $this->_dbHostname, $this->_dbUser, $this->_dbPass, $this->_dbDatabase);
|
||||
if(!$db->connect()) {
|
||||
$result["dbDatabase"] = array(
|
||||
"status" => "error",
|
||||
|
@ -1010,7 +1010,7 @@ class Settings { /* {{{ */
|
|||
);
|
||||
} else {
|
||||
/*
|
||||
$dms = new LetoDMS_Core_DMS($db, $this->_contentDir.$this->_contentOffsetDir);
|
||||
$dms = new SeedDMS_Core_DMS($db, $this->_contentDir.$this->_contentOffsetDir);
|
||||
|
||||
if(!$dms->checkVersion()) {
|
||||
$result["dbVersion"] = array(
|
||||
|
|
|
@ -48,7 +48,7 @@ class UI extends UI_Default {
|
|||
global $settings, $session;
|
||||
if(file_exists("../views/".$theme."/class.".$class.".php")) {
|
||||
require("../views/".$theme."/class.".$class.".php");
|
||||
$classname = "LetoDMS_View_".$class;
|
||||
$classname = "SeedDMS_View_".$class;
|
||||
$view = new $classname($params, $theme);
|
||||
/* Set some configuration parameters */
|
||||
$view->setParam('session', $session);
|
||||
|
|
|
@ -58,7 +58,7 @@ class UI_Default {
|
|||
echo "<link rel=\"STYLESHEET\" type=\"text/css\" href=\"../styles/print.css\" media=\"print\"/>\n";
|
||||
echo "<link rel='shortcut icon' href='../styles/".$theme."/favicon.ico' type='image/x-icon'/>\n";
|
||||
echo "<script type='text/javascript' src='../js/jquery.min.js'></script>\n";
|
||||
echo "<title>".(strlen($settings->_siteName)>0 ? $settings->_siteName : "LetoDMS").(strlen($title)>0 ? ": " : "").htmlspecialchars($title)."</title>\n";
|
||||
echo "<title>".(strlen($settings->_siteName)>0 ? $settings->_siteName : "SeedDMS").(strlen($title)>0 ? ": " : "").htmlspecialchars($title)."</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<body".(strlen($bodyClass)>0 ? " class=\"".$bodyClass."\"" : "").">\n";
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ class UI_Default {
|
|||
echo "<div class=\"globalTR\"></div>\n";
|
||||
echo "<div id=\"logo\"><img src='../styles/logo.png'></div>\n";
|
||||
echo "<div class=\"siteNameLogin\">".
|
||||
(strlen($settings->_siteName)>0 ? $settings->_siteName : "LetoDMS").
|
||||
(strlen($settings->_siteName)>0 ? $settings->_siteName : "SeedDMS").
|
||||
"</div>\n";
|
||||
echo "<div style=\"clear: both; height: 0px; font-size:0;\"> </div>\n".
|
||||
"</div>\n";
|
||||
|
@ -125,7 +125,7 @@ class UI_Default {
|
|||
echo "<li><a href=\"../out/out.Help.php\">".getMLText("help")."</a></li>\n";
|
||||
echo "<li id=\"search\">\n";
|
||||
echo "<form action=\"../op/op.Search.php\">";
|
||||
if ($folder!=null && is_object($folder) && !strcasecmp(get_class($folder), "LetoDMS_Core_Folder")) {
|
||||
if ($folder!=null && is_object($folder) && !strcasecmp(get_class($folder), "SeedDMS_Core_Folder")) {
|
||||
echo "<input type=\"hidden\" name=\"folderid\" value=\"".$folder->getID()."\" />";
|
||||
}
|
||||
echo "<input type=\"hidden\" name=\"navBar\" value=\"1\" />";
|
||||
|
@ -140,7 +140,7 @@ class UI_Default {
|
|||
echo "</li>\n</ul>\n";
|
||||
echo "<div id=\"logo\"><img src='../styles/logo.png'></div>\n";
|
||||
echo "<div class=\"siteName\">".
|
||||
(strlen($settings->_siteName)>0 ? $settings->_siteName : "LetoDMS").
|
||||
(strlen($settings->_siteName)>0 ? $settings->_siteName : "SeedDMS").
|
||||
"</div>\n";
|
||||
echo "<span class=\"absSpacerNorm\"></span>\n";
|
||||
echo "<div id=\"signatory\">".getMLText("signed_in_as")." ".htmlspecialchars($user->getFullName()).
|
||||
|
@ -192,7 +192,7 @@ class UI_Default {
|
|||
|
||||
global $user, $settings, $theme;
|
||||
|
||||
if (!is_object($folder) || strcasecmp(get_class($folder), "LetoDMS_Core_Folder")) {
|
||||
if (!is_object($folder) || strcasecmp(get_class($folder), "SeedDMS_Core_Folder")) {
|
||||
echo "<ul class=\"localNav\">\n";
|
||||
echo "</ul>\n";
|
||||
return;
|
||||
|
@ -693,7 +693,7 @@ class UI_Default {
|
|||
if (!is_object($folder)) return;
|
||||
|
||||
$subFolders = $folder->getSubFolders();
|
||||
$subFolders = LetoDMS_Core_DMS::filterAccess($subFolders, $user, M_READ);
|
||||
$subFolders = SeedDMS_Core_DMS::filterAccess($subFolders, $user, M_READ);
|
||||
|
||||
if ($folderID == $settings->_rootFolderID) print "<ul style='list-style-type: none;' class='tree'>\n";
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* Implementation of view class
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
@ -17,14 +17,14 @@
|
|||
* Parent class for all view classes
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS
|
||||
* @package SeedDMS
|
||||
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2002-2005 Markus Westphal,
|
||||
* 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli,
|
||||
* 2010-2012 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_View_Common {
|
||||
class SeedDMS_View_Common {
|
||||
var $theme;
|
||||
|
||||
var $params;
|
||||
|
|
|
@ -21,12 +21,12 @@
|
|||
if(!empty($settings->_coreDir))
|
||||
require_once($settings->_coreDir.'/Core.php');
|
||||
else
|
||||
require_once('LetoDMS/Core.php');
|
||||
require_once('SeedDMS/Core.php');
|
||||
|
||||
$db = new LetoDMS_Core_DatabaseAccess($settings->_dbDriver, $settings->_dbHostname, $settings->_dbUser, $settings->_dbPass, $settings->_dbDatabase);
|
||||
$db = new SeedDMS_Core_DatabaseAccess($settings->_dbDriver, $settings->_dbHostname, $settings->_dbUser, $settings->_dbPass, $settings->_dbDatabase);
|
||||
$db->connect() or die ("Could not connect to db-server \"" . $settings->_dbHostname . "\"");
|
||||
|
||||
$dms = new LetoDMS_Core_DMS($db, $settings->_contentDir.$settings->_contentOffsetDir);
|
||||
$dms = new SeedDMS_Core_DMS($db, $settings->_contentDir.$settings->_contentOffsetDir);
|
||||
|
||||
if(!$dms->checkVersion()) {
|
||||
echo "Database update needed.";
|
||||
|
|
|
@ -48,8 +48,8 @@ if (file_exists("../inc/inc.Settings.old.php")) {
|
|||
|
||||
require_once('inc.ClassSettings.php');
|
||||
$settings = new Settings();
|
||||
if(!defined("LETODMS_INSTALL") && file_exists(dirname($settings->_configFilePath)."/ENABLE_INSTALL_TOOL")) {
|
||||
die("LetoDMS won't run unless your remove the file ENABLE_INSTALL_TOOL from your configuration directory.");
|
||||
if(!defined("SEEDDMS_INSTALL") && file_exists(dirname($settings->_configFilePath)."/ENABLE_INSTALL_TOOL")) {
|
||||
die("SeedDMS won't run unless your remove the file ENABLE_INSTALL_TOOL from your configuration directory.");
|
||||
}
|
||||
|
||||
// ----------------------------
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
/* deprecated! use LetoDMS_Core_File::format_filesize() instead */
|
||||
/* deprecated! use SeedDMS_Core_File::format_filesize() instead */
|
||||
function formatted_size($size_bytes) { /* {{{ */
|
||||
if ($size_bytes>1000000000) return number_format($size_bytes/1000000000,1,".","")." GBytes";
|
||||
else if ($size_bytes>1000000) return number_format($size_bytes/1000000,1,".","")." MBytes";
|
||||
|
@ -134,7 +134,7 @@ function createVersionigFile($document) { /* {{{ */
|
|||
|
||||
// if directory has been removed recreate it
|
||||
if (!file_exists($dms->contentDir . $document->getDir()))
|
||||
if (!LetoDMS_Core_File::makeDir($dms->contentDir . $document->getDir())) return false;
|
||||
if (!SeedDMS_Core_File::makeDir($dms->contentDir . $document->getDir())) return false;
|
||||
|
||||
$handle = fopen($dms->contentDir . $document->getDir() .$settings-> _versioningFileName , "wb");
|
||||
|
||||
|
|
|
@ -18,12 +18,12 @@
|
|||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
class LetoDMS_Version {
|
||||
class SeedDMS_Version {
|
||||
|
||||
var $_number = "4.0.0";
|
||||
var $_string = "LetoDMS";
|
||||
var $_string = "SeedDMS";
|
||||
|
||||
function LetoDMS_Version() {
|
||||
function SeedDMS_Version() {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
// LetoDMS (Formerly MyDMS) Document Management System
|
||||
// SeedDMS (Formerly MyDMS) Document Management System
|
||||
// Copyright (C) 2002-2005 Markus Westphal
|
||||
// Copyright (C) 2006-2008 Malcolm Cowe
|
||||
//
|
||||
|
@ -23,7 +23,7 @@ header("Location: ". (isset($settings->_siteDefaultPage) && strlen($settings->_s
|
|||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title>LetoDMS</title>
|
||||
<title>SeedDMS</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
define("LETODMS_INSTALL", "on");
|
||||
define("SEEDDMS_INSTALL", "on");
|
||||
include("../inc/inc.Settings.php");
|
||||
$settings = new Settings();
|
||||
$rootDir = realpath ("..");
|
||||
|
@ -10,7 +10,7 @@ include "../languages/English/lang.inc";
|
|||
include("../inc/inc.ClassUI.php");
|
||||
|
||||
UI::htmlStartPage("INSTALL");
|
||||
UI::contentHeading("letoDMS Installation...");
|
||||
UI::contentHeading("SeedDMS Installation...");
|
||||
UI::contentContainerStart();
|
||||
echo "<h2>".getMLText('settings_install_welcome_title')."</h2>";
|
||||
echo "<div style=\"width: 600px;\">".getMLText('settings_install_welcome_text')."</div>";
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
* Check Update file
|
||||
*/
|
||||
if (file_exists("../inc/inc.Settings.old.php")) {
|
||||
echo "You can't install letoDMS, unless you delete " . realpath("../inc/inc.Settings.old.php") . ".";
|
||||
echo "You can't install SeedDMS, unless you delete " . realpath("../inc/inc.Settings.old.php") . ".";
|
||||
exit;
|
||||
}
|
||||
|
||||
|
@ -30,15 +30,15 @@ if (file_exists("../inc/inc.Settings.old.php")) {
|
|||
* Check file for installation
|
||||
*/
|
||||
if (!file_exists("create_tables-innodb.sql")) {
|
||||
echo "Can't install letoDMS, 'create_tables-innodb.sql' missing";
|
||||
echo "Can't install SeedDMS, 'create_tables-innodb.sql' missing";
|
||||
exit;
|
||||
}
|
||||
if (!file_exists("create_tables.sql")) {
|
||||
echo "Can't install letoDMS, 'create_tables.sql' missing";
|
||||
echo "Can't install SeedDMS, 'create_tables.sql' missing";
|
||||
exit;
|
||||
}
|
||||
if (!file_exists("settings.xml.template_install")) {
|
||||
echo "Can't install letoDMS, 'settings.xml.template_install' missing";
|
||||
echo "Can't install SeedDMS, 'settings.xml.template_install' missing";
|
||||
exit;
|
||||
}
|
||||
|
||||
|
@ -115,8 +115,8 @@ function fileExistsInIncludePath($file) { /* {{{ */
|
|||
/**
|
||||
* Load default settings + set
|
||||
*/
|
||||
define("LETODMS_INSTALL", "on");
|
||||
define("LETODMS_VERSION", "4.0.0");
|
||||
define("SEEDDMS_INSTALL", "on");
|
||||
define("SEEDDMS_VERSION", "4.0.0");
|
||||
|
||||
require_once('../inc/inc.ClassSettings.php');
|
||||
|
||||
|
@ -131,7 +131,7 @@ if (!$configDir) {
|
|||
}
|
||||
|
||||
if (!file_exists($configDir."/ENABLE_INSTALL_TOOL")) {
|
||||
echo "For installation of LetoDMS, you must create the file conf/ENABLE_INSTALL_TOOL";
|
||||
echo "For installation of SeedDMS, you must create the file conf/ENABLE_INSTALL_TOOL";
|
||||
exit;
|
||||
}
|
||||
|
||||
|
@ -179,7 +179,7 @@ include("../inc/inc.ClassUI.php");
|
|||
|
||||
|
||||
UI::htmlStartPage("INSTALL");
|
||||
UI::contentHeading("letoDMS Installation for version ".LETODMS_VERSION);
|
||||
UI::contentHeading("SeedDMS Installation for version ".SEEDDMS_VERSION);
|
||||
UI::contentContainerStart();
|
||||
|
||||
|
||||
|
@ -265,7 +265,7 @@ if ($action=="setSettings") {
|
|||
/**
|
||||
* Check Parameters, require version 3.3.x
|
||||
*/
|
||||
$hasError = printCheckError( $settings->check(substr(str_replace('.', '', LETODMS_VERSION), 0,2)));
|
||||
$hasError = printCheckError( $settings->check(substr(str_replace('.', '', SEEDDMS_VERSION), 0,2)));
|
||||
|
||||
if (!$hasError) {
|
||||
if(isset($settings->_extraPath))
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
<site>
|
||||
<!-- siteName: Name of site used in the page titles. Default: letoDMS
|
||||
<!-- siteName: Name of site used in the page titles. Default: SeedDMS
|
||||
- footNote: Message to display at the bottom of every page
|
||||
- printDisclaimer: if true the disclaimer message the lang.inc files will be print on the bottom of the page
|
||||
- language: default language (name of a subfolder in folder "languages")
|
||||
- theme: default style (name of a subfolder in folder "styles")
|
||||
-->
|
||||
<display
|
||||
siteName = "letoDMS"
|
||||
footNote = "letoDMS free document management system - www.letodms.org"
|
||||
siteName = "SeedDMS"
|
||||
footNote = "SeedDMS free document management system - www.seeddms.org"
|
||||
printDisclaimer="true"
|
||||
language = "English"
|
||||
theme = "clean"
|
||||
|
@ -56,10 +56,10 @@
|
|||
</site>
|
||||
|
||||
<system>
|
||||
<!-- rootDir: Path to where letoDMS is located
|
||||
<!-- rootDir: Path to where SeedDMS is located
|
||||
- httpRoot: 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/letodms/, set $_httpRoot = "/letodms/".
|
||||
- http://www.example.com/seeddms/, set $_httpRoot = "/seeddms/".
|
||||
- If the URL is http://www.example.com/, set $_httpRoot = "/".
|
||||
- contentDir: Where the uploaded files are stored (best to choose a directory that
|
||||
- is not accessible through your web-server)
|
||||
|
@ -70,7 +70,7 @@
|
|||
-->
|
||||
<server
|
||||
rootDir = ""
|
||||
httpRoot = "/letodms/"
|
||||
httpRoot = "/seeddms/"
|
||||
contentDir = ""
|
||||
stagingDir = ""
|
||||
luceneDir = ""
|
||||
|
@ -145,16 +145,16 @@
|
|||
<!--
|
||||
- dbDriver: DB-Driver used by adodb (see adodb-readme)
|
||||
- dbHostname: DB-Server
|
||||
- dbDatabase: database where the tables for letodms are stored (optional - see adodb-readme)
|
||||
- dbDatabase: database where the tables for seeddms are stored (optional - see adodb-readme)
|
||||
- dbUser: username for database-access
|
||||
- dbPass: password for database-access
|
||||
-->
|
||||
<database
|
||||
dbDriver = "mysql"
|
||||
dbHostname = "localhost"
|
||||
dbDatabase = "letodms"
|
||||
dbUser = "letodms"
|
||||
dbPass = "letodms"
|
||||
dbDatabase = "seeddms"
|
||||
dbUser = "seeddms"
|
||||
dbPass = "seeddms"
|
||||
>
|
||||
</database>
|
||||
<!-- smtpServer: SMTP Server hostname
|
||||
|
@ -164,7 +164,7 @@
|
|||
<smtp
|
||||
smtpServer = "localhost"
|
||||
smtpPort = "25"
|
||||
smtpSendFrom = "letodms@localhost"
|
||||
smtpSendFrom = "seeddms@localhost"
|
||||
/>
|
||||
</system>
|
||||
|
||||
|
@ -212,8 +212,8 @@
|
|||
enableNotificationAppRev = "true"
|
||||
>
|
||||
</notification>
|
||||
<!-- coreDir: Path to LetoDMS_Core (optional)
|
||||
- luceneClassDir: Path to LetoDMS_Lucene (optional)
|
||||
<!-- coreDir: Path to SeedDMS_Core (optional)
|
||||
- luceneClassDir: Path to SeedDMS_Lucene (optional)
|
||||
- contentOffsetDir: 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
|
||||
|
|
|
@ -29,7 +29,7 @@ $settings->load($configDir."/settings.xml");
|
|||
* Check if ENABLE_INSTALL_TOOL exists in config dir
|
||||
*/
|
||||
if (!file_exists($configDir."/ENABLE_INSTALL_TOOL")) {
|
||||
echo "For installation of LetoDMS, you must create the file conf/ENABLE_INSTALL_TOOL";
|
||||
echo "For installation of SeedDMS, you must create the file conf/ENABLE_INSTALL_TOOL";
|
||||
exit;
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ require_once("../inc/inc.Language.php");
|
|||
require_once("../inc/inc.ClassUI.php");
|
||||
|
||||
UI::htmlStartPage('Database update');
|
||||
UI::contentHeading("letoDMS Installation for version ".$_GET['version']);
|
||||
UI::contentHeading("SeedDMS Installation for version ".$_GET['version']);
|
||||
UI::contentContainerStart();
|
||||
|
||||
switch($settings->_dbDriver) {
|
||||
|
|
|
@ -423,13 +423,13 @@ $text["settings_contentDir_desc"] = "Where the uploaded files are stored (best t
|
|||
$text["settings_contentOffsetDir"] = "Content Offset Directory";
|
||||
$text["settings_contentOffsetDir_desc"] = "To work around limitations in the underlying file system, a new directory structure has been devised that exists within the content directory (Content Directory). 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 (Content Directory)";
|
||||
$text["settings_coreDir"] = "Core letoDMS directory";
|
||||
$text["settings_coreDir_desc"] = "Path to LetoDMS_Core (optional)";
|
||||
$text["settings_luceneClassDir"] = "Lucene LetoDMS directory";
|
||||
$text["settings_luceneClassDir_desc"] = "Path to LetoDMS_Lucene (optional)";
|
||||
$text["settings_coreDir_desc"] = "Path to SeedDMS_Core (optional)";
|
||||
$text["settings_luceneClassDir"] = "Lucene SeedDMS directory";
|
||||
$text["settings_luceneClassDir_desc"] = "Path to SeedDMS_Lucene (optional)";
|
||||
$text["settings_luceneDir"] = "Lucene index directory";
|
||||
$text["settings_luceneDir_desc"] = "Path to Lucene index";
|
||||
$text["settings_cannot_disable"] = "File ENABLE_INSTALL_TOOL could not deleted";
|
||||
$text["settings_install_disabled"] = "File ENABLE_INSTALL_TOOL was deleted. You can now log into LetoDMS and do further configuration.";
|
||||
$text["settings_install_disabled"] = "File ENABLE_INSTALL_TOOL was deleted. You can now log into SeedDMS and do further configuration.";
|
||||
$text["settings_createdatabase"] = "Create database tables";
|
||||
$text["settings_createdirectory"] = "Create directory";
|
||||
$text["settings_currentvalue"] = "Current value";
|
||||
|
@ -445,7 +445,7 @@ $text["settings_dbPass"] = "Password";
|
|||
$text["settings_dbUser_desc"] = "The username for access to your database entered during the installation process. Do not edit field unless absolutely necessary, for example transfer of the database to a new Host.";
|
||||
$text["settings_dbUser"] = "Username";
|
||||
$text["settings_dbVersion"] = "Database schema too old";
|
||||
$text["settings_delete_install_folder"] = "In order to use LetoDMS, you must delete the file ENABLE_INSTALL_TOOL in the configuration directory";
|
||||
$text["settings_delete_install_folder"] = "In order to use SeedDMS, you must delete the file ENABLE_INSTALL_TOOL in the configuration directory";
|
||||
$text["settings_disable_install"] = "Delete file ENABLE_INSTALL_TOOL if possible";
|
||||
$text["settings_disableSelfEdit_desc"] = "If checked user cannot edit his own profile";
|
||||
$text["settings_disableSelfEdit"] = "Disable Self Edit";
|
||||
|
|
|
@ -410,10 +410,10 @@ $text["password"] = "Password";
|
|||
$text["password_already_used"] = "Password already used";
|
||||
$text["password_repeat"] = "Repeat password";
|
||||
$text["password_expiration"] = "Password expiration";
|
||||
$text["password_expiration_text"] = "Your password has expired. Please choose a new one before you can proceed using LetoDMS.";
|
||||
$text["password_expiration_text"] = "Your password has expired. Please choose a new one before you can proceed using SeedDMS.";
|
||||
$text["password_forgotten"] = "Password forgotten";
|
||||
$text["password_forgotten_email_subject"] = "Password forgotten";
|
||||
$text["password_forgotten_email_body"] = "Dear user of LetoDMS,\n\nwe have received a request to change your password.\n\nThis can be done by clicking on the following link:\n\n###URL_PREFIX###out/out.ChangePassword.php?hash=###HASH###\n\nIf you have still problems to login, then please contact your administrator.";
|
||||
$text["password_forgotten_email_body"] = "Dear user of SeedDMS,\n\nwe have received a request to change your password.\n\nThis can be done by clicking on the following link:\n\n###URL_PREFIX###out/out.ChangePassword.php?hash=###HASH###\n\nIf you have still problems to login, then please contact your administrator.";
|
||||
$text["password_forgotten_send_hash"] = "Instructions on how to proceed has been send to the user's email address";
|
||||
$text["password_forgotten_text"] = "Fill out the form below and follow the instructions in the email, which will be send to you.";
|
||||
$text["password_forgotten_title"] = "Password send";
|
||||
|
@ -501,8 +501,8 @@ $text["set_owner_error"] = "Error setting owner";
|
|||
$text["set_owner"] = "Set Owner";
|
||||
$text["set_password"] = "Set Password";
|
||||
$text["set_workflow"] = "Set Workflow";
|
||||
$text["settings_install_welcome_title"] = "Welcome to the installation of letoDMS";
|
||||
$text["settings_install_welcome_text"] = "<p>Before you start to install letoDMS make sure you have created a file 'ENABLE_INSTALL_TOOL' in your configuration directory, otherwise the installation will not work. On Unix-System this can easily be done with 'touch conf/ENABLE_INSTALL_TOOL'. After you have finished the installation delete the file.</p><p>letoDMS has very minimal requirements. You will need a mysql database and a php enabled web server. For the lucene full text search, you will also need the Zend framework installed on disk where it can be found by php. Starting with version 3.2.0 of letoDMS ADOdb will not be part of the distribution anymore. Get a copy of it from <a href=\"http://adodb.sourceforge.net/\">http://adodb.sourceforge.net</a> and install it. The path to it can later be set during installation.</p><p>If you like to create the database before you start installation, then just create it manually with your favorite tool, optionally create a database user with access on the database and import one of the database dumps in the configuration directory. The installation script can do that for you as well, but it will need database access with sufficient rights to create databases.</p>";
|
||||
$text["settings_install_welcome_title"] = "Welcome to the installation of SeedDMS";
|
||||
$text["settings_install_welcome_text"] = "<p>Before you start to install SeedDMS make sure you have created a file 'ENABLE_INSTALL_TOOL' in your configuration directory, otherwise the installation will not work. On Unix-System this can easily be done with 'touch conf/ENABLE_INSTALL_TOOL'. After you have finished the installation delete the file.</p><p>SeedDMS has very minimal requirements. You will need a mysql database and a php enabled web server. For the lucene full text search, you will also need the Zend framework installed on disk where it can be found by php. Starting with version 3.2.0 of SeedDMS ADOdb will not be part of the distribution anymore. Get a copy of it from <a href=\"http://adodb.sourceforge.net/\">http://adodb.sourceforge.net</a> and install it. The path to it can later be set during installation.</p><p>If you like to create the database before you start installation, then just create it manually with your favorite tool, optionally create a database user with access on the database and import one of the database dumps in the configuration directory. The installation script can do that for you as well, but it will need database access with sufficient rights to create databases.</p>";
|
||||
$text["settings_start_install"] = "Start installation";
|
||||
$text["settings_sortUsersInList"] = "Sort users in list";
|
||||
$text["settings_sortUsersInList_desc"] = "Sets if users in selection menus are ordered by login or by its full name";
|
||||
|
@ -530,16 +530,16 @@ $text["settings_contentDir"] = "Content directory";
|
|||
$text["settings_contentDir_desc"] = "Where the uploaded files are stored (best to choose a directory that is not accessible through your web-server)";
|
||||
$text["settings_contentOffsetDir"] = "Content Offset Directory";
|
||||
$text["settings_contentOffsetDir_desc"] = "To work around limitations in the underlying file system, a new directory structure has been devised that exists within the content directory (Content Directory). 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 (Content Directory)";
|
||||
$text["settings_coreDir"] = "Core letoDMS directory";
|
||||
$text["settings_coreDir_desc"] = "Path to LetoDMS_Core (optional)";
|
||||
$text["settings_coreDir"] = "Core SeedDMS directory";
|
||||
$text["settings_coreDir_desc"] = "Path to SeedDMS_Core (optional)";
|
||||
$text["settings_loginFailure_desc"] = "Disable account after n login failures.";
|
||||
$text["settings_loginFailure"] = "Login failure";
|
||||
$text["settings_luceneClassDir"] = "Lucene LetoDMS directory";
|
||||
$text["settings_luceneClassDir_desc"] = "Path to LetoDMS_Lucene (optional)";
|
||||
$text["settings_luceneClassDir"] = "Lucene SeedDMS directory";
|
||||
$text["settings_luceneClassDir_desc"] = "Path to SeedDMS_Lucene (optional)";
|
||||
$text["settings_luceneDir"] = "Lucene index directory";
|
||||
$text["settings_luceneDir_desc"] = "Path to Lucene index";
|
||||
$text["settings_cannot_disable"] = "File ENABLE_INSTALL_TOOL could not deleted";
|
||||
$text["settings_install_disabled"] = "File ENABLE_INSTALL_TOOL was deleted. You can now log into LetoDMS and do further configuration.";
|
||||
$text["settings_install_disabled"] = "File ENABLE_INSTALL_TOOL was deleted. You can now log into SeedDMS and do further configuration.";
|
||||
$text["settings_createdatabase"] = "Create database tables";
|
||||
$text["settings_createdirectory"] = "Create directory";
|
||||
$text["settings_currentvalue"] = "Current value";
|
||||
|
@ -555,7 +555,7 @@ $text["settings_dbPass"] = "Password";
|
|||
$text["settings_dbUser_desc"] = "The username for access to your database entered during the installation process. Do not edit field unless absolutely necessary, for example transfer of the database to a new Host.";
|
||||
$text["settings_dbUser"] = "Username";
|
||||
$text["settings_dbVersion"] = "Database schema too old";
|
||||
$text["settings_delete_install_folder"] = "In order to use LetoDMS, you must delete the file ENABLE_INSTALL_TOOL in the configuration directory";
|
||||
$text["settings_delete_install_folder"] = "In order to use SeedDMS, you must delete the file ENABLE_INSTALL_TOOL in the configuration directory";
|
||||
$text["settings_disable_install"] = "Delete file ENABLE_INSTALL_TOOL if possible";
|
||||
$text["settings_disableSelfEdit_desc"] = "If checked user cannot edit his own profile";
|
||||
$text["settings_disableSelfEdit"] = "Disable Self Edit";
|
||||
|
@ -611,7 +611,7 @@ $text["settings_footNote_desc"] = "Message to display at the bottom of every pag
|
|||
$text["settings_footNote"] = "Foot Note";
|
||||
$text["settings_guestID_desc"] = "ID of guest-user used when logged in as guest (mostly no need to change)";
|
||||
$text["settings_guestID"] = "Guest ID";
|
||||
$text["settings_httpRoot_desc"] = "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/letodms/, set '/letodms/'. If the URL is http://www.example.com/, set '/'";
|
||||
$text["settings_httpRoot_desc"] = "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/seeddms/, set '/seeddms/'. If the URL is http://www.example.com/, set '/'";
|
||||
$text["settings_httpRoot"] = "Http Root";
|
||||
$text["settings_installADOdb"] = "Install ADOdb";
|
||||
$text["settings_install_success"] = "The installation has been successfully completed.";
|
||||
|
@ -658,7 +658,7 @@ $text["settings_quota"] = "User's quota";
|
|||
$text["settings_quota_desc"] = "The maximum number of bytes a user may use on disk. Set this to 0 for unlimited disk space. This value can be overridden for each uses in his profile.";
|
||||
$text["settings_restricted_desc"] = "Only allow users to log in if they have an entry in the local database (irrespective of successful authentication with LDAP)";
|
||||
$text["settings_restricted"] = "Restricted access";
|
||||
$text["settings_rootDir_desc"] = "Path to where letoDMS is located";
|
||||
$text["settings_rootDir_desc"] = "Path to where SeedDMS is located";
|
||||
$text["settings_rootDir"] = "Root directory";
|
||||
$text["settings_rootFolderID_desc"] = "ID of root-folder (mostly no need to change)";
|
||||
$text["settings_rootFolderID"] = "Root Folder ID";
|
||||
|
@ -667,7 +667,7 @@ $text["settings_Server"] = "Server settings";
|
|||
$text["settings"] = "Settings";
|
||||
$text["settings_siteDefaultPage_desc"] = "Default page on login. If empty defaults to out/out.ViewFolder.php";
|
||||
$text["settings_siteDefaultPage"] = "Site Default Page";
|
||||
$text["settings_siteName_desc"] = "Name of site used in the page titles. Default: letoDMS";
|
||||
$text["settings_siteName_desc"] = "Name of site used in the page titles. Default: SeedDMS";
|
||||
$text["settings_siteName"] = "Site Name";
|
||||
$text["settings_Site"] = "Site";
|
||||
$text["settings_smtpPort_desc"] = "SMTP Server port, default 25";
|
||||
|
|
|
@ -364,10 +364,10 @@ $text["password"] = "Mot de passe";
|
|||
$text["password_already_used"] = "Mot de passe déjà utilisé";
|
||||
$text["password_repeat"] = "Répétez le mot de passe";
|
||||
$text["password_expiration"] = "Expiration du mot de passe";
|
||||
$text["password_expiration_text"] = "Votre mot de passe a expiré. SVP choisir un nouveau avant de pouvoir accéder à LetoDMS.";
|
||||
$text["password_expiration_text"] = "Votre mot de passe a expiré. SVP choisir un nouveau avant de pouvoir accéder à SeedDMS.";
|
||||
$text["password_forgotten"] = "Mot de passe oublié ?";
|
||||
$text["password_forgotten_email_subject"] = "Mot de passe oublié";
|
||||
$text["password_forgotten_email_body"] = "Cher utilisateur de LetoDMS,nnnous avons reçu une demande de modification de votre mot de passe.nnPour ce faire, cliquez sur le lien suivant:nn###URL_PREFIX###out/out.ChangePassword.php?hash=###HASH###nnEn cas de problème persistant, veuillez contacter votre administrateur.";
|
||||
$text["password_forgotten_email_body"] = "Cher utilisateur de SeedDMS,nnnous avons reçu une demande de modification de votre mot de passe.nnPour ce faire, cliquez sur le lien suivant:nn###URL_PREFIX###out/out.ChangePassword.php?hash=###HASH###nnEn cas de problème persistant, veuillez contacter votre administrateur.";
|
||||
$text["password_forgotten_send_hash"] = "La procédure à suivre a bien été envoyée à l'adresse indiquée";
|
||||
$text["password_forgotten_text"] = "Remplissez le formulaire ci-dessous et suivez les instructions dans le courrier électronique qui vous sera envoyé.";
|
||||
$text["password_forgotten_title"] = "Mot de passe oublié";
|
||||
|
@ -458,15 +458,15 @@ $text["settings_contentDir_desc"] = "Endroit ou les fichiers téléchargés sont
|
|||
$text["settings_contentOffsetDir"] = "Content Offset Directory";
|
||||
$text["settings_contentOffsetDir_desc"] = "To work around limitations in the underlying file system, a new directory structure has been devised that exists within the content directory (Content Directory). 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 (Content Directory)";
|
||||
$text["settings_coreDir"] = "Répertoire Core letoDMS";
|
||||
$text["settings_coreDir_desc"] = "Chemin vers LetoDMS_Core (optionnel)";
|
||||
$text["settings_coreDir_desc"] = "Chemin vers SeedDMS_Core (optionnel)";
|
||||
$text["settings_loginFailure_desc"] = "Désactiver le compte après n échecs de connexion.";
|
||||
$text["settings_loginFailure"] = "Erreur Login";
|
||||
$text["settings_luceneClassDir"] = "Répertoire Lucene LetoDMS";
|
||||
$text["settings_luceneClassDir_desc"] = "Chemin vers LetoDMS_Lucene (optionnel)";
|
||||
$text["settings_luceneClassDir"] = "Répertoire Lucene SeedDMS";
|
||||
$text["settings_luceneClassDir_desc"] = "Chemin vers SeedDMS_Lucene (optionnel)";
|
||||
$text["settings_luceneDir"] = "Répertoire index Lucene";
|
||||
$text["settings_luceneDir_desc"] = "Chemin vers index Lucene";
|
||||
$text["settings_cannot_disable"] = "Le fichier ENABLE_INSTALL_TOOL ne peut pas être supprimé";
|
||||
$text["settings_install_disabled"] = "Le fichier ENABLE_INSTALL_TOOL a été supprimé. ous pouvez maintenant vous connecter à LetoDMS et poursuivre la configuration.";
|
||||
$text["settings_install_disabled"] = "Le fichier ENABLE_INSTALL_TOOL a été supprimé. ous pouvez maintenant vous connecter à SeedDMS et poursuivre la configuration.";
|
||||
$text["settings_createdatabase"] = "Créer tables de la base de données";
|
||||
$text["settings_createdirectory"] = "Créer répertoire";
|
||||
$text["settings_currentvalue"] = "Valeur courante";
|
||||
|
@ -482,7 +482,7 @@ $text["settings_dbPass"] = "Mot de passe";
|
|||
$text["settings_dbUser_desc"] = "Le nom d'utilisateur pour l'accès à votre base de données entré pendant le processus d'installation. Ne pas modifier le champ sauf si vraiment nécessaire, par exemple pour le transfert de la base de données vers un nouvel hébergement.";
|
||||
$text["settings_dbUser"] = "Nom d'utilisateur";
|
||||
$text["settings_dbVersion"] = "Schéma de base de données trop ancien";
|
||||
$text["settings_delete_install_folder"] = "Pour utiliser LetoDMS, vous devez supprimer le fichier ENABLE_INSTALL_TOOL dans le répertoire de configuration";
|
||||
$text["settings_delete_install_folder"] = "Pour utiliser SeedDMS, vous devez supprimer le fichier ENABLE_INSTALL_TOOL dans le répertoire de configuration";
|
||||
$text["settings_disable_install"] = "Si possible, supprimer le fichier ENABLE_INSTALL_TOOL";
|
||||
$text["settings_disableSelfEdit_desc"] = "Si coché, l'utilisateur ne peut pas éditer son profil";
|
||||
$text["settings_disableSelfEdit"] = "Désactiver auto modification";
|
||||
|
|
|
@ -236,7 +236,7 @@ $text["folder_moved_email"] = "Ordner verschoben";
|
|||
$text["folder_renamed_email"] = "Ordner umbenannt";
|
||||
$text["folders_and_documents_statistic"] = "Ordner- und Dokumentenübersicht";
|
||||
$text["folders"] = "Verzeichnisse";
|
||||
$text["folder_title"] = "LetoDMS - Ordner: [foldername]";
|
||||
$text["folder_title"] = "SeedDMS - Ordner: [foldername]";
|
||||
$text["friday"] = "Freitag";
|
||||
$text["from"] = "von";
|
||||
$text["fullsearch"] = "Volltext";
|
||||
|
@ -399,10 +399,10 @@ $text["password"] = "Passwort";
|
|||
$text["password_already_used"] = "Passwort schon einmal verwendet";
|
||||
$text["password_repeat"] = "Passwort wiederholen";
|
||||
$text["password_expiration"] = "Ablauf eines Passworts";
|
||||
$text["password_expiration_text"] = "Ihr Passwort ist abgelaufen. Bitte ändern sie es, um LetoDMS weiter benutzen zu können.";
|
||||
$text["password_expiration_text"] = "Ihr Passwort ist abgelaufen. Bitte ändern sie es, um SeedDMS weiter benutzen zu können.";
|
||||
$text["password_forgotten"] = "Passwort vergessen";
|
||||
$text["password_forgotten_email_subject"] = "Passwort vergessen";
|
||||
$text["password_forgotten_email_body"] = "Sehr geehrter Anwender von LetoDMS,\n\nwir haben einen Anfrage zum Zurücksetzen Ihres Passworts erhalten und deshalb ein neues Passwort erzeugt.\n\nIhr neues Passwort lautet: ###PASSWORD###\n\nBitte ändern Sie es umgehend nachdem Sie sich erfolgreich angemeldet haben.\nSollen Sie danach immer noch Problem bei der Anmeldung haben, dann kontaktieren Sie bitte Ihren\nAdminstrator";
|
||||
$text["password_forgotten_email_body"] = "Sehr geehrter Anwender von SeedDMS,\n\nwir haben einen Anfrage zum Zurücksetzen Ihres Passworts erhalten und deshalb ein neues Passwort erzeugt.\n\nIhr neues Passwort lautet: ###PASSWORD###\n\nBitte ändern Sie es umgehend nachdem Sie sich erfolgreich angemeldet haben.\nSollen Sie danach immer noch Problem bei der Anmeldung haben, dann kontaktieren Sie bitte Ihren\nAdminstrator";
|
||||
$text["password_forgotten_send_password"] = "Ihr Passwort wurde an die E-Mail-Adresse des Benutzers gesendet.";
|
||||
$text["password_forgotten_title"] = "Passwort gesendet";
|
||||
$text["password_forgotten_title"] = "Passwort gesendet";
|
||||
|
@ -489,8 +489,8 @@ $text["set_owner_error"] = "Fehler beim Setzen des Besitzers";
|
|||
$text["set_owner"] = "Besitzer festlegen";
|
||||
$text["set_password"] = "Passwort setzen";
|
||||
$text["set_workflow"] = "Set Workflow";
|
||||
$text["settings_install_welcome_title"] = "Willkommen zur Installation von LetoDMS";
|
||||
$text["settings_install_welcome_text"] = "<p>Before you start to install letoDMS make sure you have created a file 'ENABLE_INSTALL_TOOL' in your configuration directory, otherwise the installation will not work. On Unix-System this can easily be done with 'touch conf/ENABLE_INSTALL_TOOL'. After you have finished the installation delete the file.</p><p>letoDMS has very minimal requirements. You will need a mysql database and a php enabled web server. For the lucene full text search, you will also need the Zend framework installed on disk where it can be found by php. Starting with version 3.2.0 of letoDMS ADOdb will not be part of the distribution anymore. Get a copy of it from <a href=\"http://adodb.sourceforge.net/\">http://adodb.sourceforge.net</a> and install it. The path to it can later be set during installation.</p><p>If you like to create the database before you start installation, then just create it manually with your favorite tool, optionally create a database user with access on the database and import one of the database dumps in the configuration directory. The installation script can do that for you as well, but it will need database access with sufficient rights to create databases.</p>";
|
||||
$text["settings_install_welcome_title"] = "Willkommen zur Installation von SeedDMS";
|
||||
$text["settings_install_welcome_text"] = "<p>Before you start to install SeedDMS make sure you have created a file 'ENABLE_INSTALL_TOOL' in your configuration directory, otherwise the installation will not work. On Unix-System this can easily be done with 'touch conf/ENABLE_INSTALL_TOOL'. After you have finished the installation delete the file.</p><p>SeedDMS has very minimal requirements. You will need a mysql database and a php enabled web server. For the lucene full text search, you will also need the Zend framework installed on disk where it can be found by php. Starting with version 3.2.0 of SeedDMS ADOdb will not be part of the distribution anymore. Get a copy of it from <a href=\"http://adodb.sourceforge.net/\">http://adodb.sourceforge.net</a> and install it. The path to it can later be set during installation.</p><p>If you like to create the database before you start installation, then just create it manually with your favorite tool, optionally create a database user with access on the database and import one of the database dumps in the configuration directory. The installation script can do that for you as well, but it will need database access with sufficient rights to create databases.</p>";
|
||||
$text["settings_start_install"] = "Installation starten";
|
||||
$text["settings_sortUsersInList"] = "Sortiere Benutzer in Listen";
|
||||
$text["settings_sortUsersInList_desc"] = "Stellt ein, ob die Benutzer in Listen nach Login oder Name sortiert werden sollen.";
|
||||
|
@ -518,24 +518,24 @@ $text["settings_contentDir"] = "Content-Verzeichnis";
|
|||
$text["settings_contentDir_desc"] = "Verzeichnis, in dem die Dokumente gespeichert werden. Sie sollten ein Verzeichnis wählen, das nicht durch den Web-Server erreichbar ist.";
|
||||
$text["settings_contentOffsetDir"] = "Content Offset Directory";
|
||||
$text["settings_contentOffsetDir_desc"] = "Die Dokumente werden nicht direkt im Content-Verzeichnis, sondern in einem Unterverzeichnis angelegt. Der Name dieses Verzeichnis ist beliebig, wird aber historisch bedingt oft auf '1048576' gesetzt.";
|
||||
$text["settings_coreDir"] = "Core letoDMS Verzeichnis";
|
||||
$text["settings_coreDir_desc"] = "Pfad zum PEAR-Paket LetoDMS_Core (optional)";
|
||||
$text["settings_coreDir"] = "Core SeedDMS Verzeichnis";
|
||||
$text["settings_coreDir_desc"] = "Pfad zum PEAR-Paket SeedDMS_Core (optional)";
|
||||
$text["settings_loginFailure_desc"] = "Konto nach n Anmeldefehlversuchen sperren.";
|
||||
$text["settings_loginFailure"] = "Anmeldefehlversuche";
|
||||
$text["settings_luceneClassDir"] = "Lucene LetoDMS Verzeichnis";
|
||||
$text["settings_luceneClassDir_desc"] = "Pfad zum PEAR-Paket LetoDMS_Lucene (optional)";
|
||||
$text["settings_luceneClassDir"] = "Lucene SeedDMS Verzeichnis";
|
||||
$text["settings_luceneClassDir_desc"] = "Pfad zum PEAR-Paket SeedDMS_Lucene (optional)";
|
||||
$text["settings_luceneDir"] = "Lucene Index-Verzeichnis";
|
||||
$text["settings_luceneDir_desc"] = "Verzeichnis in dem der Lucene-Index abgelegt wird";
|
||||
$text["settings_cannot_disable"] = "Datei ENABLE_INSTALL_TOOL konnte nicht gelöscht werden";
|
||||
$text["settings_install_disabled"] = "Datei ENABLE_INSTALL_TOOL wurde gelöscht. Sie können sich nun bei LetoDMS anmeldung und mit der Konfiguration fortfahren.";
|
||||
$text["settings_install_disabled"] = "Datei ENABLE_INSTALL_TOOL wurde gelöscht. Sie können sich nun bei SeedDMS anmeldung und mit der Konfiguration fortfahren.";
|
||||
$text["settings_createdatabase"] = "Datenbank erzeugen";
|
||||
$text["settings_createdirectory"] = "Verzeichnis erzeugen";
|
||||
$text["settings_currentvalue"] = "Aktueller Wert";
|
||||
$text["settings_Database"] = "Datenbank-Einstellungen";
|
||||
$text["settings_dbDatabase"] = "Datenbank";
|
||||
$text["settings_dbDatabase_desc"] = "Der Name der Datenbank, die bei der Installation von LetoDMS eingerichtet wurde. Ändern Sie diese Feld nicht, es sei denn es ist notwendig, weil Sie die Datenbank umbenannt haben.";
|
||||
$text["settings_dbDatabase_desc"] = "Der Name der Datenbank, die bei der Installation von SeedDMS eingerichtet wurde. Ändern Sie diese Feld nicht, es sei denn es ist notwendig, weil Sie die Datenbank umbenannt haben.";
|
||||
$text["settings_dbDriver"] = "Datenbank-Typ";
|
||||
$text["settings_dbDriver_desc"] = "Der Typ der Datenbank, die bei der Installation von LetoDMS eingerichtet wurde. Ändern Sie dieses Feld nicht, es sei denn Sie migrieren die Datenbank auf einen anderen Datenbank-Server. Für eine Liste der möglichen Typen schauen Sie bitte in das Readme von ADOdb";
|
||||
$text["settings_dbDriver_desc"] = "Der Typ der Datenbank, die bei der Installation von SeedDMS eingerichtet wurde. Ändern Sie dieses Feld nicht, es sei denn Sie migrieren die Datenbank auf einen anderen Datenbank-Server. Für eine Liste der möglichen Typen schauen Sie bitte in das Readme von ADOdb";
|
||||
$text["settings_dbHostname_desc"] = "Der Name des Servers auf dem Ihr Datenbank-Server läuft. Ändern Sie dieses Feld nur, wenn Sie die Datenbank auf einen anderen Server transferieren.";
|
||||
$text["settings_dbHostname"] = "Server-Name";
|
||||
$text["settings_dbPass_desc"] = "Das Passwort, um auf die Datenbank zugreifen zu können.";
|
||||
|
@ -543,7 +543,7 @@ $text["settings_dbPass"] = "Passwort";
|
|||
$text["settings_dbUser_desc"] = "Der Benutzername, um auf die Datenbank zugreifen zu können.";
|
||||
$text["settings_dbUser"] = "Benutzer";
|
||||
$text["settings_dbVersion"] = "Datenbankschema zu alt";
|
||||
$text["settings_delete_install_folder"] = "Um LetoDMS nutzen zu können, müssen Sie die Datei ENABLE_INSTALL_TOOL aus dem Konfigurationsverzeichnis löschen.";
|
||||
$text["settings_delete_install_folder"] = "Um SeedDMS nutzen zu können, müssen Sie die Datei ENABLE_INSTALL_TOOL aus dem Konfigurationsverzeichnis löschen.";
|
||||
$text["settings_disable_install"] = "Lösche ENABLE_INSTALL_TOOL wenn möglich";
|
||||
$text["settings_disableSelfEdit_desc"] = "Anwählen, um das Ändern des eigenen Profiles zu erlauben.";
|
||||
$text["settings_disableSelfEdit"] = "Ändern des eigenen Profils";
|
||||
|
@ -595,7 +595,7 @@ $text["settings_footNote_desc"] = "Meldung, die im Fuß jeder Seite angezeigt wi
|
|||
$text["settings_footNote"] = "Text im Fuß der Seite";
|
||||
$text["settings_guestID_desc"] = "Id des Gast-Benutzers, wenn man sich als 'guest' einloggt.";
|
||||
$text["settings_guestID"] = "Gast-ID";
|
||||
$text["settings_httpRoot_desc"] = "Der relative Pfad in der URL nach der Domain, also ohne http:// und den hostnamen. z.B. wenn die komplette URL http://www.example.com/letodms/ ist, dann setzen Sie diesen Wert auf '/letodms/'. Wenn die URL http://www.example.com/ ist, tragen Sie '/' ein.";
|
||||
$text["settings_httpRoot_desc"] = "Der relative Pfad in der URL nach der Domain, also ohne http:// und den hostnamen. z.B. wenn die komplette URL http://www.example.com/seeddms/ ist, dann setzen Sie diesen Wert auf '/seeddms/'. Wenn die URL http://www.example.com/ ist, tragen Sie '/' ein.";
|
||||
$text["settings_httpRoot"] = "HTTP Wurzelverzeichnis";
|
||||
$text["settings_installADOdb"] = "Installieren Sie ADOdb";
|
||||
$text["settings_install_success"] = "Die Installation wurde erfolgreich beendet";
|
||||
|
@ -642,16 +642,16 @@ $text["settings_quota"] = "User's quota";
|
|||
$text["settings_quota_desc"] = "The maximum number of bytes a user may use on disk. Set this to 0 for unlimited disk space. This value can be overridden for each uses in his profile.";
|
||||
$text["settings_restricted_desc"] = "Nur Benutzer, die einen Eintrag in der Benutzerdatenbank haben dürfen sich einloggen (unabhängig von einer erfolgreichen Authentifizierung über LDAP)";
|
||||
$text["settings_restricted"] = "Beschränkter Zugriff";
|
||||
$text["settings_rootDir_desc"] = "Wurzelverzeichnis von letoDMS auf der Festplatte";
|
||||
$text["settings_rootDir_desc"] = "Wurzelverzeichnis von SeedDMS auf der Festplatte";
|
||||
$text["settings_rootDir"] = "Wurzelverzeichnis";
|
||||
$text["settings_rootFolderID_desc"] = "Id des Wurzelordners in letoDMS (kann in der Regel unverändert bleiben)";
|
||||
$text["settings_rootFolderID_desc"] = "Id des Wurzelordners in SeedDMS (kann in der Regel unverändert bleiben)";
|
||||
$text["settings_rootFolderID"] = "Id des Wurzelordners";
|
||||
$text["settings_SaveError"] = "Fehler beim Speichern der Konfiguration";
|
||||
$text["settings_Server"] = "Server-Einstellungen";
|
||||
$text["settings"] = "Einstellungen";
|
||||
$text["settings_siteDefaultPage_desc"] = "Erste Seite nach der Anmeldung. Voreingestellt ist 'out/out.ViewFolder.php'";
|
||||
$text["settings_siteDefaultPage"] = "Startseite";
|
||||
$text["settings_siteName_desc"] = "Name der Site zur Anzeige in Seitentiteln. Voreingestellt ist 'letoDMS'";
|
||||
$text["settings_siteName_desc"] = "Name der Site zur Anzeige in Seitentiteln. Voreingestellt ist 'SeedDMS'";
|
||||
$text["settings_siteName"] = "Name der Site";
|
||||
$text["settings_Site"] = "Site";
|
||||
$text["settings_smtpPort_desc"] = "SMTP Server Port, voreingestellt ist 25";
|
||||
|
|
|
@ -395,9 +395,9 @@ $text["settings_contentDir_desc"] = "Where the uploaded files are stored (best t
|
|||
$text["settings_contentOffsetDir"] = "Content Offset Directory";
|
||||
$text["settings_contentOffsetDir_desc"] = "To work around limitations in the underlying file system, a new directory structure has been devised that exists within the content directory (Content Directory). 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 (Content Directory)";
|
||||
$text["settings_coreDir"] = "Core letoDMS directory";
|
||||
$text["settings_coreDir_desc"] = "Path to LetoDMS_Core (optional)";
|
||||
$text["settings_luceneClassDir"] = "Lucene LetoDMS directory";
|
||||
$text["settings_luceneClassDir_desc"] = "Path to LetoDMS_Lucene (optional)";
|
||||
$text["settings_coreDir_desc"] = "Path to SeedDMS_Core (optional)";
|
||||
$text["settings_luceneClassDir"] = "Lucene SeedDMS directory";
|
||||
$text["settings_luceneClassDir_desc"] = "Path to SeedDMS_Lucene (optional)";
|
||||
$text["settings_luceneDir"] = "Lucene index directory";
|
||||
$text["settings_luceneDir_desc"] = "Path to Lucene index";
|
||||
$text["settings_createdatabase"] = "Create database";
|
||||
|
@ -414,7 +414,7 @@ $text["settings_dbPass_desc"] = "The password for access to your database entere
|
|||
$text["settings_dbPass"] = "Password";
|
||||
$text["settings_dbUser_desc"] = "The username for access to your database entered during the installation process. Do not edit field unless absolutely necessary, for example transfer of the database to a new Host.";
|
||||
$text["settings_dbUser"] = "Username";
|
||||
$text["settings_delete_install_folder"] = "To use LetoDMS, you must delete the install directory";
|
||||
$text["settings_delete_install_folder"] = "To use SeedDMS, you must delete the install directory";
|
||||
$text["settings_disableSelfEdit_desc"] = "If checked user cannot edit his own profile";
|
||||
$text["settings_disableSelfEdit"] = "Disable Self Edit";
|
||||
$text["settings_Display"] = "Display settings";
|
||||
|
|
|
@ -365,10 +365,10 @@ $text["password"] = "Wachtwoord";
|
|||
$text["password_already_used"] = "Wachtwoord al gebruikt";
|
||||
$text["password_repeat"] = "Herhaal wachtwoord";
|
||||
$text["password_expiration"] = "Wachtwoord vervaldatum";
|
||||
$text["password_expiration_text"] = "Uw wachtwoord is verlopen. Kies een nieuwe voordat u gebruik wilt maken van LetoDMS.";
|
||||
$text["password_expiration_text"] = "Uw wachtwoord is verlopen. Kies een nieuwe voordat u gebruik wilt maken van SeedDMS.";
|
||||
$text["password_forgotten"] = "Wachtwoord vergeten";
|
||||
$text["password_forgotten_email_subject"] = "Wachtwoord vergeten";
|
||||
$text["password_forgotten_email_body"] = "Geachte gebruiker van LetoDMS,\n\nWij hebben een verzoek ontvangen om uw wachtwoord te veranderen.\n\nDit kan uitgevoerd worden door op de volgende koppeling te drukken:\n\n###URL_PREFIX###out/out.ChangePassword.php?hash=###HASH###\n\nAls u nog steed problemen ondervind met het inloggen, neem aub contact op met uw beheerder.";
|
||||
$text["password_forgotten_email_body"] = "Geachte gebruiker van SeedDMS,\n\nWij hebben een verzoek ontvangen om uw wachtwoord te veranderen.\n\nDit kan uitgevoerd worden door op de volgende koppeling te drukken:\n\n###URL_PREFIX###out/out.ChangePassword.php?hash=###HASH###\n\nAls u nog steed problemen ondervind met het inloggen, neem aub contact op met uw beheerder.";
|
||||
$text["password_forgotten_send_hash"] = "Verdere instructies zijn naar uw gebruikers email adres verstuurd.";
|
||||
$text["password_forgotten_text"] = "Vul het formulier hieronder in en volg de instructie in de email, welke naar u verzonden zal worden.";
|
||||
$text["password_forgotten_title"] = "Wachtwoord verzonden";
|
||||
|
@ -460,15 +460,15 @@ $text["settings_contentDir_desc"] = "Waar de verzonden bestande opgeslagen worde
|
|||
$text["settings_contentOffsetDir"] = "Inhouds Basis Map";
|
||||
$text["settings_contentOffsetDir_desc"] = "Om de beperkingen van het onderliggende bestandssysteem te omzeilen, is een nieuwe mappenstructuur bedacht dat binnen de inhoudsmap (Inhoudsmap) bestaat. Hiervoor is een map nodig als basis. Gebruikelijk is om dit de standaardwaarde te laten, 1048576, maar kan elke waarde of tekst bevatten dat nog niet bestaat binnen de (Inhoudsmap)";
|
||||
$text["settings_coreDir"] = "Core letoDMS map";
|
||||
$text["settings_coreDir_desc"] = "Pad naar LetoDMS_Core (optioneel)";
|
||||
$text["settings_coreDir_desc"] = "Pad naar SeedDMS_Core (optioneel)";
|
||||
$text["settings_loginFailure_desc"] = "Deactiveer account na n foutieve loginpogingen.";
|
||||
$text["settings_loginFailure"] = "Login fout";
|
||||
$text["settings_luceneClassDir"] = "Lucene LetoDMS map";
|
||||
$text["settings_luceneClassDir_desc"] = "Pad naar LetoDMS_Lucene (optioneel)";
|
||||
$text["settings_luceneClassDir"] = "Lucene SeedDMS map";
|
||||
$text["settings_luceneClassDir_desc"] = "Pad naar SeedDMS_Lucene (optioneel)";
|
||||
$text["settings_luceneDir"] = "Lucene index map";
|
||||
$text["settings_luceneDir_desc"] = "Pad naar Lucene index";
|
||||
$text["settings_cannot_disable"] = "Bestand ENABLE_INSTALL_TOOL kon niet verwijderd worden";
|
||||
$text["settings_install_disabled"] = "Bestand ENABLE_INSTALL_TOOL is verwijderd. U kunt nu inloggen in LetoDMS en verdere configuratie uitvoeren.";
|
||||
$text["settings_install_disabled"] = "Bestand ENABLE_INSTALL_TOOL is verwijderd. U kunt nu inloggen in SeedDMS en verdere configuratie uitvoeren.";
|
||||
$text["settings_createdatabase"] = "Maak database tabellen";
|
||||
$text["settings_createdirectory"] = "Maak map";
|
||||
$text["settings_currentvalue"] = "Huidige waarde";
|
||||
|
@ -484,7 +484,7 @@ $text["settings_dbPass"] = "Wachtwoord";
|
|||
$text["settings_dbUser_desc"] = "De gebruikersnaam voor toegang tot de datbase ingevoerd tijdens de installatie. Verander de waarde niet tenzij echt nodig, bijvoorbeeld bij verplaatsing van de database naar een ander systeem.";
|
||||
$text["settings_dbUser"] = "Gebruikersnaam";
|
||||
$text["settings_dbVersion"] = "Database schema te oud";
|
||||
$text["settings_delete_install_folder"] = "Om LetoDMS te kunnen gebruiken moet het bestand ENABLE_INSTALL_TOOL uit de configuratiemap verwijderd worden.";
|
||||
$text["settings_delete_install_folder"] = "Om SeedDMS te kunnen gebruiken moet het bestand ENABLE_INSTALL_TOOL uit de configuratiemap verwijderd worden.";
|
||||
$text["settings_disable_install"] = "Verwijder het bestand ENABLE_INSTALL_TOOL indien mogelijk";
|
||||
$text["settings_disableSelfEdit_desc"] = "Indien aangevinkt kan de gebruiker zijn eigen profiel niet wijzigen.";
|
||||
$text["settings_disableSelfEdit"] = "Uitschakelen Eigenprofiel wijzigen";
|
||||
|
|
|
@ -418,9 +418,9 @@ $text["settings_contentDir_desc"] = "Куда сохраняются загру
|
|||
$text["settings_contentOffsetDir"] = "Content Offset Directory";
|
||||
$text["settings_contentOffsetDir_desc"] = "Во избежании проблем с файловой системой была введена новая структура папок в каталоге контента. Необходима базовая папка, откуда начать. Впрочем оставьте тут все как есть, 1048576, но может быть любым числом или строкой, не существующей уже в папке контента";
|
||||
$text["settings_coreDir"] = "Папка Core letoDMS";
|
||||
$text["settings_coreDir_desc"] = "Путь к LetoDMS_Core (не обязательно)";
|
||||
$text["settings_luceneClassDir"] = "Папка Lucene LetoDMS";
|
||||
$text["settings_luceneClassDir_desc"] = "Путь к LetoDMS_Lucene (не обязательно)";
|
||||
$text["settings_coreDir_desc"] = "Путь к SeedDMS_Core (не обязательно)";
|
||||
$text["settings_luceneClassDir"] = "Папка Lucene SeedDMS";
|
||||
$text["settings_luceneClassDir_desc"] = "Путь к SeedDMS_Lucene (не обязательно)";
|
||||
$text["settings_luceneDir"] = "Папка индекса Lucene";
|
||||
$text["settings_luceneDir_desc"] = "Путь, куда Lucene будет писать свой индекс";
|
||||
$text["settings_cannot_disable"] = "Невозможно удлить ENABLE_INSTALL_TOOL";
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
// Translation updated by Francisco Manuel Garcia Claramonte
|
||||
// <francisco@debian.org> for LetoDMS-3.0. 2-feb-2011
|
||||
// <francisco@debian.org> for SeedDMS-3.0. 2-feb-2011
|
||||
// Reviewed : 15-sept-2011. Francisco M. Garcia Claramonte
|
||||
// Reviewed (for 3.2.0) : 22-sept-2011. Francisco M. Garcia Claramonte
|
||||
// Reviewed (for 3.3.0) : 3-mar-2012. Francisco M. Garcia Claramonte
|
||||
|
@ -372,10 +372,10 @@ $text["password"] = "Contraseña";
|
|||
$text["password_already_used"] = "La contraseña ya está en uso";
|
||||
$text["password_repeat"] = "Repetir contraseña";
|
||||
$text["password_expiration"] = "Caducidad de la contraseña";
|
||||
$text["password_expiration_text"] = "Su contraseña ha caducado. Por favor seleccione una nueva para seguir usando LetoDMS.";
|
||||
$text["password_expiration_text"] = "Su contraseña ha caducado. Por favor seleccione una nueva para seguir usando SeedDMS.";
|
||||
$text["password_forgotten"] = "Recordar contraseña";
|
||||
$text["password_forgotten_email_subject"] = "Recordatorio de contraseña";
|
||||
$text["password_forgotten_email_body"] = "Estimado usuario de LetoDMS,\n\nhemos recibido una petición para cambiar su contraseña.\n\nPuede modificarla haciendo click en el siguiente enlace:\n\n###URL_PREFIX###out/out.ChangePassword.php?hash=###HASH###\n\nSi continua teniendo problemas de acceso, por favor contacte con el administrador del sistema.";
|
||||
$text["password_forgotten_email_body"] = "Estimado usuario de SeedDMS,\n\nhemos recibido una petición para cambiar su contraseña.\n\nPuede modificarla haciendo click en el siguiente enlace:\n\n###URL_PREFIX###out/out.ChangePassword.php?hash=###HASH###\n\nSi continua teniendo problemas de acceso, por favor contacte con el administrador del sistema.";
|
||||
$text["password_forgotten_send_hash"] = "Las instrucciones para proceder al cambio se han enviado a la dirección de correo de usuario";
|
||||
$text["password_forgotten_text"] = "Rellene el siguiente formulario y siga las instrucciones del correo que se le enviará.";
|
||||
$text["password_forgotten_title"] = "Envío de contraseña";
|
||||
|
@ -440,8 +440,8 @@ $text["set_expiry"] = "Establecer caducidad";
|
|||
$text["set_owner_error"] = "Error estableciendo propietario";
|
||||
$text["set_owner"] = "Establecer propietario";
|
||||
$text["set_password"] = "Establecer contraseña";
|
||||
$text["settings_install_welcome_title"] = "Bienvenido a la instalación de letoDMS";
|
||||
$text["settings_install_welcome_text"] = "<p>Antes de instalar letoDMS asegúrese de haber creado un archivo «ENABLE_INSTALL_TOOL» en su directorio de instalación, en otro caso la instalación no funcionará. En sistemas Unix puede hacerse fácilmente con «touch conf/ENABLE_INSTALL_TOOL». Después de terminar la instalación elimine el archivo.</p><p>letoDMS tiene unos requisitos mínimos. Necesitará una base de datos y un servidor web con soporte para php. Para la búsqueda de texto completo lucene, necesitará tener instalado también el framework Zend donde pueda ser utilizado por php. Desde la versión 3.2.0 de letoDMS ADObd ya no forma parte de la distribución. Consiga una copia de él desde <a href=\"http://adodb.sourceforge.net/\">http://adodb.sourceforge.net</a> e instálelo. La ruta hacia él podrá ser establecida durante la instalación.</p><p> Si prefiere crear la base de datos antes de comenzar la instalación, simplemente créela manualmente con su herramienta preferida, opcionalmente cree un usuario de base de datos con acceso a esta base de datos e importe uno de los volcados del directorio de configuración. El script de instalación puede hacer esto también, pero necesitará acceso con privilegios suficientes para crear bases de datos.</p>";
|
||||
$text["settings_install_welcome_title"] = "Bienvenido a la instalación de SeedDMS";
|
||||
$text["settings_install_welcome_text"] = "<p>Antes de instalar SeedDMS asegúrese de haber creado un archivo «ENABLE_INSTALL_TOOL» en su directorio de instalación, en otro caso la instalación no funcionará. En sistemas Unix puede hacerse fácilmente con «touch conf/ENABLE_INSTALL_TOOL». Después de terminar la instalación elimine el archivo.</p><p>SeedDMS tiene unos requisitos mínimos. Necesitará una base de datos y un servidor web con soporte para php. Para la búsqueda de texto completo lucene, necesitará tener instalado también el framework Zend donde pueda ser utilizado por php. Desde la versión 3.2.0 de SeedDMS ADObd ya no forma parte de la distribución. Consiga una copia de él desde <a href=\"http://adodb.sourceforge.net/\">http://adodb.sourceforge.net</a> e instálelo. La ruta hacia él podrá ser establecida durante la instalación.</p><p> Si prefiere crear la base de datos antes de comenzar la instalación, simplemente créela manualmente con su herramienta preferida, opcionalmente cree un usuario de base de datos con acceso a esta base de datos e importe uno de los volcados del directorio de configuración. El script de instalación puede hacer esto también, pero necesitará acceso con privilegios suficientes para crear bases de datos.</p>";
|
||||
$text["settings_start_install"] = "Comenzar instalación";
|
||||
$text["settings_sortUsersInList"] = "Ordenar los usuarios en la lista";
|
||||
$text["settings_sortUsersInList_desc"] = "Establecer si los menús de selección de usuarios se ordenan por nombre de acceso o por nombre completo";
|
||||
|
@ -465,16 +465,16 @@ $text["settings_contentDir"] = "Directorio de contenidos";
|
|||
$text["settings_contentDir_desc"] = "Donde se almacenan los archivos subidos (es preferible seleccionar un directorio que no sea accesible a través del servidor web)";
|
||||
$text["settings_contentOffsetDir"] = "Directorio de contenidos de desplazamiento";
|
||||
$text["settings_contentOffsetDir_desc"] = "Para tratar las limitaciones del sistema de ficheros subyacente, se ha ideado una estructura de directorios dentro del directorio de contenido. Esto requiere un directorio base desde el que comenzar. Normalmente puede dejar este valor por omisión, 1048576, pero puede ser cualquier número o cadena que no exista ya dentro él (directorio de contenido).";
|
||||
$text["settings_coreDir"] = "Directorio de letoDMS Core";
|
||||
$text["settings_coreDir_desc"] = "Ruta hacia LetoDMS_Core (opcional)";
|
||||
$text["settings_coreDir"] = "Directorio de SeedDMS Core";
|
||||
$text["settings_coreDir_desc"] = "Ruta hacia SeedDMS_Core (opcional)";
|
||||
$text["settings_loginFailure_desc"] = "Deshabilitar cuenta después de n intentos de acceso.";
|
||||
$text["settings_loginFailure"] = "Fallo de acceso";
|
||||
$text["settings_luceneClassDir"] = "Directorio de LetoDMS Lucene";
|
||||
$text["settings_luceneClassDir_desc"] = "Ruta hacia LetoDMS_Lucene (opcional)";
|
||||
$text["settings_luceneClassDir"] = "Directorio de SeedDMS Lucene";
|
||||
$text["settings_luceneClassDir_desc"] = "Ruta hacia SeedDMS_Lucene (opcional)";
|
||||
$text["settings_luceneDir"] = "Directorio índice de Lucene";
|
||||
$text["settings_luceneDir_desc"] = "Ruta hacia el índice Lucene";
|
||||
$text["settings_cannot_disable"] = "No es posible eliminar el archivo ENABLE_INSTALL_TOOL";
|
||||
$text["settings_install_disabled"] = "El archivo ENABLE_INSTALL_TOOL ha sido eliminado. Ahora puede conectarse a LetoDMS y seguir con la configuración.";
|
||||
$text["settings_install_disabled"] = "El archivo ENABLE_INSTALL_TOOL ha sido eliminado. Ahora puede conectarse a SeedDMS y seguir con la configuración.";
|
||||
$text["settings_createdatabase"] = "Crear tablas de base de datos";
|
||||
$text["settings_createdirectory"] = "Crear directorio";
|
||||
$text["settings_currentvalue"] = "Valor actual";
|
||||
|
@ -490,7 +490,7 @@ $text["settings_dbPass"] = "Contraseña";
|
|||
$text["settings_dbUser_desc"] = "Nombre de usuario de acceso a su base de datos introducido durante el proceso de instalación. No edite este campo a menos que sea necesario, por ejemplo si la base de datos se transfiere a un nuevo servidor.";
|
||||
$text["settings_dbUser"] = "Nombre de usuario";
|
||||
$text["settings_dbVersion"] = "Esquema de base de datos demasiado antiguo";
|
||||
$text["settings_delete_install_folder"] = "Para utilizar LetoDMS, debe eliminar el archivo ENABLE_INSTALL_TOOL del directorio de configuración";
|
||||
$text["settings_delete_install_folder"] = "Para utilizar SeedDMS, debe eliminar el archivo ENABLE_INSTALL_TOOL del directorio de configuración";
|
||||
$text["settings_disable_install"] = "Eliminar el archivo ENABLE_INSTALL_TOOL se es posible";
|
||||
$text["settings_disableSelfEdit_desc"] = "Si está seleccionado el usuario no podrá editar su propio perfil";
|
||||
$text["settings_disableSelfEdit"] = "Deshabilitar autoedición";
|
||||
|
@ -540,7 +540,7 @@ $text["settings_footNote_desc"] = "Mensaje para mostrar en la parte inferior de
|
|||
$text["settings_footNote"] = "Nota del pie";
|
||||
$text["settings_guestID_desc"] = "ID del usuario invitado cuando se conecta como invitado (mayormente no necesita cambiarlo)";
|
||||
$text["settings_guestID"] = "ID de invitado";
|
||||
$text["settings_httpRoot_desc"] = "La ruta relativa de la URL, después de la parte del servidor. No incluir el prefijo http:// o el nombre del servidor. Por ejemplo, si la URL completa es http://www.example.com/letodms/, configure «/letodms/». Si la URL completa es http://www.example.com/, configure «/»";
|
||||
$text["settings_httpRoot_desc"] = "La ruta relativa de la URL, después de la parte del servidor. No incluir el prefijo http:// o el nombre del servidor. Por ejemplo, si la URL completa es http://www.example.com/seeddms/, configure «/seeddms/». Si la URL completa es http://www.example.com/, configure «/»";
|
||||
$text["settings_httpRoot"] = "Raíz Http";
|
||||
$text["settings_installADOdb"] = "Instalar ADOdb";
|
||||
$text["settings_install_success"] = "La instalación ha terminado con éxito";
|
||||
|
@ -585,7 +585,7 @@ $text["settings_printDisclaimer_desc"] = "Si es Verdadero el mensaje de renuncia
|
|||
$text["settings_printDisclaimer"] = "Mostrar renuncia";
|
||||
$text["settings_restricted_desc"] = "Solo permitir conectar a usuarios si tienen alguna entrada en la base de datos local (independientemente de la autenticación correcta con LDAP)";
|
||||
$text["settings_restricted"] = "Acceso restringido";
|
||||
$text["settings_rootDir_desc"] = "Ruta hacía la ubicación de letoDMS";
|
||||
$text["settings_rootDir_desc"] = "Ruta hacía la ubicación de SeedDMS";
|
||||
$text["settings_rootDir"] = "Directorio raíz";
|
||||
$text["settings_rootFolderID_desc"] = "ID de la carpeta raíz (normalmente no es necesario cambiar)";
|
||||
$text["settings_rootFolderID"] = "ID de la carpeta raíz";
|
||||
|
@ -594,7 +594,7 @@ $text["settings_Server"] = "Configuración del servidor";
|
|||
$text["settings"] = "Configuración";
|
||||
$text["settings_siteDefaultPage_desc"] = "Página por omisión al conectar. Si está vacío se dirige a out/out.ViewFolder.php";
|
||||
$text["settings_siteDefaultPage"] = "Página por omisión del sitio";
|
||||
$text["settings_siteName_desc"] = "Nombre del sitio usado en los títulos de página. Por omisión: letoDMS";
|
||||
$text["settings_siteName_desc"] = "Nombre del sitio usado en los títulos de página. Por omisión: SeedDMS";
|
||||
$text["settings_siteName"] = "Nombre del sitio";
|
||||
$text["settings_Site"] = "Sitio";
|
||||
$text["settings_smtpPort_desc"] = "Puerto del servidor SMTP, por omisión 25";
|
||||
|
|
|
@ -527,16 +527,16 @@ $text["settings_contentDir"] = "Mapp för innehållet";
|
|||
$text["settings_contentDir_desc"] = "Mappen där alla uppladdade filer kommer att sparas. (Det bästa är att välja en mapp som inte är tillgänglig från webbservern)";
|
||||
$text["settings_contentOffsetDir"] = "Innehåll offset-mapp";
|
||||
$text["settings_contentOffsetDir_desc"] = "För att undvika begränsningar i det underliggande filsystemet har en ny mappstruktur skapats inom innehållsmappen (Content Directory). Detta behöver en bas-mapp att utgå ifrån. Vanligtvis är default-inställningen 1048576 men det kan vara vilket nummer eller vilken sträng som helst som inte redan finns i mappen (Content Directory)";
|
||||
$text["settings_coreDir"] = "LetoDMS_Core-mapp";
|
||||
$text["settings_coreDir_desc"] = "Sökväg till LetoDMS_Core (valfritt)";
|
||||
$text["settings_coreDir"] = "SeedDMS_Core-mapp";
|
||||
$text["settings_coreDir_desc"] = "Sökväg till SeedDMS_Core (valfritt)";
|
||||
$text["settings_loginFailure_desc"] = "Inaktivera kontot efter n antal misslyckade inloggningar.";
|
||||
$text["settings_loginFailure"] = "Fel vid inloggning";
|
||||
$text["settings_luceneClassDir"] = "Lucene LetoDMS-mapp";
|
||||
$text["settings_luceneClassDir_desc"] = "Sökväg till LetoDMS_Lucene (valfritt)";
|
||||
$text["settings_luceneClassDir"] = "Lucene SeedDMS-mapp";
|
||||
$text["settings_luceneClassDir_desc"] = "Sökväg till SeedDMS_Lucene (valfritt)";
|
||||
$text["settings_luceneDir"] = "Lucene index-mapp";
|
||||
$text["settings_luceneDir_desc"] = "Sökväg till Lucene-index";
|
||||
$text["settings_cannot_disable"] = "Filen ENABLE_INSTALL_TOOL kunde inte tas bort";
|
||||
$text["settings_install_disabled"] = "Filen ENABLE_INSTALL_TOOL har tagits bort. Du kan nu logga in till LetoDMS och göra ytterligare inställningar.";
|
||||
$text["settings_install_disabled"] = "Filen ENABLE_INSTALL_TOOL har tagits bort. Du kan nu logga in till SeedDMS och göra ytterligare inställningar.";
|
||||
$text["settings_createdatabase"] = "Skapa databastabeller";
|
||||
$text["settings_createdirectory"] = "Skapa katalog";
|
||||
$text["settings_currentvalue"] = "Aktuellt värde";
|
||||
|
@ -552,7 +552,7 @@ $text["settings_dbPass"] = "Lösenord";
|
|||
$text["settings_dbUser_desc"] = "Användarnamnet för tillgång till databasen. Användarnamnet angavs under installationsprocessen.";
|
||||
$text["settings_dbUser"] = "Användarnamn";
|
||||
$text["settings_dbVersion"] = "Databasschemat för gammalt";
|
||||
$text["settings_delete_install_folder"] = "För att kunna använda LetoDMS måste du ta bort filen ENABLE_INSTALL_TOOL som finns i konfigurationsmappen.";
|
||||
$text["settings_delete_install_folder"] = "För att kunna använda SeedDMS måste du ta bort filen ENABLE_INSTALL_TOOL som finns i konfigurationsmappen.";
|
||||
$text["settings_disable_install"] = "Ta bort filen ENABLE_INSTALL_TOOL, om det är möjligt.";
|
||||
$text["settings_disableSelfEdit_desc"] = "Om utvald, kan användare inte ändra sin egen profil.";
|
||||
$text["settings_disableSelfEdit"] = "Inaktivera själveditering";
|
||||
|
|
|
@ -218,8 +218,8 @@ for ($file_num=0;$file_num<count($_FILES["userfile"]["tmp_name"]);$file_num++){
|
|||
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("error_occured"));
|
||||
} else {
|
||||
$document = $res[0];
|
||||
if(isset($GLOBALS['LETODMS_HOOKS']['postAddDocument'])) {
|
||||
foreach($GLOBALS['LETODMS_HOOKS']['postAddDocument'] as $hookObj) {
|
||||
if(isset($GLOBALS['SEEDDMS_HOOKS']['postAddDocument'])) {
|
||||
foreach($GLOBALS['SEEDDMS_HOOKS']['postAddDocument'] as $hookObj) {
|
||||
if (method_exists($hookObj, 'postAddDocument')) {
|
||||
$hookObj->postAddDocument($document);
|
||||
}
|
||||
|
@ -229,12 +229,12 @@ for ($file_num=0;$file_num<count($_FILES["userfile"]["tmp_name"]);$file_num++){
|
|||
if(!empty($settings->_luceneClassDir))
|
||||
require_once($settings->_luceneClassDir.'/Lucene.php');
|
||||
else
|
||||
require_once('LetoDMS/Lucene.php');
|
||||
require_once('SeedDMS/Lucene.php');
|
||||
|
||||
$index = LetoDMS_Lucene_Indexer::open($settings->_luceneDir);
|
||||
$index = SeedDMS_Lucene_Indexer::open($settings->_luceneDir);
|
||||
if($index) {
|
||||
LetoDMS_Lucene_Indexer::init($settings->_stopWordsFile);
|
||||
$index->addDocument(new LetoDMS_Lucene_IndexedDocument($dms, $document, isset($settings->_convcmd) ? $settings->_convcmd : null, true));
|
||||
SeedDMS_Lucene_Indexer::init($settings->_stopWordsFile);
|
||||
$index->addDocument(new SeedDMS_Lucene_IndexedDocument($dms, $document, isset($settings->_convcmd) ? $settings->_convcmd : null, true));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -185,8 +185,8 @@ if( move_uploaded_file( $source_file_path, $target_file_path ) ) {
|
|||
echo getMLText("error_occured");
|
||||
} else {
|
||||
$document = $res[0];
|
||||
if(isset($GLOBALS['LETODMS_HOOKS']['postAddDocument'])) {
|
||||
foreach($GLOBALS['LETODMS_HOOKS']['postAddDocument'] as $hookObj) {
|
||||
if(isset($GLOBALS['SEEDDMS_HOOKS']['postAddDocument'])) {
|
||||
foreach($GLOBALS['SEEDDMS_HOOKS']['postAddDocument'] as $hookObj) {
|
||||
if (method_exists($hookObj, 'postAddDocument')) {
|
||||
$hookObj->postAddDocument($document);
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ include("../inc/inc.ClassPasswordHistoryManager.php");
|
|||
/* Load session */
|
||||
if (isset($_COOKIE["mydms_session"])) {
|
||||
$dms_session = $_COOKIE["mydms_session"];
|
||||
$session = new LetoDMS_Session($db);
|
||||
$session = new SeedDMS_Session($db);
|
||||
if(!$resArr = $session->load($dms_session)) {
|
||||
echo json_encode(array('error'=>1));
|
||||
exit;
|
||||
|
|
|
@ -62,7 +62,7 @@ foreach ($tables as $table){
|
|||
|
||||
fclose($h);
|
||||
|
||||
if (LetoDMS_Core_File::gzcompressfile($dump_name,9)) unlink($dump_name);
|
||||
if (SeedDMS_Core_File::gzcompressfile($dump_name,9)) unlink($dump_name);
|
||||
else UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
|
||||
|
||||
add_log_line();
|
||||
|
|
|
@ -183,7 +183,7 @@ if (!createFolderTar($folder,$ark)) {
|
|||
TarAddFooter($ark);
|
||||
fclose($ark);
|
||||
|
||||
if (LetoDMS_Core_File::gzcompressfile($ark_name,9)) unlink($ark_name);
|
||||
if (SeedDMS_Core_File::gzcompressfile($ark_name,9)) unlink($ark_name);
|
||||
else UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
|
||||
|
||||
add_log_line();
|
||||
|
|
|
@ -71,7 +71,7 @@ $resArr = $db->getResultArray($searchQuery);
|
|||
if (!is_bool($resArr) && count($resArr)>0) {
|
||||
echo "<ol>";
|
||||
foreach($resArr as $docArr) {
|
||||
$doc = new LetoDMS_Core_Document($docArr["id"],
|
||||
$doc = new SeedDMS_Core_Document($docArr["id"],
|
||||
$docArr["name"],
|
||||
$docArr["comment"],
|
||||
$docArr["date"],
|
||||
|
|
|
@ -54,7 +54,7 @@ if (isset($_POST["pwd"]) && ($_POST["pwd"] != "")) {
|
|||
$score = $ps->get_score();
|
||||
if($score > $settings->_passwordStrength) {
|
||||
if($settings->_passwordHistory > 0) {
|
||||
$phm = new LetoDMS_PasswordHistoryManager($db);
|
||||
$phm = new SeedDMS_PasswordHistoryManager($db);
|
||||
$oldpwd = $phm->search($user, md5($_POST["pwd"]));
|
||||
if($oldpwd) {
|
||||
UI::exitError(getMLText("set_password"),getMLText("password_already_used"));
|
||||
|
@ -69,7 +69,7 @@ if (isset($_POST["pwd"]) && ($_POST["pwd"] != "")) {
|
|||
}
|
||||
} else {
|
||||
if($settings->_passwordHistory > 0) {
|
||||
$phm = new LetoDMS_PasswordHistoryManager($db);
|
||||
$phm = new SeedDMS_PasswordHistoryManager($db);
|
||||
$oldpwd = $phm->search($user, md5($_POST["pwd"]));
|
||||
if($oldpwd) {
|
||||
UI::exitError(getMLText("set_password"),getMLText("password_already_used"));
|
||||
|
|
|
@ -239,7 +239,7 @@ else {
|
|||
}
|
||||
}
|
||||
|
||||
$session = new LetoDMS_Session($db);
|
||||
$session = new SeedDMS_Session($db);
|
||||
|
||||
// Delete all sessions that are more than 24 hours old. Probably not the most
|
||||
// reliable place to put this check -- move to inc.Authentication.php?
|
||||
|
|
|
@ -27,7 +27,7 @@ include("../inc/inc.DBInit.php");
|
|||
|
||||
$dms_session = $_COOKIE["mydms_session"];
|
||||
|
||||
$session = new LetoDMS_Session($db);
|
||||
$session = new SeedDMS_Session($db);
|
||||
$session->load($dms_session);
|
||||
|
||||
// If setting the user id to 0 worked, it would be a way to logout a
|
||||
|
|
|
@ -37,7 +37,7 @@ function add_folder_notify($folder,$userid,$recursefolder,$recursedoc) {
|
|||
// include all folder's document
|
||||
|
||||
$documents = $folder->getDocuments();
|
||||
$documents = LetoDMS_Core_DMS::filterAccess($documents, $dms->getUser($userid), M_READ);
|
||||
$documents = SeedDMS_Core_DMS::filterAccess($documents, $dms->getUser($userid), M_READ);
|
||||
|
||||
foreach($documents as $document)
|
||||
$document->addNotify($userid, true);
|
||||
|
@ -48,7 +48,7 @@ function add_folder_notify($folder,$userid,$recursefolder,$recursedoc) {
|
|||
// recurse all folder's folders
|
||||
|
||||
$subFolders = $folder->getSubFolders();
|
||||
$subFolders = LetoDMS_Core_DMS::filterAccess($subFolders, $dms->getUser($userid), M_READ);
|
||||
$subFolders = SeedDMS_Core_DMS::filterAccess($subFolders, $dms->getUser($userid), M_READ);
|
||||
|
||||
foreach($subFolders as $subFolder)
|
||||
add_folder_notify($subFolder,$userid,$recursefolder,$recursedoc);
|
||||
|
|
|
@ -54,7 +54,7 @@ if (empty($email) || empty($login)) {
|
|||
$user = $dms->getUserByLogin($login, $email);
|
||||
if($user) {
|
||||
if($hash = $dms->createPasswordRequest($user)) {
|
||||
$emailobj = new LetoDMS_Email();
|
||||
$emailobj = new SeedDMS_Email();
|
||||
$subject = "###SITENAME###: ".getMLText("password_forgotten_email_subject");
|
||||
$message = str_replace('###HASH###', $hash, getMLText("password_forgotten_email_body"));
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ include("../inc/inc.Authentication.php");
|
|||
/**
|
||||
* Include class to preview documents
|
||||
*/
|
||||
require_once("LetoDMS/Preview.php");
|
||||
require_once("SeedDMS/Preview.php");
|
||||
|
||||
$documentid = $_GET["documentid"];
|
||||
if (!isset($documentid) || !is_numeric($documentid) || intval($documentid)<1) {
|
||||
|
@ -56,7 +56,7 @@ if (!is_object($content)) {
|
|||
exit;
|
||||
}
|
||||
|
||||
$previewer = new LetoDMS_Preview_Previewer($settings->_cacheDir, $_GET["width"]);
|
||||
$previewer = new SeedDMS_Preview_Previewer($settings->_cacheDir, $_GET["width"]);
|
||||
header('Content-Type: image/png');
|
||||
$previewer->getPreview($content);
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ if (!isset($_POST["arkname"]) || !file_exists($settings->_contentDir.$_POST["ark
|
|||
UI::exitError(getMLText("admin_tools"),getMLText("unknown_id"));
|
||||
}
|
||||
|
||||
if (!LetoDMS_Core_File::removeFile($settings->_contentDir.$_POST["arkname"])) {
|
||||
if (!SeedDMS_Core_File::removeFile($settings->_contentDir.$_POST["arkname"])) {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
|
||||
}
|
||||
|
||||
|
|
|
@ -57,9 +57,9 @@ if (!$document->remove()) {
|
|||
if(!empty($settings->_luceneClassDir))
|
||||
require_once($settings->_luceneClassDir.'/Lucene.php');
|
||||
else
|
||||
require_once('LetoDMS/Lucene.php');
|
||||
require_once('SeedDMS/Lucene.php');
|
||||
|
||||
$index = LetoDMS_Lucene_Indexer::open($settings->_luceneDir);
|
||||
$index = SeedDMS_Lucene_Indexer::open($settings->_luceneDir);
|
||||
if($index && $hits = $index->find('document_id:'.$documentid)) {
|
||||
$hit = $hits[0];
|
||||
$index->delete($hit->id);
|
||||
|
|
|
@ -36,7 +36,7 @@ if (!isset($_POST["dumpname"]) || !file_exists($settings->_contentDir.$_POST["du
|
|||
UI::exitError(getMLText("admin_tools"),getMLText("unknown_id"));
|
||||
}
|
||||
|
||||
if (!LetoDMS_Core_File::removeFile($settings->_contentDir.$_POST["dumpname"])) {
|
||||
if (!SeedDMS_Core_File::removeFile($settings->_contentDir.$_POST["dumpname"])) {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
|
||||
}
|
||||
|
||||
|
|
|
@ -57,9 +57,9 @@ if($settings->_enableFullSearch) {
|
|||
if(!empty($settings->_luceneClassDir))
|
||||
require_once($settings->_luceneClassDir.'/Lucene.php');
|
||||
else
|
||||
require_once('LetoDMS/Lucene.php');
|
||||
require_once('SeedDMS/Lucene.php');
|
||||
|
||||
$index = LetoDMS_Lucene_Indexer::open($settings->_luceneDir);
|
||||
$index = SeedDMS_Lucene_Indexer::open($settings->_luceneDir);
|
||||
function removeFromIndex($index, $document) {
|
||||
if($hits = $index->find('document_id:'.$document->getId())) {
|
||||
$hit = $hits[0];
|
||||
|
|
|
@ -38,7 +38,7 @@ function removeFolderFiles($folder) {
|
|||
|
||||
$documents = $folder->getDocuments();
|
||||
foreach ($documents as $document)
|
||||
LetoDMS_Core_File::removeDir($dms->contentDir . $document->getDir());
|
||||
SeedDMS_Core_File::removeDir($dms->contentDir . $document->getDir());
|
||||
|
||||
$subFolders = $folder->getSubFolders();
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ if (@readlink($settings->_contentDir."current.log")==$settings->_contentDir.$_PO
|
|||
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
|
||||
}
|
||||
|
||||
if (!LetoDMS_Core_File::removeFile($settings->_contentDir.$_POST["logname"])) {
|
||||
if (!SeedDMS_Core_File::removeFile($settings->_contentDir.$_POST["logname"])) {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ include("../inc/inc.Authentication.php");
|
|||
/**
|
||||
* Include class to preview documents
|
||||
*/
|
||||
require_once("LetoDMS/Preview.php");
|
||||
require_once("SeedDMS/Preview.php");
|
||||
|
||||
// Redirect to the search page if the navigation search button has been
|
||||
// selected without supplying any search terms.
|
||||
|
@ -262,10 +262,10 @@ if($resArr['docs']) {
|
|||
|
||||
if(count($entries) == 1) {
|
||||
$entry = $entries[0];
|
||||
if(get_class($entry) == 'LetoDMS_Core_Document') {
|
||||
if(get_class($entry) == 'SeedDMS_Core_Document') {
|
||||
header('Location: ../out/out.ViewDocument.php?documentid='.$entry->getID());
|
||||
exit;
|
||||
} elseif(get_class($entry) == 'LetoDMS_Core_Folder') {
|
||||
} elseif(get_class($entry) == 'SeedDMS_Core_Folder') {
|
||||
header('Location: ../out/out.ViewFolder.php?folderid='.$entry->getID());
|
||||
exit;
|
||||
}
|
||||
|
|
|
@ -112,12 +112,12 @@ if($settings->_enableFullSearch) {
|
|||
if(!empty($settings->_luceneClassDir))
|
||||
require_once($settings->_luceneClassDir.'/Lucene.php');
|
||||
else
|
||||
require_once('LetoDMS/Lucene.php');
|
||||
require_once('SeedDMS/Lucene.php');
|
||||
}
|
||||
|
||||
Zend_Search_Lucene_Search_QueryParser::setDefaultEncoding('utf-8');
|
||||
$index = Zend_Search_Lucene::open($settings->_luceneDir);
|
||||
$lucenesearch = new LetoDMS_Lucene_Search($index);
|
||||
$lucenesearch = new SeedDMS_Lucene_Search($index);
|
||||
$hits = $lucenesearch->search($query, $owner ? $owner->getLogin() : '', '', $categories);
|
||||
$totalDocs = count($hits);
|
||||
$limit = 20;
|
||||
|
|
|
@ -82,7 +82,7 @@ if ($_FILES['userfile']['error'] == 0) {
|
|||
|
||||
/* Check if the uploaded file is identical to last version */
|
||||
$lc = $document->getLatestContent();
|
||||
if($lc->getChecksum() == LetoDMS_Core_File::checksum($userfiletmp)) {
|
||||
if($lc->getChecksum() == SeedDMS_Core_File::checksum($userfiletmp)) {
|
||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("identical_version"));
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ if ($folder->getAccessMode($user) < M_READWRITE) {
|
|||
|
||||
$remain = checkQuota();
|
||||
if ($remain < 0) {
|
||||
UI::exitError(getMLText("folder_title", array("foldername" => htmlspecialchars($folder->getName()))),getMLText("quota_exceeded", array('bytes'=>LetoDMS_Core_File::format_filesize(abs($remain)))));
|
||||
UI::exitError(getMLText("folder_title", array("foldername" => htmlspecialchars($folder->getName()))),getMLText("quota_exceeded", array('bytes'=>SeedDMS_Core_File::format_filesize(abs($remain)))));
|
||||
}
|
||||
|
||||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||
|
|
|
@ -28,7 +28,7 @@ include("../inc/inc.Authentication.php");
|
|||
/**
|
||||
* Include class to preview documents
|
||||
*/
|
||||
require_once("LetoDMS/Preview.php");
|
||||
require_once("SeedDMS/Preview.php");
|
||||
|
||||
if (!isset($_GET["documentid"]) || !is_numeric($_GET["documentid"]) || intval($_GET["documentid"])<1) {
|
||||
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
|
||||
|
|
|
@ -41,7 +41,7 @@ if (!is_object($version)) {
|
|||
}
|
||||
|
||||
$folder = $document->getFolder();
|
||||
$attrdefs = $dms->getAllAttributeDefinitions(array(LetoDMS_Core_AttributeDefinition::objtype_documentcontent, LetoDMS_Core_AttributeDefinition::objtype_all));
|
||||
$attrdefs = $dms->getAllAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_documentcontent, SeedDMS_Core_AttributeDefinition::objtype_all));
|
||||
|
||||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'folder'=>$folder, 'document'=>$document, 'version'=>$version, 'attrdefs'=>$attrdefs));
|
||||
|
|
|
@ -38,7 +38,7 @@ if ($document->getAccessMode($user) < M_READWRITE) {
|
|||
}
|
||||
|
||||
$folder = $document->getFolder();
|
||||
$attrdefs = $dms->getAllAttributeDefinitions(array(LetoDMS_Core_AttributeDefinition::objtype_document, LetoDMS_Core_AttributeDefinition::objtype_all));
|
||||
$attrdefs = $dms->getAllAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_document, SeedDMS_Core_AttributeDefinition::objtype_all));
|
||||
|
||||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'folder'=>$folder, 'document'=>$document, 'attrdefs'=>$attrdefs, 'strictformcheck'=>$settings->_strictFormCheck));
|
||||
|
|
|
@ -37,7 +37,7 @@ if ($folder->getAccessMode($user) < M_READWRITE) {
|
|||
UI::exitError(getMLText("folder_title", array("foldername" => htmlspecialchars($folder->getName()))),getMLText("access_denied"));
|
||||
}
|
||||
|
||||
$attrdefs = $dms->getAllAttributeDefinitions(array(LetoDMS_Core_AttributeDefinition::objtype_folder, LetoDMS_Core_AttributeDefinition::objtype_all));
|
||||
$attrdefs = $dms->getAllAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_folder, SeedDMS_Core_AttributeDefinition::objtype_all));
|
||||
|
||||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'folder'=>$folder, 'attrdefs'=>$attrdefs, 'strictformcheck'=>$settings->_strictFormCheck, 'rootfolderid'=>$settings->_rootFolderID));
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* Do authentication of users and session management
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
||||
|
|
|
@ -37,9 +37,9 @@ if(!$settings->_enableFullSearch) {
|
|||
if(!empty($settings->_luceneClassDir))
|
||||
require_once($settings->_luceneClassDir.'/Lucene.php');
|
||||
else
|
||||
require_once('LetoDMS/Lucene.php');
|
||||
require_once('SeedDMS/Lucene.php');
|
||||
|
||||
$index = LetoDMS_Lucene_Indexer::open($settings->_luceneDir);
|
||||
$index = SeedDMS_Lucene_Indexer::open($settings->_luceneDir);
|
||||
if(!$index) {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("no_fulltextindex"));
|
||||
}
|
||||
|
|
|
@ -38,23 +38,23 @@ if(!$settings->_enableFullSearch) {
|
|||
if(!empty($settings->_luceneClassDir))
|
||||
require_once($settings->_luceneClassDir.'/Lucene.php');
|
||||
else
|
||||
require_once('LetoDMS/Lucene.php');
|
||||
require_once('SeedDMS/Lucene.php');
|
||||
|
||||
if(isset($_GET['create']) && $_GET['create'] == 1) {
|
||||
if(isset($_GET['confirm']) && $_GET['confirm'] == 1) {
|
||||
$index = LetoDMS_Lucene_Indexer::create($settings->_luceneDir);
|
||||
LetoDMS_Lucene_Indexer::init($settings->_stopWordsFile);
|
||||
$index = SeedDMS_Lucene_Indexer::create($settings->_luceneDir);
|
||||
SeedDMS_Lucene_Indexer::init($settings->_stopWordsFile);
|
||||
} else {
|
||||
header('Location: out.CreateIndex.php');
|
||||
exit;
|
||||
}
|
||||
} else {
|
||||
$index = LetoDMS_Lucene_Indexer::open($settings->_luceneDir);
|
||||
$index = SeedDMS_Lucene_Indexer::open($settings->_luceneDir);
|
||||
if(!$index) {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("no_fulltextindex"));
|
||||
}
|
||||
echo "<p>Updating index</p>";
|
||||
LetoDMS_Lucene_Indexer::init($settings->_stopWordsFile);
|
||||
SeedDMS_Lucene_Indexer::init($settings->_stopWordsFile);
|
||||
}
|
||||
|
||||
$folder = $dms->getFolder($settings->_rootFolderID);
|
||||
|
|
|
@ -29,7 +29,7 @@ if (!$user->isAdmin()) {
|
|||
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
|
||||
}
|
||||
|
||||
$v = new LetoDMS_Version;
|
||||
$v = new SeedDMS_Version;
|
||||
|
||||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'version'=>$v));
|
||||
|
|
|
@ -27,7 +27,7 @@ include("../inc/inc.Authentication.php");
|
|||
/**
|
||||
* Include class to preview documents
|
||||
*/
|
||||
require_once("LetoDMS/Preview.php");
|
||||
require_once("SeedDMS/Preview.php");
|
||||
|
||||
if ($user->isGuest()) {
|
||||
UI::exitError(getMLText("my_documents"),getMLText("access_denied"));
|
||||
|
|
|
@ -37,7 +37,7 @@ if (!is_object($folder)) {
|
|||
UI::exitError(getMLText("search"),getMLText("invalid_folder_id"));
|
||||
}
|
||||
|
||||
$attrdefs = $dms->getAllAttributeDefinitions(array(LetoDMS_Core_AttributeDefinition::objtype_document, LetoDMS_Core_AttributeDefinition::objtype_documentcontent/*, LetoDMS_Core_AttributeDefinition::objtype_all*/));
|
||||
$attrdefs = $dms->getAllAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_document, SeedDMS_Core_AttributeDefinition::objtype_documentcontent/*, SeedDMS_Core_AttributeDefinition::objtype_all*/));
|
||||
$allCats = $dms->getDocumentCategories();
|
||||
$allUsers = $dms->getAllUsers($settings->_sortUsersInList);
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ if ($document->getAccessMode($user) < M_READWRITE) {
|
|||
|
||||
$remain = checkQuota();
|
||||
if ($remain < 0) {
|
||||
UI::exitError(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))),getMLText("quota_exceeded", array('bytes'=>LetoDMS_Core_File::format_filesize(abs($remain)))));
|
||||
UI::exitError(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))),getMLText("quota_exceeded", array('bytes'=>SeedDMS_Core_File::format_filesize(abs($remain)))));
|
||||
}
|
||||
|
||||
$folder = $document->getFolder();
|
||||
|
|
|
@ -30,7 +30,7 @@ include("../inc/inc.Authentication.php");
|
|||
/**
|
||||
* Include class to preview documents
|
||||
*/
|
||||
require_once("LetoDMS/Preview.php");
|
||||
require_once("SeedDMS/Preview.php");
|
||||
|
||||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||
$view = UI::factory($theme, $tmp[1]);
|
||||
|
@ -61,7 +61,7 @@ if ($document->verifyLastestContentExpriry()){
|
|||
}
|
||||
|
||||
/* Create object for checking access to certain operations */
|
||||
$accessop = new LetoDMS_AccessOperation($document, $user, $settings);
|
||||
$accessop = new SeedDMS_AccessOperation($document, $user, $settings);
|
||||
|
||||
if($view) {
|
||||
$view->setParam('dms', $dms);
|
||||
|
|
|
@ -28,7 +28,7 @@ include("../inc/inc.ClassUI.php");
|
|||
/**
|
||||
* Include class to preview documents
|
||||
*/
|
||||
require_once("LetoDMS/Preview.php");
|
||||
require_once("SeedDMS/Preview.php");
|
||||
|
||||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user