mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
- rename all classes belonging to the core of LetoDMS into LetoDMS_Core_xxx
- move them all into LetoDMS_Core
This commit is contained in:
parent
a2f832aa72
commit
8a84bc3b51
|
@ -1,3 +1,10 @@
|
|||
--------------------------------------------------------------------------------
|
||||
Changes in version 3.0.0
|
||||
--------------------------------------------------------------------------------
|
||||
Major reorganisation of code
|
||||
|
||||
Split LetoDMS into a core module, webdav server, and the known web application
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Changes in version 2.0.1
|
||||
--------------------------------------------------------------------------------
|
||||
|
|
|
@ -19,56 +19,56 @@
|
|||
/**
|
||||
* @uses LetoDMS_DatabaseAccess
|
||||
*/
|
||||
require_once('inc/inc.DBAccess.php');
|
||||
require_once('LetoDMS_Core/inc.DBAccess.php');
|
||||
|
||||
/**
|
||||
* @uses LetoDMS_DMS
|
||||
*/
|
||||
require_once('inc/inc.ClassDMS.php');
|
||||
require_once('LetoDMS_Core/inc.ClassDMS.php');
|
||||
|
||||
/**
|
||||
* @uses LetoDMS_Folder
|
||||
*/
|
||||
require_once('inc/inc.ClassFolder.php');
|
||||
require_once('LetoDMS_Core/inc.ClassFolder.php');
|
||||
|
||||
/**
|
||||
* @uses LetoDMS_Document
|
||||
*/
|
||||
require_once('inc/inc.ClassDocument.php');
|
||||
require_once('LetoDMS_Core/inc.ClassDocument.php');
|
||||
|
||||
/**
|
||||
* @uses LetoDMS_Group
|
||||
*/
|
||||
require_once('inc/inc.ClassGroup.php');
|
||||
require_once('LetoDMS_Core/inc.ClassGroup.php');
|
||||
|
||||
/**
|
||||
* @uses LetoDMS_User
|
||||
*/
|
||||
require_once('inc/inc.ClassUser.php');
|
||||
require_once('LetoDMS_Core/inc.ClassUser.php');
|
||||
|
||||
/**
|
||||
* @uses LetoDMS_KeywordCategory
|
||||
*/
|
||||
require_once('inc/inc.ClassKeywords.php');
|
||||
require_once('LetoDMS_Core/inc.ClassKeywords.php');
|
||||
|
||||
/**
|
||||
* @uses LetoDMS_Notification
|
||||
*/
|
||||
require_once('inc/inc.ClassNotification.php');
|
||||
require_once('LetoDMS_Core/inc.ClassNotification.php');
|
||||
|
||||
/**
|
||||
* @uses LetoDMS_UserAccess
|
||||
* @uses LetoDMS_GroupAccess
|
||||
*/
|
||||
require_once('inc/inc.ClassAccess.php');
|
||||
require_once('LetoDMS_Core/inc.ClassAccess.php');
|
||||
|
||||
/**
|
||||
*/
|
||||
require_once('inc/inc.AccessUtils.php');
|
||||
require_once('LetoDMS_Core/inc.AccessUtils.php');
|
||||
|
||||
/**
|
||||
* @uses LetoDMS_File
|
||||
*/
|
||||
require_once('inc/inc.FileUtils.php');
|
||||
require_once('LetoDMS_Core/inc.FileUtils.php');
|
||||
|
||||
?>
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
/**
|
||||
* Used to indicate that a search should return all
|
||||
* results in the ACL table. See {@link LetoDMS_Folder::getAccessList()}
|
||||
* results in the ACL table. See {@link LetoDMS_Core_Folder::getAccessList()}
|
||||
*/
|
||||
define("M_ANY", -1);
|
||||
|
|
@ -23,11 +23,11 @@
|
|||
* 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_UserAccess { /* {{{ */
|
||||
class LetoDMS_Core_UserAccess { /* {{{ */
|
||||
var $_user;
|
||||
var $_mode;
|
||||
|
||||
function LetoDMS_UserAccess($user, $mode) {
|
||||
function LetoDMS_Core_UserAccess($user, $mode) {
|
||||
$this->_user = $user;
|
||||
$this->_mode = $mode;
|
||||
}
|
||||
|
@ -52,11 +52,11 @@ class LetoDMS_UserAccess { /* {{{ */
|
|||
* @copyright Copyright (C) 2002-2005 Markus Westphal, 2006-2008 Malcolm Cowe, 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_GroupAccess { /* {{{ */
|
||||
class LetoDMS_Core_GroupAccess { /* {{{ */
|
||||
var $_group;
|
||||
var $_mode;
|
||||
|
||||
function LetoDMS_GroupAccess($group, $mode) {
|
||||
function LetoDMS_Core_GroupAccess($group, $mode) {
|
||||
$this->_group = $group;
|
||||
$this->_mode = $mode;
|
||||
}
|
|
@ -28,7 +28,7 @@ require_once("inc.ClassNotification.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_DatabaseAccess} to access the
|
||||
* an instance of {@link LetoDMS_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.
|
||||
|
@ -39,12 +39,12 @@ require_once("inc.ClassNotification.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_Folder::getAccessMode} and
|
||||
* {@link LetoDMS_Document::getAccessMode} and interpret them as desired.
|
||||
* {@link LetoDMS_Core_Folder::getAccessMode} and
|
||||
* {@link LetoDMS_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_DMS::filterAccess}
|
||||
* and {@link LetoDMS_DMS::filterUsersByAccess}
|
||||
* {@link LetoDMS_Core_DMS::filterAccess}
|
||||
* and {@link LetoDMS_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
|
||||
|
@ -54,9 +54,9 @@ require_once("inc.ClassNotification.php");
|
|||
* <code>
|
||||
* <?php
|
||||
* include("inc/inc.ClassDMS.php");
|
||||
* $db = new LetoDMS_DatabaseAccess($type, $hostname, $user, $passwd, $name);
|
||||
* $db = new LetoDMS_Core_DatabaseAccess($type, $hostname, $user, $passwd, $name);
|
||||
* $db->connect() or die ("Could not connect to db-server");
|
||||
* $dms = new LetoDMS_DMS($db, $contentDir);
|
||||
* $dms = new LetoDMS_Core_DMS($db, $contentDir);
|
||||
* $dms->setRootFolderID(1);
|
||||
* ...
|
||||
* ?>
|
||||
|
@ -69,17 +69,17 @@ require_once("inc.ClassNotification.php");
|
|||
* @copyright Copyright (C) 2010, Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_DMS {
|
||||
class LetoDMS_Core_DMS {
|
||||
/**
|
||||
* @var object $db reference to database object. This must be an instance
|
||||
* of {@link LetoDMS_DatabaseAccess}.
|
||||
* of {@link LetoDMS_Core_DatabaseAccess}.
|
||||
* @access protected
|
||||
*/
|
||||
protected $db;
|
||||
|
||||
/**
|
||||
* @var object $user reference to currently logged in user. This must be
|
||||
* an instance of {@link LetoDMS_User}. This variable is currently not
|
||||
* an instance of {@link LetoDMS_Core_User}. This variable is currently not
|
||||
* used. It is set by {@link setUser}.
|
||||
* @access private
|
||||
*/
|
||||
|
@ -162,7 +162,7 @@ class LetoDMS_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 LetoDMS_DMS
|
||||
* @return object instance of LetoDMS_Core_DMS
|
||||
*/
|
||||
function __construct($db, $contentDir) { /* {{{ */
|
||||
$this->db = $db;
|
||||
|
@ -183,7 +183,7 @@ class LetoDMS_DMS {
|
|||
/**
|
||||
* Set id of root folder
|
||||
* This function must be called right after creating an instance of
|
||||
* LetoDMS_DMS
|
||||
* LetoDMS_Core_DMS
|
||||
*
|
||||
* @param interger $id id of root folder
|
||||
*/
|
||||
|
@ -228,7 +228,7 @@ class LetoDMS_DMS {
|
|||
* @param string $username login name of user
|
||||
* @param string $password password of user
|
||||
*
|
||||
* @return object instance of class LetoDMS_User or false
|
||||
* @return object instance of class LetoDMS_Core_User or false
|
||||
*/
|
||||
function login($username, $password) { /* {{{ */
|
||||
} /* }}} */
|
||||
|
@ -252,7 +252,7 @@ class LetoDMS_DMS {
|
|||
* This function retrieves a document from the database by its id.
|
||||
*
|
||||
* @param integer $id internal id of document
|
||||
* @return object instance of LetoDMS_Document or false
|
||||
* @return object instance of LetoDMS_Core_Document or false
|
||||
*/
|
||||
function getDocument($id) { /* {{{ */
|
||||
if (!is_numeric($id)) return false;
|
||||
|
@ -277,7 +277,7 @@ class LetoDMS_DMS {
|
|||
$lock = $lockArr[0]["userID"];
|
||||
}
|
||||
|
||||
$document = new LetoDMS_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 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->setDMS($this);
|
||||
return $document;
|
||||
} /* }}} */
|
||||
|
@ -300,7 +300,7 @@ class LetoDMS_DMS {
|
|||
|
||||
$documents = array();
|
||||
foreach ($resArr as $row) {
|
||||
$document = new LetoDMS_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 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->setDMS($this);
|
||||
$documents[] = $document;
|
||||
}
|
||||
|
@ -336,7 +336,7 @@ class LetoDMS_DMS {
|
|||
return false;
|
||||
|
||||
$row = $resArr[0];
|
||||
$document = new LetoDMS_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 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->setDMS($this);
|
||||
return $document;
|
||||
} /* }}} */
|
||||
|
@ -499,7 +499,7 @@ class LetoDMS_DMS {
|
|||
|
||||
foreach ($resArr as $docArr) {
|
||||
|
||||
$document = new LetoDMS_Document(
|
||||
$document = new LetoDMS_Core_Document(
|
||||
$docArr["id"], $docArr["name"],
|
||||
$docArr["comment"], $docArr["date"],
|
||||
$docArr["expires"], $docArr["owner"],
|
||||
|
@ -518,7 +518,7 @@ class LetoDMS_DMS {
|
|||
* This function retrieves a folder from the database by its id.
|
||||
*
|
||||
* @param integer $id internal id of folder
|
||||
* @return object instance of LetoDMS_Folder or false
|
||||
* @return object instance of LetoDMS_Core_Folder or false
|
||||
*/
|
||||
function getFolder($id) { /* {{{ */
|
||||
if (!is_numeric($id)) return false;
|
||||
|
@ -532,7 +532,7 @@ class LetoDMS_DMS {
|
|||
return false;
|
||||
|
||||
$resArr = $resArr[0];
|
||||
$folder = new LetoDMS_Folder($resArr["id"], $resArr["name"], $resArr["parent"], $resArr["comment"], $resArr["date"], $resArr["owner"], $resArr["inheritAccess"], $resArr["defaultAccess"], $resArr["sequence"]);
|
||||
$folder = new LetoDMS_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;
|
||||
} /* }}} */
|
||||
|
@ -565,7 +565,7 @@ class LetoDMS_DMS {
|
|||
return false;
|
||||
|
||||
$resArr = $resArr[0];
|
||||
$folder = new LetoDMS_Folder($resArr["id"], $resArr["name"], $resArr["parent"], $resArr["comment"], $resArr["date"], $resArr["owner"], $resArr["inheritAccess"], $resArr["defaultAccess"], $resArr["sequence"]);
|
||||
$folder = new LetoDMS_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;
|
||||
} /* }}} */
|
||||
|
@ -576,7 +576,7 @@ class LetoDMS_DMS {
|
|||
* This function retrieves a user from the database by its id.
|
||||
*
|
||||
* @param integer $id internal id of user
|
||||
* @return object instance of LetoDMS_User or false
|
||||
* @return object instance of LetoDMS_Core_User or false
|
||||
*/
|
||||
function getUser($id) { /* {{{ */
|
||||
if (!is_numeric($id))
|
||||
|
@ -590,7 +590,7 @@ class LetoDMS_DMS {
|
|||
|
||||
$resArr = $resArr[0];
|
||||
|
||||
$user = new LetoDMS_User($resArr["id"], $resArr["login"], $resArr["pwd"], $resArr["fullName"], $resArr["email"], $resArr["language"], $resArr["theme"], $resArr["comment"], $resArr["role"], $resArr["hidden"]);
|
||||
$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"]);
|
||||
$user->setDMS($this);
|
||||
return $user;
|
||||
} /* }}} */
|
||||
|
@ -601,7 +601,7 @@ class LetoDMS_DMS {
|
|||
* This function retrieves a user from the database by its login.
|
||||
*
|
||||
* @param integer $login internal login of user
|
||||
* @return object instance of LetoDMS_User or false
|
||||
* @return object instance of LetoDMS_Core_User or false
|
||||
*/
|
||||
function getUserByLogin($login) { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblUsers WHERE login = '".$login."'";
|
||||
|
@ -612,7 +612,7 @@ class LetoDMS_DMS {
|
|||
|
||||
$resArr = $resArr[0];
|
||||
|
||||
$user = new LetoDMS_User($resArr["id"], $resArr["login"], $resArr["pwd"], $resArr["fullName"], $resArr["email"], $resArr["language"], $resArr["theme"], $resArr["comment"], $resArr["role"], $resArr["hidden"]);
|
||||
$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"]);
|
||||
$user->setDMS($this);
|
||||
return $user;
|
||||
} /* }}} */
|
||||
|
@ -620,7 +620,7 @@ class LetoDMS_DMS {
|
|||
/**
|
||||
* Return list of all users
|
||||
*
|
||||
* @return array of instances of LetoDMS_User or false
|
||||
* @return array of instances of LetoDMS_Core_User or false
|
||||
*/
|
||||
function getAllUsers() { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblUsers ORDER BY login";
|
||||
|
@ -632,7 +632,7 @@ class LetoDMS_DMS {
|
|||
$users = array();
|
||||
|
||||
for ($i = 0; $i < count($resArr); $i++) {
|
||||
$user = new LetoDMS_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"]);
|
||||
$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"]);
|
||||
$user->setDMS($this);
|
||||
$users[$i] = $user;
|
||||
}
|
||||
|
@ -651,7 +651,7 @@ class LetoDMS_DMS {
|
|||
* @param integer $role role of new user (can be 0=normal, 1=admin, 2=guest)
|
||||
* @param integer $isHidden hide user in all lists, if this is set login
|
||||
* is still allowed
|
||||
* @return object of LetoDMS_User
|
||||
* @return object of LetoDMS_Core_User
|
||||
*/
|
||||
function addUser($login, $pwd, $fullName, $email, $language, $theme, $comment, $role=0, $isHidden=0) { /* {{{ */
|
||||
if (is_object($this->getUserByLogin($login))) {
|
||||
|
@ -685,7 +685,7 @@ class LetoDMS_DMS {
|
|||
|
||||
$resArr = $resArr[0];
|
||||
|
||||
$group = new LetoDMS_Group($resArr["id"], $resArr["name"], $resArr["comment"]);
|
||||
$group = new LetoDMS_Core_Group($resArr["id"], $resArr["name"], $resArr["comment"]);
|
||||
$group->setDMS($this);
|
||||
return $group;
|
||||
} /* }}} */
|
||||
|
@ -707,7 +707,7 @@ class LetoDMS_DMS {
|
|||
|
||||
$resArr = $resArr[0];
|
||||
|
||||
$group = new LetoDMS_Group($resArr["id"], $resArr["name"], $resArr["comment"]);
|
||||
$group = new LetoDMS_Core_Group($resArr["id"], $resArr["name"], $resArr["comment"]);
|
||||
$group->setDMS($this);
|
||||
return $group;
|
||||
} /* }}} */
|
||||
|
@ -715,7 +715,7 @@ class LetoDMS_DMS {
|
|||
/**
|
||||
* Get a list of all groups
|
||||
*
|
||||
* @return array array of instances of {@link LetoDMS_Group}
|
||||
* @return array array of instances of {@link LetoDMS_Core_Group}
|
||||
*/
|
||||
function getAllGroups() { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblGroups ORDER BY name";
|
||||
|
@ -728,7 +728,7 @@ class LetoDMS_DMS {
|
|||
|
||||
for ($i = 0; $i < count($resArr); $i++) {
|
||||
|
||||
$group = new LetoDMS_Group($resArr[$i]["id"], $resArr[$i]["name"], $resArr[$i]["comment"]);
|
||||
$group = new LetoDMS_Core_Group($resArr[$i]["id"], $resArr[$i]["name"], $resArr[$i]["comment"]);
|
||||
$group->setDMS($this);
|
||||
$groups[$i] = $group;
|
||||
}
|
||||
|
@ -741,7 +741,7 @@ class LetoDMS_DMS {
|
|||
*
|
||||
* @param string $name name of group
|
||||
* @param string $comment comment of group
|
||||
* @return object/boolean instance of {@link LetoDMS_Group} or false in
|
||||
* @return object/boolean instance of {@link LetoDMS_Core_Group} or false in
|
||||
* case of an error.
|
||||
*/
|
||||
function addGroup($name, $comment) { /* {{{ */
|
||||
|
@ -766,7 +766,7 @@ class LetoDMS_DMS {
|
|||
return false;
|
||||
|
||||
$resArr = $resArr[0];
|
||||
$cat = new LetoDMS_Keywordcategory($resArr["id"], $resArr["owner"], $resArr["name"]);
|
||||
$cat = new LetoDMS_Core_Keywordcategory($resArr["id"], $resArr["owner"], $resArr["name"]);
|
||||
$cat->setDMS($this);
|
||||
return $cat;
|
||||
} /* }}} */
|
||||
|
@ -778,7 +778,7 @@ class LetoDMS_DMS {
|
|||
return false;
|
||||
|
||||
$resArr = $resArr[0];
|
||||
$cat = new LetoDMS_Keywordcategory($resArr["id"], $resArr["owner"], $resArr["name"]);
|
||||
$cat = new LetoDMS_Core_Keywordcategory($resArr["id"], $resArr["owner"], $resArr["name"]);
|
||||
$cat->setDMS($this);
|
||||
return $cat;
|
||||
} /* }}} */
|
||||
|
@ -794,7 +794,7 @@ class LetoDMS_DMS {
|
|||
|
||||
$categories = array();
|
||||
foreach ($resArr as $row) {
|
||||
$cat = new LetoDMS_KeywordCategory($row["id"], $row["owner"], $row["name"]);
|
||||
$cat = new LetoDMS_Core_KeywordCategory($row["id"], $row["owner"], $row["name"]);
|
||||
$cat->setDMS($this);
|
||||
array_push($categories, $cat);
|
||||
}
|
||||
|
@ -813,7 +813,7 @@ class LetoDMS_DMS {
|
|||
|
||||
$categories = array();
|
||||
foreach ($resArr as $row) {
|
||||
$cat = new LetoDMS_KeywordCategory($row["id"], $row["owner"], $row["name"]);
|
||||
$cat = new LetoDMS_Core_KeywordCategory($row["id"], $row["owner"], $row["name"]);
|
||||
$cat->setDMS($this);
|
||||
array_push($categories, $cat);
|
||||
}
|
||||
|
@ -852,7 +852,7 @@ class LetoDMS_DMS {
|
|||
|
||||
$notifications = array();
|
||||
foreach ($resArr as $row) {
|
||||
$not = new LetoDMS_Notification($row["target"], $row["targetType"], $row["userID"], $row["groupID"]);
|
||||
$not = new LetoDMS_Core_Notification($row["target"], $row["targetType"], $row["userID"], $row["groupID"]);
|
||||
$not->setDMS($this);
|
||||
array_push($notifications, $cat);
|
||||
}
|
||||
|
@ -880,7 +880,7 @@ class LetoDMS_DMS {
|
|||
|
||||
$notifications = array();
|
||||
foreach ($resArr as $row) {
|
||||
$not = new LetoDMS_Notification($row["target"], $row["targetType"], $row["userID"], $row["groupID"]);
|
||||
$not = new LetoDMS_Core_Notification($row["target"], $row["targetType"], $row["userID"], $row["groupID"]);
|
||||
$not->setDMS($this);
|
||||
array_push($notifications, $cat);
|
||||
}
|
|
@ -33,7 +33,7 @@ define("S_EXPIRED", -3);
|
|||
* 2010 Matteo Lucarelli, 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Document { /* {{{ */
|
||||
class LetoDMS_Core_Document { /* {{{ */
|
||||
/**
|
||||
* @var integer unique id of document
|
||||
*/
|
||||
|
@ -99,7 +99,7 @@ class LetoDMS_Document { /* {{{ */
|
|||
*/
|
||||
var $_dms;
|
||||
|
||||
function LetoDMS_Document($id, $name, $comment, $date, $expires, $ownerID, $folderID, $inheritAccess, $defaultAccess, $locked, $keywords, $sequence) { /* {{{ */
|
||||
function LetoDMS_Core_Document($id, $name, $comment, $date, $expires, $ownerID, $folderID, $inheritAccess, $defaultAccess, $locked, $keywords, $sequence) { /* {{{ */
|
||||
$this->_id = $id;
|
||||
$this->_name = $name;
|
||||
$this->_comment = $comment;
|
||||
|
@ -257,7 +257,7 @@ class LetoDMS_Document { /* {{{ */
|
|||
/**
|
||||
* Return owner of document
|
||||
*
|
||||
* @return object owner of document as an instance of {@link LetoDMS_User}
|
||||
* @return object owner of document as an instance of {@link LetoDMS_Core_User}
|
||||
*/
|
||||
function getOwner() { /* {{{ */
|
||||
if (!isset($this->_owner))
|
||||
|
@ -528,9 +528,9 @@ class LetoDMS_Document { /* {{{ */
|
|||
$this->_accessList[$mode] = array("groups" => array(), "users" => array());
|
||||
foreach ($resArr as $row) {
|
||||
if ($row["userID"] != -1)
|
||||
array_push($this->_accessList[$mode]["users"], new LetoDMS_UserAccess($this->_dms->getUser($row["userID"]), $row["mode"]));
|
||||
array_push($this->_accessList[$mode]["users"], new LetoDMS_Core_UserAccess($this->_dms->getUser($row["userID"]), $row["mode"]));
|
||||
else //if ($row["groupID"] != -1)
|
||||
array_push($this->_accessList[$mode]["groups"], new LetoDMS_GroupAccess($this->_dms->getGroup($row["groupID"]), $row["mode"]));
|
||||
array_push($this->_accessList[$mode]["groups"], new LetoDMS_Core_GroupAccess($this->_dms->getGroup($row["groupID"]), $row["mode"]));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -626,7 +626,7 @@ class LetoDMS_Document { /* {{{ */
|
|||
* 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_User
|
||||
* @param $user object instance of class LetoDMS_Core_User
|
||||
* @return integer access mode
|
||||
*/
|
||||
function getAccessMode($user) { /* {{{ */
|
||||
|
@ -670,7 +670,7 @@ class LetoDMS_Document { /* {{{ */
|
|||
* 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_Group
|
||||
* @param $group object instance of class LetoDMS_Core_Group
|
||||
* @return integer access mode
|
||||
*/
|
||||
function getGroupAccessMode($group) { /* {{{ */
|
||||
|
@ -703,8 +703,8 @@ class LetoDMS_Document { /* {{{ */
|
|||
* 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_User and
|
||||
* LetoDMS_Group.
|
||||
* is an array itself countaining objects of class LetoDMS_Core_User and
|
||||
* LetoDMS_Core_Group.
|
||||
*
|
||||
* @return array list of notifications
|
||||
*/
|
||||
|
@ -958,12 +958,12 @@ class LetoDMS_Document { /* {{{ */
|
|||
if (!$db->getResult($queryStr)) return false;
|
||||
|
||||
// copy file
|
||||
if (!LetoDMS_File::makeDir($this->_dms->contentDir . $dir)) return false;
|
||||
if (!LetoDMS_File::copyFile($tmpFile, $this->_dms->contentDir . $dir . $version . $fileType)) return false;
|
||||
if (!LetoDMS_Core_File::makeDir($this->_dms->contentDir . $dir)) return false;
|
||||
if (!LetoDMS_Core_File::copyFile($tmpFile, $this->_dms->contentDir . $dir . $version . $fileType)) return false;
|
||||
|
||||
unset($this->_content);
|
||||
unset($this->_latestContent);
|
||||
$docResultSet = new LetoDMS_AddContentResultSet(new LetoDMS_DocumentContent($this, $version, $comment, $date, $user->getID(), $dir, $orgFileName, $fileType, $mimeType));
|
||||
$docResultSet = new LetoDMS_AddContentResultSet(new LetoDMS_Core_DocumentContent($this, $version, $comment, $date, $user->getID(), $dir, $orgFileName, $fileType, $mimeType));
|
||||
|
||||
// TODO - verify
|
||||
if ($this->_dms->enableConverting && in_array($docResultSet->_content->getFileType(), array_keys($this->_dms->convertFileTypes)))
|
||||
|
@ -1041,7 +1041,7 @@ class LetoDMS_Document { /* {{{ */
|
|||
*
|
||||
* This functions returns an array of content elements ordered by version
|
||||
*
|
||||
* @return array list of objects of class LetoDMS_DocumentContent
|
||||
* @return array list of objects of class LetoDMS_Core_DocumentContent
|
||||
*/
|
||||
function getContent() { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
@ -1054,7 +1054,7 @@ class LetoDMS_Document { /* {{{ */
|
|||
|
||||
$this->_content = array();
|
||||
foreach ($resArr as $row)
|
||||
array_push($this->_content, new LetoDMS_DocumentContent($this, $row["version"], $row["comment"], $row["date"], $row["createdBy"], $row["dir"], $row["orgFileName"], $row["fileType"], $row["mimeType"]));
|
||||
array_push($this->_content, new LetoDMS_Core_DocumentContent($this, $row["version"], $row["comment"], $row["date"], $row["createdBy"], $row["dir"], $row["orgFileName"], $row["fileType"], $row["mimeType"]));
|
||||
}
|
||||
|
||||
return $this->_content;
|
||||
|
@ -1064,7 +1064,7 @@ class LetoDMS_Document { /* {{{ */
|
|||
* 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_DocumentContent
|
||||
* @return object object of class LetoDMS_Core_DocumentContent
|
||||
*/
|
||||
function getContentByVersion($version) { /* {{{ */
|
||||
if (!is_numeric($version)) return false;
|
||||
|
@ -1086,7 +1086,7 @@ class LetoDMS_Document { /* {{{ */
|
|||
return false;
|
||||
|
||||
$resArr = $resArr[0];
|
||||
return new LetoDMS_DocumentContent($this, $resArr["version"], $resArr["comment"], $resArr["date"], $resArr["createdBy"], $resArr["dir"], $resArr["orgFileName"], $resArr["fileType"], $resArr["mimeType"]);
|
||||
return new LetoDMS_Core_DocumentContent($this, $resArr["version"], $resArr["comment"], $resArr["date"], $resArr["createdBy"], $resArr["dir"], $resArr["orgFileName"], $resArr["fileType"], $resArr["mimeType"]);
|
||||
} /* }}} */
|
||||
|
||||
function getLatestContent() { /* {{{ */
|
||||
|
@ -1100,7 +1100,7 @@ class LetoDMS_Document { /* {{{ */
|
|||
return false;
|
||||
|
||||
$resArr = $resArr[0];
|
||||
$this->_latestContent = new LetoDMS_DocumentContent($this, $resArr["version"], $resArr["comment"], $resArr["date"], $resArr["createdBy"], $resArr["dir"], $resArr["orgFileName"], $resArr["fileType"], $resArr["mimeType"]);
|
||||
$this->_latestContent = new LetoDMS_Core_DocumentContent($this, $resArr["version"], $resArr["comment"], $resArr["date"], $resArr["createdBy"], $resArr["dir"], $resArr["orgFileName"], $resArr["fileType"], $resArr["mimeType"]);
|
||||
}
|
||||
return $this->_latestContent;
|
||||
} /* }}} */
|
||||
|
@ -1112,7 +1112,7 @@ class LetoDMS_Document { /* {{{ */
|
|||
$emailList[] = $version->_userID;
|
||||
|
||||
if (file_exists( $this->_dms->contentDir.$version->getPath() ))
|
||||
if (!LetoDMS_File::removeFile( $this->_dms->contentDir.$version->getPath() ))
|
||||
if (!LetoDMS_Core_File::removeFile( $this->_dms->contentDir.$version->getPath() ))
|
||||
return false;
|
||||
|
||||
$status = $version->getStatus();
|
||||
|
@ -1179,7 +1179,7 @@ class LetoDMS_Document { /* {{{ */
|
|||
$resArr = $resArr[0];
|
||||
$document = $this->_dms->getDocument($resArr["document"]);
|
||||
$target = $this->_dms->getDocument($resArr["target"]);
|
||||
return new LetoDMS_DocumentLink($resArr["id"], $document, $target, $resArr["userID"], $resArr["public"]);
|
||||
return new LetoDMS_Core_DocumentLink($resArr["id"], $document, $target, $resArr["userID"], $resArr["public"]);
|
||||
} /* }}} */
|
||||
|
||||
function getDocumentLinks() { /* {{{ */
|
||||
|
@ -1194,7 +1194,7 @@ class LetoDMS_Document { /* {{{ */
|
|||
|
||||
foreach ($resArr as $row) {
|
||||
$target = $this->_dms->getDocument($row["target"]);
|
||||
array_push($this->_documentLinks, new LetoDMS_DocumentLink($row["id"], $this, $target, $row["userID"], $row["public"]));
|
||||
array_push($this->_documentLinks, new LetoDMS_Core_DocumentLink($row["id"], $this, $target, $row["userID"], $row["public"]));
|
||||
}
|
||||
}
|
||||
return $this->_documentLinks;
|
||||
|
@ -1232,7 +1232,7 @@ class LetoDMS_Document { /* {{{ */
|
|||
if ((is_bool($resArr) && !$resArr) || count($resArr)==0) return false;
|
||||
|
||||
$resArr = $resArr[0];
|
||||
return new LetoDMS_DocumentFile($resArr["id"], $this, $resArr["userID"], $resArr["comment"], $resArr["date"], $resArr["dir"], $resArr["fileType"], $resArr["mimeType"], $resArr["orgFileName"], $resArr["name"]);
|
||||
return new LetoDMS_Core_DocumentFile($resArr["id"], $this, $resArr["userID"], $resArr["comment"], $resArr["date"], $resArr["dir"], $resArr["fileType"], $resArr["mimeType"], $resArr["orgFileName"], $resArr["name"]);
|
||||
} /* }}} */
|
||||
|
||||
function getDocumentFiles() { /* {{{ */
|
||||
|
@ -1246,7 +1246,7 @@ class LetoDMS_Document { /* {{{ */
|
|||
$this->_documentFiles = array();
|
||||
|
||||
foreach ($resArr as $row) {
|
||||
array_push($this->_documentFiles, new LetoDMS_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 LetoDMS_Core_DocumentFile($row["id"], $this, $row["userID"], $row["comment"], $row["date"], $row["dir"], $row["fileType"], $row["mimeType"], $row["orgFileName"], $row["name"]));
|
||||
}
|
||||
}
|
||||
return $this->_documentFiles;
|
||||
|
@ -1267,8 +1267,8 @@ class LetoDMS_Document { /* {{{ */
|
|||
if (is_bool($file) && !$file) return false;
|
||||
|
||||
// copy file
|
||||
if (!LetoDMS_File::makeDir($this->_dms->contentDir . $dir)) return false;
|
||||
if (!LetoDMS_File::copyFile($tmpFile, $this->_dms->contentDir . $file->getPath() )) return false;
|
||||
if (!LetoDMS_Core_File::makeDir($this->_dms->contentDir . $dir)) return false;
|
||||
if (!LetoDMS_Core_File::copyFile($tmpFile, $this->_dms->contentDir . $file->getPath() )) return false;
|
||||
|
||||
return true;
|
||||
} /* }}} */
|
||||
|
@ -1280,7 +1280,7 @@ class LetoDMS_Document { /* {{{ */
|
|||
if (is_bool($file) && !$file) return false;
|
||||
|
||||
if (file_exists( $this->_dms->contentDir . $file->getPath() )){
|
||||
if (!LetoDMS_File::removeFile( $this->_dms->contentDir . $file->getPath() ))
|
||||
if (!LetoDMS_Core_File::removeFile( $this->_dms->contentDir . $file->getPath() ))
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1318,7 +1318,7 @@ class LetoDMS_Document { /* {{{ */
|
|||
// TODO: versioning file?
|
||||
|
||||
if (file_exists( $this->_dms->contentDir . $this->getDir() ))
|
||||
if (!LetoDMS_File::removeDir( $this->_dms->contentDir . $this->getDir() ))
|
||||
if (!LetoDMS_Core_File::removeDir( $this->_dms->contentDir . $this->getDir() ))
|
||||
return false;
|
||||
|
||||
$queryStr = "DELETE FROM tblDocuments WHERE id = " . $this->_id;
|
||||
|
@ -1384,13 +1384,13 @@ class LetoDMS_Document { /* {{{ */
|
|||
$queryStr = "(SELECT `tblUsers`.* FROM `tblUsers` ".
|
||||
"LEFT JOIN `tblGroupMembers` ON `tblGroupMembers`.`userID`=`tblUsers`.`id` ".
|
||||
"WHERE `tblGroupMembers`.`groupID` IN (". $groupIDs .") ".
|
||||
"AND `tblUsers`.`role` != ".LetoDMS_User::role_guest.")";
|
||||
"AND `tblUsers`.`role` != ".LetoDMS_Core_User::role_guest.")";
|
||||
}
|
||||
$queryStr .= (strlen($queryStr)==0 ? "" : " UNION ").
|
||||
"(SELECT `tblUsers`.* FROM `tblUsers` ".
|
||||
"WHERE (`tblUsers`.`role` != ".LetoDMS_User::role_guest.") ".
|
||||
"WHERE (`tblUsers`.`role` != ".LetoDMS_Core_User::role_guest.") ".
|
||||
"AND ((`tblUsers`.`id` = ". $this->_ownerID . ") ".
|
||||
"OR (`tblUsers`.`role` = ".LetoDMS_User::role_admin.")".
|
||||
"OR (`tblUsers`.`role` = ".LetoDMS_Core_User::role_admin.")".
|
||||
(strlen($userIDs) == 0 ? "" : " OR (`tblUsers`.`id` IN (". $userIDs ."))").
|
||||
")) ORDER BY `login`";
|
||||
}
|
||||
|
@ -1399,16 +1399,16 @@ class LetoDMS_Document { /* {{{ */
|
|||
$queryStr = "(SELECT `tblUsers`.* FROM `tblUsers` ".
|
||||
"LEFT JOIN `tblGroupMembers` ON `tblGroupMembers`.`userID`=`tblUsers`.`id` ".
|
||||
"WHERE `tblGroupMembers`.`groupID` NOT IN (". $groupIDs .")".
|
||||
"AND `tblUsers`.`role` != ".LetoDMS_User::role_guest .
|
||||
"AND `tblUsers`.`role` != ".LetoDMS_Core_User::role_guest .
|
||||
(strlen($userIDs) == 0 ? ")" : " AND (`tblUsers`.`id` NOT IN (". $userIDs .")))");
|
||||
}
|
||||
$queryStr .= (strlen($queryStr)==0 ? "" : " UNION ").
|
||||
"(SELECT `tblUsers`.* FROM `tblUsers` ".
|
||||
"WHERE (`tblUsers`.`id` = ". $this->_ownerID . ") ".
|
||||
"OR (`tblUsers`.`role` = ".LetoDMS_User::role_admin."))".
|
||||
"OR (`tblUsers`.`role` = ".LetoDMS_Core_User::role_admin."))".
|
||||
"UNION ".
|
||||
"(SELECT `tblUsers`.* FROM `tblUsers` ".
|
||||
"WHERE `tblUsers`.`role` != ".LetoDMS_User::role_guest .
|
||||
"WHERE `tblUsers`.`role` != ".LetoDMS_Core_User::role_guest .
|
||||
(strlen($userIDs) == 0 ? ")" : " AND (`tblUsers`.`id` NOT IN (". $userIDs .")))").
|
||||
" ORDER BY `login`";
|
||||
}
|
||||
|
@ -1442,7 +1442,7 @@ class LetoDMS_Document { /* {{{ */
|
|||
$resArr = $db->getResultArray($queryStr);
|
||||
if (!is_bool($resArr)) {
|
||||
foreach ($resArr as $row) {
|
||||
$this->_approversList["groups"][] = new LetoDMS_Group($row["id"], $row["name"], $row["comment"]);
|
||||
$this->_approversList["groups"][] = new LetoDMS_Core_Group($row["id"], $row["name"], $row["comment"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1460,7 +1460,7 @@ class LetoDMS_Document { /* {{{ */
|
|||
* 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_Document::removeContent()}.
|
||||
* {@link LetoDMS_Core_Document::removeContent()}.
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS
|
||||
|
@ -1471,7 +1471,7 @@ class LetoDMS_Document { /* {{{ */
|
|||
* 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_DocumentContent { /* {{{ */
|
||||
class LetoDMS_Core_DocumentContent { /* {{{ */
|
||||
|
||||
// if status is released and there are reviewers set status draft_rev
|
||||
// if status is released or draft_rev and there are approves set status draft_app
|
||||
|
@ -1510,7 +1510,7 @@ class LetoDMS_DocumentContent { /* {{{ */
|
|||
else $this->setStatus(S_RELEASED,"",$user);
|
||||
} /* }}} */
|
||||
|
||||
function LetoDMS_DocumentContent($document, $version, $comment, $date, $userID, $dir, $orgFileName, $fileType, $mimeType) { /* {{{ */
|
||||
function LetoDMS_Core_DocumentContent($document, $version, $comment, $date, $userID, $dir, $orgFileName, $fileType, $mimeType) { /* {{{ */
|
||||
$this->_document = $document;
|
||||
$this->_version = $version;
|
||||
$this->_comment = $comment;
|
||||
|
@ -1608,7 +1608,7 @@ class LetoDMS_DocumentContent { /* {{{ */
|
|||
|
||||
// $send_email=FALSE is used when removing entire document
|
||||
// to avoid one email for every version
|
||||
// This function is deprecated. It was replaced by LetoDMS_Document::removeContent()
|
||||
// This function is deprecated. It was replaced by LetoDMS_Core_Document::removeContent()
|
||||
function __remove($send_email=TRUE) { /* {{{ */
|
||||
GLOBAL $user;
|
||||
$db = $this->_document->_dms->getDB();
|
||||
|
@ -1617,7 +1617,7 @@ class LetoDMS_DocumentContent { /* {{{ */
|
|||
$emailList[] = $this->_userID;
|
||||
|
||||
if (file_exists( $this->_document->_dms->contentDir.$version->getPath() ))
|
||||
if (!LetoDMS_File::removeFile( $this->_document->_dms->contentDir.$version->getPath() ))
|
||||
if (!LetoDMS_Core_File::removeFile( $this->_document->_dms->contentDir.$version->getPath() ))
|
||||
return false;
|
||||
|
||||
$status = $this->getStatus();
|
||||
|
@ -2176,7 +2176,7 @@ class LetoDMS_DocumentContent { /* {{{ */
|
|||
* 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_Document::addDocumentLink()} to add a reference
|
||||
* Use {@link LetoDMS_Core_Document::addDocumentLink()} to add a reference
|
||||
* to another document.
|
||||
*
|
||||
* @category DMS
|
||||
|
@ -2188,14 +2188,14 @@ class LetoDMS_DocumentContent { /* {{{ */
|
|||
* 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_DocumentLink { /* {{{ */
|
||||
class LetoDMS_Core_DocumentLink { /* {{{ */
|
||||
var $_id;
|
||||
var $_document;
|
||||
var $_target;
|
||||
var $_userID;
|
||||
var $_public;
|
||||
|
||||
function LetoDMS_DocumentLink($id, $document, $target, $userID, $public) {
|
||||
function LetoDMS_Core_DocumentLink($id, $document, $target, $userID, $public) {
|
||||
$this->_id = $id;
|
||||
$this->_document = $document;
|
||||
$this->_target = $target;
|
||||
|
@ -2238,7 +2238,7 @@ class LetoDMS_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_Document::addDocumentFile()} to attach a file.
|
||||
* Use {@link LetoDMS_Core_Document::addDocumentFile()} to attach a file.
|
||||
*
|
||||
* @category DMS
|
||||
* @package LetoDMS
|
||||
|
@ -2249,7 +2249,7 @@ class LetoDMS_DocumentLink { /* {{{ */
|
|||
* 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_DocumentFile { /* {{{ */
|
||||
class LetoDMS_Core_DocumentFile { /* {{{ */
|
||||
var $_id;
|
||||
var $_document;
|
||||
var $_userID;
|
||||
|
@ -2261,7 +2261,7 @@ class LetoDMS_DocumentFile { /* {{{ */
|
|||
var $_orgFileName;
|
||||
var $_name;
|
||||
|
||||
function LetoDMS_DocumentFile($id, $document, $userID, $comment, $date, $dir, $fileType, $mimeType, $orgFileName,$name) {
|
||||
function LetoDMS_Core_DocumentFile($id, $document, $userID, $comment, $date, $dir, $fileType, $mimeType, $orgFileName,$name) {
|
||||
$this->_id = $id;
|
||||
$this->_document = $document;
|
||||
$this->_userID = $userID;
|
||||
|
@ -2300,7 +2300,7 @@ class LetoDMS_DocumentFile { /* {{{ */
|
|||
$db = $this->_document->_dms->getDB();
|
||||
|
||||
if (file_exists( $this->_document->_dms->contentDir.$this->getPath() ))
|
||||
if (!LetoDMS_File::removeFile( $this->_document->_dms->contentDir.$this->getPath() ))
|
||||
if (!LetoDMS_Core_File::removeFile( $this->_document->_dms->contentDir.$this->getPath() ))
|
||||
return false;
|
||||
|
||||
|
||||
|
@ -2355,7 +2355,7 @@ class LetoDMS_AddContentResultSet { /* {{{ */
|
|||
return false;
|
||||
}
|
||||
if (!strcasecmp($type, "i")) {
|
||||
if (strcasecmp(get_class($reviewer), "LetoDMS_User")) {
|
||||
if (strcasecmp(get_class($reviewer), "LetoDMS_Core_User")) {
|
||||
return false;
|
||||
}
|
||||
if ($this->_indReviewers == null) {
|
||||
|
@ -2364,7 +2364,7 @@ class LetoDMS_AddContentResultSet { /* {{{ */
|
|||
$this->_indReviewers[$status][] = $reviewer;
|
||||
}
|
||||
if (!strcasecmp($type, "g")) {
|
||||
if (strcasecmp(get_class($reviewer), "LetoDMS_Group")) {
|
||||
if (strcasecmp(get_class($reviewer), "LetoDMS_Core_Group")) {
|
||||
return false;
|
||||
}
|
||||
if ($this->_grpReviewers == null) {
|
||||
|
@ -2381,7 +2381,7 @@ class LetoDMS_AddContentResultSet { /* {{{ */
|
|||
return false;
|
||||
}
|
||||
if (!strcasecmp($type, "i")) {
|
||||
if (strcasecmp(get_class($approver), "LetoDMS_User")) {
|
||||
if (strcasecmp(get_class($approver), "LetoDMS_Core_User")) {
|
||||
return false;
|
||||
}
|
||||
if ($this->_indApprovers == null) {
|
||||
|
@ -2390,7 +2390,7 @@ class LetoDMS_AddContentResultSet { /* {{{ */
|
|||
$this->_indApprovers[$status][] = $approver;
|
||||
}
|
||||
if (!strcasecmp($type, "g")) {
|
||||
if (strcasecmp(get_class($approver), "LetoDMS_Group")) {
|
||||
if (strcasecmp(get_class($approver), "LetoDMS_Core_Group")) {
|
||||
return false;
|
||||
}
|
||||
if ($this->_grpApprovers == null) {
|
|
@ -23,7 +23,7 @@
|
|||
* 2010 Matteo Lucarelli, 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Folder {
|
||||
class LetoDMS_Core_Folder {
|
||||
/**
|
||||
* @var integer unique id of folder
|
||||
*/
|
||||
|
@ -69,7 +69,7 @@ class LetoDMS_Folder {
|
|||
*/
|
||||
var $_dms;
|
||||
|
||||
function LetoDMS_Folder($id, $name, $parentID, $comment, $date, $ownerID, $inheritAccess, $defaultAccess, $sequence) { /* {{{ */
|
||||
function LetoDMS_Core_Folder($id, $name, $parentID, $comment, $date, $ownerID, $inheritAccess, $defaultAccess, $sequence) { /* {{{ */
|
||||
$this->_id = $id;
|
||||
$this->_name = $name;
|
||||
$this->_parentID = $parentID;
|
||||
|
@ -321,7 +321,7 @@ class LetoDMS_Folder {
|
|||
/**
|
||||
* Returns a list of subfolders
|
||||
* This function does not check for access rights. Use
|
||||
* {@link LetoDMS_DMS::filterAccess} for checking each folder against
|
||||
* {@link LetoDMS_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
|
||||
|
@ -340,7 +340,7 @@ class LetoDMS_Folder {
|
|||
|
||||
$this->_subFolders = array();
|
||||
for ($i = 0; $i < count($resArr); $i++)
|
||||
// $this->_subFolders[$i] = new LetoDMS_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 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] = $this->_dms->getFolder($resArr[$i]["id"]);
|
||||
}
|
||||
|
||||
|
@ -415,7 +415,7 @@ class LetoDMS_Folder {
|
|||
/**
|
||||
* Get all documents of the folder
|
||||
* This function does not check for access rights. Use
|
||||
* {@link LetoDMS_DMS::filterAccess} for checking each document against
|
||||
* {@link LetoDMS_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
|
||||
|
@ -435,7 +435,7 @@ class LetoDMS_Folder {
|
|||
|
||||
$this->_documents = array();
|
||||
foreach ($resArr as $row) {
|
||||
// array_push($this->_documents, new LetoDMS_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 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, $this->_dms->getDocument($row["id"]));
|
||||
}
|
||||
}
|
||||
|
@ -569,9 +569,9 @@ class LetoDMS_Folder {
|
|||
$this->_accessList[$mode] = array("groups" => array(), "users" => array());
|
||||
foreach ($resArr as $row) {
|
||||
if ($row["userID"] != -1)
|
||||
array_push($this->_accessList[$mode]["users"], new LetoDMS_UserAccess($this->_dms->getUser($row["userID"]), $row["mode"]));
|
||||
array_push($this->_accessList[$mode]["users"], new LetoDMS_Core_UserAccess($this->_dms->getUser($row["userID"]), $row["mode"]));
|
||||
else //if ($row["groupID"] != -1)
|
||||
array_push($this->_accessList[$mode]["groups"], new LetoDMS_GroupAccess($this->_dms->getGroup($row["groupID"]), $row["mode"]));
|
||||
array_push($this->_accessList[$mode]["groups"], new LetoDMS_Core_GroupAccess($this->_dms->getGroup($row["groupID"]), $row["mode"]));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1003,13 +1003,13 @@ class LetoDMS_Folder {
|
|||
$queryStr = "(SELECT `tblUsers`.* FROM `tblUsers` ".
|
||||
"LEFT JOIN `tblGroupMembers` ON `tblGroupMembers`.`userID`=`tblUsers`.`id` ".
|
||||
"WHERE `tblGroupMembers`.`groupID` IN (". $groupIDs .") ".
|
||||
"AND `tblUsers`.`role` != ".LetoDMS_User::role_guest.")";
|
||||
"AND `tblUsers`.`role` != ".LetoDMS_Core_User::role_guest.")";
|
||||
}
|
||||
$queryStr .= (strlen($queryStr)==0 ? "" : " UNION ").
|
||||
"(SELECT `tblUsers`.* FROM `tblUsers` ".
|
||||
"WHERE (`tblUsers`.`role` != ".LetoDMS_User::role_guest.") ".
|
||||
"WHERE (`tblUsers`.`role` != ".LetoDMS_Core_User::role_guest.") ".
|
||||
"AND ((`tblUsers`.`id` = ". $this->_ownerID . ") ".
|
||||
"OR (`tblUsers`.`role` = ".LetoDMS_User::role_admin.")".
|
||||
"OR (`tblUsers`.`role` = ".LetoDMS_Core_User::role_admin.")".
|
||||
(strlen($userIDs) == 0 ? "" : " OR (`tblUsers`.`id` IN (". $userIDs ."))").
|
||||
")) ORDER BY `login`";
|
||||
}
|
||||
|
@ -1018,16 +1018,16 @@ class LetoDMS_Folder {
|
|||
$queryStr = "(SELECT `tblUsers`.* FROM `tblUsers` ".
|
||||
"LEFT JOIN `tblGroupMembers` ON `tblGroupMembers`.`userID`=`tblUsers`.`id` ".
|
||||
"WHERE `tblGroupMembers`.`groupID` NOT IN (". $groupIDs .")".
|
||||
"AND `tblUsers`.`role` != ".LetoDMS_User::role_guest." ".
|
||||
"AND `tblUsers`.`role` != ".LetoDMS_Core_User::role_guest." ".
|
||||
(strlen($userIDs) == 0 ? ")" : " AND (`tblUsers`.`id` NOT IN (". $userIDs .")))");
|
||||
}
|
||||
$queryStr .= (strlen($queryStr)==0 ? "" : " UNION ").
|
||||
"(SELECT `tblUsers`.* FROM `tblUsers` ".
|
||||
"WHERE (`tblUsers`.`id` = ". $this->_ownerID . ") ".
|
||||
"OR (`tblUsers`.`role` = ".LetoDMS_User::role_admin."))".
|
||||
"OR (`tblUsers`.`role` = ".LetoDMS_Core_User::role_admin."))".
|
||||
"UNION ".
|
||||
"(SELECT `tblUsers`.* FROM `tblUsers` ".
|
||||
"WHERE `tblUsers`.`role` != ".LetoDMS_User::role_guest." ".
|
||||
"WHERE `tblUsers`.`role` != ".LetoDMS_Core_User::role_guest." ".
|
||||
(strlen($userIDs) == 0 ? ")" : " AND (`tblUsers`.`id` NOT IN (". $userIDs .")))").
|
||||
" ORDER BY `login`";
|
||||
}
|
||||
|
@ -1061,7 +1061,7 @@ class LetoDMS_Folder {
|
|||
$resArr = $db->getResultArray($queryStr);
|
||||
if (!is_bool($resArr)) {
|
||||
foreach ($resArr as $row) {
|
||||
$this->_approversList["groups"][] = new LetoDMS_Group($row["id"], $row["name"], $row["comment"]);
|
||||
$this->_approversList["groups"][] = new LetoDMS_Core_Group($row["id"], $row["name"], $row["comment"]);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -21,7 +21,7 @@
|
|||
* @copyright Copyright (C) 2002-2005 Markus Westphal, 2006-2008 Malcolm Cowe, 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Group {
|
||||
class LetoDMS_Core_Group {
|
||||
/**
|
||||
* The id of the user group
|
||||
*
|
||||
|
@ -43,7 +43,7 @@ class LetoDMS_Group {
|
|||
*/
|
||||
var $_dms;
|
||||
|
||||
function LetoDMS_Group($id, $name, $comment) { /* {{{ */
|
||||
function LetoDMS_Core_Group($id, $name, $comment) { /* {{{ */
|
||||
$this->_id = $id;
|
||||
$this->_name = $name;
|
||||
$this->_comment = $comment;
|
||||
|
@ -96,7 +96,7 @@ class LetoDMS_Group {
|
|||
$this->_users = array();
|
||||
|
||||
foreach ($resArr as $row) {
|
||||
$user = new LetoDMS_User($row["id"], $row["login"], $row["pwd"], $row["fullName"], $row["email"], $row["language"], $row["theme"], $row["comment"], $row["role"], $row['hidden']);
|
||||
$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']);
|
||||
array_push($this->_users, $user);
|
||||
}
|
||||
}
|
|
@ -22,7 +22,7 @@
|
|||
* 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_KeywordCategory {
|
||||
class LetoDMS_Core_KeywordCategory {
|
||||
/**
|
||||
* @var integer $_id id of keyword category
|
||||
* @access protected
|
||||
|
@ -47,7 +47,7 @@ class LetoDMS_KeywordCategory {
|
|||
*/
|
||||
var $_dms;
|
||||
|
||||
function LetoDMS_KeywordCategory($id, $ownerID, $name) {
|
||||
function LetoDMS_Core_KeywordCategory($id, $ownerID, $name) {
|
||||
$this->_id = $id;
|
||||
$this->_name = $name;
|
||||
$this->_ownerID = $ownerID;
|
|
@ -20,7 +20,7 @@
|
|||
* @copyright Copyright (C) 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_Notification { /* {{{ */
|
||||
class LetoDMS_Core_Notification { /* {{{ */
|
||||
/**
|
||||
* @var integer id of target (document or folder)
|
||||
*
|
||||
|
@ -56,7 +56,7 @@ class LetoDMS_Notification { /* {{{ */
|
|||
*/
|
||||
var $_dms;
|
||||
|
||||
function LetoDMS_Notification($target, $targettype, $userid, $groupid) {
|
||||
function LetoDMS_Core_Notification($target, $targettype, $userid, $groupid) {
|
||||
$this->_target = $target;
|
||||
$this->_targettype = $targettype;
|
||||
$this->_userid = $userid;
|
|
@ -22,7 +22,7 @@
|
|||
* 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_User {
|
||||
class LetoDMS_Core_User {
|
||||
/**
|
||||
* @var integer id of user
|
||||
*
|
||||
|
@ -83,8 +83,8 @@ class LetoDMS_User {
|
|||
var $_comment;
|
||||
|
||||
/**
|
||||
* @var string role of user. Can be one of LetoDMS_User::role_user,
|
||||
* LetoDMS_User::role_admin, LetoDMS_User::role_guest
|
||||
* @var string role of user. Can be one of LetoDMS_Core_User::role_user,
|
||||
* LetoDMS_Core_User::role_admin, LetoDMS_Core_User::role_guest
|
||||
*
|
||||
* @access protected
|
||||
*/
|
||||
|
@ -108,7 +108,7 @@ class LetoDMS_User {
|
|||
const role_admin = '1';
|
||||
const role_guest = '2';
|
||||
|
||||
function LetoDMS_User($id, $login, $pwd, $fullName, $email, $language, $theme, $comment, $role, $isHidden=0) {
|
||||
function LetoDMS_Core_User($id, $login, $pwd, $fullName, $email, $language, $theme, $comment, $role, $isHidden=0) {
|
||||
$this->_id = $id;
|
||||
$this->_login = $login;
|
||||
$this->_pwd = $pwd;
|
||||
|
@ -239,29 +239,29 @@ class LetoDMS_User {
|
|||
return true;
|
||||
} /* }}} */
|
||||
|
||||
function isAdmin() { return ($this->_role == LetoDMS_User::role_admin); }
|
||||
function isAdmin() { return ($this->_role == LetoDMS_Core_User::role_admin); }
|
||||
|
||||
function setAdmin($isAdmin) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblUsers SET role = " . LetoDMS_User::role_admin . " WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE tblUsers SET role = " . LetoDMS_Core_User::role_admin . " WHERE id = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
$this->_role = LetoDMS_User::role_admin;
|
||||
$this->_role = LetoDMS_Core_User::role_admin;
|
||||
return true;
|
||||
} /* }}} */
|
||||
|
||||
function isGuest() { return ($this->_role == LetoDMS_User::role_guest); }
|
||||
function isGuest() { return ($this->_role == LetoDMS_Core_User::role_guest); }
|
||||
|
||||
function setGuest($isGuest) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblUsers SET role = " . LetoDMS_User::role_guest . " WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE tblUsers SET role = " . LetoDMS_Core_User::role_guest . " WHERE id = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
$this->_role = LetoDMS_User::role_guest;
|
||||
$this->_role = LetoDMS_Core_User::role_guest;
|
||||
return true;
|
||||
} /* }}} */
|
||||
|
||||
|
@ -441,7 +441,7 @@ class LetoDMS_User {
|
|||
|
||||
$this->_groups = array();
|
||||
foreach ($resArr as $row) {
|
||||
$group = new LetoDMS_Group($row["id"], $row["name"], $row["comment"]);
|
||||
$group = new LetoDMS_Core_Group($row["id"], $row["name"], $row["comment"]);
|
||||
array_push($this->_groups, $group);
|
||||
}
|
||||
}
|
|
@ -30,7 +30,7 @@ else
|
|||
* @copyright Copyright (C) 2002-2005 Markus Westphal, 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_DatabaseAccess {
|
||||
class LetoDMS_Core_DatabaseAccess {
|
||||
var $_driver;
|
||||
var $_hostname;
|
||||
var $_database;
|
||||
|
@ -55,7 +55,7 @@ class LetoDMS_DatabaseAccess {
|
|||
/**
|
||||
* Konstruktor
|
||||
*/
|
||||
function LetoDMS_DatabaseAccess($driver, $hostname, $user, $passw, $database = false)
|
||||
function LetoDMS_Core_DatabaseAccess($driver, $hostname, $user, $passw, $database = false)
|
||||
{
|
||||
$this->_driver = $driver;
|
||||
$this->_hostname = $hostname;
|
|
@ -24,7 +24,7 @@
|
|||
* 2010 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class LetoDMS_File {
|
||||
class LetoDMS_Core_File {
|
||||
function renameFile($old, $new) {
|
||||
return @rename($old, $new);
|
||||
}
|
2
Makefile
2
Makefile
|
@ -1,5 +1,5 @@
|
|||
VERSION=3.0.0-RC1
|
||||
SRC=CHANGELOG* inc conf index.php LetoDMS.php languages op out webdav README reset_db.sql create_tables.sql create_tables-innodb.sql drop-tables-innodb.sql delete_all_contents.sql styles TODO UPDATE-* LICENSE Makefile package.xml
|
||||
SRC=CHANGELOG* inc conf index.php languages op out README reset_db.sql create_tables.sql create_tables-innodb.sql drop-tables-innodb.sql delete_all_contents.sql styles TODO UPDATE-* LICENSE Makefile package.xml
|
||||
|
||||
dist:
|
||||
mkdir -p tmp/letoDMS-$(VERSION)
|
||||
|
|
|
@ -38,8 +38,8 @@ class LetoDMS_Email extends LetoDMS_Notify {
|
|||
|
||||
if ($recipient->getEmail()=="") return 0;
|
||||
|
||||
if ((!is_object($sender) && strcasecmp(get_class($sender), "LetoDMS_User")) ||
|
||||
(!is_object($recipient) && strcasecmp(get_class($recipient), "LetoDMS_User"))) {
|
||||
if ((!is_object($sender) && strcasecmp(get_class($sender), "LetoDMS_Core_User")) ||
|
||||
(!is_object($recipient) && strcasecmp(get_class($recipient), "LetoDMS_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_User")) ||
|
||||
(!is_object($groupRecipient) && strcasecmp(get_class($groupRecipient), "LetoDMS_Group"))) {
|
||||
if ((!is_object($sender) && strcasecmp(get_class($sender), "LetoDMS_Core_User")) ||
|
||||
(!is_object($groupRecipient) && strcasecmp(get_class($groupRecipient), "LetoDMS_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_User")) ||
|
||||
if ((!is_object($sender) && strcasecmp(get_class($sender), "LetoDMS_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_User")) {
|
||||
if (is_object($recipient) && !strcasecmp(get_class($recipient), "LetoDMS_Core_User")) {
|
||||
|
||||
if ($recipient->getEmail()!="")
|
||||
$toList .= (strlen($toList)==0 ? "" : ", ") . $recipient->getEmail();
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
class LetoDMS_Session {
|
||||
/**
|
||||
* @var object $db reference to database object. This must be an instance
|
||||
* of {@link LetoDMS_DatabaseAccess}.
|
||||
* of {@link LetoDMS_Core_DatabaseAccess}.
|
||||
* @access protected
|
||||
*/
|
||||
protected $db;
|
||||
|
|
|
@ -176,7 +176,7 @@ class UI {
|
|||
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_Folder")) {
|
||||
if ($folder!=null && is_object($folder) && !strcasecmp(get_class($folder), "LetoDMS_Core_Folder")) {
|
||||
echo "<input type=\"hidden\" name=\"folderid\" value=\"".$folder->getID()."\" />";
|
||||
}
|
||||
echo "<input type=\"hidden\" name=\"navBar\" value=\"1\" />";
|
||||
|
@ -239,7 +239,7 @@ class UI {
|
|||
|
||||
global $user, $settings, $theme;
|
||||
|
||||
if (!is_object($folder) || strcasecmp(get_class($folder), "LetoDMS_Folder")) {
|
||||
if (!is_object($folder) || strcasecmp(get_class($folder), "LetoDMS_Core_Folder")) {
|
||||
echo "<ul class=\"localNav\">\n";
|
||||
echo "</ul>\n";
|
||||
return;
|
||||
|
@ -620,7 +620,7 @@ class UI {
|
|||
if (!is_object($folder)) return;
|
||||
|
||||
$subFolders = $folder->getSubFolders();
|
||||
$subFolders = LetoDMS_DMS::filterAccess($subFolders, $user, M_READ);
|
||||
$subFolders = LetoDMS_Core_DMS::filterAccess($subFolders, $user, M_READ);
|
||||
|
||||
if ($folderID == $settings->_rootFolderID) print "<ul style='list-style-type: none;' class='tree'>\n";
|
||||
|
||||
|
|
|
@ -18,10 +18,10 @@
|
|||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
$db = new LetoDMS_DatabaseAccess($settings->_dbDriver, $settings->_dbHostname, $settings->_dbUser, $settings->_dbPass, $settings->_dbDatabase);
|
||||
$db = new LetoDMS_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_DMS($db, $settings->_contentDir.$settings->_contentOffsetDir);
|
||||
$dms = new LetoDMS_Core_DMS($db, $settings->_contentDir.$settings->_contentOffsetDir);
|
||||
$dms->setRootFolderID($settings->_rootFolderID);
|
||||
$dms->setEnableAdminRevApp($settings->_enableAdminRevApp);
|
||||
$dms->setEnableConverting($settings->_enableConverting);
|
||||
|
|
|
@ -101,7 +101,7 @@ function createVersionigFile($document) { /* {{{ */
|
|||
|
||||
// if directory has been removed recreate it
|
||||
if (!file_exists($settings->_contentDir . $document->getDir()))
|
||||
if (!LetoDMS_File::makeDir($settings->_contentDir . $document->getDir())) return false;
|
||||
if (!LetoDMS_Core_File::makeDir($settings->_contentDir . $document->getDir())) return false;
|
||||
|
||||
$handle = fopen($settings->_contentDir . $document->getDir() .$settings-> _versioningFileName , "wb");
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.ClassEmail.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.ClassEmail.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.ClassEmail.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.ClassEmail.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.ClassEmail.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
|
@ -60,7 +60,7 @@ foreach ($tables as $table){
|
|||
|
||||
fclose($h);
|
||||
|
||||
if (LetoDMS_File::gzcompressfile($dump_name,9)) unlink($dump_name);
|
||||
if (LetoDMS_Core_File::gzcompressfile($dump_name,9)) unlink($dump_name);
|
||||
else UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
|
||||
|
||||
add_log_line();
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.ClassEmail.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
|
@ -189,7 +189,7 @@ if (!createFolderTar($folder,$ark)) {
|
|||
TarAddFooter($ark);
|
||||
fclose($ark);
|
||||
|
||||
if (LetoDMS_File::gzcompressfile($ark_name,9)) unlink($ark_name);
|
||||
if (LetoDMS_Core_File::gzcompressfile($ark_name,9)) unlink($ark_name);
|
||||
else UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
|
||||
|
||||
add_log_line();
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.ClassEmail.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
@ -72,7 +72,7 @@ $resArr = $db->getResultArray($searchQuery);
|
|||
if (!is_bool($resArr) && count($resArr)>0) {
|
||||
echo "<ol>";
|
||||
foreach($resArr as $docArr) {
|
||||
$doc = new LetoDMS_Document($docArr["id"],
|
||||
$doc = new LetoDMS_Core_Document($docArr["id"],
|
||||
$docArr["name"],
|
||||
$docArr["comment"],
|
||||
$docArr["date"],
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.ClassEmail.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.ClassEmail.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.ClassSession.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.ClassSession.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
@ -37,7 +37,7 @@ function add_folder_notify($folder,$userid,$recursefolder,$recursedoc)
|
|||
// include all folder's document
|
||||
|
||||
$documents = $folder->getDocuments();
|
||||
$documents = LetoDMS_DMS::filterAccess($documents, $dms->getUser($userid), M_READ);
|
||||
$documents = LetoDMS_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_DMS::filterAccess($subFolders, $dms->getUser($userid), M_READ);
|
||||
$subFolders = LetoDMS_Core_DMS::filterAccess($subFolders, $dms->getUser($userid), M_READ);
|
||||
|
||||
foreach($subFolders as $subFolder)
|
||||
add_folder_notify($subFolder,$userid,$recursefolder,$recursedoc);
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.ClassEmail.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
@ -31,7 +31,7 @@ if (!isset($_POST["arkname"]) || !file_exists($settings->_contentDir.$_POST["ark
|
|||
UI::exitError(getMLText("admin_tools"),getMLText("unknown_id"));
|
||||
}
|
||||
|
||||
if (!LetoDMS_File::removeFile($settings->_contentDir.$_POST["arkname"])) {
|
||||
if (!LetoDMS_Core_File::removeFile($settings->_contentDir.$_POST["arkname"])) {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.ClassEmail.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.ClassEmail.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
@ -31,7 +31,7 @@ if (!isset($_POST["dumpname"]) || !file_exists($settings->_contentDir.$_POST["du
|
|||
UI::exitError(getMLText("admin_tools"),getMLText("unknown_id"));
|
||||
}
|
||||
|
||||
if (!LetoDMS_File::removeFile($settings->_contentDir.$_POST["dumpname"])) {
|
||||
if (!LetoDMS_Core_File::removeFile($settings->_contentDir.$_POST["dumpname"])) {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.ClassEmail.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.ClassEmail.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.ClassEmail.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
|
@ -34,7 +34,7 @@ function removeFolderFiles($folder)
|
|||
|
||||
$documents = $folder->getDocuments();
|
||||
foreach ($documents as $document)
|
||||
LetoDMS_File::removeDir($settings->_contentDir . $document->getDir());
|
||||
LetoDMS_Core_File::removeDir($settings->_contentDir . $document->getDir());
|
||||
|
||||
$subFolders = $folder->getSubFolders();
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
@ -35,7 +35,7 @@ if (@readlink($settings->_contentDir."current.log")==$settings->_contentDir.$_PO
|
|||
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
|
||||
}
|
||||
|
||||
if (!LetoDMS_File::removeFile($settings->_contentDir.$_POST["logname"])) {
|
||||
if (!LetoDMS_Core_File::removeFile($settings->_contentDir.$_POST["logname"])) {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.ClassEmail.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.ClassEmail.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.ClassEmail.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.ClassEmail.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.Language.php");
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.Calendar.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
|
@ -43,8 +43,8 @@ function printTree($path, $level = 0)
|
|||
GLOBAL $user, $form;
|
||||
|
||||
$folder = $path[$level];
|
||||
$subFolders = LetoDMS_DMS::filterAccess($folder->getSubFolders(), $user, M_READ);
|
||||
$documents = LetoDMS_DMS::filterAccess($folder->getDocuments(), $user, M_READ);
|
||||
$subFolders = LetoDMS_Core_DMS::filterAccess($folder->getSubFolders(), $user, M_READ);
|
||||
$documents = LetoDMS_Core_DMS::filterAccess($folder->getDocuments(), $user, M_READ);
|
||||
|
||||
if ($level+1 < count($path))
|
||||
$nextFolderID = $path[$level+1]->getID();
|
||||
|
@ -75,8 +75,8 @@ function printTree($path, $level = 0)
|
|||
printTree($path, $level+1);
|
||||
else {
|
||||
print "<li>\n";
|
||||
$subFolders_ = LetoDMS_DMS::filterAccess($subFolders[$i]->getSubFolders(), $user, M_READ);
|
||||
$documents_ = LetoDMS_DMS::filterAccess($subFolders[$i]->getDocuments(), $user, M_READ);
|
||||
$subFolders_ = LetoDMS_Core_DMS::filterAccess($subFolders[$i]->getSubFolders(), $user, M_READ);
|
||||
$documents_ = LetoDMS_Core_DMS::filterAccess($subFolders[$i]->getDocuments(), $user, M_READ);
|
||||
|
||||
if (count($subFolders_) + count($documents_) > 0)
|
||||
print "<a href=\"out.DocumentChooser.php?form=$form&folderid=".$subFolders[$i]->getID()."\"><img class='treeicon' src=\"".getImgPath("plus.png")."\" border=0></a>";
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
include("../inc/inc.Version.php");
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.Language.php");
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.ClassDMS.php");
|
||||
include("../LetoDMS_Core.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user