mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 13:11:31 +00:00
Merge branch 'seeddms-5.0.x'
This commit is contained in:
commit
ff3dd800e4
17
CHANGELOG
17
CHANGELOG
|
@ -1,3 +1,10 @@
|
|||
--------------------------------------------------------------------------------
|
||||
Changes in version 5.0.10
|
||||
--------------------------------------------------------------------------------
|
||||
- merged changes from 4.3.33
|
||||
- new javascript base calendar
|
||||
- overhaul indexing of documents
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Changes in version 5.0.9
|
||||
--------------------------------------------------------------------------------
|
||||
|
@ -63,6 +70,16 @@
|
|||
- add .xml to online file types by default
|
||||
- add home folder for users
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Changes in version 4.3.33
|
||||
--------------------------------------------------------------------------------
|
||||
- add support for fine-uploader as a replacement for the old jumploader
|
||||
- when importing from filesystem, the imported folder can be deleted afterwards
|
||||
- new calendar
|
||||
- move folder/document properly checks for access right if done by drag and
|
||||
drop (Closes #309)
|
||||
- show workflow log on document details page
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Changes in version 4.3.32
|
||||
--------------------------------------------------------------------------------
|
||||
|
|
2
Makefile
2
Makefile
|
@ -1,4 +1,4 @@
|
|||
VERSION=5.0.9
|
||||
VERSION=5.0.10
|
||||
SRC=CHANGELOG inc conf utils index.php languages views op out controllers doc styles TODO LICENSE webdav install restapi pdfviewer
|
||||
# webapp
|
||||
|
||||
|
|
|
@ -207,21 +207,21 @@ class SeedDMS_Core_Attribute { /* {{{ */
|
|||
switch(get_class($this->_obj)) {
|
||||
case $this->_dms->getClassname('document'):
|
||||
if(trim($value) === '')
|
||||
$queryStr = "DELETE FROM tblDocumentAttributes WHERE `document` = " . $this->_obj->getID() . " AND `attrdef` = " . $this->_attrdef->getId();
|
||||
$queryStr = "DELETE FROM `tblDocumentAttributes` WHERE `document` = " . $this->_obj->getID() . " AND `attrdef` = " . $this->_attrdef->getId();
|
||||
else
|
||||
$queryStr = "UPDATE tblDocumentAttributes SET value = ".$db->qstr($value)." WHERE `document` = " . $this->_obj->getID() . " AND `attrdef` = " . $this->_attrdef->getId();
|
||||
$queryStr = "UPDATE `tblDocumentAttributes` SET `value` = ".$db->qstr($value)." WHERE `document` = " . $this->_obj->getID() . " AND `attrdef` = " . $this->_attrdef->getId();
|
||||
break;
|
||||
case $this->_dms->getClassname('documentcontent'):
|
||||
if(trim($value) === '')
|
||||
$queryStr = "DELETE FROM tblDocumentContentAttributes WHERE `content` = " . $this->_obj->getID() . " AND `attrdef` = " . $this->_attrdef->getId();
|
||||
$queryStr = "DELETE FROM `tblDocumentContentAttributes` WHERE `content` = " . $this->_obj->getID() . " AND `attrdef` = " . $this->_attrdef->getId();
|
||||
else
|
||||
$queryStr = "UPDATE tblDocumentContentAttributes SET value = ".$db->qstr($value)." WHERE `content` = " . $this->_obj->getID() . " AND `attrdef` = " . $this->_attrdef->getId();
|
||||
$queryStr = "UPDATE `tblDocumentContentAttributes` SET `value` = ".$db->qstr($value)." WHERE `content` = " . $this->_obj->getID() . " AND `attrdef` = " . $this->_attrdef->getId();
|
||||
break;
|
||||
case $this->_dms->getClassname('folder'):
|
||||
if(trim($value) === '')
|
||||
$queryStr = "DELETE FROM tblFolderAttributes WHERE `folder` = " . $this->_obj->getID() . " AND `attrdef` = " . $this->_attrdef->getId();
|
||||
$queryStr = "DELETE FROM `tblFolderAttributes WHERE` `folder` = " . $this->_obj->getID() . " AND `attrdef` = " . $this->_attrdef->getId();
|
||||
else
|
||||
$queryStr = "UPDATE tblFolderAttributes SET value = ".$db->qstr($value)." WHERE `folder` = " . $this->_obj->getID() . " AND `attrdef` = " . $this->_attrdef->getId();
|
||||
$queryStr = "UPDATE `tblFolderAttributes` SET `value` = ".$db->qstr($value)." WHERE `folder` = " . $this->_obj->getID() . " AND `attrdef` = " . $this->_attrdef->getId();
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
|
@ -446,7 +446,7 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */
|
|||
function setName($name) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblAttributeDefinitions SET name =".$db->qstr($name)." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblAttributeDefinitions` SET `name` =".$db->qstr($name)." WHERE `id` = " . $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -476,7 +476,7 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */
|
|||
function setObjType($objtype) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblAttributeDefinitions SET objtype =".intval($objtype)." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblAttributeDefinitions` SET `objtype` =".intval($objtype)." WHERE `id` = " . $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -506,7 +506,7 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */
|
|||
function setType($type) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblAttributeDefinitions SET type =".intval($type)." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblAttributeDefinitions` SET `type` =".intval($type)." WHERE `id` = " . $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -531,7 +531,7 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */
|
|||
function setMultipleValues($mv) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblAttributeDefinitions SET multiple =".intval($mv)." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblAttributeDefinitions` SET `multiple` =".intval($mv)." WHERE `id` = " . $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -553,7 +553,7 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */
|
|||
function setMinValues($minvalues) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblAttributeDefinitions SET minvalues =".intval($minvalues)." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblAttributeDefinitions` SET `minvalues` =".intval($minvalues)." WHERE `id` = " . $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -575,7 +575,7 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */
|
|||
function setMaxValues($maxvalues) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblAttributeDefinitions SET maxvalues =".intval($maxvalues)." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblAttributeDefinitions` SET `maxvalues` =".intval($maxvalues)." WHERE `id` = " . $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -671,7 +671,7 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */
|
|||
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblAttributeDefinitions SET valueset =".$db->qstr($valuesetstr)." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblAttributeDefinitions` SET `valueset` =".$db->qstr($valuesetstr)." WHERE `id` = " . $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -701,7 +701,7 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */
|
|||
function setRegex($regex) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblAttributeDefinitions SET regex =".$db->qstr($regex)." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblAttributeDefinitions` SET `regex` =".$db->qstr($regex)." WHERE `id` = " . $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -721,13 +721,13 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */
|
|||
function isUsed() { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "SELECT * FROM tblDocumentAttributes WHERE attrdef=".$this->_id;
|
||||
$queryStr = "SELECT * FROM `tblDocumentAttributes` WHERE `attrdef`=".$this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_array($resArr) && count($resArr) == 0) {
|
||||
$queryStr = "SELECT * FROM tblFolderAttributes WHERE attrdef=".$this->_id;
|
||||
$queryStr = "SELECT * FROM `tblFolderAttributes` WHERE `attrdef`=".$this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_array($resArr) && count($resArr) == 0) {
|
||||
$queryStr = "SELECT * FROM tblDocumentContentAttributes WHERE attrdef=".$this->_id;
|
||||
$queryStr = "SELECT * FROM `tblDocumentContentAttributes` WHERE `attrdef`=".$this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_array($resArr) && count($resArr) == 0) {
|
||||
|
||||
|
@ -780,7 +780,7 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */
|
|||
$result = array('docs'=>array(), 'folders'=>array(), 'contents'=>array());
|
||||
if($this->_objtype == SeedDMS_Core_AttributeDefinition::objtype_all ||
|
||||
$this->_objtype == SeedDMS_Core_AttributeDefinition::objtype_document) {
|
||||
$queryStr = "SELECT * FROM tblDocumentAttributes WHERE attrdef=".$this->_id;
|
||||
$queryStr = "SELECT * FROM `tblDocumentAttributes` WHERE `attrdef`=".$this->_id;
|
||||
if($limit)
|
||||
$queryStr .= " limit ".(int) $limit;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
|
@ -791,7 +791,7 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */
|
|||
}
|
||||
}
|
||||
}
|
||||
$queryStr = "SELECT count(*) c, value FROM tblDocumentAttributes WHERE attrdef=".$this->_id." GROUP BY value ORDER BY c DESC";
|
||||
$queryStr = "SELECT count(*) c, `value` FROM `tblDocumentAttributes` WHERE `attrdef`=".$this->_id." GROUP BY `value` ORDER BY c DESC";
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if($resArr) {
|
||||
$result['frequencies']['document'] = $resArr;
|
||||
|
@ -800,7 +800,7 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */
|
|||
|
||||
if($this->_objtype == SeedDMS_Core_AttributeDefinition::objtype_all ||
|
||||
$this->_objtype == SeedDMS_Core_AttributeDefinition::objtype_folder) {
|
||||
$queryStr = "SELECT * FROM tblFolderAttributes WHERE attrdef=".$this->_id;
|
||||
$queryStr = "SELECT * FROM `tblFolderAttributes` WHERE `attrdef`=".$this->_id;
|
||||
if($limit)
|
||||
$queryStr .= " limit ".(int) $limit;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
|
@ -811,7 +811,7 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */
|
|||
}
|
||||
}
|
||||
}
|
||||
$queryStr = "SELECT count(*) c, value FROM tblFolderAttributes WHERE attrdef=".$this->_id." GROUP BY value ORDER BY c DESC";
|
||||
$queryStr = "SELECT count(*) c, `value` FROM `tblFolderAttributes` WHERE `attrdef`=".$this->_id." GROUP BY `value` ORDER BY c DESC";
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if($resArr) {
|
||||
$result['frequencies']['folder'] = $resArr;
|
||||
|
@ -820,7 +820,7 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */
|
|||
|
||||
if($this->_objtype == SeedDMS_Core_AttributeDefinition::objtype_all ||
|
||||
$this->_objtype == SeedDMS_Core_AttributeDefinition::objtype_documentcontent) {
|
||||
$queryStr = "SELECT * FROM tblDocumentContentAttributes WHERE attrdef=".$this->_id;
|
||||
$queryStr = "SELECT * FROM `tblDocumentContentAttributes` WHERE `attrdef`=".$this->_id;
|
||||
if($limit)
|
||||
$queryStr .= " limit ".(int) $limit;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
|
@ -831,7 +831,7 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */
|
|||
}
|
||||
}
|
||||
}
|
||||
$queryStr = "SELECT count(*) c, value FROM tblDocumentContentAttributes WHERE attrdef=".$this->_id." GROUP BY value ORDER BY c DESC";
|
||||
$queryStr = "SELECT count(*) c, `value` FROM `tblDocumentContentAttributes` WHERE `attrdef`=".$this->_id." GROUP BY `value` ORDER BY c DESC";
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if($resArr) {
|
||||
$result['frequencies']['content'] = $resArr;
|
||||
|
@ -854,7 +854,7 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */
|
|||
return false;
|
||||
|
||||
// Delete user itself
|
||||
$queryStr = "DELETE FROM tblAttributeDefinitions WHERE id = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblAttributeDefinitions` WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) return false;
|
||||
|
||||
return true;
|
||||
|
@ -873,7 +873,7 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */
|
|||
$result = array('docs'=>array(), 'folders'=>array(), 'contents'=>array());
|
||||
if($this->_objtype == SeedDMS_Core_AttributeDefinition::objtype_all ||
|
||||
$this->_objtype == SeedDMS_Core_AttributeDefinition::objtype_document) {
|
||||
$queryStr = "SELECT * FROM tblDocumentAttributes WHERE attrdef=".$this->_id." AND value=".$db->qstr($attrvalue);
|
||||
$queryStr = "SELECT * FROM `tblDocumentAttributes` WHERE `attrdef`=".$this->_id." AND `value`=".$db->qstr($attrvalue);
|
||||
if($limit)
|
||||
$queryStr .= " limit ".(int) $limit;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
|
@ -888,7 +888,7 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */
|
|||
|
||||
if($this->_objtype == SeedDMS_Core_AttributeDefinition::objtype_all ||
|
||||
$this->_objtype == SeedDMS_Core_AttributeDefinition::objtype_folder) {
|
||||
$queryStr = "SELECT * FROM tblFolderAttributes WHERE attrdef=".$this->_id." AND value=".$db->qstr($attrvalue);
|
||||
$queryStr = "SELECT * FROM `tblFolderAttributes` WHERE `attrdef`=".$this->_id." AND `value`=".$db->qstr($attrvalue);
|
||||
if($limit)
|
||||
$queryStr .= " limit ".(int) $limit;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
|
|
|
@ -344,7 +344,7 @@ class SeedDMS_Core_DMS {
|
|||
$this->callbacks = array();
|
||||
$this->version = '@package_version@';
|
||||
if($this->version[0] == '@')
|
||||
$this->version = '5.0.9';
|
||||
$this->version = '5.0.10';
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
|
@ -411,7 +411,7 @@ class SeedDMS_Core_DMS {
|
|||
$tbllist = explode(',',strtolower(join(',',$tbllist)));
|
||||
if(!array_search('tblversion', $tbllist))
|
||||
return false;
|
||||
$queryStr = "SELECT * FROM tblVersion order by major,minor,subminor limit 1";
|
||||
$queryStr = "SELECT * FROM `tblVersion` order by `major`,`minor`,`subminor` limit 1";
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
return false;
|
||||
|
@ -433,7 +433,7 @@ class SeedDMS_Core_DMS {
|
|||
$tbllist = explode(',',strtolower(join(',',$tbllist)));
|
||||
if(!array_search('tblversion', $tbllist))
|
||||
return true;
|
||||
$queryStr = "SELECT * FROM tblVersion order by major,minor,subminor limit 1";
|
||||
$queryStr = "SELECT * FROM `tblVersion` order by `major`,`minor`,`subminor` limit 1";
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
return false;
|
||||
|
@ -601,7 +601,7 @@ class SeedDMS_Core_DMS {
|
|||
function getDocumentContent($id) { /* {{{ */
|
||||
if (!is_numeric($id)) return false;
|
||||
|
||||
$queryStr = "SELECT * FROM tblDocumentContent WHERE id = ".(int) $id;
|
||||
$queryStr = "SELECT * FROM `tblDocumentContent` WHERE `id` = ".(int) $id;
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
return false;
|
||||
|
@ -838,25 +838,9 @@ class SeedDMS_Core_DMS {
|
|||
$totalDocs = 0;
|
||||
if($mode & 0x1) {
|
||||
$searchKey = "";
|
||||
$searchFields = array();
|
||||
if (in_array(1, $searchin)) {
|
||||
$searchFields[] = "`tblDocuments`.`keywords`";
|
||||
}
|
||||
if (in_array(2, $searchin)) {
|
||||
$searchFields[] = "`tblDocuments`.`name`";
|
||||
}
|
||||
if (in_array(3, $searchin)) {
|
||||
$searchFields[] = "`tblDocuments`.`comment`";
|
||||
$searchFields[] = "`tblDocumentContent`.`comment`";
|
||||
}
|
||||
if (in_array(4, $searchin)) {
|
||||
$searchFields[] = "`tblDocumentAttributes`.`value`";
|
||||
$searchFields[] = "`tblDocumentContentAttributes`.`value`";
|
||||
}
|
||||
if (in_array(5, $searchin)) {
|
||||
$searchFields[] = "`tblDocuments`.`id`";
|
||||
}
|
||||
|
||||
$classname = $this->classnames['document'];
|
||||
$searchFields = $classname::getSearchFields($searchin);
|
||||
|
||||
if (count($searchFields)>0) {
|
||||
foreach ($tkeys as $key) {
|
||||
|
@ -1030,7 +1014,7 @@ class SeedDMS_Core_DMS {
|
|||
|
||||
if($searchKey || $searchOwner || $searchCategories || $searchCreateDate || $searchExpirationDate || $searchAttributes || $status) {
|
||||
// Count the number of rows that the search will produce.
|
||||
$resArr = $this->db->getResultArray("SELECT COUNT(*) AS num FROM (SELECT DISTINCT `tblDocuments`.id ".$searchQuery.") a");
|
||||
$resArr = $this->db->getResultArray("SELECT COUNT(*) AS num FROM (SELECT DISTINCT `tblDocuments`.`id` ".$searchQuery.") a");
|
||||
$totalDocs = 0;
|
||||
if (is_numeric($resArr[0]["num"]) && $resArr[0]["num"]>0) {
|
||||
$totalDocs = (integer)$resArr[0]["num"];
|
||||
|
@ -1124,7 +1108,7 @@ class SeedDMS_Core_DMS {
|
|||
function getFolderByName($name, $folder=null) { /* {{{ */
|
||||
if (!$name) return false;
|
||||
|
||||
$queryStr = "SELECT * FROM tblFolders WHERE name = " . $this->db->qstr($name);
|
||||
$queryStr = "SELECT * FROM `tblFolders` WHERE `name` = " . $this->db->qstr($name);
|
||||
if($folder)
|
||||
$queryStr .= " AND `parent` = ". $folder->getID();
|
||||
$queryStr .= " LIMIT 1";
|
||||
|
@ -1150,7 +1134,7 @@ class SeedDMS_Core_DMS {
|
|||
* @return array list of errors
|
||||
*/
|
||||
function checkFolders() { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblFolders";
|
||||
$queryStr = "SELECT * FROM `tblFolders`";
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
|
||||
if (is_bool($resArr) && $resArr === false)
|
||||
|
@ -1184,7 +1168,7 @@ class SeedDMS_Core_DMS {
|
|||
* @return array list of errors
|
||||
*/
|
||||
function checkDocuments() { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblFolders";
|
||||
$queryStr = "SELECT * FROM `tblFolders`";
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
|
||||
if (is_bool($resArr) && $resArr === false)
|
||||
|
@ -1195,7 +1179,7 @@ class SeedDMS_Core_DMS {
|
|||
$fcache[$rec['id']] = array('name'=>$rec['name'], 'parent'=>$rec['parent'], 'folderList'=>$rec['folderList']);
|
||||
}
|
||||
|
||||
$queryStr = "SELECT * FROM tblDocuments";
|
||||
$queryStr = "SELECT * FROM `tblDocuments`";
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
|
||||
if (is_bool($resArr) && $resArr === false)
|
||||
|
@ -1295,9 +1279,11 @@ class SeedDMS_Core_DMS {
|
|||
}
|
||||
if($role == '')
|
||||
$role = '0';
|
||||
if(trim($pwdexpiration) == '')
|
||||
if(trim($pwdexpiration) == '' || trim($pwdexpiration) == 'never')
|
||||
$pwdexpiration = '0000-00-00 00:00:00';
|
||||
$queryStr = "INSERT INTO tblUsers (login, pwd, fullName, email, language, theme, comment, role, hidden, disabled, pwdExpiration, quota, homefolder) VALUES (".$db->qstr($login).", ".$db->qstr($pwd).", ".$db->qstr($fullName).", ".$db->qstr($email).", '".$language."', '".$theme."', ".$db->qstr($comment).", '".intval($role)."', '".intval($isHidden)."', '".intval($isDisabled)."', ".$db->qstr($pwdexpiration).", '".intval($quota)."', ".($homefolder ? intval($homefolder) : "NULL").")";
|
||||
elseif(trim($pwdexpiration) == 'now')
|
||||
$pwdexpiration = date('Y-m-d H:i:s');
|
||||
$queryStr = "INSERT INTO `tblUsers` (`login`, `pwd`, `fullName`, `email`, `language`, `theme`, `comment`, `role`, `hidden`, `disabled`, `pwdExpiration`, `quota`, `homefolder`) VALUES (".$db->qstr($login).", ".$db->qstr($pwd).", ".$db->qstr($fullName).", ".$db->qstr($email).", '".$language."', '".$theme."', ".$db->qstr($comment).", '".intval($role)."', '".intval($isHidden)."', '".intval($isDisabled)."', ".$db->qstr($pwdexpiration).", '".intval($quota)."', ".($homefolder ? intval($homefolder) : "NULL").")";
|
||||
$res = $this->db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -1360,7 +1346,7 @@ class SeedDMS_Core_DMS {
|
|||
return false;
|
||||
}
|
||||
|
||||
$queryStr = "INSERT INTO tblGroups (name, comment) VALUES (".$this->db->qstr($name).", ".$this->db->qstr($comment).")";
|
||||
$queryStr = "INSERT INTO `tblGroups` (`name`, `comment`) VALUES (".$this->db->qstr($name).", ".$this->db->qstr($comment).")";
|
||||
if (!$this->db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -1381,7 +1367,7 @@ class SeedDMS_Core_DMS {
|
|||
if (!is_numeric($id))
|
||||
return false;
|
||||
|
||||
$queryStr = "SELECT * FROM tblKeywordCategories WHERE id = " . (int) $id;
|
||||
$queryStr = "SELECT * FROM `tblKeywordCategories` WHERE `id` = " . (int) $id;
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if ((is_bool($resArr) && !$resArr) || (count($resArr) != 1))
|
||||
return false;
|
||||
|
@ -1393,7 +1379,7 @@ class SeedDMS_Core_DMS {
|
|||
} /* }}} */
|
||||
|
||||
function getKeywordCategoryByName($name, $userID) { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblKeywordCategories WHERE name = " . $this->db->qstr($name) . " AND owner = " . (int) $userID;
|
||||
$queryStr = "SELECT * FROM `tblKeywordCategories` WHERE `name` = " . $this->db->qstr($name) . " AND `owner` = " . (int) $userID;
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if ((is_bool($resArr) && !$resArr) || (count($resArr) != 1))
|
||||
return false;
|
||||
|
@ -1405,9 +1391,9 @@ class SeedDMS_Core_DMS {
|
|||
} /* }}} */
|
||||
|
||||
function getAllKeywordCategories($userIDs = array()) { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblKeywordCategories";
|
||||
$queryStr = "SELECT * FROM `tblKeywordCategories`";
|
||||
if ($userIDs)
|
||||
$queryStr .= " WHERE owner in (".implode(',', $userIDs).")";
|
||||
$queryStr .= " WHERE `owner` IN (".implode(',', $userIDs).")";
|
||||
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && !$resArr)
|
||||
|
@ -1427,9 +1413,9 @@ class SeedDMS_Core_DMS {
|
|||
* This function should be replaced by getAllKeywordCategories()
|
||||
*/
|
||||
function getAllUserKeywordCategories($userID) { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblKeywordCategories";
|
||||
$queryStr = "SELECT * FROM `tblKeywordCategories`";
|
||||
if ($userID != -1)
|
||||
$queryStr .= " WHERE owner = " . (int) $userID;
|
||||
$queryStr .= " WHERE `owner` = " . (int) $userID;
|
||||
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && !$resArr)
|
||||
|
@ -1449,7 +1435,7 @@ class SeedDMS_Core_DMS {
|
|||
if (is_object($this->getKeywordCategoryByName($name, $userID))) {
|
||||
return false;
|
||||
}
|
||||
$queryStr = "INSERT INTO tblKeywordCategories (owner, name) VALUES (".(int) $userID.", ".$this->db->qstr($name).")";
|
||||
$queryStr = "INSERT INTO `tblKeywordCategories` (`owner`, `name`) VALUES (".(int) $userID.", ".$this->db->qstr($name).")";
|
||||
if (!$this->db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -1470,7 +1456,7 @@ class SeedDMS_Core_DMS {
|
|||
if (!is_numeric($id))
|
||||
return false;
|
||||
|
||||
$queryStr = "SELECT * FROM tblCategory WHERE id = " . (int) $id;
|
||||
$queryStr = "SELECT * FROM `tblCategory` WHERE `id` = " . (int) $id;
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if ((is_bool($resArr) && !$resArr) || (count($resArr) != 1))
|
||||
return false;
|
||||
|
@ -1482,7 +1468,7 @@ class SeedDMS_Core_DMS {
|
|||
} /* }}} */
|
||||
|
||||
function getDocumentCategories() { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblCategory order by name";
|
||||
$queryStr = "SELECT * FROM `tblCategory` order by `name`";
|
||||
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && !$resArr)
|
||||
|
@ -1509,7 +1495,7 @@ class SeedDMS_Core_DMS {
|
|||
function getDocumentCategoryByName($name) { /* {{{ */
|
||||
if (!$name) return false;
|
||||
|
||||
$queryStr = "SELECT * FROM tblCategory where name=".$this->db->qstr($name);
|
||||
$queryStr = "SELECT * FROM `tblCategory` where `name`=".$this->db->qstr($name);
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if (!$resArr)
|
||||
return false;
|
||||
|
@ -1525,7 +1511,7 @@ class SeedDMS_Core_DMS {
|
|||
if (is_object($this->getDocumentCategoryByName($name))) {
|
||||
return false;
|
||||
}
|
||||
$queryStr = "INSERT INTO tblCategory (name) VALUES (".$this->db->qstr($name).")";
|
||||
$queryStr = "INSERT INTO `tblCategory` (`name`) VALUES (".$this->db->qstr($name).")";
|
||||
if (!$this->db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -1577,7 +1563,7 @@ class SeedDMS_Core_DMS {
|
|||
*/
|
||||
function createPasswordRequest($user) { /* {{{ */
|
||||
$hash = md5(uniqid(time()));
|
||||
$queryStr = "INSERT INTO tblUserPasswordRequest (userID, hash, `date`) VALUES (" . $user->getId() . ", " . $this->db->qstr($hash) .", ".$this->db->getCurrentDatetime().")";
|
||||
$queryStr = "INSERT INTO `tblUserPasswordRequest` (`userID`, `hash`, `date`) VALUES (" . $user->getId() . ", " . $this->db->qstr($hash) .", ".$this->db->getCurrentDatetime().")";
|
||||
$resArr = $this->db->getResult($queryStr);
|
||||
if (is_bool($resArr) && !$resArr) return false;
|
||||
return $hash;
|
||||
|
@ -1593,7 +1579,7 @@ class SeedDMS_Core_DMS {
|
|||
*/
|
||||
function checkPasswordRequest($hash) { /* {{{ */
|
||||
/* Get the password request from the database */
|
||||
$queryStr = "SELECT * FROM tblUserPasswordRequest where hash=".$this->db->qstr($hash);
|
||||
$queryStr = "SELECT * FROM `tblUserPasswordRequest` where `hash`=".$this->db->qstr($hash);
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && !$resArr)
|
||||
return false;
|
||||
|
@ -1613,7 +1599,7 @@ class SeedDMS_Core_DMS {
|
|||
*/
|
||||
function deletePasswordRequest($hash) { /* {{{ */
|
||||
/* Delete the request, so nobody can use it a second time */
|
||||
$queryStr = "DELETE FROM tblUserPasswordRequest WHERE hash=".$this->db->qstr($hash);
|
||||
$queryStr = "DELETE FROM `tblUserPasswordRequest` WHERE `hash`=".$this->db->qstr($hash);
|
||||
if (!$this->db->getResult($queryStr))
|
||||
return false;
|
||||
return true;
|
||||
|
@ -1632,7 +1618,7 @@ class SeedDMS_Core_DMS {
|
|||
if (!is_numeric($id))
|
||||
return false;
|
||||
|
||||
$queryStr = "SELECT * FROM tblAttributeDefinitions WHERE id = " . (int) $id;
|
||||
$queryStr = "SELECT * FROM `tblAttributeDefinitions` WHERE `id` = " . (int) $id;
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
|
||||
if (is_bool($resArr) && $resArr == false) return false;
|
||||
|
@ -1656,7 +1642,7 @@ class SeedDMS_Core_DMS {
|
|||
function getAttributeDefinitionByName($name) { /* {{{ */
|
||||
if (!$name) return false;
|
||||
|
||||
$queryStr = "SELECT * FROM tblAttributeDefinitions WHERE name = " . $this->db->qstr($name);
|
||||
$queryStr = "SELECT * FROM `tblAttributeDefinitions` WHERE `name` = " . $this->db->qstr($name);
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
|
||||
if (is_bool($resArr) && $resArr == false) return false;
|
||||
|
@ -1676,14 +1662,14 @@ class SeedDMS_Core_DMS {
|
|||
* @return array of instances of {@link SeedDMS_Core_AttributeDefinition} or false
|
||||
*/
|
||||
function getAllAttributeDefinitions($objtype=0) { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblAttributeDefinitions";
|
||||
$queryStr = "SELECT * FROM `tblAttributeDefinitions`";
|
||||
if($objtype) {
|
||||
if(is_array($objtype))
|
||||
$queryStr .= ' WHERE objtype in (\''.implode("','", $objtype).'\')';
|
||||
$queryStr .= ' WHERE `objtype` in (\''.implode("','", $objtype).'\')';
|
||||
else
|
||||
$queryStr .= ' WHERE objtype='.intval($objtype);
|
||||
$queryStr .= ' WHERE `objtype`='.intval($objtype);
|
||||
}
|
||||
$queryStr .= ' ORDER BY name';
|
||||
$queryStr .= ' ORDER BY `name`';
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
|
@ -1723,7 +1709,7 @@ class SeedDMS_Core_DMS {
|
|||
} else {
|
||||
$valueset = '';
|
||||
}
|
||||
$queryStr = "INSERT INTO tblAttributeDefinitions (name, objtype, type, multiple, minvalues, maxvalues, valueset, regex) VALUES (".$this->db->qstr($name).", ".intval($objtype).", ".intval($type).", ".intval($multiple).", ".intval($minvalues).", ".intval($maxvalues).", ".$this->db->qstr($valueset).", ".$this->db->qstr($regex).")";
|
||||
$queryStr = "INSERT INTO `tblAttributeDefinitions` (`name`, `objtype`, `type`, `multiple`, `minvalues`, `maxvalues`, `valueset`, `regex`) VALUES (".$this->db->qstr($name).", ".intval($objtype).", ".intval($type).", ".intval($multiple).", ".intval($minvalues).", ".intval($maxvalues).", ".$this->db->qstr($valueset).", ".$this->db->qstr($regex).")";
|
||||
$res = $this->db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -1737,13 +1723,13 @@ class SeedDMS_Core_DMS {
|
|||
* @return array of instances of {@link SeedDMS_Core_Workflow} or false
|
||||
*/
|
||||
function getAllWorkflows() { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblWorkflows ORDER BY name";
|
||||
$queryStr = "SELECT * FROM `tblWorkflows` ORDER BY `name`";
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
return false;
|
||||
|
||||
$queryStr = "SELECT * FROM tblWorkflowStates ORDER BY name";
|
||||
$queryStr = "SELECT * FROM `tblWorkflowStates` ORDER BY `name`";
|
||||
$ressArr = $this->db->getResultArray($queryStr);
|
||||
|
||||
if (is_bool($ressArr) && $ressArr == false)
|
||||
|
@ -1770,7 +1756,7 @@ class SeedDMS_Core_DMS {
|
|||
* @return object of instances of {@link SeedDMS_Core_Workflow} or false
|
||||
*/
|
||||
function getWorkflow($id) { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblWorkflows WHERE id=".intval($id);
|
||||
$queryStr = "SELECT * FROM `tblWorkflows` WHERE `id`=".intval($id);
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
|
@ -1796,7 +1782,7 @@ class SeedDMS_Core_DMS {
|
|||
function getWorkflowByName($name) { /* {{{ */
|
||||
if (!$name) return false;
|
||||
|
||||
$queryStr = "SELECT * FROM tblWorkflows WHERE name=".$this->db->qstr($name);
|
||||
$queryStr = "SELECT * FROM `tblWorkflows` WHERE `name`=".$this->db->qstr($name);
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
|
@ -1824,7 +1810,7 @@ class SeedDMS_Core_DMS {
|
|||
if (is_object($this->getWorkflowByName($name))) {
|
||||
return false;
|
||||
}
|
||||
$queryStr = "INSERT INTO tblWorkflows (name, initstate) VALUES (".$db->qstr($name).", ".$initstate->getID().")";
|
||||
$queryStr = "INSERT INTO `tblWorkflows` (`name`, `initstate`) VALUES (".$db->qstr($name).", ".$initstate->getID().")";
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -1844,7 +1830,7 @@ class SeedDMS_Core_DMS {
|
|||
if (!is_numeric($id))
|
||||
return false;
|
||||
|
||||
$queryStr = "SELECT * FROM tblWorkflowStates WHERE id = " . (int) $id;
|
||||
$queryStr = "SELECT * FROM `tblWorkflowStates` WHERE `id` = " . (int) $id;
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
|
||||
if (is_bool($resArr) && $resArr == false) return false;
|
||||
|
@ -1866,7 +1852,7 @@ class SeedDMS_Core_DMS {
|
|||
function getWorkflowStateByName($name) { /* {{{ */
|
||||
if (!$name) return false;
|
||||
|
||||
$queryStr = "SELECT * FROM tblWorkflowStates WHERE name=".$this->db->qstr($name);
|
||||
$queryStr = "SELECT * FROM `tblWorkflowStates` WHERE `name`=".$this->db->qstr($name);
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
|
@ -1889,7 +1875,7 @@ class SeedDMS_Core_DMS {
|
|||
* @return array of instances of {@link SeedDMS_Core_Workflow_State} or false
|
||||
*/
|
||||
function getAllWorkflowStates() { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblWorkflowStates ORDER BY name";
|
||||
$queryStr = "SELECT * FROM `tblWorkflowStates` ORDER BY `name`";
|
||||
$ressArr = $this->db->getResultArray($queryStr);
|
||||
|
||||
if (is_bool($ressArr) && $ressArr == false)
|
||||
|
@ -1917,7 +1903,7 @@ class SeedDMS_Core_DMS {
|
|||
if (is_object($this->getWorkflowStateByName($name))) {
|
||||
return false;
|
||||
}
|
||||
$queryStr = "INSERT INTO tblWorkflowStates (name, documentstatus) VALUES (".$db->qstr($name).", ".(int) $docstatus.")";
|
||||
$queryStr = "INSERT INTO `tblWorkflowStates` (`name`, `documentstatus`) VALUES (".$db->qstr($name).", ".(int) $docstatus.")";
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -1937,7 +1923,7 @@ class SeedDMS_Core_DMS {
|
|||
if (!is_numeric($id))
|
||||
return false;
|
||||
|
||||
$queryStr = "SELECT * FROM tblWorkflowActions WHERE id = " . (int) $id;
|
||||
$queryStr = "SELECT * FROM `tblWorkflowActions` WHERE `id` = " . (int) $id;
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
|
||||
if (is_bool($resArr) && $resArr == false) return false;
|
||||
|
@ -1961,7 +1947,7 @@ class SeedDMS_Core_DMS {
|
|||
function getWorkflowActionByName($name) { /* {{{ */
|
||||
if (!$name) return false;
|
||||
|
||||
$queryStr = "SELECT * FROM tblWorkflowActions WHERE name = " . $this->db->qstr($name);
|
||||
$queryStr = "SELECT * FROM `tblWorkflowActions` WHERE `name` = " . $this->db->qstr($name);
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
|
||||
if (is_bool($resArr) && $resArr == false) return false;
|
||||
|
@ -1980,7 +1966,7 @@ class SeedDMS_Core_DMS {
|
|||
* @return array list of instances of {@link SeedDMS_Core_Workflow_Action} or false
|
||||
*/
|
||||
function getAllWorkflowActions() { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblWorkflowActions";
|
||||
$queryStr = "SELECT * FROM `tblWorkflowActions`";
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
|
@ -2007,7 +1993,7 @@ class SeedDMS_Core_DMS {
|
|||
if (is_object($this->getWorkflowActionByName($name))) {
|
||||
return false;
|
||||
}
|
||||
$queryStr = "INSERT INTO tblWorkflowActions (name) VALUES (".$db->qstr($name).")";
|
||||
$queryStr = "INSERT INTO `tblWorkflowActions` (`name`) VALUES (".$db->qstr($name).")";
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -2027,7 +2013,7 @@ class SeedDMS_Core_DMS {
|
|||
if (!is_numeric($id))
|
||||
return false;
|
||||
|
||||
$queryStr = "SELECT * FROM tblWorkflowTransitions WHERE id = " . (int) $id;
|
||||
$queryStr = "SELECT * FROM `tblWorkflowTransitions` WHERE `id` = " . (int) $id;
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
|
||||
if (is_bool($resArr) && $resArr == false) return false;
|
||||
|
@ -2050,7 +2036,7 @@ class SeedDMS_Core_DMS {
|
|||
* the document is gone already.
|
||||
*/
|
||||
function getUnlinkedDocumentContent() { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblDocumentContent WHERE document NOT IN (SELECT id FROM tblDocuments)";
|
||||
$queryStr = "SELECT * FROM `tblDocumentContent` WHERE `document` NOT IN (SELECT id FROM `tblDocuments`)";
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if ($resArr === false)
|
||||
return false;
|
||||
|
@ -2074,7 +2060,7 @@ class SeedDMS_Core_DMS {
|
|||
* in version 4.0.0 of SeedDMS for implementation of user quotas.
|
||||
*/
|
||||
function getNoFileSizeDocumentContent() { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblDocumentContent WHERE fileSize = 0 OR fileSize is null";
|
||||
$queryStr = "SELECT * FROM `tblDocumentContent` WHERE `fileSize` = 0 OR `fileSize` is null";
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if ($resArr === false)
|
||||
return false;
|
||||
|
@ -2098,7 +2084,7 @@ class SeedDMS_Core_DMS {
|
|||
* in version 4.0.0 of SeedDMS for finding duplicates.
|
||||
*/
|
||||
function getNoChecksumDocumentContent() { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblDocumentContent WHERE checksum = '' OR checksum is null";
|
||||
$queryStr = "SELECT * FROM `tblDocumentContent` WHERE `checksum` = '' OR `checksum` is null";
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if ($resArr === false)
|
||||
return false;
|
||||
|
@ -2122,7 +2108,7 @@ class SeedDMS_Core_DMS {
|
|||
* in version 4.0.0 of SeedDMS for finding duplicates.
|
||||
*/
|
||||
function getDuplicateDocumentContent() { /* {{{ */
|
||||
$queryStr = "SELECT a.*, b.id as dupid FROM tblDocumentContent a LEFT JOIN tblDocumentContent b ON a.checksum=b.checksum where a.id!=b.id ORDER by a.id";
|
||||
$queryStr = "SELECT a.*, b.`id` as dupid FROM `tblDocumentContent` a LEFT JOIN `tblDocumentContent` b ON a.`checksum`=b.`checksum` where a.`id`!=b.`id` ORDER by a.`id`";
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if (!$resArr)
|
||||
return false;
|
||||
|
@ -2154,43 +2140,43 @@ class SeedDMS_Core_DMS {
|
|||
function getStatisticalData($type='') { /* {{{ */
|
||||
switch($type) {
|
||||
case 'docsperuser':
|
||||
$queryStr = "select b.fullname as `key`, count(owner) as total from tblDocuments a left join tblUsers b on a.owner=b.id group by owner";
|
||||
$queryStr = "select b.`fullName` as `key`, count(`owner`) as total from `tblDocuments` a left join `tblUsers` b on a.`owner`=b.`id` group by `owner`, b.`fullName`";
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if (!$resArr)
|
||||
return false;
|
||||
|
||||
return $resArr;
|
||||
case 'docspermimetype':
|
||||
$queryStr = "select b.mimeType as `key`, count(mimeType) as total from tblDocuments a left join tblDocumentContent b on a.id=b.document group by b.mimeType";
|
||||
$queryStr = "select b.`mimeType` as `key`, count(`mimeType`) as total from `tblDocuments` a left join `tblDocumentContent` b on a.`id`=b.`document` group by b.`mimeType`";
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if (!$resArr)
|
||||
return false;
|
||||
|
||||
return $resArr;
|
||||
case 'docspercategory':
|
||||
$queryStr = "select b.name as `key`, count(a.categoryID) as total from tblDocumentCategory a left join tblCategory b on a.categoryID=b.id group by a.categoryID";
|
||||
$queryStr = "select b.`name` as `key`, count(a.`categoryID`) as total from `tblDocumentCategory` a left join `tblCategory` b on a.`categoryID`=b.id group by a.`categoryID`, b.`name`";
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if (!$resArr)
|
||||
return false;
|
||||
|
||||
return $resArr;
|
||||
case 'docsperstatus':
|
||||
$queryStr = "select b.status as `key`, count(b.status) as total from (select a.id, max(b.version), max(c.statusLogId) as maxlog from tblDocuments a left join tblDocumentStatus b on a.id=b.documentid left join tblDocumentStatusLog c on b.statusid=c.statusid group by a.id, b.version order by a.id, b.statusid) a left join tblDocumentStatusLog b on a.maxlog=b.statusLogId group by b.status";
|
||||
$queryStr = "select b.status as `key`, count(b.status) as total from (select a.id, max(c.statusLogId) as maxlog from tblDocuments a left join tblDocumentStatus b on a.id=b.documentid left join tblDocumentStatusLog c on b.statusid=c.statusid group by a.id order by a.id, b.statusid) a left join tblDocumentStatusLog b on a.maxlog=b.statusLogId group by b.status";
|
||||
$queryStr = "select b.`status` as `key`, count(b.`status`) as total from (select a.id, max(b.version), max(c.`statusLogID`) as maxlog from `tblDocuments` a left join `tblDocumentStatus` b on a.id=b.`documentID` left join `tblDocumentStatusLog` c on b.`statusID`=c.`statusID` group by a.`id`, b.`version` order by a.`id`, b.`statusID`) a left join `tblDocumentStatusLog` b on a.`maxlog`=b.`statusLogID` group by b.`status`";
|
||||
$queryStr = "select b.`status` as `key`, count(b.`status`) as total from (select a.`id`, max(c.`statusLogID`) as maxlog from `tblDocuments` a left join `tblDocumentStatus` b on a.id=b.`documentID` left join `tblDocumentStatusLog` c on b.`statusID`=c.`statusID` group by a.`id` order by a.id) a left join `tblDocumentStatusLog` b on a.maxlog=b.`statusLogID` group by b.`status`";
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if (!$resArr)
|
||||
return false;
|
||||
|
||||
return $resArr;
|
||||
case 'docspermonth':
|
||||
$queryStr = "select *, count(`key`) as total from (select ".$this->db->getDateExtract("date", '%Y-%m')." as `key` from tblDocuments) a group by `key` order by `key`";
|
||||
$queryStr = "select *, count(`key`) as total from (select ".$this->db->getDateExtract("date", '%Y-%m')." as `key` from `tblDocuments`) a group by `key` order by `key`";
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if (!$resArr)
|
||||
return false;
|
||||
|
||||
return $resArr;
|
||||
case 'docsaccumulated':
|
||||
$queryStr = "select *, count(`key`) as total from (select ".$this->db->getDateExtract("date")." as `key` from tblDocuments) a group by `key` order by `key`";
|
||||
$queryStr = "select *, count(`key`) as total from (select ".$this->db->getDateExtract("date")." as `key` from `tblDocuments`) a group by `key` order by `key`";
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if (!$resArr)
|
||||
return false;
|
||||
|
@ -2206,7 +2192,7 @@ class SeedDMS_Core_DMS {
|
|||
}
|
||||
return $resArr;
|
||||
case 'sizeperuser':
|
||||
$queryStr = "select c.fullname as `key`, sum(fileSize) as total from tblDocuments a left join tblDocumentContent b on a.id=b.document left join tblUsers c on a.owner=c.id group by a.owner";
|
||||
$queryStr = "select c.`fullName` as `key`, sum(`fileSize`) as total from `tblDocuments` a left join `tblDocumentContent` b on a.id=b.`document` left join `tblUsers` c on a.`owner`=c.`id` group by a.`owner`, c.`fullName`";
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if (!$resArr)
|
||||
return false;
|
||||
|
@ -2225,18 +2211,18 @@ class SeedDMS_Core_DMS {
|
|||
* entries in the database tables tblDocumentContent, tblDocumentFiles,
|
||||
* and tblDocumentStatusLog
|
||||
*
|
||||
* @param string $start start date
|
||||
* @param string $end end date
|
||||
* @param string $start start date, defaults to start of current day
|
||||
* @param string $end end date, defaults to end of start day
|
||||
* @return array list of changes
|
||||
*/
|
||||
function getTimeline($startts='', $endts='') { /* {{{ */
|
||||
if(!$startts)
|
||||
$startts = mktime(0, 0, 0);
|
||||
if(!$endts)
|
||||
$startts = mktime(24, 0, 0);
|
||||
$endts = $startts+86400;
|
||||
$timeline = array();
|
||||
|
||||
$queryStr = "SELECT document FROM tblDocumentContent WHERE date > ".$startts." AND date < ".$endts;
|
||||
$queryStr = "SELECT DISTINCT document FROM `tblDocumentContent` WHERE `date` > ".$startts." AND `date` < ".$endts." UNION SELECT DISTINCT document FROM `tblDocumentFiles` WHERE `date` > ".$startts." AND `date` < ".$endts;
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if ($resArr === false)
|
||||
return false;
|
||||
|
|
|
@ -167,10 +167,41 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
$this->_notifyList = array();
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
* Return an array of database fields which used for searching
|
||||
* a term entered in the database search form
|
||||
*
|
||||
* @param array $searchin integer list of search scopes (2=name, 3=comment,
|
||||
* 4=attributes)
|
||||
* @return array list of database fields
|
||||
*/
|
||||
public static function getSearchFields($searchin) { /* {{{ */
|
||||
$searchFields = array();
|
||||
if (in_array(1, $searchin)) {
|
||||
$searchFields[] = "`tblDocuments`.`keywords`";
|
||||
}
|
||||
if (in_array(2, $searchin)) {
|
||||
$searchFields[] = "`tblDocuments`.`name`";
|
||||
}
|
||||
if (in_array(3, $searchin)) {
|
||||
$searchFields[] = "`tblDocuments`.`comment`";
|
||||
$searchFields[] = "`tblDocumentContent`.`comment`";
|
||||
}
|
||||
if (in_array(4, $searchin)) {
|
||||
$searchFields[] = "`tblDocumentAttributes`.`value`";
|
||||
$searchFields[] = "`tblDocumentContentAttributes`.`value`";
|
||||
}
|
||||
if (in_array(5, $searchin)) {
|
||||
$searchFields[] = "`tblDocuments`.`id`";
|
||||
}
|
||||
|
||||
return $searchFields;
|
||||
} /* }}} */
|
||||
|
||||
public static function getInstance($id, $dms) { /* {{{ */
|
||||
$db = $dms->getDB();
|
||||
|
||||
$queryStr = "SELECT * FROM tblDocuments WHERE id = " . (int) $id;
|
||||
$queryStr = "SELECT * FROM `tblDocuments` WHERE `id` = " . (int) $id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
return false;
|
||||
|
@ -179,7 +210,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
$resArr = $resArr[0];
|
||||
|
||||
// New Locking mechanism uses a separate table to track the lock.
|
||||
$queryStr = "SELECT * FROM tblDocumentLocks WHERE document = " . (int) $id;
|
||||
$queryStr = "SELECT * FROM `tblDocumentLocks` WHERE `document` = " . (int) $id;
|
||||
$lockArr = $db->getResultArray($queryStr);
|
||||
if ((is_bool($lockArr) && $lockArr==false) || (count($lockArr)==0)) {
|
||||
// Could not find a lock on the selected document.
|
||||
|
@ -196,7 +227,6 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
return $document;
|
||||
} /* }}} */
|
||||
|
||||
|
||||
/*
|
||||
* Return the directory of the document in the file system relativ
|
||||
* to the contentDir
|
||||
|
@ -227,7 +257,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
function setName($newName) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblDocuments SET name = ".$db->qstr($newName)." WHERE id = ". $this->_id;
|
||||
$queryStr = "UPDATE `tblDocuments` SET `name` = ".$db->qstr($newName)." WHERE `id` = ". $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -250,7 +280,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
function setComment($newComment) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblDocuments SET comment = ".$db->qstr($newComment)." WHERE id = ". $this->_id;
|
||||
$queryStr = "UPDATE `tblDocuments` SET `comment` = ".$db->qstr($newComment)." WHERE `id` = ". $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -263,7 +293,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
function setKeywords($newKeywords) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblDocuments SET keywords = ".$db->qstr($newKeywords)." WHERE id = ". $this->_id;
|
||||
$queryStr = "UPDATE `tblDocuments` SET `keywords` = ".$db->qstr($newKeywords)." WHERE `id` = ". $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -280,7 +310,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
$db = $this->_dms->getDB();
|
||||
|
||||
if(!$this->_categories) {
|
||||
$queryStr = "SELECT * FROM tblCategory where id in (select categoryID from tblDocumentCategory where documentID = ".$this->_id.")";
|
||||
$queryStr = "SELECT * FROM `tblCategory` where `id` in (select `categoryID` from `tblDocumentCategory` where `documentID` = ".$this->_id.")";
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && !$resArr)
|
||||
return false;
|
||||
|
@ -305,14 +335,14 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
$db = $this->_dms->getDB();
|
||||
|
||||
$db->startTransaction();
|
||||
$queryStr = "DELETE from tblDocumentCategory WHERE documentID = ". $this->_id;
|
||||
$queryStr = "DELETE from `tblDocumentCategory` WHERE `documentID` = ". $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
foreach($newCategories as $cat) {
|
||||
$queryStr = "INSERT INTO tblDocumentCategory (categoryID, documentID) VALUES (". $cat->getId() .", ". $this->_id .")";
|
||||
$queryStr = "INSERT INTO `tblDocumentCategory` (`categoryID`, `documentID`) VALUES (". $cat->getId() .", ". $this->_id .")";
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
|
@ -350,7 +380,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
return false;
|
||||
}
|
||||
|
||||
$queryStr = "UPDATE tblDocuments SET date = " . (int) $date . " WHERE id = ". $this->_id;
|
||||
$queryStr = "UPDATE `tblDocuments` SET `date` = " . (int) $date . " WHERE `id` = ". $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
$this->_date = $date;
|
||||
|
@ -380,7 +410,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
function setFolder($newFolder) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblDocuments SET folder = " . $newFolder->getID() . " WHERE id = ". $this->_id;
|
||||
$queryStr = "UPDATE `tblDocuments` SET `folder` = " . $newFolder->getID() . " WHERE `id` = ". $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
$this->_folderID = $newFolder->getID();
|
||||
|
@ -395,7 +425,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
if (strlen($flist)>1) {
|
||||
$flist .= ":";
|
||||
}
|
||||
$queryStr = "UPDATE tblDocuments SET folderList = '" . $flist . "' WHERE id = ". $this->_id;
|
||||
$queryStr = "UPDATE `tblDocuments` SET `folderList` = '" . $flist . "' WHERE `id` = ". $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -422,7 +452,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
function setOwner($newOwner) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblDocuments set owner = " . $newOwner->getID() . " WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblDocuments` set `owner` = " . $newOwner->getID() . " WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -452,7 +482,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
function setDefaultAccess($mode, $noclean="false") { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblDocuments set defaultAccess = " . (int) $mode . " WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblDocuments` set `defaultAccess` = " . (int) $mode . " WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -483,7 +513,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
function setInheritAccess($inheritAccess, $noclean=false) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblDocuments SET inheritAccess = " . ($inheritAccess ? "1" : "0") . " WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblDocuments` SET `inheritAccess` = " . ($inheritAccess ? "1" : "0") . " WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -534,7 +564,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
return true;
|
||||
}
|
||||
|
||||
$queryStr = "UPDATE tblDocuments SET expires = " . (int) $expires . " WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblDocuments` SET `expires` = " . (int) $expires . " WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -599,10 +629,10 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
|
||||
$lockUserID = -1;
|
||||
if (is_bool($falseOrUser) && !$falseOrUser) {
|
||||
$queryStr = "DELETE FROM tblDocumentLocks WHERE document = ".$this->_id;
|
||||
$queryStr = "DELETE FROM `tblDocumentLocks` WHERE `document` = ".$this->_id;
|
||||
}
|
||||
else if (is_object($falseOrUser)) {
|
||||
$queryStr = "INSERT INTO tblDocumentLocks (document, userID) VALUES (".$this->_id.", ".$falseOrUser->getID().")";
|
||||
$queryStr = "INSERT INTO `tblDocumentLocks` (`document`, `userID`) VALUES (".$this->_id.", ".$falseOrUser->getID().")";
|
||||
$lockUserID = $falseOrUser->getID();
|
||||
}
|
||||
else {
|
||||
|
@ -635,7 +665,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
function setSequence($seq) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblDocuments SET sequence = " . $seq . " WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblDocuments` SET `sequence` = " . $seq . " WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -652,7 +682,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
function clearAccessList($noclean=false) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "DELETE FROM tblACLs WHERE targetType = " . T_DOCUMENT . " AND target = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblACLs` WHERE `targetType` = " . T_DOCUMENT . " AND `target` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -699,8 +729,8 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
if ($mode!=M_ANY) {
|
||||
$modeStr = " AND mode".$op.(int)$mode;
|
||||
}
|
||||
$queryStr = "SELECT * FROM tblACLs WHERE targetType = ".T_DOCUMENT.
|
||||
" AND target = " . $this->_id . $modeStr . " ORDER BY targetType";
|
||||
$queryStr = "SELECT * FROM `tblACLs` WHERE `targetType` = ".T_DOCUMENT.
|
||||
" AND target = " . $this->_id . $modeStr . " ORDER BY `targetType`";
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && !$resArr)
|
||||
return false;
|
||||
|
@ -730,9 +760,9 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
function addAccess($mode, $userOrGroupID, $isUser) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$userOrGroup = ($isUser) ? "userID" : "groupID";
|
||||
$userOrGroup = ($isUser) ? "`userID`" : "`groupID`";
|
||||
|
||||
$queryStr = "INSERT INTO tblACLs (target, targetType, ".$userOrGroup.", mode) VALUES
|
||||
$queryStr = "INSERT INTO `tblACLs` (`target`, `targetType`, ".$userOrGroup.", `mode`) VALUES
|
||||
(".$this->_id.", ".T_DOCUMENT.", " . (int) $userOrGroupID . ", " .(int) $mode. ")";
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
@ -760,9 +790,9 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
function changeAccess($newMode, $userOrGroupID, $isUser) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$userOrGroup = ($isUser) ? "userID" : "groupID";
|
||||
$userOrGroup = ($isUser) ? "`userID`" : "`groupID`";
|
||||
|
||||
$queryStr = "UPDATE tblACLs SET mode = " . (int) $newMode . " WHERE targetType = ".T_DOCUMENT." AND target = " . $this->_id . " AND " . $userOrGroup . " = " . (int) $userOrGroupID;
|
||||
$queryStr = "UPDATE `tblACLs` SET `mode` = " . (int) $newMode . " WHERE `targetType` = ".T_DOCUMENT." AND `target` = " . $this->_id . " AND " . $userOrGroup . " = " . (int) $userOrGroupID;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -787,9 +817,9 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
function removeAccess($userOrGroupID, $isUser) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$userOrGroup = ($isUser) ? "userID" : "groupID";
|
||||
$userOrGroup = ($isUser) ? "`userID`" : "`groupID`";
|
||||
|
||||
$queryStr = "DELETE FROM tblACLs WHERE targetType = ".T_DOCUMENT." AND target = ".$this->_id." AND ".$userOrGroup." = " . (int) $userOrGroupID;
|
||||
$queryStr = "DELETE FROM `tblACLs` WHERE `targetType` = ".T_DOCUMENT." AND `target` = ".$this->_id." AND ".$userOrGroup." = " . (int) $userOrGroupID;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -927,7 +957,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
if (empty($this->_notifyList)) {
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr ="SELECT * FROM tblNotify WHERE targetType = " . T_DOCUMENT . " AND target = " . $this->_id;
|
||||
$queryStr ="SELECT * FROM `tblNotify` WHERE `targetType` = " . T_DOCUMENT . " AND `target` = " . $this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
return false;
|
||||
|
@ -989,7 +1019,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
function addNotify($userOrGroupID, $isUser) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$userOrGroup = ($isUser ? "userID" : "groupID");
|
||||
$userOrGroup = ($isUser ? "`userID`" : "`groupID`");
|
||||
|
||||
/* Verify that user / group exists. */
|
||||
$obj = ($isUser ? $this->_dms->getUser($userOrGroupID) : $this->_dms->getGroup($userOrGroupID));
|
||||
|
@ -1069,7 +1099,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
/* Check to see if user/group is already on the list. */
|
||||
$queryStr = "SELECT * FROM `tblNotify` WHERE `tblNotify`.`target` = '".$this->_id."' ".
|
||||
"AND `tblNotify`.`targetType` = '".T_DOCUMENT."' ".
|
||||
"AND `tblNotify`.`".$userOrGroup."` = '".(int) $userOrGroupID."'";
|
||||
"AND `tblNotify`.".$userOrGroup." = '".(int) $userOrGroupID."'";
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr)) {
|
||||
return -4;
|
||||
|
@ -1078,7 +1108,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
return -3;
|
||||
}
|
||||
|
||||
$queryStr = "INSERT INTO tblNotify (target, targetType, " . $userOrGroup . ") VALUES (" . $this->_id . ", " . T_DOCUMENT . ", " . (int) $userOrGroupID . ")";
|
||||
$queryStr = "INSERT INTO `tblNotify` (`target`, `targetType`, " . $userOrGroup . ") VALUES (" . $this->_id . ", " . T_DOCUMENT . ", " . (int) $userOrGroupID . ")";
|
||||
if (!$db->getResult($queryStr))
|
||||
return -4;
|
||||
|
||||
|
@ -1110,7 +1140,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
return -1;
|
||||
}
|
||||
|
||||
$userOrGroup = ($isUser) ? "userID" : "groupID";
|
||||
$userOrGroup = ($isUser) ? "`userID`" : "`groupID`";
|
||||
|
||||
/* Verify that the requesting user has permission to add the target to
|
||||
* the notification system.
|
||||
|
@ -1141,7 +1171,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
/* Check to see if the target is in the database. */
|
||||
$queryStr = "SELECT * FROM `tblNotify` WHERE `tblNotify`.`target` = '".$this->_id."' ".
|
||||
"AND `tblNotify`.`targetType` = '".T_DOCUMENT."' ".
|
||||
"AND `tblNotify`.`".$userOrGroup."` = '".(int) $userOrGroupID."'";
|
||||
"AND `tblNotify`.".$userOrGroup." = '".(int) $userOrGroupID."'";
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr)) {
|
||||
return -4;
|
||||
|
@ -1150,7 +1180,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
return -3;
|
||||
}
|
||||
|
||||
$queryStr = "DELETE FROM tblNotify WHERE target = " . $this->_id . " AND targetType = " . T_DOCUMENT . " AND " . $userOrGroup . " = " . (int) $userOrGroupID;
|
||||
$queryStr = "DELETE FROM `tblNotify` WHERE `target` = " . $this->_id . " AND `targetType` = " . T_DOCUMENT . " AND " . $userOrGroup . " = " . (int) $userOrGroupID;
|
||||
/* If type is given then delete only those notifications */
|
||||
if($type)
|
||||
$queryStr .= " AND `type` = ".(int) $type;
|
||||
|
@ -1193,7 +1223,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
* innodb is used. That's why the version is now determined here.
|
||||
*/
|
||||
if ((int)$version<1) {
|
||||
$queryStr = "SELECT MAX(version) as m from tblDocumentContent where document = ".$this->_id;
|
||||
$queryStr = "SELECT MAX(`version`) as m from `tblDocumentContent` where `document` = ".$this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && !$res)
|
||||
return false;
|
||||
|
@ -1205,7 +1235,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
$checksum = SeedDMS_Core_File::checksum($tmpFile);
|
||||
|
||||
$db->startTransaction();
|
||||
$queryStr = "INSERT INTO tblDocumentContent (document, version, comment, date, createdBy, dir, orgFileName, fileType, mimeType, fileSize, checksum) VALUES ".
|
||||
$queryStr = "INSERT INTO `tblDocumentContent` (`document`, `version`, `comment`, `date`, `createdBy`, `dir`, `orgFileName`, `fileType`, `mimeType`, `fileSize`, `checksum`) VALUES ".
|
||||
"(".$this->_id.", ".(int)$version.",".$db->qstr($comment).", ".$db->getCurrentTimestamp().", ".$user->getID().", ".$db->qstr($dir).", ".$db->qstr($orgFileName).", ".$db->qstr($fileType).", ".$db->qstr($mimeType).", ".$filesize.", ".$db->qstr($checksum).")";
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
|
@ -1231,9 +1261,6 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
unset($this->_content);
|
||||
unset($this->_latestContent);
|
||||
$content = $this->getLatestContent($contentID);
|
||||
// $content = new SeedDMS_Core_DocumentContent($contentID, $this, $version, $comment, $date, $user->getID(), $dir, $orgFileName, $fileType, $mimeType, $filesize, $checksum);
|
||||
if($workflow)
|
||||
$content->setWorkflow($workflow, $user);
|
||||
$docResultSet = new SeedDMS_Core_AddContentResultSet($content);
|
||||
$docResultSet->setDMS($this->_dms);
|
||||
|
||||
|
@ -1263,6 +1290,9 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
|
||||
$statusID = $db->getInsertID();
|
||||
|
||||
if($workflow)
|
||||
$content->setWorkflow($workflow, $user);
|
||||
|
||||
// Add reviewers into the database. Reviewers must review the document
|
||||
// and submit comments, if appropriate. Reviewers can also recommend that
|
||||
// a document be rejected.
|
||||
|
@ -1359,7 +1389,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
/* If $version < 1 than replace the content of the latest version.
|
||||
*/
|
||||
if ((int) $version<1) {
|
||||
$queryStr = "SELECT MAX(version) as m from tblDocumentContent where document = ".$this->_id;
|
||||
$queryStr = "SELECT MAX(`version`) as m from `tblDocumentContent` where `document` = ".$this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && !$res)
|
||||
return false;
|
||||
|
@ -1389,7 +1419,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
$checksum = SeedDMS_Core_File::checksum($tmpFile);
|
||||
|
||||
$db->startTransaction();
|
||||
$queryStr = "UPDATE tblDocumentContent set date=".$db->getCurrentTimestamp().", fileSize=".$filesize.", checksum=".$db->qstr($checksum)." WHERE id=".$content->getID();
|
||||
$queryStr = "UPDATE `tblDocumentContent` set `date`=".$db->getCurrentTimestamp().", `fileSize`=".$filesize.", `checksum`=".$db->qstr($checksum)." WHERE `id`=".$content->getID();
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
|
@ -1419,7 +1449,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
$db = $this->_dms->getDB();
|
||||
|
||||
if (!isset($this->_content)) {
|
||||
$queryStr = "SELECT * FROM tblDocumentContent WHERE document = ".$this->_id." ORDER BY version";
|
||||
$queryStr = "SELECT * FROM `tblDocumentContent` WHERE `document` = ".$this->_id." ORDER BY `version`";
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && !$res)
|
||||
return false;
|
||||
|
@ -1451,7 +1481,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
}
|
||||
|
||||
$db = $this->_dms->getDB();
|
||||
$queryStr = "SELECT * FROM tblDocumentContent WHERE document = ".$this->_id." AND version = " . (int) $version;
|
||||
$queryStr = "SELECT * FROM `tblDocumentContent` WHERE `document` = ".$this->_id." AND `version` = " . (int) $version;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && !$res)
|
||||
return false;
|
||||
|
@ -1466,7 +1496,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
function getLatestContent() { /* {{{ */
|
||||
if (!isset($this->_latestContent)) {
|
||||
$db = $this->_dms->getDB();
|
||||
$queryStr = "SELECT * FROM tblDocumentContent WHERE document = ".$this->_id." ORDER BY version DESC LIMIT 0,1";
|
||||
$queryStr = "SELECT * FROM `tblDocumentContent` WHERE `document` = ".$this->_id." ORDER BY `version` DESC LIMIT 1";
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && !$resArr)
|
||||
return false;
|
||||
|
@ -1492,13 +1522,13 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
$status = $version->getStatus();
|
||||
$stID = $status["statusID"];
|
||||
|
||||
$queryStr = "DELETE FROM tblDocumentContent WHERE `document` = " . $this->getID() . " AND `version` = " . $version->_version;
|
||||
$queryStr = "DELETE FROM `tblDocumentContent` WHERE `document` = " . $this->getID() . " AND `version` = " . $version->_version;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
$queryStr = "DELETE FROM tblDocumentContentAttributes WHERE content = " . $version->getId();
|
||||
$queryStr = "DELETE FROM `tblDocumentContentAttributes` WHERE `content` = " . $version->getId();
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
|
@ -1520,7 +1550,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
$stList = "";
|
||||
foreach ($status as $st) {
|
||||
$stList .= (strlen($stList)==0 ? "" : ", "). "'".$st["reviewID"]."'";
|
||||
$queryStr = "SELECT * FROM tblDocumentReviewLog WHERE reviewID = " . $st['reviewID'];
|
||||
$queryStr = "SELECT * FROM `tblDocumentReviewLog` WHERE `reviewID` = " . $st['reviewID'];
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if ((is_bool($resArr) && !$resArr)) {
|
||||
$db->rollbackTransaction();
|
||||
|
@ -1549,7 +1579,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
$stList = "";
|
||||
foreach ($status as $st) {
|
||||
$stList .= (strlen($stList)==0 ? "" : ", "). "'".$st["approveID"]."'";
|
||||
$queryStr = "SELECT * FROM tblDocumentApproveLog WHERE approveID = " . $st['approveID'];
|
||||
$queryStr = "SELECT * FROM `tblDocumentApproveLog` WHERE `approveID` = " . $st['approveID'];
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if ((is_bool($resArr) && !$resArr)) {
|
||||
$db->rollbackTransaction();
|
||||
|
@ -1603,7 +1633,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
|
||||
if (!is_numeric($linkID)) return false;
|
||||
|
||||
$queryStr = "SELECT * FROM tblDocumentLinks WHERE document = " . $this->_id ." AND id = " . (int) $linkID;
|
||||
$queryStr = "SELECT * FROM `tblDocumentLinks` WHERE `document` = " . $this->_id ." AND `id` = " . (int) $linkID;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if ((is_bool($resArr) && !$resArr) || count($resArr)==0)
|
||||
return false;
|
||||
|
@ -1631,12 +1661,12 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
if (!isset($this->_documentLinks)) {
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "SELECT * FROM tblDocumentLinks WHERE document = " . $this->_id;
|
||||
$queryStr = "SELECT * FROM `tblDocumentLinks` WHERE `document` = " . $this->_id;
|
||||
$tmp = array();
|
||||
if($publiconly)
|
||||
$tmp[] = "public=1";
|
||||
$tmp[] = "`public`=1";
|
||||
if($user)
|
||||
$tmp[] = "userID=".$user->getID();
|
||||
$tmp[] = "`userID`=".$user->getID();
|
||||
if($tmp) {
|
||||
$queryStr .= " AND (".implode(" OR ", $tmp).")";
|
||||
}
|
||||
|
@ -1675,12 +1705,12 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
function getReverseDocumentLinks($publiconly=false, $user=null) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "SELECT * FROM tblDocumentLinks WHERE target = " . $this->_id;
|
||||
$queryStr = "SELECT * FROM `tblDocumentLinks` WHERE `target` = " . $this->_id;
|
||||
$tmp = array();
|
||||
if($publiconly)
|
||||
$tmp[] = "public=1";
|
||||
$tmp[] = "`public`=1";
|
||||
if($user)
|
||||
$tmp[] = "userID=".$user->getID();
|
||||
$tmp[] = "`userID`=".$user->getID();
|
||||
if($tmp) {
|
||||
$queryStr .= " AND (".implode(" OR ", $tmp).")";
|
||||
}
|
||||
|
@ -1703,7 +1733,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
|
||||
$public = ($public) ? "1" : "0";
|
||||
|
||||
$queryStr = "INSERT INTO tblDocumentLinks(document, target, userID, public) VALUES (".$this->_id.", ".(int)$targetID.", ".(int)$userID.", ".(int)$public.")";
|
||||
$queryStr = "INSERT INTO `tblDocumentLinks` (`document`, `target`, `userID`, `public`) VALUES (".$this->_id.", ".(int)$targetID.", ".(int)$userID.", ".(int)$public.")";
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -1716,7 +1746,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
|
||||
if (!is_numeric($linkID)) return false;
|
||||
|
||||
$queryStr = "DELETE FROM tblDocumentLinks WHERE document = " . $this->_id ." AND id = " . (int) $linkID;
|
||||
$queryStr = "DELETE FROM `tblDocumentLinks` WHERE `document` = " . $this->_id ." AND `id` = " . (int) $linkID;
|
||||
if (!$db->getResult($queryStr)) return false;
|
||||
unset ($this->_documentLinks);
|
||||
return true;
|
||||
|
@ -1727,7 +1757,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
|
||||
if (!is_numeric($ID)) return false;
|
||||
|
||||
$queryStr = "SELECT * FROM tblDocumentFiles WHERE document = " . $this->_id ." AND id = " . (int) $ID;
|
||||
$queryStr = "SELECT * FROM `tblDocumentFiles` WHERE `document` = " . $this->_id ." AND `id` = " . (int) $ID;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if ((is_bool($resArr) && !$resArr) || count($resArr)==0) return false;
|
||||
|
||||
|
@ -1739,7 +1769,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
if (!isset($this->_documentFiles)) {
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "SELECT * FROM tblDocumentFiles WHERE document = " . $this->_id." ORDER BY `date` DESC";
|
||||
$queryStr = "SELECT * FROM `tblDocumentFiles` WHERE `document` = " . $this->_id." ORDER BY `date` DESC";
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && !$resArr) return false;
|
||||
|
||||
|
@ -1757,7 +1787,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
|
||||
$dir = $this->getDir();
|
||||
|
||||
$queryStr = "INSERT INTO tblDocumentFiles (comment, date, dir, document, fileType, mimeType, orgFileName, userID, name) VALUES ".
|
||||
$queryStr = "INSERT INTO `tblDocumentFiles` (`comment`, `date`, `dir`, `document`, `fileType`, `mimeType`, `orgFileName`, `userID`, `name`) VALUES ".
|
||||
"(".$db->qstr($comment).", ".$db->getCurrentTimestamp().", ".$db->qstr($dir).", ".$this->_id.", ".$db->qstr($fileType).", ".$db->qstr($mimeType).", ".$db->qstr($orgFileName).",".$user->getID().",".$db->qstr($name).")";
|
||||
if (!$db->getResult($queryStr)) return false;
|
||||
|
||||
|
@ -1793,7 +1823,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
$name=$file->getName();
|
||||
$comment=$file->getcomment();
|
||||
|
||||
$queryStr = "DELETE FROM tblDocumentFiles WHERE document = " . $this->getID() . " AND id = " . (int) $ID;
|
||||
$queryStr = "DELETE FROM `tblDocumentFiles` WHERE `document` = " . $this->getID() . " AND `id` = " . (int) $ID;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -1861,44 +1891,44 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
return false;
|
||||
}
|
||||
|
||||
$queryStr = "DELETE FROM tblDocuments WHERE id = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblDocuments` WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
$queryStr = "DELETE FROM tblDocumentAttributes WHERE document = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblDocumentAttributes` WHERE `document` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
$queryStr = "DELETE FROM tblACLs WHERE target = " . $this->_id . " AND targetType = " . T_DOCUMENT;
|
||||
$queryStr = "DELETE FROM `tblACLs` WHERE `target` = " . $this->_id . " AND `targetType` = " . T_DOCUMENT;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
$queryStr = "DELETE FROM tblDocumentLinks WHERE document = " . $this->_id . " OR target = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblDocumentLinks` WHERE `document` = " . $this->_id . " OR `target` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
$queryStr = "DELETE FROM tblDocumentLocks WHERE document = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblDocumentLocks` WHERE `document` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
$queryStr = "DELETE FROM tblDocumentFiles WHERE document = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblDocumentFiles` WHERE `document` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
$queryStr = "DELETE FROM tblDocumentCategory WHERE documentID = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblDocumentCategory` WHERE `documentID` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
// Delete the notification list.
|
||||
$queryStr = "DELETE FROM tblNotify WHERE target = " . $this->_id . " AND targetType = " . T_DOCUMENT;
|
||||
$queryStr = "DELETE FROM `tblNotify` WHERE `target` = " . $this->_id . " AND `targetType` = " . T_DOCUMENT;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
|
@ -2066,7 +2096,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
function getFolderList() { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "SELECT folderList FROM tblDocuments where id = ".$this->_id;
|
||||
$queryStr = "SELECT `folderList` FROM `tblDocuments` where id = ".$this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && !$resArr)
|
||||
return false;
|
||||
|
@ -2096,7 +2126,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
$pathPrefix .= ":";
|
||||
}
|
||||
if($curfolderlist != $pathPrefix) {
|
||||
$queryStr = "UPDATE tblDocuments SET folderList='".$pathPrefix."' WHERE id = ". $this->_id;
|
||||
$queryStr = "UPDATE `tblDocuments` SET `folderList`='".$pathPrefix."' WHERE `id` = ". $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -2115,7 +2145,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
function getUsedDiskSpace() { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "SELECT SUM(filesize) sum FROM tblDocumentContent WHERE document = " . $this->_id;
|
||||
$queryStr = "SELECT SUM(`fileSize`) sum FROM `tblDocumentContent` WHERE `document` = " . $this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
return false;
|
||||
|
@ -2137,7 +2167,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
|
||||
/* No need to add entries for new version because the status log
|
||||
* will generate an entry as well.
|
||||
$queryStr = "SELECT * FROM tblDocumentContent WHERE document = " . $this->_id;
|
||||
$queryStr = "SELECT * FROM `tblDocumentContent` WHERE `document` = " . $this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
return false;
|
||||
|
@ -2148,7 +2178,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
}
|
||||
*/
|
||||
|
||||
$queryStr = "SELECT * FROM tblDocumentFiles WHERE document = " . $this->_id;
|
||||
$queryStr = "SELECT * FROM `tblDocumentFiles` WHERE `document` = " . $this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
return false;
|
||||
|
@ -2317,7 +2347,7 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
return false;
|
||||
}
|
||||
|
||||
$queryStr = "UPDATE tblDocumentContent SET date = ".(int) $date." WHERE `document` = " . $this->_document->getID() . " AND `version` = " . $this->_version;
|
||||
$queryStr = "UPDATE `tblDocumentContent` SET `date` = ".(int) $date." WHERE `document` = " . $this->_document->getID() . " AND `version` = " . $this->_version;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -2339,7 +2369,7 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
return false;
|
||||
|
||||
$db = $this->_document->_dms->getDB();
|
||||
$queryStr = "UPDATE tblDocumentContent SET fileSize = ".$filesize." where `document` = " . $this->_document->getID() . " AND `version` = " . $this->_version;
|
||||
$queryStr = "UPDATE `tblDocumentContent` SET `fileSize` = ".$filesize." where `document` = " . $this->_document->getID() . " AND `version` = " . $this->_version;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
$this->_fileSize = $filesize;
|
||||
|
@ -2360,7 +2390,7 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
return false;
|
||||
|
||||
$db = $this->_document->_dms->getDB();
|
||||
$queryStr = "UPDATE tblDocumentContent SET checksum = ".$db->qstr($checksum)." where `document` = " . $this->_document->getID() . " AND `version` = " . $this->_version;
|
||||
$queryStr = "UPDATE `tblDocumentContent` SET `checksum` = ".$db->qstr($checksum)." where `document` = " . $this->_document->getID() . " AND `version` = " . $this->_version;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
$this->_checksum = $checksum;
|
||||
|
@ -2371,7 +2401,7 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
function setComment($newComment) { /* {{{ */
|
||||
$db = $this->_document->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblDocumentContent SET comment = ".$db->qstr($newComment)." WHERE `document` = " . $this->_document->getID() . " AND `version` = " . $this->_version;
|
||||
$queryStr = "UPDATE `tblDocumentContent` SET `comment` = ".$db->qstr($newComment)." WHERE `document` = " . $this->_document->getID() . " AND `version` = " . $this->_version;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -2673,7 +2703,7 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
if (1 || !isset($this->_reviewStatus)) {
|
||||
/* First get a list of all reviews for this document content */
|
||||
$queryStr=
|
||||
"SELECT reviewID FROM tblDocumentReviewers WHERE `version`='".$this->_version
|
||||
"SELECT `reviewID` FROM `tblDocumentReviewers` WHERE `version`='".$this->_version
|
||||
."' AND `documentID` = '". $this->_document->getID() ."' ";
|
||||
$recs = $db->getResultArray($queryStr);
|
||||
if (is_bool($recs) && !$recs)
|
||||
|
@ -2801,7 +2831,7 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
if (1 || !isset($this->_approvalStatus)) {
|
||||
/* First get a list of all approvals for this document content */
|
||||
$queryStr=
|
||||
"SELECT approveID FROM tblDocumentApprovers WHERE `version`='".$this->_version
|
||||
"SELECT `approveID` FROM `tblDocumentApprovers` WHERE `version`='".$this->_version
|
||||
."' AND `documentID` = '". $this->_document->getID() ."' ";
|
||||
$recs = $db->getResultArray($queryStr);
|
||||
if (is_bool($recs) && !$recs)
|
||||
|
@ -3504,7 +3534,7 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
$db = $this->_document->_dms->getDB();
|
||||
|
||||
if($this->_workflow) {
|
||||
$queryStr = "UPDATE tblWorkflowDocumentContent set state=". $state->getID() ." WHERE workflow=". intval($this->_workflow->getID()). " AND document=". intval($this->_document->getID()) ." AND version=". intval($this->_version) ."";
|
||||
$queryStr = "UPDATE `tblWorkflowDocumentContent` set `state`=". $state->getID() ." WHERE `workflow`=". intval($this->_workflow->getID()). " AND `document`=". intval($this->_document->getID()) ." AND version=". intval($this->_version) ."";
|
||||
if (!$db->getResult($queryStr)) {
|
||||
return false;
|
||||
}
|
||||
|
@ -3531,9 +3561,9 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
|
||||
if (!$this->_workflowState) {
|
||||
$queryStr=
|
||||
"SELECT b.* FROM tblWorkflowDocumentContent a LEFT JOIN tblWorkflowStates b ON a.state = b.id WHERE workflow=". intval($this->_workflow->getID())
|
||||
." AND a.version='".$this->_version
|
||||
."' AND a.document = '". $this->_document->getID() ."' ";
|
||||
"SELECT b.* FROM `tblWorkflowDocumentContent` a LEFT JOIN `tblWorkflowStates` b ON a.`state` = b.id WHERE `workflow`=". intval($this->_workflow->getID())
|
||||
." AND a.`version`='".$this->_version
|
||||
."' AND a.`document` = '". $this->_document->getID() ."' ";
|
||||
$recs = $db->getResultArray($queryStr);
|
||||
if (is_bool($recs) && !$recs)
|
||||
return false;
|
||||
|
@ -3555,7 +3585,7 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
if($workflow && is_object($workflow)) {
|
||||
$db->startTransaction();
|
||||
$initstate = $workflow->getInitState();
|
||||
$queryStr = "INSERT INTO tblWorkflowDocumentContent (workflow, document, version, state, date) VALUES (". $workflow->getID(). ", ". $this->_document->getID() .", ". $this->_version .", ".$initstate->getID().", ".$db->getCurrentDatetime().")";
|
||||
$queryStr = "INSERT INTO `tblWorkflowDocumentContent` (`workflow`, `document`, `version`, `state`, `date`) VALUES (". $workflow->getID(). ", ". $this->_document->getID() .", ". $this->_version .", ".$initstate->getID().", ".$db->getCurrentDatetime().")";
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
|
@ -3586,9 +3616,9 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
|
||||
if (!isset($this->_workflow)) {
|
||||
$queryStr=
|
||||
"SELECT b.* FROM tblWorkflowDocumentContent a LEFT JOIN tblWorkflows b ON a.workflow = b.id WHERE a.`version`='".$this->_version
|
||||
"SELECT b.* FROM `tblWorkflowDocumentContent` a LEFT JOIN `tblWorkflows` b ON a.`workflow` = b.id WHERE a.`version`='".$this->_version
|
||||
."' AND a.`document` = '". $this->_document->getID() ."' "
|
||||
." ORDER BY date DESC LIMIT 1";
|
||||
." ORDER BY `date` DESC LIMIT 1";
|
||||
$recs = $db->getResultArray($queryStr);
|
||||
if (is_bool($recs) && !$recs)
|
||||
return false;
|
||||
|
@ -3657,7 +3687,7 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
}
|
||||
|
||||
$db->startTransaction();
|
||||
$queryStr = "DELETE from tblWorkflowLog WHERE `document` = ". $this->_document->getID() ." AND `version` = ".$this->_version." AND `workflow` = ".$this->_workflow->getID();
|
||||
$queryStr = "DELETE from `tblWorkflowLog` WHERE `document` = ". $this->_document->getID() ." AND `version` = ".$this->_version." AND `workflow` = ".$this->_workflow->getID();
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
|
@ -3700,7 +3730,7 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
if(SeedDMS_Core_DMS::checkIfEqual($this->_workflow->getInitState(), $this->getWorkflowState()) || $unlink == true) {
|
||||
$db->startTransaction();
|
||||
$queryStr=
|
||||
"DELETE FROM tblWorkflowDocumentContent WHERE "
|
||||
"DELETE FROM `tblWorkflowDocumentContent` WHERE "
|
||||
."`version`='".$this->_version."' "
|
||||
." AND `document` = '". $this->_document->getID() ."' "
|
||||
." AND `workflow` = '". $this->_workflow->getID() ."' ";
|
||||
|
@ -3710,7 +3740,7 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
}
|
||||
if(!$unlink) {
|
||||
$queryStr=
|
||||
"DELETE FROM tblWorkflowLog WHERE "
|
||||
"DELETE FROM `tblWorkflowLog` WHERE "
|
||||
."`version`='".$this->_version."' "
|
||||
." AND `document` = '". $this->_document->getID() ."' "
|
||||
." AND `workflow` = '". $this->_workflow->getID() ."' ";
|
||||
|
@ -3742,7 +3772,7 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
return false;
|
||||
|
||||
$queryStr=
|
||||
"SELECT * FROM tblWorkflowDocumentContent WHERE "
|
||||
"SELECT * FROM `tblWorkflowDocumentContent` WHERE "
|
||||
."`version`='".$this->_version."' "
|
||||
." AND `document` = '". $this->_document->getID() ."' "
|
||||
." AND `workflow` = '". $this->_workflow->getID() ."' ";
|
||||
|
@ -3777,7 +3807,7 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
|
||||
if($subworkflow) {
|
||||
$initstate = $subworkflow->getInitState();
|
||||
$queryStr = "INSERT INTO tblWorkflowDocumentContent (parentworkflow, workflow, document, version, state, date) VALUES (". $this->_workflow->getID(). ", ". $subworkflow->getID(). ", ". $this->_document->getID() .", ". $this->_version .", ".$initstate->getID().", ".$db->getCurrentDatetime().")";
|
||||
$queryStr = "INSERT INTO `tblWorkflowDocumentContent` (`parentworkflow`, `workflow`, `document`, `version`, `state`, `date`) VALUES (". $this->_workflow->getID(). ", ". $subworkflow->getID(). ", ". $this->_document->getID() .", ". $this->_version .", ".$initstate->getID().", ".$db->getCurrentDatetime().")";
|
||||
if (!$db->getResult($queryStr)) {
|
||||
return false;
|
||||
}
|
||||
|
@ -3809,7 +3839,7 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
$db->startTransaction();
|
||||
|
||||
$queryStr=
|
||||
"SELECT * FROM tblWorkflowDocumentContent WHERE workflow=". intval($this->_workflow->getID())
|
||||
"SELECT * FROM `tblWorkflowDocumentContent` WHERE `workflow`=". intval($this->_workflow->getID())
|
||||
. " AND `version`='".$this->_version
|
||||
."' AND `document` = '". $this->_document->getID() ."' ";
|
||||
$recs = $db->getResultArray($queryStr);
|
||||
|
@ -3868,7 +3898,7 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
|
||||
/* Check if the user has already triggered the transition */
|
||||
$queryStr=
|
||||
"SELECT * FROM tblWorkflowLog WHERE `version`='".$this->_version ."' AND `document` = '". $this->_document->getID() ."' AND `workflow` = ". $this->_workflow->getID(). " AND userid = ".$user->getID();
|
||||
"SELECT * FROM `tblWorkflowLog` WHERE `version`='".$this->_version ."' AND `document` = '". $this->_document->getID() ."' AND `workflow` = ". $this->_workflow->getID(). " AND userid = ".$user->getID();
|
||||
$queryStr .= " AND `transition` = ".$transition->getID();
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && !$resArr)
|
||||
|
@ -4017,7 +4047,7 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
return false;
|
||||
|
||||
$state = $this->_workflowState;
|
||||
$queryStr = "INSERT INTO tblWorkflowLog (document, version, workflow, userid, transition, date, comment) VALUES (".$this->_document->getID().", ".$this->_version.", " . (int) $this->_workflow->getID() . ", " .(int) $user->getID(). ", ".(int) $transition->getID().", ".$db->getCurrentDatetime().", ".$db->qstr($comment).")";
|
||||
$queryStr = "INSERT INTO `tblWorkflowLog` (`document`, `version`, `workflow`, `userid`, `transition`, `date`, `comment`) VALUES (".$this->_document->getID().", ".$this->_version.", " . (int) $this->_workflow->getID() . ", " .(int) $user->getID(). ", ".(int) $transition->getID().", ".$db->getCurrentDatetime().", ".$db->qstr($comment).")";
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -4148,7 +4178,7 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
return false;
|
||||
*/
|
||||
$queryStr=
|
||||
"SELECT * FROM tblWorkflowLog WHERE `version`='".$this->_version ."' AND `document` = '". $this->_document->getID() ."'"; // AND `workflow` = ". $this->_workflow->getID();
|
||||
"SELECT * FROM `tblWorkflowLog` WHERE `version`='".$this->_version ."' AND `document` = '". $this->_document->getID() ."'"; // AND `workflow` = ". $this->_workflow->getID();
|
||||
if($transition)
|
||||
$queryStr .= " AND `transition` = ".$transition->getID();
|
||||
$queryStr .= " ORDER BY `date`";
|
||||
|
@ -4183,7 +4213,7 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
return false;
|
||||
|
||||
$queryStr=
|
||||
"SELECT * FROM tblWorkflowLog WHERE `version`='".$this->_version ."' AND `document` = '". $this->_document->getID() ."' AND `workflow` = ". $this->_workflow->getID();
|
||||
"SELECT * FROM `tblWorkflowLog` WHERE `version`='".$this->_version ."' AND `document` = '". $this->_document->getID() ."' AND `workflow` = ". $this->_workflow->getID();
|
||||
$queryStr .= " ORDER BY `id` DESC LIMIT 1";
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && !$resArr)
|
||||
|
|
|
@ -56,7 +56,7 @@ class SeedDMS_Core_DocumentCategory {
|
|||
function setName($newName) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblCategory SET name = ".$db->qstr($newName)." WHERE id = ". $this->_id;
|
||||
$queryStr = "UPDATE `tblCategory` SET `name` = ".$db->qstr($newName)." WHERE `id` = ". $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -67,7 +67,7 @@ class SeedDMS_Core_DocumentCategory {
|
|||
function isUsed() { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "SELECT * FROM tblDocumentCategory WHERE categoryID=".$this->_id;
|
||||
$queryStr = "SELECT * FROM `tblDocumentCategory` WHERE `categoryID`=".$this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_array($resArr) && count($resArr) == 0)
|
||||
return false;
|
||||
|
@ -77,21 +77,21 @@ class SeedDMS_Core_DocumentCategory {
|
|||
function getCategories() { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "SELECT * FROM tblCategory";
|
||||
$queryStr = "SELECT * FROM `tblCategory`";
|
||||
return $db->getResultArray($queryStr);
|
||||
} /* }}} */
|
||||
|
||||
function addCategory($keywords) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "INSERT INTO tblCategory (category) VALUES (".$db->qstr($keywords).")";
|
||||
$queryStr = "INSERT INTO `tblCategory` (`category`) VALUES (".$db->qstr($keywords).")";
|
||||
return $db->getResult($queryStr);
|
||||
} /* }}} */
|
||||
|
||||
function remove() { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "DELETE FROM tblCategory WHERE id = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblCategory` WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -101,7 +101,7 @@ class SeedDMS_Core_DocumentCategory {
|
|||
function getDocumentsByCategory() { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "SELECT * FROM tblDocumentCategory where categoryID=".$this->_id;
|
||||
$queryStr = "SELECT * FROM `tblDocumentCategory` where `categoryID`=".$this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && !$resArr)
|
||||
return false;
|
||||
|
|
|
@ -126,7 +126,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
public static function getInstance($id, $dms) { /* {{{ */
|
||||
$db = $dms->getDB();
|
||||
|
||||
$queryStr = "SELECT * FROM tblFolders WHERE id = " . (int) $id;
|
||||
$queryStr = "SELECT * FROM `tblFolders` WHERE `id` = " . (int) $id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
return false;
|
||||
|
@ -155,7 +155,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
public function setName($newName) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblFolders SET name = " . $db->qstr($newName) . " WHERE id = ". $this->_id;
|
||||
$queryStr = "UPDATE `tblFolders` SET `name` = " . $db->qstr($newName) . " WHERE `id` = ". $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -169,7 +169,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
public function setComment($newComment) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblFolders SET comment = " . $db->qstr($newComment) . " WHERE id = ". $this->_id;
|
||||
$queryStr = "UPDATE `tblFolders` SET `comment` = " . $db->qstr($newComment) . " WHERE `id` = ". $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -203,7 +203,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
return false;
|
||||
}
|
||||
|
||||
$queryStr = "UPDATE tblFolders SET date = " . (int) $date . " WHERE id = ". $this->_id;
|
||||
$queryStr = "UPDATE `tblFolders` SET `date` = " . (int) $date . " WHERE `id` = ". $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
$this->_date = $date;
|
||||
|
@ -276,7 +276,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
if (strlen($pathPrefix)>1) {
|
||||
$pathPrefix .= ":";
|
||||
}
|
||||
$queryStr = "UPDATE tblFolders SET parent = ".$newParent->getID().", folderList='".$pathPrefix."' WHERE id = ". $this->_id;
|
||||
$queryStr = "UPDATE `tblFolders` SET `parent` = ".$newParent->getID().", `folderList`='".$pathPrefix."' WHERE `id` = ". $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -342,7 +342,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
function setOwner($newOwner) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblFolders set owner = " . $newOwner->getID() . " WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblFolders` set `owner` = " . $newOwner->getID() . " WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -373,7 +373,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
function setDefaultAccess($mode, $noclean=false) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblFolders set defaultAccess = " . (int) $mode . " WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblFolders` set `defaultAccess` = " . (int) $mode . " WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -406,7 +406,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
|
||||
$inheritAccess = ($inheritAccess) ? "1" : "0";
|
||||
|
||||
$queryStr = "UPDATE tblFolders SET inheritAccess = " . (int) $inheritAccess . " WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblFolders` SET `inheritAccess` = " . (int) $inheritAccess . " WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -423,7 +423,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
function setSequence($seq) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblFolders SET sequence = " . $seq . " WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblFolders` SET `sequence` = " . $seq . " WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -443,7 +443,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
if (isset($this->_subFolders)) {
|
||||
return count($this->subFolders);
|
||||
}
|
||||
$queryStr = "SELECT count(*) as c FROM tblFolders WHERE parent = " . $this->_id;
|
||||
$queryStr = "SELECT count(*) as c FROM `tblFolders` WHERE `parent` = " . $this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && !$resArr)
|
||||
return false;
|
||||
|
@ -466,11 +466,11 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
$db = $this->_dms->getDB();
|
||||
|
||||
if (!isset($this->_subFolders)) {
|
||||
$queryStr = "SELECT * FROM tblFolders WHERE parent = " . $this->_id;
|
||||
$queryStr = "SELECT * FROM `tblFolders` WHERE `parent` = " . $this->_id;
|
||||
|
||||
if ($orderby=="n") $queryStr .= " ORDER BY name";
|
||||
elseif ($orderby=="s") $queryStr .= " ORDER BY sequence";
|
||||
elseif ($orderby=="d") $queryStr .= " ORDER BY date";
|
||||
if ($orderby=="n") $queryStr .= " ORDER BY `name`";
|
||||
elseif ($orderby=="s") $queryStr .= " ORDER BY `sequence`";
|
||||
elseif ($orderby=="d") $queryStr .= " ORDER BY `date`";
|
||||
if($dir == 'desc')
|
||||
$queryStr .= " DESC";
|
||||
|
||||
|
@ -514,7 +514,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
$db->startTransaction();
|
||||
|
||||
//inheritAccess = true, defaultAccess = M_READ
|
||||
$queryStr = "INSERT INTO tblFolders (name, parent, folderList, comment, date, owner, inheritAccess, defaultAccess, sequence) ".
|
||||
$queryStr = "INSERT INTO `tblFolders` (`name`, `parent`, `folderList`, `comment`, `date`, `owner`, `inheritAccess`, `defaultAccess`, `sequence`) ".
|
||||
"VALUES (".$db->qstr($name).", ".$this->_id.", ".$db->qstr($pathPrefix).", ".$db->qstr($comment).", ".$db->getCurrentTimestamp().", ".$owner->getID().", 1, ".M_READ.", ". $sequence.")";
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
|
@ -618,7 +618,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
if (isset($this->_documents)) {
|
||||
return count($this->documents);
|
||||
}
|
||||
$queryStr = "SELECT count(*) as c FROM tblDocuments WHERE folder = " . $this->_id;
|
||||
$queryStr = "SELECT count(*) as c FROM `tblDocuments` WHERE `folder` = " . $this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && !$resArr)
|
||||
return false;
|
||||
|
@ -637,7 +637,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
if (isset($this->_documents)) {
|
||||
return count($this->documents);
|
||||
}
|
||||
$queryStr = "SELECT count(*) as c FROM tblDocuments WHERE folder = " . $this->_id . " AND `name` = ".$db->qstr($name);
|
||||
$queryStr = "SELECT count(*) as c FROM `tblDocuments` WHERE `folder` = " . $this->_id . " AND `name` = ".$db->qstr($name);
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && !$resArr)
|
||||
return false;
|
||||
|
@ -660,10 +660,10 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
$db = $this->_dms->getDB();
|
||||
|
||||
if (!isset($this->_documents)) {
|
||||
$queryStr = "SELECT * FROM tblDocuments WHERE folder = " . $this->_id;
|
||||
if ($orderby=="n") $queryStr .= " ORDER BY name";
|
||||
elseif($orderby=="s") $queryStr .= " ORDER BY sequence";
|
||||
elseif($orderby=="d") $queryStr .= " ORDER BY date";
|
||||
$queryStr = "SELECT * FROM `tblDocuments` WHERE `folder` = " . $this->_id;
|
||||
if ($orderby=="n") $queryStr .= " ORDER BY `name`";
|
||||
elseif($orderby=="s") $queryStr .= " ORDER BY `sequence`";
|
||||
elseif($orderby=="d") $queryStr .= " ORDER BY `date`";
|
||||
if($dir == 'desc')
|
||||
$queryStr .= " DESC";
|
||||
|
||||
|
@ -715,7 +715,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
$pathPrefix .= ":";
|
||||
}
|
||||
|
||||
$queryStr = "SELECT id FROM tblFolders WHERE folderList like '".$pathPrefix. "%'";
|
||||
$queryStr = "SELECT id FROM `tblFolders` WHERE `folderList` like '".$pathPrefix. "%'";
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && !$resArr)
|
||||
return false;
|
||||
|
@ -745,7 +745,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
|
||||
$documents = array();
|
||||
if($folderids) {
|
||||
$queryStr = "SELECT id FROM tblDocuments WHERE folder in (".implode(',', $folderids). ")";
|
||||
$queryStr = "SELECT id FROM `tblDocuments` WHERE `folder` in (".implode(',', $folderids). ")";
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && !$resArr)
|
||||
return false;
|
||||
|
@ -818,7 +818,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
|
||||
$db->startTransaction();
|
||||
|
||||
$queryStr = "INSERT INTO tblDocuments (name, comment, date, expires, owner, folder, folderList, inheritAccess, defaultAccess, locked, keywords, sequence) VALUES ".
|
||||
$queryStr = "INSERT INTO `tblDocuments` (`name`, `comment`, `date`, `expires`, `owner`, `folder`, `folderList`, `inheritAccess`, `defaultAccess`, `locked`, `keywords`, `sequence`) VALUES ".
|
||||
"(".$db->qstr($name).", ".$db->qstr($comment).", ".$db->getCurrentTimestamp().", ".(int) $expires.", ".$owner->getID().", ".$this->_id.",".$db->qstr($pathPrefix).", 1, ".M_READ.", -1, ".$db->qstr($keywords).", " . $sequence . ")";
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
|
@ -888,30 +888,30 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
|
||||
$db->startTransaction();
|
||||
// unset homefolder as it will no longer exist
|
||||
$queryStr = "UPDATE tblUsers SET homefolder=NULL WHERE homefolder = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblUsers` SET `homefolder`=NULL WHERE `homefolder` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
// Remove database entries
|
||||
$queryStr = "DELETE FROM tblFolders WHERE id = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblFolders` WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
$queryStr = "DELETE FROM tblFolderAttributes WHERE folder = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblFolderAttributes` WHERE `folder` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
$queryStr = "DELETE FROM tblACLs WHERE target = ". $this->_id. " AND targetType = " . T_FOLDER;
|
||||
$queryStr = "DELETE FROM `tblACLs` WHERE `target` = ". $this->_id. " AND `targetType` = " . T_FOLDER;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
$queryStr = "DELETE FROM tblNotify WHERE target = ". $this->_id. " AND targetType = " . T_FOLDER;
|
||||
$queryStr = "DELETE FROM `tblNotify` WHERE `target` = ". $this->_id. " AND `targetType` = " . T_FOLDER;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
|
@ -1002,8 +1002,8 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
if ($mode!=M_ANY) {
|
||||
$modeStr = " AND mode".$op.(int)$mode;
|
||||
}
|
||||
$queryStr = "SELECT * FROM tblACLs WHERE targetType = ".T_FOLDER.
|
||||
" AND target = " . $this->_id . $modeStr . " ORDER BY targetType";
|
||||
$queryStr = "SELECT * FROM `tblACLs` WHERE `targetType` = ".T_FOLDER.
|
||||
" AND `target` = " . $this->_id . $modeStr . " ORDER BY `targetType`";
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && !$resArr)
|
||||
return false;
|
||||
|
@ -1029,7 +1029,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
function clearAccessList($noclean=false) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "DELETE FROM tblACLs WHERE targetType = " . T_FOLDER . " AND target = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblACLs` WHERE `targetType` = " . T_FOLDER . " AND `target` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -1054,9 +1054,9 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
function addAccess($mode, $userOrGroupID, $isUser) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$userOrGroup = ($isUser) ? "userID" : "groupID";
|
||||
$userOrGroup = ($isUser) ? "`userID`" : "`groupID`";
|
||||
|
||||
$queryStr = "INSERT INTO tblACLs (target, targetType, ".$userOrGroup.", mode) VALUES
|
||||
$queryStr = "INSERT INTO `tblACLs` (`target`, `targetType`, ".$userOrGroup.", `mode`) VALUES
|
||||
(".$this->_id.", ".T_FOLDER.", " . (int) $userOrGroupID . ", " .(int) $mode. ")";
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
@ -1084,9 +1084,9 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
function changeAccess($newMode, $userOrGroupID, $isUser) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$userOrGroup = ($isUser) ? "userID" : "groupID";
|
||||
$userOrGroup = ($isUser) ? "`userID`" : "`groupID`";
|
||||
|
||||
$queryStr = "UPDATE tblACLs SET mode = " . (int) $newMode . " WHERE targetType = ".T_FOLDER." AND target = " . $this->_id . " AND " . $userOrGroup . " = " . (int) $userOrGroupID;
|
||||
$queryStr = "UPDATE `tblACLs` SET `mode` = " . (int) $newMode . " WHERE `targetType` = ".T_FOLDER." AND `target` = " . $this->_id . " AND " . $userOrGroup . " = " . (int) $userOrGroupID;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -1103,9 +1103,9 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
function removeAccess($userOrGroupID, $isUser) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$userOrGroup = ($isUser) ? "userID" : "groupID";
|
||||
$userOrGroup = ($isUser) ? "`userID`" : "`groupID`";
|
||||
|
||||
$queryStr = "DELETE FROM tblACLs WHERE targetType = ".T_FOLDER." AND target = ".$this->_id." AND ".$userOrGroup." = " . (int) $userOrGroupID;
|
||||
$queryStr = "DELETE FROM `tblACLs` WHERE `targetType` = ".T_FOLDER." AND `target` = ".$this->_id." AND ".$userOrGroup." = " . (int) $userOrGroupID;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -1235,7 +1235,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
if (empty($this->_notifyList)) {
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr ="SELECT * FROM tblNotify WHERE targetType = " . T_FOLDER . " AND target = " . $this->_id;
|
||||
$queryStr ="SELECT * FROM `tblNotify` WHERE `targetType` = " . T_FOLDER . " AND `target` = " . $this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
return false;
|
||||
|
@ -1297,7 +1297,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
function addNotify($userOrGroupID, $isUser) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$userOrGroup = ($isUser) ? "userID" : "groupID";
|
||||
$userOrGroup = ($isUser) ? "`userID`" : "`groupID`";
|
||||
|
||||
/* Verify that user / group exists */
|
||||
$obj = ($isUser ? $this->_dms->getUser($userOrGroupID) : $this->_dms->getGroup($userOrGroupID));
|
||||
|
@ -1383,7 +1383,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
//
|
||||
$queryStr = "SELECT * FROM `tblNotify` WHERE `tblNotify`.`target` = '".$this->_id."' ".
|
||||
"AND `tblNotify`.`targetType` = '".T_FOLDER."' ".
|
||||
"AND `tblNotify`.`".$userOrGroup."` = '". (int) $userOrGroupID."'";
|
||||
"AND `tblNotify`.".$userOrGroup." = '". (int) $userOrGroupID."'";
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr)) {
|
||||
return -4;
|
||||
|
@ -1392,7 +1392,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
return -3;
|
||||
}
|
||||
|
||||
$queryStr = "INSERT INTO tblNotify (target, targetType, " . $userOrGroup . ") VALUES (" . $this->_id . ", " . T_FOLDER . ", " . (int) $userOrGroupID . ")";
|
||||
$queryStr = "INSERT INTO `tblNotify` (`target`, `targetType`, " . $userOrGroup . ") VALUES (" . $this->_id . ", " . T_FOLDER . ", " . (int) $userOrGroupID . ")";
|
||||
if (!$db->getResult($queryStr))
|
||||
return -4;
|
||||
|
||||
|
@ -1424,7 +1424,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
return -1;
|
||||
}
|
||||
|
||||
$userOrGroup = ($isUser) ? "userID" : "groupID";
|
||||
$userOrGroup = ($isUser) ? "`userID`" : "`groupID`";
|
||||
|
||||
/* Verify that the requesting user has permission to add the target to
|
||||
* the notification system.
|
||||
|
@ -1457,7 +1457,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
//
|
||||
$queryStr = "SELECT * FROM `tblNotify` WHERE `tblNotify`.`target` = '".$this->_id."' ".
|
||||
"AND `tblNotify`.`targetType` = '".T_FOLDER."' ".
|
||||
"AND `tblNotify`.`".$userOrGroup."` = '". (int) $userOrGroupID."'";
|
||||
"AND `tblNotify`.".$userOrGroup." = '". (int) $userOrGroupID."'";
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr)) {
|
||||
return -4;
|
||||
|
@ -1466,7 +1466,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
return -3;
|
||||
}
|
||||
|
||||
$queryStr = "DELETE FROM tblNotify WHERE target = " . $this->_id . " AND targetType = " . T_FOLDER . " AND " . $userOrGroup . " = " . (int) $userOrGroupID;
|
||||
$queryStr = "DELETE FROM `tblNotify` WHERE `target` = " . $this->_id . " AND `targetType` = " . T_FOLDER . " AND " . $userOrGroup . " = " . (int) $userOrGroupID;
|
||||
/* If type is given then delete only those notifications */
|
||||
if($type)
|
||||
$queryStr .= " AND `type` = ".(int) $type;
|
||||
|
@ -1627,7 +1627,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
function getFolderList() { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "SELECT folderList FROM tblFolders where id = ".$this->_id;
|
||||
$queryStr = "SELECT `folderList` FROM `tblFolders` where `id` = ".$this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && !$resArr)
|
||||
return false;
|
||||
|
@ -1656,7 +1656,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
$pathPrefix .= ":";
|
||||
}
|
||||
if($curfolderlist != $pathPrefix) {
|
||||
$queryStr = "UPDATE tblFolders SET folderList='".$pathPrefix."' WHERE id = ". $this->_id;
|
||||
$queryStr = "UPDATE `tblFolders` SET `folderList`='".$pathPrefix."' WHERE `id` = ". $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
|
|
@ -75,7 +75,7 @@ class SeedDMS_Core_Group { /* {{{ */
|
|||
$queryStr = "SELECT * FROM `tblGroups` WHERE `name` = ".$db->qstr($id);
|
||||
break;
|
||||
default:
|
||||
$queryStr = "SELECT * FROM `tblGroups` WHERE id = " . (int) $id;
|
||||
$queryStr = "SELECT * FROM `tblGroups` WHERE `id` = " . (int) $id;
|
||||
}
|
||||
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
|
@ -96,7 +96,7 @@ class SeedDMS_Core_Group { /* {{{ */
|
|||
|
||||
switch($orderby) {
|
||||
default:
|
||||
$queryStr = "SELECT * FROM tblGroups ORDER BY name";
|
||||
$queryStr = "SELECT * FROM `tblGroups` ORDER BY `name`";
|
||||
}
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
|
||||
|
@ -124,7 +124,7 @@ class SeedDMS_Core_Group { /* {{{ */
|
|||
function setName($newName) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblGroups SET name = ".$db->qstr($newName)." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblGroups` SET `name` = ".$db->qstr($newName)." WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -137,7 +137,7 @@ class SeedDMS_Core_Group { /* {{{ */
|
|||
function setComment($newComment) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblGroups SET comment = ".$db->qstr($newComment)." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblGroups` SET `comment` = ".$db->qstr($newComment)." WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -172,7 +172,7 @@ class SeedDMS_Core_Group { /* {{{ */
|
|||
|
||||
$queryStr = "SELECT `tblUsers`.* FROM `tblUsers` ".
|
||||
"LEFT JOIN `tblGroupMembers` ON `tblGroupMembers`.`userID`=`tblUsers`.`id` ".
|
||||
"WHERE `tblGroupMembers`.`groupID` = '". $this->_id ."' AND tblGroupMembers.manager = 1";
|
||||
"WHERE `tblGroupMembers`.`groupID` = '". $this->_id ."' AND `tblGroupMembers`.`manager` = 1";
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
return false;
|
||||
|
@ -190,7 +190,7 @@ class SeedDMS_Core_Group { /* {{{ */
|
|||
function addUser($user,$asManager=false) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "INSERT INTO tblGroupMembers (groupID, userID, manager) VALUES (".$this->_id.", ".$user->getID(). ", " . ($asManager?"1":"0") ." )";
|
||||
$queryStr = "INSERT INTO `tblGroupMembers` (`groupID`, `userID`, `manager`) VALUES (".$this->_id.", ".$user->getID(). ", " . ($asManager?"1":"0") ." )";
|
||||
$res = $db->getResult($queryStr);
|
||||
|
||||
if (!$res) return false;
|
||||
|
@ -202,7 +202,7 @@ class SeedDMS_Core_Group { /* {{{ */
|
|||
function removeUser($user) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "DELETE FROM tblGroupMembers WHERE groupID = ".$this->_id." AND userID = ".$user->getID();
|
||||
$queryStr = "DELETE FROM `tblGroupMembers` WHERE `groupID` = ".$this->_id." AND `userID` = ".$user->getID();
|
||||
$res = $db->getResult($queryStr);
|
||||
|
||||
if (!$res) return false;
|
||||
|
@ -227,8 +227,8 @@ class SeedDMS_Core_Group { /* {{{ */
|
|||
}
|
||||
|
||||
$db = $this->_dms->getDB();
|
||||
if ($asManager) $queryStr = "SELECT * FROM tblGroupMembers WHERE groupID = " . $this->_id . " AND userID = " . $user->getID() . " AND manager = 1";
|
||||
else $queryStr = "SELECT * FROM tblGroupMembers WHERE groupID = " . $this->_id . " AND userID = " . $user->getID();
|
||||
if ($asManager) $queryStr = "SELECT * FROM `tblGroupMembers` WHERE `groupID` = " . $this->_id . " AND `userID` = " . $user->getID() . " AND `manager` = 1";
|
||||
else $queryStr = "SELECT * FROM `tblGroupMembers` WHERE `groupID` = " . $this->_id . " AND `userID` = " . $user->getID();
|
||||
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
|
||||
|
@ -249,8 +249,8 @@ class SeedDMS_Core_Group { /* {{{ */
|
|||
|
||||
if (!$this->isMember($user)) return false;
|
||||
|
||||
if ($this->isMember($user,true)) $queryStr = "UPDATE tblGroupMembers SET manager = 0 WHERE groupID = ".$this->_id." AND userID = ".$user->getID();
|
||||
else $queryStr = "UPDATE tblGroupMembers SET manager = 1 WHERE groupID = ".$this->_id." AND userID = ".$user->getID();
|
||||
if ($this->isMember($user,true)) $queryStr = "UPDATE `tblGroupMembers` SET `manager` = 0 WHERE `groupID` = ".$this->_id." AND `userID` = ".$user->getID();
|
||||
else $queryStr = "UPDATE `tblGroupMembers` SET `manager` = 1 WHERE `groupID` = ".$this->_id." AND `userID` = ".$user->getID();
|
||||
|
||||
if (!$db->getResult($queryStr)) return false;
|
||||
return true;
|
||||
|
@ -270,37 +270,37 @@ class SeedDMS_Core_Group { /* {{{ */
|
|||
|
||||
$db->startTransaction();
|
||||
|
||||
$queryStr = "DELETE FROM tblGroupMembers WHERE groupID = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblGroupMembers` WHERE `groupID` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
$queryStr = "DELETE FROM tblACLs WHERE groupID = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblACLs` WHERE `groupID` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
$queryStr = "DELETE FROM tblNotify WHERE groupID = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblNotify` WHERE `groupID` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
$queryStr = "DELETE FROM tblMandatoryReviewers WHERE reviewerGroupID = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblMandatoryReviewers` WHERE `reviewerGroupID` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
$queryStr = "DELETE FROM tblMandatoryApprovers WHERE approverGroupID = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblMandatoryApprovers` WHERE `approverGroupID` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
$queryStr = "DELETE FROM tblWorkflowTransitionGroups WHERE groupid = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblWorkflowTransitionGroups` WHERE `groupid` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
$queryStr = "DELETE FROM tblGroups WHERE id = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblGroups` WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
|
@ -410,11 +410,11 @@ class SeedDMS_Core_Group { /* {{{ */
|
|||
function getWorkflowStatus($documentID=null, $version=null) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = 'select distinct d.*, c.groupid from tblWorkflowTransitions a left join tblWorkflows b on a.workflow=b.id left join tblWorkflowTransitionGroups c on a.id=c.transition left join tblWorkflowDocumentContent d on b.id=d.workflow where d.document is not null and a.state=d.state and c.groupid='.$this->_id;
|
||||
$queryStr = 'select distinct d.*, c.`groupid` from `tblWorkflowTransitions` a left join `tblWorkflows` b on a.`workflow`=b.`id` left join `tblWorkflowTransitionGroups` c on a.`id`=c.`transition` left join `tblWorkflowDocumentContent` d on b.`id`=d.`workflow` where d.`document` is not null and a.`state`=d.`state` and c.`groupid`='.$this->_id;
|
||||
if($documentID) {
|
||||
$queryStr .= ' AND d.document='.(int) $documentID;
|
||||
$queryStr .= ' AND d.`document`='.(int) $documentID;
|
||||
if($version)
|
||||
$queryStr .= ' AND d.version='.(int) $version;
|
||||
$queryStr .= ' AND d.`version`='.(int) $version;
|
||||
}
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
|
|
|
@ -71,7 +71,7 @@ class SeedDMS_Core_KeywordCategory {
|
|||
function setName($newName) {
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblKeywordCategories SET name = ".$db->qstr($newName)." WHERE id = ". $this->_id;
|
||||
$queryStr = "UPDATE `tblKeywordCategories` SET `name` = ".$db->qstr($newName)." WHERE `id` = ". $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -82,7 +82,7 @@ class SeedDMS_Core_KeywordCategory {
|
|||
function setOwner($user) {
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblKeywordCategories SET owner = " . $user->getID() . " WHERE id " . $this->_id;
|
||||
$queryStr = "UPDATE `tblKeywordCategories` SET `owner` = " . $user->getID() . " WHERE = `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -94,28 +94,28 @@ class SeedDMS_Core_KeywordCategory {
|
|||
function getKeywordLists() {
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "SELECT * FROM tblKeywords WHERE category = " . $this->_id . " order by `keywords`";
|
||||
$queryStr = "SELECT * FROM `tblKeywords` WHERE `category` = " . $this->_id . " order by `keywords`";
|
||||
return $db->getResultArray($queryStr);
|
||||
}
|
||||
|
||||
function editKeywordList($listID, $keywords) {
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblKeywords SET keywords = ".$db->qstr($keywords)." WHERE id = $listID";
|
||||
$queryStr = "UPDATE `tblKeywords` SET `keywords` = ".$db->qstr($keywords)." WHERE `id` = $listID";
|
||||
return $db->getResult($queryStr);
|
||||
}
|
||||
|
||||
function addKeywordList($keywords) {
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "INSERT INTO tblKeywords (category, keywords) VALUES (" . $this->_id . ", ".$db->qstr($keywords).")";
|
||||
$queryStr = "INSERT INTO `tblKeywords` (`category`, `keywords`) VALUES (" . $this->_id . ", ".$db->qstr($keywords).")";
|
||||
return $db->getResult($queryStr);
|
||||
}
|
||||
|
||||
function removeKeywordList($listID) {
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "DELETE FROM tblKeywords WHERE id = $listID";
|
||||
$queryStr = "DELETE FROM `tblKeywords` WHERE `id` = $listID";
|
||||
return $db->getResult($queryStr);
|
||||
}
|
||||
|
||||
|
@ -123,13 +123,13 @@ class SeedDMS_Core_KeywordCategory {
|
|||
$db = $this->_dms->getDB();
|
||||
|
||||
$db->startTransaction();
|
||||
$queryStr = "DELETE FROM tblKeywords WHERE category = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblKeywords` WHERE `category` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
$queryStr = "DELETE FROM tblKeywordCategories WHERE id = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblKeywordCategories` WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
|
|
|
@ -75,13 +75,13 @@ class SeedDMS_Core_Object { /* {{{ */
|
|||
|
||||
switch(get_class($this)) {
|
||||
case $this->_dms->getClassname('document'):
|
||||
$queryStr = "SELECT a.* FROM tblDocumentAttributes a LEFT JOIN tblAttributeDefinitions b ON a.attrdef=b.id WHERE a.document = " . $this->_id." ORDER BY b.`name`";
|
||||
$queryStr = "SELECT a.* FROM `tblDocumentAttributes` a LEFT JOIN `tblAttributeDefinitions` b ON a.`attrdef`=b.`id` WHERE a.`document` = " . $this->_id." ORDER BY b.`name`";
|
||||
break;
|
||||
case $this->_dms->getClassname('documentcontent'):
|
||||
$queryStr = "SELECT a.* FROM tblDocumentContentAttributes a LEFT JOIN tblAttributeDefinitions b ON a.attrdef=b.id WHERE a.content = " . $this->_id." ORDER BY b.`name`";
|
||||
$queryStr = "SELECT a.* FROM `tblDocumentContentAttributes` a LEFT JOIN `tblAttributeDefinitions` b ON a.`attrdef`=b.`id` WHERE a.`content` = " . $this->_id." ORDER BY b.`name`";
|
||||
break;
|
||||
case $this->_dms->getClassname('folder'):
|
||||
$queryStr = "SELECT a.* FROM tblFolderAttributes a LEFT JOIN tblAttributeDefinitions b ON a.attrdef=b.id WHERE a.folder = " . $this->_id." ORDER BY b.`name`";
|
||||
$queryStr = "SELECT a.* FROM `tblFolderAttributes` a LEFT JOIN `tblAttributeDefinitions` b ON a.`attrdef`=b.`id` WHERE a.`folder` = " . $this->_id." ORDER BY b.`name`";
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
|
@ -223,13 +223,13 @@ class SeedDMS_Core_Object { /* {{{ */
|
|||
if(!isset($this->_attributes[$attrdef->getId()])) {
|
||||
switch(get_class($this)) {
|
||||
case $this->_dms->getClassname('document'):
|
||||
$queryStr = "INSERT INTO tblDocumentAttributes (document, attrdef, value) VALUES (".$this->_id.", ".$attrdef->getId().", ".$db->qstr($value).")";
|
||||
$queryStr = "INSERT INTO `tblDocumentAttributes` (`document`, `attrdef`, `value`) VALUES (".$this->_id.", ".$attrdef->getId().", ".$db->qstr($value).")";
|
||||
break;
|
||||
case $this->_dms->getClassname('documentcontent'):
|
||||
$queryStr = "INSERT INTO tblDocumentContentAttributes (content, attrdef, value) VALUES (".$this->_id.", ".$attrdef->getId().", ".$db->qstr($value).")";
|
||||
$queryStr = "INSERT INTO `tblDocumentContentAttributes` (`content`, `attrdef`, `value`) VALUES (".$this->_id.", ".$attrdef->getId().", ".$db->qstr($value).")";
|
||||
break;
|
||||
case $this->_dms->getClassname('folder'):
|
||||
$queryStr = "INSERT INTO tblFolderAttributes (folder, attrdef, value) VALUES (".$this->_id.", ".$attrdef->getId().", ".$db->qstr($value).")";
|
||||
$queryStr = "INSERT INTO `tblFolderAttributes` (`folder`, `attrdef`, `value`) VALUES (".$this->_id.", ".$attrdef->getId().", ".$db->qstr($value).")";
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
|
@ -262,13 +262,13 @@ class SeedDMS_Core_Object { /* {{{ */
|
|||
if(isset($this->_attributes[$attrdef->getId()])) {
|
||||
switch(get_class($this)) {
|
||||
case $this->_dms->getClassname('document'):
|
||||
$queryStr = "DELETE FROM tblDocumentAttributes WHERE document=".$this->_id." AND attrdef=".$attrdef->getId();
|
||||
$queryStr = "DELETE FROM `tblDocumentAttributes` WHERE `document`=".$this->_id." AND `attrdef`=".$attrdef->getId();
|
||||
break;
|
||||
case $this->_dms->getClassname('documentcontent'):
|
||||
$queryStr = "DELETE FROM tblDocumentContentAttributes WHERE content=".$this->_id." AND attrdef=".$attrdef->getId();
|
||||
$queryStr = "DELETE FROM `tblDocumentContentAttributes` WHERE `content`=".$this->_id." AND `attrdef`=".$attrdef->getId();
|
||||
break;
|
||||
case $this->_dms->getClassname('folder'):
|
||||
$queryStr = "DELETE FROM tblFolderAttributes WHERE folder=".$this->_id." AND attrdef=".$attrdef->getId();
|
||||
$queryStr = "DELETE FROM `tblFolderAttributes` WHERE `folder`=".$this->_id." AND `attrdef`=".$attrdef->getId();
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
|
|
|
@ -170,15 +170,15 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
|
||||
switch($by) {
|
||||
case 'name':
|
||||
$queryStr = "SELECT * FROM tblUsers WHERE login = ".$db->qstr($id);
|
||||
$queryStr = "SELECT * FROM `tblUsers` WHERE `login` = ".$db->qstr($id);
|
||||
if($email)
|
||||
$queryStr .= " AND email=".$db->qstr($email);
|
||||
$queryStr .= " AND `email`=".$db->qstr($email);
|
||||
break;
|
||||
case 'email':
|
||||
$queryStr = "SELECT * FROM tblUsers WHERE email = ".$db->qstr($id);
|
||||
$queryStr = "SELECT * FROM `tblUsers` WHERE `email` = ".$db->qstr($id);
|
||||
break;
|
||||
default:
|
||||
$queryStr = "SELECT * FROM tblUsers WHERE id = " . (int) $id;
|
||||
$queryStr = "SELECT * FROM `tblUsers` WHERE `id` = " . (int) $id;
|
||||
}
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
|
||||
|
@ -196,9 +196,9 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
$db = $dms->getDB();
|
||||
|
||||
if($orderby == 'fullname')
|
||||
$queryStr = "SELECT * FROM tblUsers ORDER BY fullname";
|
||||
$queryStr = "SELECT * FROM `tblUsers` ORDER BY `fullName`";
|
||||
else
|
||||
$queryStr = "SELECT * FROM tblUsers ORDER BY login";
|
||||
$queryStr = "SELECT * FROM `tblUsers` ORDER BY `login`";
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
|
@ -226,7 +226,7 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
function setLogin($newLogin) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblUsers SET login =".$db->qstr($newLogin)." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblUsers` SET `login` =".$db->qstr($newLogin)." WHERE `id` = " . $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -240,7 +240,7 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
function setFullName($newFullName) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblUsers SET fullname = ".$db->qstr($newFullName)." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblUsers` SET `fullName` = ".$db->qstr($newFullName)." WHERE `id` = " . $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -254,7 +254,7 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
function setPwd($newPwd) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblUsers SET pwd =".$db->qstr($newPwd)." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblUsers` SET `pwd` =".$db->qstr($newPwd)." WHERE `id` = " . $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -268,9 +268,11 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
function setPwdExpiration($newPwdExpiration) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
if(trim($newPwdExpiration) == '')
|
||||
if(trim($newPwdExpiration) == '' || trim($newPwdExpiration) == 'never')
|
||||
$newPwdExpiration = '0000-00-00 00:00:00';
|
||||
$queryStr = "UPDATE tblUsers SET pwdExpiration =".$db->qstr($newPwdExpiration)." WHERE id = " . $this->_id;
|
||||
elseif(trim($newPwdExpiration) == 'now')
|
||||
$newPwdExpiration = date('Y-m-d H:i:s');
|
||||
$queryStr = "UPDATE `tblUsers` SET `pwdExpiration` =".$db->qstr($newPwdExpiration)." WHERE `id` = " . $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -284,7 +286,7 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
function setEmail($newEmail) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblUsers SET email =".$db->qstr($newEmail)." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblUsers` SET `email` =".$db->qstr($newEmail)." WHERE `id` = " . $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -298,7 +300,7 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
function setLanguage($newLanguage) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblUsers SET language =".$db->qstr($newLanguage)." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblUsers` SET `language` =".$db->qstr($newLanguage)." WHERE `id` = " . $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -312,7 +314,7 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
function setTheme($newTheme) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblUsers SET theme =".$db->qstr($newTheme)." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblUsers` SET `theme` =".$db->qstr($newTheme)." WHERE `id` = " . $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -326,7 +328,7 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
function setComment($newComment) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblUsers SET comment =".$db->qstr($newComment)." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblUsers` SET `comment` =".$db->qstr($newComment)." WHERE `id` = " . $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -340,7 +342,7 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
function setRole($newrole) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblUsers SET role = " . $newrole . " WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblUsers` SET `role` = " . $newrole . " WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -353,7 +355,7 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
function setAdmin($isAdmin) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblUsers SET role = " . SeedDMS_Core_User::role_admin . " WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblUsers` SET `role` = " . SeedDMS_Core_User::role_admin . " WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -366,7 +368,7 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
function setGuest($isGuest) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblUsers SET role = " . SeedDMS_Core_User::role_guest . " WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblUsers` SET `role` = " . SeedDMS_Core_User::role_guest . " WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -380,7 +382,7 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
$db = $this->_dms->getDB();
|
||||
|
||||
$isHidden = ($isHidden) ? "1" : "0";
|
||||
$queryStr = "UPDATE tblUsers SET hidden = " . $isHidden . " WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblUsers` SET `hidden` = " . $isHidden . " WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -394,7 +396,7 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
$db = $this->_dms->getDB();
|
||||
|
||||
$isDisabled = ($isDisabled) ? "1" : "0";
|
||||
$queryStr = "UPDATE tblUsers SET disabled = " . $isDisabled . " WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblUsers` SET `disabled` = " . $isDisabled . " WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -406,7 +408,7 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
$db = $this->_dms->getDB();
|
||||
|
||||
$this->_loginFailures++;
|
||||
$queryStr = "UPDATE tblUsers SET loginfailures = " . $this->_loginFailures . " WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblUsers` SET `loginfailures` = " . $this->_loginFailures . " WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -417,7 +419,7 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
$db = $this->_dms->getDB();
|
||||
|
||||
$this->_loginFailures = 0;
|
||||
$queryStr = "UPDATE tblUsers SET loginfailures = " . $this->_loginFailures . " WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblUsers` SET `loginfailures` = " . $this->_loginFailures . " WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -435,7 +437,7 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
function getUsedDiskSpace() { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "SELECT SUM(filesize) sum FROM tblDocumentContent a LEFT JOIN tblDocuments b ON a.document=b.id WHERE b.owner = " . $this->_id;
|
||||
$queryStr = "SELECT SUM(`fileSize`) sum FROM `tblDocumentContent` a LEFT JOIN `tblDocuments` b ON a.`document`=b.`id` WHERE b.`owner` = " . $this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
return false;
|
||||
|
@ -449,7 +451,7 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
$db = $this->_dms->getDB();
|
||||
|
||||
$quota = intval($quota);
|
||||
$queryStr = "UPDATE tblUsers SET quota = " . $quota . " WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblUsers` SET `quota` = " . $quota . " WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -462,7 +464,7 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
function setHomeFolder($homefolder) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblUsers SET homefolder = " . ($homefolder ? (int) $homefolder : NULL) . " WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblUsers` SET `homefolder` = " . ($homefolder ? (int) $homefolder : NULL) . " WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -496,10 +498,10 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
$db->startTransaction();
|
||||
|
||||
// delete private keyword lists
|
||||
$queryStr = "SELECT tblKeywords.id FROM tblKeywords, tblKeywordCategories WHERE tblKeywords.category = tblKeywordCategories.id AND tblKeywordCategories.owner = " . $this->_id;
|
||||
$queryStr = "SELECT `tblKeywords`.`id` FROM `tblKeywords`, `tblKeywordCategories` WHERE `tblKeywords`.`category` = `tblKeywordCategories`.`id` AND `tblKeywordCategories`.`owner` = " . $this->_id;
|
||||
$resultArr = $db->getResultArray($queryStr);
|
||||
if (count($resultArr) > 0) {
|
||||
$queryStr = "DELETE FROM tblKeywords WHERE ";
|
||||
$queryStr = "DELETE FROM `tblKeywords` WHERE ";
|
||||
for ($i = 0; $i < count($resultArr); $i++) {
|
||||
$queryStr .= "id = " . $resultArr[$i]["id"];
|
||||
if ($i + 1 < count($resultArr))
|
||||
|
@ -511,155 +513,155 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
}
|
||||
}
|
||||
|
||||
$queryStr = "DELETE FROM tblKeywordCategories WHERE owner = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblKeywordCategories` WHERE `owner` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
//Benachrichtigungen entfernen
|
||||
$queryStr = "DELETE FROM tblNotify WHERE userID = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblNotify` WHERE `userID` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Assign documents of the removed user to the given user */
|
||||
$queryStr = "UPDATE tblFolders SET owner = " . $assignTo . " WHERE owner = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblFolders` SET `owner` = " . $assignTo . " WHERE `owner` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
$queryStr = "UPDATE tblDocuments SET owner = " . $assignTo . " WHERE owner = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblDocuments` SET `owner` = " . $assignTo . " WHERE `owner` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
$queryStr = "UPDATE tblDocumentContent SET createdBy = " . $assignTo . " WHERE createdBy = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblDocumentContent` SET `createdBy` = " . $assignTo . " WHERE `createdBy` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
// Remove private links on documents ...
|
||||
$queryStr = "DELETE FROM tblDocumentLinks WHERE userID = " . $this->_id . " AND public = 0";
|
||||
$queryStr = "DELETE FROM `tblDocumentLinks` WHERE `userID` = " . $this->_id . " AND `public` = 0";
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
// ... but keep public links
|
||||
$queryStr = "UPDATE tblDocumentLinks SET userID = " . $assignTo . " WHERE userID = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblDocumentLinks` SET `userID` = " . $assignTo . " WHERE `userID` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
// set administrator for deleted user's attachments
|
||||
$queryStr = "UPDATE tblDocumentFiles SET userID = " . $assignTo . " WHERE userID = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblDocumentFiles` SET `userID` = " . $assignTo . " WHERE `userID` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
// unlock documents locked by the user
|
||||
$queryStr = "DELETE FROM tblDocumentLocks WHERE userID = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblDocumentLocks` WHERE `userID` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
// Delete user from all groups
|
||||
$queryStr = "DELETE FROM tblGroupMembers WHERE userID = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblGroupMembers` WHERE `userID` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
// User aus allen ACLs streichen
|
||||
$queryStr = "DELETE FROM tblACLs WHERE userID = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblACLs` WHERE `userID` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
// Delete image of user
|
||||
$queryStr = "DELETE FROM tblUserImages WHERE userID = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblUserImages` WHERE `userID` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
// Delete entries in password history
|
||||
$queryStr = "DELETE FROM tblUserPasswordHistory WHERE userID = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblUserPasswordHistory` WHERE `userID` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
// Delete entries in password request
|
||||
$queryStr = "DELETE FROM tblUserPasswordRequest WHERE userID = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblUserPasswordRequest` WHERE `userID` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
// mandatory review/approve
|
||||
$queryStr = "DELETE FROM tblMandatoryReviewers WHERE reviewerUserID = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblMandatoryReviewers` WHERE `reviewerUserID` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
$queryStr = "DELETE FROM tblMandatoryApprovers WHERE approverUserID = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblMandatoryApprovers` WHERE `approverUserID` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
$queryStr = "DELETE FROM tblMandatoryReviewers WHERE userID = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblMandatoryReviewers` WHERE `userID` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
$queryStr = "DELETE FROM tblMandatoryApprovers WHERE userID = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblMandatoryApprovers` WHERE `userID` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
$queryStr = "DELETE FROM tblWorkflowMandatoryWorkflow WHERE userid = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblWorkflowMandatoryWorkflow` WHERE `userid` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
$queryStr = "DELETE FROM tblWorkflowTransitionUsers WHERE userid = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblWorkflowTransitionUsers` WHERE `userid` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
// set administrator for deleted user's events
|
||||
$queryStr = "UPDATE tblEvents SET userID = " . $assignTo . " WHERE userID = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblEvents` SET `userID` = " . $assignTo . " WHERE `userID` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
// Delete user itself
|
||||
$queryStr = "DELETE FROM tblUsers WHERE id = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblUsers` WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
// TODO : update document status if reviewer/approver has been deleted
|
||||
// "DELETE FROM tblDocumentApproveLog WHERE userID = " . $this->_id;
|
||||
// "DELETE FROM tblDocumentReviewLog WHERE userID = " . $this->_id;
|
||||
// "DELETE FROM `tblDocumentApproveLog` WHERE `userID` = " . $this->_id;
|
||||
// "DELETE FROM `tblDocumentReviewLog` WHERE `userID` = " . $this->_id;
|
||||
|
||||
|
||||
$reviewStatus = $this->getReviewStatus();
|
||||
|
@ -775,7 +777,7 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
if (!isset($this->_hasImage)) {
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "SELECT COUNT(*) AS num FROM tblUserImages WHERE userID = " . $this->_id;
|
||||
$queryStr = "SELECT COUNT(*) AS num FROM `tblUserImages` WHERE `userID` = " . $this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if ($resArr === false)
|
||||
return false;
|
||||
|
@ -795,7 +797,7 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
function getImage() { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "SELECT * FROM tblUserImages WHERE userID = " . $this->_id;
|
||||
$queryStr = "SELECT * FROM `tblUserImages` WHERE `userID` = " . $this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if ($resArr === false)
|
||||
return false;
|
||||
|
@ -814,9 +816,9 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
fclose($fp);
|
||||
|
||||
if ($this->hasImage())
|
||||
$queryStr = "UPDATE tblUserImages SET image = '".base64_encode($content)."', mimeType = ".$db->qstr($mimeType)." WHERE userID = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblUserImages` SET `image` = '".base64_encode($content)."', `mimeType` = ".$db->qstr($mimeType)." WHERE `userID` = " . $this->_id;
|
||||
else
|
||||
$queryStr = "INSERT INTO tblUserImages (userID, image, mimeType) VALUES (" . $this->_id . ", '".base64_encode($content)."', ".$db->qstr($mimeType).")";
|
||||
$queryStr = "INSERT INTO `tblUserImages` (`userID`, `image`, `mimeType`) VALUES (" . $this->_id . ", '".base64_encode($content)."', ".$db->qstr($mimeType).")";
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
@ -1059,11 +1061,11 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
function getWorkflowStatus($documentID=null, $version=null) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = 'SELECT DISTINCT d.*, c.userid FROM tblWorkflowTransitions a LEFT JOIN tblWorkflows b ON a.workflow=b.id LEFT JOIN tblWorkflowTransitionUsers c ON a.id=c.transition LEFT JOIN tblWorkflowDocumentContent d ON b.id=d.workflow WHERE d.document IS NOT NULL AND a.state=d.state AND c.userid='.$this->_id;
|
||||
$queryStr = 'SELECT DISTINCT d.*, c.`userid` FROM `tblWorkflowTransitions` a LEFT JOIN `tblWorkflows` b ON a.`workflow`=b.`id` LEFT JOIN `tblWorkflowTransitionUsers` c ON a.`id`=c.`transition` LEFT JOIN `tblWorkflowDocumentContent` d ON b.`id`=d.`workflow` WHERE d.`document` IS NOT NULL AND a.`state`=d.`state` AND c.`userid`='.$this->_id;
|
||||
if($documentID) {
|
||||
$queryStr .= ' AND d.document='.(int) $documentID;
|
||||
$queryStr .= ' AND d.`document`='.(int) $documentID;
|
||||
if($version)
|
||||
$queryStr .= ' AND d.version='.(int) $version;
|
||||
$queryStr .= ' AND d.`version`='.(int) $version;
|
||||
}
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
|
@ -1075,11 +1077,11 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
}
|
||||
}
|
||||
|
||||
$queryStr = 'select distinct d.*, c.groupid from tblWorkflowTransitions a left join tblWorkflows b on a.workflow=b.id left join tblWorkflowTransitionGroups c on a.id=c.transition left join tblWorkflowDocumentContent d on b.id=d.workflow left join tblGroupMembers e on c.groupid = e.groupID where d.document is not null and a.state=d.state and e.userID='.$this->_id;
|
||||
$queryStr = 'select distinct d.*, c.`groupid` from `tblWorkflowTransitions` a left join `tblWorkflows` b on a.`workflow`=b.`id` left join `tblWorkflowTransitionGroups` c on a.`id`=c.`transition` left join `tblWorkflowDocumentContent` d on b.`id`=d.`workflow` left join `tblGroupMembers` e on c.`groupid` = e.`groupID` where d.`document` is not null and a.`state`=d.`state` and e.`userID`='.$this->_id;
|
||||
if($documentID) {
|
||||
$queryStr .= ' AND d.document='.(int) $documentID;
|
||||
$queryStr .= ' AND d.`document`='.(int) $documentID;
|
||||
if($version)
|
||||
$queryStr .= ' AND d.version='.(int) $version;
|
||||
$queryStr .= ' AND d.`version`='.(int) $version;
|
||||
}
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
|
@ -1106,7 +1108,7 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
function getMandatoryReviewers() { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "SELECT * FROM tblMandatoryReviewers WHERE userID = " . $this->_id;
|
||||
$queryStr = "SELECT * FROM `tblMandatoryReviewers` WHERE `userID` = " . $this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
|
||||
return $resArr;
|
||||
|
@ -1122,7 +1124,7 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
function getMandatoryApprovers() { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "SELECT * FROM tblMandatoryApprovers WHERE userID = " . $this->_id;
|
||||
$queryStr = "SELECT * FROM `tblMandatoryApprovers` WHERE `userID` = " . $this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
|
||||
return $resArr;
|
||||
|
@ -1140,7 +1142,7 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
function getMandatoryWorkflow() { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "SELECT * FROM tblWorkflowMandatoryWorkflow WHERE userid = " . $this->_id;
|
||||
$queryStr = "SELECT * FROM `tblWorkflowMandatoryWorkflow` WHERE `userid` = " . $this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && !$resArr) return false;
|
||||
|
||||
|
@ -1163,7 +1165,7 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
function getMandatoryWorkflows() { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "SELECT * FROM tblWorkflowMandatoryWorkflow WHERE userid = " . $this->_id;
|
||||
$queryStr = "SELECT * FROM `tblWorkflowMandatoryWorkflow` WHERE `userid` = " . $this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && !$resArr) return false;
|
||||
|
||||
|
@ -1190,21 +1192,21 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
|
||||
if ($isgroup){
|
||||
|
||||
$queryStr = "SELECT * FROM tblMandatoryReviewers WHERE userID = " . $this->_id . " AND reviewerGroupID = " . $id;
|
||||
$queryStr = "SELECT * FROM `tblMandatoryReviewers` WHERE `userID` = " . $this->_id . " AND `reviewerGroupID` = " . $id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (count($resArr)!=0) return true;
|
||||
|
||||
$queryStr = "INSERT INTO tblMandatoryReviewers (userID, reviewerGroupID) VALUES (" . $this->_id . ", " . $id .")";
|
||||
$queryStr = "INSERT INTO `tblMandatoryReviewers` (`userID`, `reviewerGroupID`) VALUES (" . $this->_id . ", " . $id .")";
|
||||
$resArr = $db->getResult($queryStr);
|
||||
if (is_bool($resArr) && !$resArr) return false;
|
||||
|
||||
}else{
|
||||
|
||||
$queryStr = "SELECT * FROM tblMandatoryReviewers WHERE userID = " . $this->_id . " AND reviewerUserID = " . $id;
|
||||
$queryStr = "SELECT * FROM `tblMandatoryReviewers` WHERE `userID` = " . $this->_id . " AND `reviewerUserID` = " . $id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (count($resArr)!=0) return true;
|
||||
|
||||
$queryStr = "INSERT INTO tblMandatoryReviewers (userID, reviewerUserID) VALUES (" . $this->_id . ", " . $id .")";
|
||||
$queryStr = "INSERT INTO `tblMandatoryReviewers` (`userID`, `reviewerUserID`) VALUES (" . $this->_id . ", " . $id .")";
|
||||
$resArr = $db->getResult($queryStr);
|
||||
if (is_bool($resArr) && !$resArr) return false;
|
||||
}
|
||||
|
@ -1224,21 +1226,21 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
|
||||
if ($isgroup){
|
||||
|
||||
$queryStr = "SELECT * FROM tblMandatoryApprovers WHERE userID = " . $this->_id . " AND approverGroupID = " . (int) $id;
|
||||
$queryStr = "SELECT * FROM `tblMandatoryApprovers` WHERE `userID` = " . $this->_id . " AND `approverGroupID` = " . (int) $id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (count($resArr)!=0) return;
|
||||
|
||||
$queryStr = "INSERT INTO tblMandatoryApprovers (userID, approverGroupID) VALUES (" . $this->_id . ", " . $id .")";
|
||||
$queryStr = "INSERT INTO `tblMandatoryApprovers` (`userID`, `approverGroupID`) VALUES (" . $this->_id . ", " . $id .")";
|
||||
$resArr = $db->getResult($queryStr);
|
||||
if (is_bool($resArr) && !$resArr) return false;
|
||||
|
||||
}else{
|
||||
|
||||
$queryStr = "SELECT * FROM tblMandatoryApprovers WHERE userID = " . $this->_id . " AND approverUserID = " . (int) $id;
|
||||
$queryStr = "SELECT * FROM `tblMandatoryApprovers` WHERE `userID` = " . $this->_id . " AND `approverUserID` = " . (int) $id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (count($resArr)!=0) return;
|
||||
|
||||
$queryStr = "INSERT INTO tblMandatoryApprovers (userID, approverUserID) VALUES (" . $this->_id . ", " . $id .")";
|
||||
$queryStr = "INSERT INTO `tblMandatoryApprovers` (`userID`, `approverUserID`) VALUES (" . $this->_id . ", " . $id .")";
|
||||
$resArr = $db->getResult($queryStr);
|
||||
if (is_bool($resArr) && !$resArr) return false;
|
||||
}
|
||||
|
@ -1254,11 +1256,11 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
function setMandatoryWorkflow($workflow) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "SELECT * FROM tblWorkflowMandatoryWorkflow WHERE userid = " . $this->_id . " AND workflow = " . (int) $workflow->getID();
|
||||
$queryStr = "SELECT * FROM `tblWorkflowMandatoryWorkflow` WHERE `userid` = " . $this->_id . " AND `workflow` = " . (int) $workflow->getID();
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (count($resArr)!=0) return;
|
||||
|
||||
$queryStr = "INSERT INTO tblWorkflowMandatoryWorkflow (userid, workflow) VALUES (" . $this->_id . ", " . $workflow->getID() .")";
|
||||
$queryStr = "INSERT INTO `tblWorkflowMandatoryWorkflow` (`userid`, `workflow`) VALUES (" . $this->_id . ", " . $workflow->getID() .")";
|
||||
$resArr = $db->getResult($queryStr);
|
||||
if (is_bool($resArr) && !$resArr) return false;
|
||||
} /* }}} */
|
||||
|
@ -1274,14 +1276,14 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
$db = $this->_dms->getDB();
|
||||
|
||||
$db->startTransaction();
|
||||
$queryStr = "DELETE FROM tblWorkflowMandatoryWorkflow WHERE userid = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblWorkflowMandatoryWorkflow` WHERE `userid` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
foreach($workflows as $workflow) {
|
||||
$queryStr = "INSERT INTO tblWorkflowMandatoryWorkflow (userid, workflow) VALUES (" . $this->_id . ", " . $workflow->getID() .")";
|
||||
$queryStr = "INSERT INTO `tblWorkflowMandatoryWorkflow` (`userid`, `workflow`) VALUES (" . $this->_id . ", " . $workflow->getID() .")";
|
||||
$resArr = $db->getResult($queryStr);
|
||||
if (is_bool($resArr) && !$resArr) {
|
||||
$db->rollbackTransaction();
|
||||
|
@ -1300,7 +1302,7 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
*/
|
||||
function delMandatoryReviewers() { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
$queryStr = "DELETE FROM tblMandatoryReviewers WHERE userID = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblMandatoryReviewers` WHERE `userID` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) return false;
|
||||
return true;
|
||||
} /* }}} */
|
||||
|
@ -1313,7 +1315,7 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
function delMandatoryApprovers() { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "DELETE FROM tblMandatoryApprovers WHERE userID = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblMandatoryApprovers` WHERE `userID` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) return false;
|
||||
return true;
|
||||
} /* }}} */
|
||||
|
@ -1325,7 +1327,7 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
*/
|
||||
function delMandatoryWorkflow() { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
$queryStr = "DELETE FROM tblWorkflowMandatoryWorkflow WHERE userid = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblWorkflowMandatoryWorkflow` WHERE `userid` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) return false;
|
||||
return true;
|
||||
} /* }}} */
|
||||
|
|
|
@ -75,7 +75,7 @@ class SeedDMS_Core_Workflow { /* {{{ */
|
|||
function setName($newName) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblWorkflows SET name = ".$db->qstr($newName)." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblWorkflows` SET `name` = ".$db->qstr($newName)." WHERE `id` = " . $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -89,7 +89,7 @@ class SeedDMS_Core_Workflow { /* {{{ */
|
|||
function setInitState($state) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblWorkflows SET initstate = ".$state->getID()." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblWorkflows` SET `initstate` = ".$state->getID()." WHERE `id` = " . $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -104,7 +104,7 @@ class SeedDMS_Core_Workflow { /* {{{ */
|
|||
if($this->_transitions)
|
||||
return $this->_transitions;
|
||||
|
||||
$queryStr = "SELECT * FROM tblWorkflowTransitions WHERE workflow=".$this->_id;
|
||||
$queryStr = "SELECT * FROM `tblWorkflowTransitions` WHERE `workflow`=".$this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
return false;
|
||||
|
@ -165,7 +165,7 @@ class SeedDMS_Core_Workflow { /* {{{ */
|
|||
function getNextTransitions($state) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "SELECT * FROM tblWorkflowTransitions WHERE workflow=".$this->_id." AND state=".$state->getID();
|
||||
$queryStr = "SELECT * FROM `tblWorkflowTransitions` WHERE `workflow`=".$this->_id." AND `state`=".$state->getID();
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
return false;
|
||||
|
@ -189,7 +189,7 @@ class SeedDMS_Core_Workflow { /* {{{ */
|
|||
function getPreviousTransitions($state) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "SELECT * FROM tblWorkflowTransitions WHERE workflow=".$this->_id." AND nextstate=".$state->getID();
|
||||
$queryStr = "SELECT * FROM `tblWorkflowTransitions` WHERE `workflow`=".$this->_id." AND `nextstate`=".$state->getID();
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
return false;
|
||||
|
@ -214,7 +214,7 @@ class SeedDMS_Core_Workflow { /* {{{ */
|
|||
function getTransitionsByStates($state, $nextstate) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "SELECT * FROM tblWorkflowTransitions WHERE workflow=".$this->_id." AND state=".$state->getID()." AND nextstate=".$nextstate->getID();
|
||||
$queryStr = "SELECT * FROM `tblWorkflowTransitions` WHERE `workflow`=".$this->_id." AND `state`=".$state->getID()." AND `nextstate`=".$nextstate->getID();
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
return false;
|
||||
|
@ -254,7 +254,7 @@ class SeedDMS_Core_Workflow { /* {{{ */
|
|||
$db = $this->_dms->getDB();
|
||||
|
||||
$db->startTransaction();
|
||||
$queryStr = "INSERT INTO tblWorkflowTransitions (workflow, state, action, nextstate) VALUES (".$this->_id.", ".$state->getID().", ".$action->getID().", ".$nextstate->getID().")";
|
||||
$queryStr = "INSERT INTO `tblWorkflowTransitions` (`workflow`, `state`, `action`, `nextstate`) VALUES (".$this->_id.", ".$state->getID().", ".$action->getID().", ".$nextstate->getID().")";
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
|
@ -267,7 +267,7 @@ class SeedDMS_Core_Workflow { /* {{{ */
|
|||
$transition = $this->getTransition($db->getInsertID());
|
||||
|
||||
foreach($users as $user) {
|
||||
$queryStr = "INSERT INTO tblWorkflowTransitionUsers (transition, userid) VALUES (".$transition->getID().", ".$user->getID().")";
|
||||
$queryStr = "INSERT INTO `tblWorkflowTransitionUsers` (`transition`, `userid`) VALUES (".$transition->getID().", ".$user->getID().")";
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
|
@ -275,7 +275,7 @@ class SeedDMS_Core_Workflow { /* {{{ */
|
|||
}
|
||||
|
||||
foreach($groups as $group) {
|
||||
$queryStr = "INSERT INTO tblWorkflowTransitionGroups (transition, groupid, minusers) VALUES (".$transition->getID().", ".$group->getID().", 1)";
|
||||
$queryStr = "INSERT INTO `tblWorkflowTransitionGroups` (`transition`, `groupid`, `minusers`) VALUES (".$transition->getID().", ".$group->getID().", 1)";
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
|
@ -294,7 +294,7 @@ class SeedDMS_Core_Workflow { /* {{{ */
|
|||
function isUsed() { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "SELECT * FROM tblWorkflowDocumentContent WHERE workflow=".$this->_id;
|
||||
$queryStr = "SELECT * FROM `tblWorkflowDocumentContent` WHERE `workflow`=".$this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_array($resArr) && count($resArr) == 0)
|
||||
return false;
|
||||
|
@ -345,20 +345,20 @@ class SeedDMS_Core_Workflow { /* {{{ */
|
|||
|
||||
$db->startTransaction();
|
||||
|
||||
$queryStr = "DELETE FROM tblWorkflowTransitions WHERE workflow = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblWorkflowTransitions` WHERE `workflow` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
$queryStr = "DELETE FROM tblWorkflowMandatoryWorkflow WHERE workflow = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblWorkflowMandatoryWorkflow` WHERE `workflow` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
}
|
||||
|
||||
// Delete workflow itself
|
||||
$queryStr = "DELETE FROM tblWorkflows WHERE id = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblWorkflows` WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
|
@ -443,7 +443,7 @@ class SeedDMS_Core_Workflow_State { /* {{{ */
|
|||
function setName($newName) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblWorkflowStates SET name = ".$db->qstr($newName)." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblWorkflowStates` SET `name` = ".$db->qstr($newName)." WHERE `id` = " . $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -457,7 +457,7 @@ class SeedDMS_Core_Workflow_State { /* {{{ */
|
|||
function setMaxTime($maxtime) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblWorkflowStates SET maxtime = ".intval($maxtime)." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblWorkflowStates` SET `maxtime` = ".intval($maxtime)." WHERE `id` = " . $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -471,7 +471,7 @@ class SeedDMS_Core_Workflow_State { /* {{{ */
|
|||
function setPreCondFunc($precondfunc) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblWorkflowStates SET precondfunc = ".$db->qstr($precondfunc)." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblWorkflowStates` SET `precondfunc` = ".$db->qstr($precondfunc)." WHERE id = " . $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -493,7 +493,7 @@ class SeedDMS_Core_Workflow_State { /* {{{ */
|
|||
function setDocumentStatus($docstatus) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblWorkflowStates SET documentstatus = ".intval($docstatus)." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblWorkflowStates` SET `documentstatus` = ".intval($docstatus)." WHERE id = " . $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -510,7 +510,7 @@ class SeedDMS_Core_Workflow_State { /* {{{ */
|
|||
function isUsed() { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "SELECT * FROM tblWorkflowTransitions WHERE state=".$this->_id. " OR nextstate=".$this->_id;
|
||||
$queryStr = "SELECT * FROM `tblWorkflowTransitions` WHERE `state`=".$this->_id. " OR `nextstate`=".$this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_array($resArr) && count($resArr) == 0)
|
||||
return false;
|
||||
|
@ -525,7 +525,7 @@ class SeedDMS_Core_Workflow_State { /* {{{ */
|
|||
function getTransitions() { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "SELECT * FROM tblWorkflowTransitions WHERE state=".$this->_id. " OR nextstate=".$this->_id;
|
||||
$queryStr = "SELECT * FROM `tblWorkflowTransitions` WHERE `state`=".$this->_id. " OR `nextstate`=".$this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_array($resArr) && count($resArr) == 0)
|
||||
return false;
|
||||
|
@ -555,7 +555,7 @@ class SeedDMS_Core_Workflow_State { /* {{{ */
|
|||
$db->startTransaction();
|
||||
|
||||
// Delete workflow state itself
|
||||
$queryStr = "DELETE FROM tblWorkflowStates WHERE id = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblWorkflowStates` WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
|
@ -616,7 +616,7 @@ class SeedDMS_Core_Workflow_Action { /* {{{ */
|
|||
function setName($newName) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblWorkflowActions SET name = ".$db->qstr($newName)." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblWorkflowActions` SET `name` = ".$db->qstr($newName)." WHERE `id` = " . $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -633,7 +633,7 @@ class SeedDMS_Core_Workflow_Action { /* {{{ */
|
|||
function isUsed() { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "SELECT * FROM tblWorkflowTransitions WHERE action=".$this->_id;
|
||||
$queryStr = "SELECT * FROM `tblWorkflowTransitions` WHERE `action`=".$this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_array($resArr) && count($resArr) == 0)
|
||||
return false;
|
||||
|
@ -648,7 +648,7 @@ class SeedDMS_Core_Workflow_Action { /* {{{ */
|
|||
function getTransitions() { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "SELECT * FROM tblWorkflowTransitions WHERE action=".$this->_id;
|
||||
$queryStr = "SELECT * FROM `tblWorkflowTransitions` WHERE `action`=".$this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_array($resArr) && count($resArr) == 0)
|
||||
return false;
|
||||
|
@ -678,7 +678,7 @@ class SeedDMS_Core_Workflow_Action { /* {{{ */
|
|||
$db->startTransaction();
|
||||
|
||||
// Delete workflow state itself
|
||||
$queryStr = "DELETE FROM tblWorkflowActions WHERE id = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblWorkflowActions` WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
|
@ -785,7 +785,7 @@ class SeedDMS_Core_Workflow_Transition { /* {{{ */
|
|||
function setWorkflow($newWorkflow) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblWorkflowTransitions SET workflow = ".$newWorkflow->getID()." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblWorkflowTransitions` SET `workflow` = ".$newWorkflow->getID()." WHERE `id` = " . $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -799,7 +799,7 @@ class SeedDMS_Core_Workflow_Transition { /* {{{ */
|
|||
function setState($newState) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblWorkflowTransitions SET state = ".$newState->getID()." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblWorkflowTransitions` SET `state` = ".$newState->getID()." WHERE `id` = " . $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -813,7 +813,7 @@ class SeedDMS_Core_Workflow_Transition { /* {{{ */
|
|||
function setNextState($newNextState) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblWorkflowTransitions SET nextstate = ".$newNextState->getID()." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblWorkflowTransitions` SET `nextstate` = ".$newNextState->getID()." WHERE `id` = " . $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -827,7 +827,7 @@ class SeedDMS_Core_Workflow_Transition { /* {{{ */
|
|||
function setAction($newAction) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblWorkflowTransitions SET action = ".$newAction->getID()." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblWorkflowTransitions` SET `action` = ".$newAction->getID()." WHERE `id` = " . $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -841,7 +841,7 @@ class SeedDMS_Core_Workflow_Transition { /* {{{ */
|
|||
function setMaxTime($maxtime) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblWorkflowTransitions SET maxtime = ".intval($maxtime)." WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE `tblWorkflowTransitions` SET `maxtime` = ".intval($maxtime)." WHERE `id` = " . $this->_id;
|
||||
$res = $db->getResult($queryStr);
|
||||
if (!$res)
|
||||
return false;
|
||||
|
@ -861,7 +861,7 @@ class SeedDMS_Core_Workflow_Transition { /* {{{ */
|
|||
if($this->_users)
|
||||
return $this->_users;
|
||||
|
||||
$queryStr = "SELECT * FROM tblWorkflowTransitionUsers WHERE transition=".$this->_id;
|
||||
$queryStr = "SELECT * FROM `tblWorkflowTransitionUsers` WHERE `transition`=".$this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
return false;
|
||||
|
@ -889,7 +889,7 @@ class SeedDMS_Core_Workflow_Transition { /* {{{ */
|
|||
if($this->_groups)
|
||||
return $this->_groups;
|
||||
|
||||
$queryStr = "SELECT * FROM tblWorkflowTransitionGroups WHERE transition=".$this->_id;
|
||||
$queryStr = "SELECT * FROM `tblWorkflowTransitionGroups` WHERE `transition`=".$this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
return false;
|
||||
|
@ -918,7 +918,7 @@ class SeedDMS_Core_Workflow_Transition { /* {{{ */
|
|||
$db->startTransaction();
|
||||
|
||||
// Delete workflow transition itself
|
||||
$queryStr = "DELETE FROM tblWorkflowTransitions WHERE id = " . $this->_id;
|
||||
$queryStr = "DELETE FROM `tblWorkflowTransitions` WHERE `id` = " . $this->_id;
|
||||
if (!$db->getResult($queryStr)) {
|
||||
$db->rollbackTransaction();
|
||||
return false;
|
||||
|
|
|
@ -213,6 +213,16 @@ class SeedDMS_Core_DatabaseAccess {
|
|||
return $this->_conn->quote($text);
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
* Replace back ticks by '"'
|
||||
*
|
||||
* @param string text
|
||||
* @return string sanitized string
|
||||
*/
|
||||
function rbt($text) { /* {{{ */
|
||||
return str_replace('`', '"');
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
* Execute SQL query and return result
|
||||
*
|
||||
|
@ -402,7 +412,7 @@ class SeedDMS_Core_DatabaseAccess {
|
|||
else if (!strcasecmp($tableName, "ttcontentid")) {
|
||||
switch($this->_driver) {
|
||||
case 'sqlite':
|
||||
$queryStr = "CREATE TEMPORARY TABLE `ttcontentid` AS ".
|
||||
$queryStr = "CREATE TEMPORARY TABLE IF NOT EXISTS `ttcontentid` AS ".
|
||||
"SELECT `tblDocumentContent`.`document` AS `document`, ".
|
||||
"MAX(`tblDocumentContent`.`version`) AS `maxVersion` ".
|
||||
"FROM `tblDocumentContent` ".
|
||||
|
@ -410,7 +420,7 @@ class SeedDMS_Core_DatabaseAccess {
|
|||
"ORDER BY `tblDocumentContent`.`document`";
|
||||
break;
|
||||
default:
|
||||
$queryStr = "CREATE TEMPORARY TABLE `ttcontentid` (PRIMARY KEY (`document`), INDEX (`maxVersion`)) ".
|
||||
$queryStr = "CREATE TEMPORARY TABLE IF NOT EXISTS `ttcontentid` (PRIMARY KEY (`document`), INDEX (`maxVersion`)) ".
|
||||
"SELECT `tblDocumentContent`.`document`, ".
|
||||
"MAX(`tblDocumentContent`.`version`) AS `maxVersion` ".
|
||||
"FROM `tblDocumentContent` ".
|
||||
|
|
|
@ -12,11 +12,11 @@
|
|||
<email>uwe@steinmann.cx</email>
|
||||
<active>yes</active>
|
||||
</lead>
|
||||
<date>2016-11-02</date>
|
||||
<date>2017-02-20</date>
|
||||
<time>06:23:34</time>
|
||||
<version>
|
||||
<release>5.0.9</release>
|
||||
<api>5.0.9</api>
|
||||
<release>5.0.10</release>
|
||||
<api>5.0.10</api>
|
||||
</version>
|
||||
<stability>
|
||||
<release>stable</release>
|
||||
|
@ -24,7 +24,7 @@
|
|||
</stability>
|
||||
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
||||
<notes>
|
||||
- all changes from 4.3.32 merged
|
||||
- all changes from 4.3.33 merged
|
||||
</notes>
|
||||
<contents>
|
||||
<dir baseinstalldir="SeedDMS" name="/">
|
||||
|
@ -1147,6 +1147,25 @@ SeedDMS_Core_DMS::getNotificationsByUser() are deprecated
|
|||
- SeedDMS_Core_DMS::search() can search for document/folder id
|
||||
</notes>
|
||||
</release>
|
||||
<release>
|
||||
<date>2017-02-22</date>
|
||||
<time>11:25:11</time>
|
||||
<version>
|
||||
<release>4.3.33</release>
|
||||
<api>4.3.33</api>
|
||||
</version>
|
||||
<stability>
|
||||
<release>stable</release>
|
||||
<api>stable</api>
|
||||
</stability>
|
||||
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
||||
<notes>
|
||||
- SeedDMЅ_Core_DMS::getTimeline() no longer returns duplicate documents
|
||||
- SeedDMЅ_Core_Document::addContent() sets workflow after status was set
|
||||
- SeedDMЅ_Core_Keyword::setOwner() fix sql statement
|
||||
- SeedDMЅ_Core_User::setFullname() minor fix in sql statement
|
||||
</notes>
|
||||
</release>
|
||||
<release>
|
||||
<date>2016-01-22</date>
|
||||
<time>14:34:58</time>
|
||||
|
@ -1277,5 +1296,21 @@ SeedDMS_Core_DMS::getNotificationsByUser() are deprecated
|
|||
- all changes from 4.3.31 merged
|
||||
</notes>
|
||||
</release>
|
||||
<release>
|
||||
<date>2016-11-02</date>
|
||||
<time>06:23:34</time>
|
||||
<version>
|
||||
<release>5.0.9</release>
|
||||
<api>5.0.9</api>
|
||||
</version>
|
||||
<stability>
|
||||
<release>stable</release>
|
||||
<api>stable</api>
|
||||
</stability>
|
||||
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
||||
<notes>
|
||||
- all changes from 4.3.32 merged
|
||||
</notes>
|
||||
</release>
|
||||
</changelog>
|
||||
</package>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Extensions in SeedDMS
|
||||
====================
|
||||
=====================
|
||||
|
||||
Since verson 5.0.0 SeedDMS can be extended by extensions. Extensions
|
||||
can hook up functions into certain operations, e.g.
|
85
doc/README.Hooks
Normal file
85
doc/README.Hooks
Normal file
|
@ -0,0 +1,85 @@
|
|||
Hooks
|
||||
======
|
||||
|
||||
Attention: the api for hooks isn't stable yet!
|
||||
|
||||
Hooks in SeedDMS are user definied methods which are being called by
|
||||
the application. The SeedDMS Core also has hooks which are being
|
||||
called from the core itself. They are not subject of this document.
|
||||
The SeedDMS application distinguishes between
|
||||
|
||||
* view hooks and
|
||||
* controller hooks
|
||||
|
||||
view hooks usually return some html output which is send to the browser
|
||||
and either replaces the default output or adds additional information.
|
||||
A view hooks which returns false will be considered as not being called
|
||||
at all.
|
||||
|
||||
controller hooks implement additional functions which either replace
|
||||
existing functions or add new ones. If such a hook returns null then
|
||||
this is treated as if the hook was not called. If the hook returns
|
||||
false it will prevent other hooks implementing the same function from
|
||||
being called. All other return values will not stop other hooks from
|
||||
being called.
|
||||
|
||||
Currently available controller hooks
|
||||
------------------------------------
|
||||
AddDocument::preAddDocument
|
||||
Called before a new document will be added
|
||||
|
||||
AddDocument::postAddDocument
|
||||
Called after a new document has been added
|
||||
|
||||
AddDocument::preIndexDocument
|
||||
Called before a new document will be indexed
|
||||
|
||||
UpdateDocument::preUpdateDocument
|
||||
Called before a new document will be updated
|
||||
|
||||
UpdateDocument::postUpdateDocument
|
||||
Called after a new document has been updated
|
||||
|
||||
UpdateDocument::preIndexDocument
|
||||
Called before an updated document will be indexed
|
||||
|
||||
RemoveDocument::preRemoveDocument
|
||||
Called before a document will be removed
|
||||
|
||||
RemoveDocument::removeDocument
|
||||
Called for removing the document. If the hook returns null the
|
||||
regular document removal will happen.
|
||||
|
||||
RemoveDocument::postRemoveDocument
|
||||
Called after a document was removed
|
||||
|
||||
RemoveFolder::preRemoveFolder
|
||||
Called before a document will be removed
|
||||
|
||||
RemoveFolder::removeFolder
|
||||
Called for removing the folder. If the hook returns null the
|
||||
regular folder removal will happen.
|
||||
|
||||
RemoveFolder::postRemoveFolder
|
||||
Called after a document was removed
|
||||
|
||||
EditFolder::preEditFolder
|
||||
|
||||
EditFolder::EditFolder
|
||||
|
||||
EditFolder::postEditFolder
|
||||
|
||||
ViewOnline::version
|
||||
Called when a document is downloaded for online view
|
||||
|
||||
Download::version
|
||||
Called when a document is downloaded for saving on disk
|
||||
|
||||
Login::postLogin
|
||||
Called after user in fully logged in
|
||||
|
||||
Logout::postLogout
|
||||
Called after user is logged out
|
||||
|
||||
Currently available view hooks
|
||||
------------------------------------
|
|
@ -108,7 +108,6 @@ op/op.TriggerWorkflow.php
|
|||
* Workflow transition was triggered
|
||||
subscribers of the document
|
||||
|
||||
op/op.UpdateDocument2.php
|
||||
op/op.UpdateDocument.php
|
||||
* document was updated
|
||||
subscribers of the document
|
||||
|
|
42
doc/README.Translation
Normal file
42
doc/README.Translation
Normal file
|
@ -0,0 +1,42 @@
|
|||
Help translating SeedDMS
|
||||
===========================
|
||||
|
||||
SeedDMS has got many translations over the years and it is a major
|
||||
task to keep them all updated. If you would like to give a helping
|
||||
hand, then this will be much appreciated. There are various ways
|
||||
to contribute translations.
|
||||
|
||||
1. The demo version of SeedDMS at https://demo.seeddms.org will list
|
||||
all missing translations in a formular on the bottom of the page
|
||||
while using the software. You can easily provide a missing translation
|
||||
by filling out the form and submitting it. The translation will not
|
||||
instantly be used, but is taken over into the official version of
|
||||
SeedDMS once in a while. This method does not allow to submit corrected
|
||||
translations of existing phrases.
|
||||
|
||||
2. Fixing translations is only possible by modifying one of the language
|
||||
files in `lanuages/xx_XX/lang.inc`. These files are php files containing
|
||||
one large array named `$text`. Any modification will be visible right away
|
||||
in your SeedDMS installation. If you intend to pass your modifications to
|
||||
the developers of SeedDMS, than keep your changes seperate from the
|
||||
original translation. A good way is to put your changes into a new
|
||||
file, e.g. `lang-local.inc` containing an array named `$text_local` and
|
||||
merge that array with the original translation array. Just put at the
|
||||
end of `lanuages/xx_XX/lang.inc` the follwing code:
|
||||
|
||||
include('lang-local.inc');
|
||||
array_merge($text, $text_local);
|
||||
|
||||
Also create the file `lang-local.inc` with the content
|
||||
|
||||
<?php
|
||||
$text_local = array(
|
||||
'xxx' => 'yyy',
|
||||
);
|
||||
?>
|
||||
|
||||
Once you are ready with your local modifications and you think those are
|
||||
good enough for the public version of SeedDMS, then please mail them to
|
||||
info@seeddms.org
|
||||
|
||||
|
|
@ -1,95 +0,0 @@
|
|||
<?php
|
||||
// Copyright (C) 2010 Matteo Lucarelli
|
||||
//
|
||||
// Some code from PHP Calendar Class Version 1.4 (5th March 2001)
|
||||
// (C)2000-2001 David Wilkinson
|
||||
// URL: http://www.cascade.org.uk/software/php/calendar/
|
||||
// Email: davidw@cascade.org.uk
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation; either version 2 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
// DB //////////////////////////////////////////////////////////////////////////
|
||||
|
||||
function getEvents($day, $month, $year){
|
||||
|
||||
global $db;
|
||||
|
||||
$date = mktime(12,0,0, $month, $day, $year);
|
||||
|
||||
$queryStr = "SELECT * FROM tblEvents WHERE start <= " . $date . " AND stop >= " . $date;
|
||||
$ret = $db->getResultArray($queryStr);
|
||||
return $ret;
|
||||
}
|
||||
|
||||
function getEventsInInterval($start, $stop){
|
||||
|
||||
global $db;
|
||||
|
||||
$queryStr = "SELECT * FROM tblEvents WHERE ( start <= " . (int) $start . " AND stop >= " . (int) $start . " ) ".
|
||||
"OR ( start <= " . (int) $stop . " AND stop >= " . (int) $stop . " ) ".
|
||||
"OR ( start >= " . (int) $start . " AND stop <= " . (int) $stop . " )";
|
||||
$ret = $db->getResultArray($queryStr);
|
||||
return $ret;
|
||||
}
|
||||
|
||||
function addEvent($from, $to, $name, $comment ){
|
||||
|
||||
global $db,$user;
|
||||
|
||||
$queryStr = "INSERT INTO tblEvents (name, comment, start, stop, date, userID) VALUES ".
|
||||
"(".$db->qstr($name).", ".$db->qstr($comment).", ".(int) $from.", ".(int) $to.", ".$db->getCurrentTimestamp().", ".$user->getID().")";
|
||||
|
||||
$ret = $db->getResult($queryStr);
|
||||
return $ret;
|
||||
}
|
||||
|
||||
function getEvent($id){
|
||||
|
||||
if (!is_numeric($id)) return false;
|
||||
|
||||
global $db;
|
||||
|
||||
$queryStr = "SELECT * FROM tblEvents WHERE id = " . (int) $id;
|
||||
$ret = $db->getResultArray($queryStr);
|
||||
|
||||
if (is_bool($ret) && $ret == false) return false;
|
||||
else if (count($ret) != 1) return false;
|
||||
|
||||
return $ret[0];
|
||||
}
|
||||
|
||||
function editEvent($id, $from, $to, $name, $comment ){
|
||||
|
||||
if (!is_numeric($id)) return false;
|
||||
|
||||
global $db;
|
||||
|
||||
$queryStr = "UPDATE tblEvents SET start = " . (int) $from . ", stop = " . (int) $to . ", name = " . $db->qstr($name) . ", comment = " . $db->qstr($comment) . ", date = " . $db->getCurrentTimestamp() . " WHERE id = ". (int) $id;
|
||||
$ret = $db->getResult($queryStr);
|
||||
return $ret;
|
||||
}
|
||||
|
||||
function delEvent($id){
|
||||
|
||||
if (!is_numeric($id)) return false;
|
||||
|
||||
global $db;
|
||||
|
||||
$queryStr = "DELETE FROM tblEvents WHERE id = " . (int) $id;
|
||||
$ret = $db->getResult($queryStr);
|
||||
return $ret;
|
||||
}
|
||||
|
||||
?>
|
93
inc/inc.ClassCalendar.php
Normal file
93
inc/inc.ClassCalendar.php
Normal file
|
@ -0,0 +1,93 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of calendar
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2010 Matteo Lucarelli,
|
||||
* 2017 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Include parent class
|
||||
*/
|
||||
require_once("inc.ClassNotify.php");
|
||||
|
||||
/**
|
||||
* Class to manage events
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2010 Matteo Lucarelli,
|
||||
* 2017 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_Calendar {
|
||||
/**
|
||||
* Instanz of database
|
||||
*/
|
||||
protected $db;
|
||||
|
||||
function __construct($db, $user) {
|
||||
$this->db = $db;
|
||||
$this->user = $user;
|
||||
}
|
||||
|
||||
function getEvents($day, $month, $year) { /* {{{ */
|
||||
$date = mktime(12,0,0, $month, $day, $year);
|
||||
|
||||
$queryStr = "SELECT * FROM `tblEvents` WHERE `start` <= " . $date . " AND `stop` >= " . $date;
|
||||
$ret = $this->db->getResultArray($queryStr);
|
||||
return $ret;
|
||||
} /* }}} */
|
||||
|
||||
function getEventsInInterval($start, $stop) { /* {{{ */
|
||||
$queryStr = "SELECT * FROM `tblEvents` WHERE ( `start` <= " . (int) $start . " AND `stop` >= " . (int) $start . " ) ".
|
||||
"OR ( `start` <= " . (int) $stop . " AND `stop` >= " . (int) $stop . " ) ".
|
||||
"OR ( `start` >= " . (int) $start . " AND `stop` <= " . (int) $stop . " )";
|
||||
$ret = $this->db->getResultArray($queryStr);
|
||||
return $ret;
|
||||
} /* }}} */
|
||||
|
||||
function addEvent($from, $to, $name, $comment ) { /* {{{ */
|
||||
$queryStr = "INSERT INTO `tblEvents` (`name`, `comment`, `start`, `stop`, `date`, `userID`) VALUES ".
|
||||
"(".$this->db->qstr($name).", ".$this->db->qstr($comment).", ".(int) $from.", ".(int) $to.", ".$this->db->getCurrentTimestamp().", ".$this->user->getID().")";
|
||||
|
||||
$ret = $this->db->getResult($queryStr);
|
||||
return $ret;
|
||||
} /* }}} */
|
||||
|
||||
function getEvent($id) { /* {{{ */
|
||||
if (!is_numeric($id)) return false;
|
||||
|
||||
$queryStr = "SELECT * FROM `tblEvents` WHERE `id` = " . (int) $id;
|
||||
$ret = $this->db->getResultArray($queryStr);
|
||||
|
||||
if (is_bool($ret) && $ret == false) return false;
|
||||
else if (count($ret) != 1) return false;
|
||||
|
||||
return $ret[0];
|
||||
} /* }}} */
|
||||
|
||||
function editEvent($id, $from, $to=null, $name=null, $comment=null) { /* {{{ */
|
||||
if (!is_numeric($id)) return false;
|
||||
|
||||
$queryStr = "UPDATE `tblEvents` SET `start` = " . (int) $from . ($to !== null ? ", `stop` = " . (int) $to : '') . ($name !== null ? ", `name` = " . $this->db->qstr($name) : '') . ($comment !== null ? ", `comment` = " . $this->db->qstr($comment) : '') . ", `date` = " . $this->db->getCurrentTimestamp() . " WHERE `id` = ". (int) $id;
|
||||
$ret = $this->db->getResult($queryStr);
|
||||
return $ret;
|
||||
} /* }}} */
|
||||
|
||||
function delEvent($id) { /* {{{ */
|
||||
if (!is_numeric($id)) return false;
|
||||
|
||||
$queryStr = "DELETE FROM `tblEvents` WHERE `id` = " . (int) $id;
|
||||
$ret = $this->db->getResult($queryStr);
|
||||
return $ret;
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -47,7 +47,7 @@ class SeedDMS_PasswordHistoryManager {
|
|||
} /* }}} */
|
||||
|
||||
function add($user, $pwd) { /* {{{ */
|
||||
$queryStr = "INSERT INTO tblUserPasswordHistory (userID, pwd, `date`) ".
|
||||
$queryStr = "INSERT INTO `tblUserPasswordHistory` (`userID`, `pwd`, `date`) ".
|
||||
"VALUES (".$this->db->qstr($user->getId()).", ".$this->db->qstr($pwd).", ".$this->db->getCurrentDatetime().")";
|
||||
if (!$this->db->getResult($queryStr)) {
|
||||
return false;
|
||||
|
@ -55,7 +55,7 @@ class SeedDMS_PasswordHistoryManager {
|
|||
} /* }}} */
|
||||
|
||||
function search($user, $pwd) { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblUserPasswordHistory WHERE userID = ".$this->db->qstr($user->getId())." AND pwd=".$this->db->qstr($pwd);
|
||||
$queryStr = "SELECT * FROM `tblUserPasswordHistory` WHERE `userID` = ".$this->db->qstr($user->getId())." AND `pwd`=".$this->db->qstr($pwd);
|
||||
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
|
|
|
@ -67,7 +67,7 @@ class SeedDMS_Session {
|
|||
* @return boolean true if successful otherwise false
|
||||
*/
|
||||
function load($id) { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblSessions WHERE id = ".$this->db->qstr($id);
|
||||
$queryStr = "SELECT * FROM `tblSessions` WHERE `id` = ".$this->db->qstr($id);
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
return false;
|
||||
|
@ -97,7 +97,7 @@ class SeedDMS_Session {
|
|||
$id = "" . rand() . time() . rand() . "";
|
||||
$id = md5($id);
|
||||
$lastaccess = time();
|
||||
$queryStr = "INSERT INTO tblSessions (id, userID, lastAccess, theme, language, su) ".
|
||||
$queryStr = "INSERT INTO `tblSessions` (`id`, `userID`, `lastAccess`, `theme`, `language`, `su`) ".
|
||||
"VALUES ('".$id."', ".$data['userid'].", ".$lastaccess.", '".$data['theme']."', '".$data['lang']."', 0)";
|
||||
if (!$this->db->getResult($queryStr)) {
|
||||
return false;
|
||||
|
@ -126,7 +126,7 @@ class SeedDMS_Session {
|
|||
* @return boolean true if successful otherwise false
|
||||
*/
|
||||
function updateAccess($id) { /* {{{ */
|
||||
$queryStr = "UPDATE tblSessions SET lastAccess = " . time() . " WHERE id = " . $this->db->qstr($id);
|
||||
$queryStr = "UPDATE `tblSessions` SET `lastAccess` = " . time() . " WHERE `id` = " . $this->db->qstr($id);
|
||||
if (!$this->db->getResult($queryStr))
|
||||
return false;
|
||||
return true;
|
||||
|
@ -139,7 +139,7 @@ class SeedDMS_Session {
|
|||
* @return boolean true if successful otherwise false
|
||||
*/
|
||||
function deleteByTime($sec) { /* {{{ */
|
||||
$queryStr = "DELETE FROM tblSessions WHERE " . time() . " - lastAccess > ".$sec;
|
||||
$queryStr = "DELETE FROM `tblSessions` WHERE " . time() . " - `lastAccess` > ".$sec;
|
||||
if (!$this->db->getResult($queryStr)) {
|
||||
return false;
|
||||
}
|
||||
|
@ -153,7 +153,7 @@ class SeedDMS_Session {
|
|||
* @return boolean true if successful otherwise false
|
||||
*/
|
||||
function delete($id) { /* {{{ */
|
||||
$queryStr = "DELETE FROM tblSessions WHERE id = " . $this->db->qstr($id);
|
||||
$queryStr = "DELETE FROM `tblSessions` WHERE `id` = " . $this->db->qstr($id);
|
||||
if (!$this->db->getResult($queryStr)) {
|
||||
return false;
|
||||
}
|
||||
|
@ -178,7 +178,7 @@ class SeedDMS_Session {
|
|||
function setUser($userid) { /* {{{ */
|
||||
/* id is only set if load() was called before */
|
||||
if($this->id) {
|
||||
$queryStr = "UPDATE tblSessions SET userID = " . $this->db->qstr($userid) . " WHERE id = " . $this->db->qstr($this->id);
|
||||
$queryStr = "UPDATE `tblSessions` SET `userID` = " . $this->db->qstr($userid) . " WHERE `id` = " . $this->db->qstr($this->id);
|
||||
if (!$this->db->getResult($queryStr))
|
||||
return false;
|
||||
$this->data['userid'] = $userid;
|
||||
|
@ -194,7 +194,7 @@ class SeedDMS_Session {
|
|||
function setLanguage($lang) { /* {{{ */
|
||||
/* id is only set if load() was called before */
|
||||
if($this->id) {
|
||||
$queryStr = "UPDATE tblSessions SET language = " . $this->db->qstr($lang) . " WHERE id = " . $this->db->qstr($this->id);
|
||||
$queryStr = "UPDATE `tblSessions` SET `language` = " . $this->db->qstr($lang) . " WHERE `id` = " . $this->db->qstr($this->id);
|
||||
if (!$this->db->getResult($queryStr))
|
||||
return false;
|
||||
$this->data['lang'] = $lang;
|
||||
|
@ -219,7 +219,7 @@ class SeedDMS_Session {
|
|||
function setSu($su) { /* {{{ */
|
||||
/* id is only set if load() was called before */
|
||||
if($this->id) {
|
||||
$queryStr = "UPDATE tblSessions SET su = " . (int) $su . " WHERE id = " . $this->db->qstr($this->id);
|
||||
$queryStr = "UPDATE `tblSessions` SET `su` = " . (int) $su . " WHERE `id` = " . $this->db->qstr($this->id);
|
||||
if (!$this->db->getResult($queryStr))
|
||||
return false;
|
||||
$this->data['su'] = (int) $su;
|
||||
|
@ -235,7 +235,7 @@ class SeedDMS_Session {
|
|||
function resetSu() { /* {{{ */
|
||||
/* id is only set if load() was called before */
|
||||
if($this->id) {
|
||||
$queryStr = "UPDATE tblSessions SET su = 0 WHERE id = " . $this->db->qstr($this->id);
|
||||
$queryStr = "UPDATE `tblSessions` SET `su` = 0 WHERE `id` = " . $this->db->qstr($this->id);
|
||||
if (!$this->db->getResult($queryStr))
|
||||
return false;
|
||||
$this->data['su'] = 0;
|
||||
|
@ -260,7 +260,7 @@ class SeedDMS_Session {
|
|||
function setClipboard($clipboard) { /* {{{ */
|
||||
/* id is only set if load() was called before */
|
||||
if($this->id) {
|
||||
$queryStr = "UPDATE tblSessions SET clipboard = " . $this->db->qstr(json_encode($clipboard)) . " WHERE id = " . $this->db->qstr($this->id);
|
||||
$queryStr = "UPDATE `tblSessions` SET `clipboard` = " . $this->db->qstr(json_encode($clipboard)) . " WHERE `id` = " . $this->db->qstr($this->id);
|
||||
if (!$this->db->getResult($queryStr))
|
||||
return false;
|
||||
$this->data['clipboard'] = $clipboard;
|
||||
|
@ -293,7 +293,7 @@ class SeedDMS_Session {
|
|||
if(!in_array($object->getID(), $this->data['clipboard']['folders']))
|
||||
array_push($this->data['clipboard']['folders'], $object->getID());
|
||||
}
|
||||
$queryStr = "UPDATE tblSessions SET clipboard = " . $this->db->qstr(json_encode($this->data['clipboard'])) . " WHERE id = " . $this->db->qstr($this->id);
|
||||
$queryStr = "UPDATE `tblSessions` SET `clipboard` = " . $this->db->qstr(json_encode($this->data['clipboard'])) . " WHERE `id` = " . $this->db->qstr($this->id);
|
||||
if (!$this->db->getResult($queryStr))
|
||||
return false;
|
||||
}
|
||||
|
@ -318,7 +318,7 @@ class SeedDMS_Session {
|
|||
if($key !== false)
|
||||
unset($this->data['clipboard']['folders'][$key]);
|
||||
}
|
||||
$queryStr = "UPDATE tblSessions SET clipboard = " . $this->db->qstr(json_encode($this->data['clipboard'])) . " WHERE id = " . $this->db->qstr($this->id);
|
||||
$queryStr = "UPDATE `tblSessions` SET `clipboard` = " . $this->db->qstr(json_encode($this->data['clipboard'])) . " WHERE `id` = " . $this->db->qstr($this->id);
|
||||
if (!$this->db->getResult($queryStr))
|
||||
return false;
|
||||
}
|
||||
|
@ -332,7 +332,7 @@ class SeedDMS_Session {
|
|||
function clearClipboard() { /* {{{ */
|
||||
$this->data['clipboard']['docs'] = array();
|
||||
$this->data['clipboard']['folders'] = array();
|
||||
$queryStr = "UPDATE tblSessions SET clipboard = " . $this->db->qstr(json_encode($this->data['clipboard'])) . " WHERE id = " . $this->db->qstr($this->id);
|
||||
$queryStr = "UPDATE `tblSessions` SET `clipboard` = " . $this->db->qstr(json_encode($this->data['clipboard'])) . " WHERE `id` = " . $this->db->qstr($this->id);
|
||||
if (!$this->db->getResult($queryStr))
|
||||
return false;
|
||||
return true;
|
||||
|
@ -346,7 +346,7 @@ class SeedDMS_Session {
|
|||
function setSplashMsg($msg) { /* {{{ */
|
||||
/* id is only set if load() was called before */
|
||||
if($this->id) {
|
||||
$queryStr = "UPDATE tblSessions SET splashmsg = " . $this->db->qstr(json_encode($msg)) . " WHERE id = " . $this->db->qstr($this->id);
|
||||
$queryStr = "UPDATE `tblSessions` SET `splashmsg` = " . $this->db->qstr(json_encode($msg)) . " WHERE `id` = " . $this->db->qstr($this->id);
|
||||
if (!$this->db->getResult($queryStr))
|
||||
return false;
|
||||
$this->data['splashmsg'] = $msg;
|
||||
|
@ -362,7 +362,7 @@ class SeedDMS_Session {
|
|||
function clearSplashMsg() { /* {{{ */
|
||||
/* id is only set if load() was called before */
|
||||
if($this->id) {
|
||||
$queryStr = "UPDATE tblSessions SET splashmsg = '' WHERE id = " . $this->db->qstr($this->id);
|
||||
$queryStr = "UPDATE `tblSessions` SET `splashmsg` = '' WHERE `id` = " . $this->db->qstr($this->id);
|
||||
if (!$this->db->getResult($queryStr))
|
||||
return false;
|
||||
$this->data['splashmsg'] = '';
|
||||
|
@ -430,7 +430,7 @@ class SeedDMS_SessionMgr {
|
|||
$id = "" . rand() . time() . rand() . "";
|
||||
$id = md5($id);
|
||||
$lastaccess = time();
|
||||
$queryStr = "INSERT INTO tblSessions (id, userID, lastAccess, theme, language, su) ".
|
||||
$queryStr = "INSERT INTO `tblSessions` (`id`, `userID`, `lastAccess`, `theme`, `language`, `su`) ".
|
||||
"VALUES ('".$id."', ".$data['userid'].", ".$lastaccess.", '".$data['theme']."', '".$data['lang']."', 0)";
|
||||
if (!$this->db->getResult($queryStr)) {
|
||||
return false;
|
||||
|
@ -445,7 +445,7 @@ class SeedDMS_SessionMgr {
|
|||
* @return array list of sessions
|
||||
*/
|
||||
function getAllSessions() { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblSessions";
|
||||
$queryStr = "SELECT * FROM `tblSessions`";
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
return false;
|
||||
|
@ -465,7 +465,7 @@ class SeedDMS_SessionMgr {
|
|||
* @return array list of sessions
|
||||
*/
|
||||
function getUserSessions($user) { /* {{{ */
|
||||
$queryStr = "SELECT * FROM tblSessions WHERE userID=".$user->getID();
|
||||
$queryStr = "SELECT * FROM `tblSessions` WHERE `userID`=".$user->getID();
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
return false;
|
||||
|
|
|
@ -56,16 +56,19 @@ class UI extends UI_Default {
|
|||
* to rootDir or an extension dir if it has set the include path
|
||||
*/
|
||||
$filename = '';
|
||||
$httpbasedir = '';
|
||||
foreach($EXT_CONF as $extname=>$extconf) {
|
||||
if(!isset($extconf['disable']) || $extconf['disable'] == false) {
|
||||
$filename = $settings->_rootDir.'ext/'.$extname.'/views/'.$theme."/class.".$class.".php";
|
||||
if(file_exists($filename)) {
|
||||
$httpbasedir = 'ext/'.$extname.'/';
|
||||
break;
|
||||
}
|
||||
$filename = '';
|
||||
if(isset($extconf['views'][$class])) {
|
||||
$filename = $settings->_rootDir.'ext/'.$extname.'/views/'.$theme."/".$extconf['views'][$class]['file'];
|
||||
if(file_exists($filename)) {
|
||||
$httpbasedir = 'ext/'.$extname.'/';
|
||||
$classname = $extconf['views'][$class]['name'];
|
||||
break;
|
||||
}
|
||||
|
@ -81,6 +84,7 @@ class UI extends UI_Default {
|
|||
$view = new $classname($params, $theme);
|
||||
/* Set some configuration parameters */
|
||||
$view->setParam('refferer', $_SERVER['REQUEST_URI']);
|
||||
$view->setParam('absbaseprefix', $settings->_httpRoot.$httpbasedir);
|
||||
$view->setParam('class', $class);
|
||||
$view->setParam('session', $session);
|
||||
$view->setParam('settings', $settings);
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
class SeedDMS_Version {
|
||||
|
||||
public $_number = "5.0.9";
|
||||
public $_number = "5.0.10";
|
||||
private $_string = "SeedDMS";
|
||||
|
||||
function __construct() {
|
||||
|
|
|
@ -3,12 +3,12 @@
|
|||
--
|
||||
|
||||
CREATE TABLE `tblACLs` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`target` int(11) NOT NULL default '0',
|
||||
`targetType` tinyint(4) NOT NULL default '0',
|
||||
`userID` int(11) NOT NULL default '-1',
|
||||
`groupID` int(11) NOT NULL default '-1',
|
||||
`mode` tinyint(4) NOT NULL default '0',
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`target` int(11) NOT NULL DEFAULT '0',
|
||||
`targetType` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`userID` int(11) NOT NULL DEFAULT '-1',
|
||||
`groupID` int(11) NOT NULL DEFAULT '-1',
|
||||
`mode` tinyint(4) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
@ -19,7 +19,7 @@ CREATE TABLE `tblACLs` (
|
|||
--
|
||||
|
||||
CREATE TABLE `tblCategory` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` text NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
@ -31,17 +31,17 @@ CREATE TABLE `tblCategory` (
|
|||
--
|
||||
|
||||
CREATE TABLE `tblAttributeDefinitions` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`name` varchar(100) default NULL,
|
||||
`objtype` tinyint(4) NOT NULL default '0',
|
||||
`type` tinyint(4) NOT NULL default '0',
|
||||
`multiple` tinyint(4) NOT NULL default '0',
|
||||
`minvalues` int(11) NOT NULL default '0',
|
||||
`maxvalues` int(11) NOT NULL default '0',
|
||||
`valueset` text default NULL,
|
||||
`regex` text default NULL,
|
||||
UNIQUE(`name`),
|
||||
PRIMARY KEY (`id`)
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(100) DEFAULT NULL,
|
||||
`objtype` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`type` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`multiple` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`minvalues` int(11) NOT NULL DEFAULT '0',
|
||||
`maxvalues` int(11) NOT NULL DEFAULT '0',
|
||||
`valueset` text DEFAULT NULL,
|
||||
`regex` text DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `name` (`name`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
@ -51,23 +51,23 @@ CREATE TABLE `tblAttributeDefinitions` (
|
|||
--
|
||||
|
||||
CREATE TABLE `tblUsers` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`login` varchar(50) default NULL,
|
||||
`pwd` varchar(50) default NULL,
|
||||
`fullName` varchar(100) default NULL,
|
||||
`email` varchar(70) default NULL,
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`login` varchar(50) DEFAULT NULL,
|
||||
`pwd` varchar(50) DEFAULT NULL,
|
||||
`fullName` varchar(100) DEFAULT NULL,
|
||||
`email` varchar(70) DEFAULT NULL,
|
||||
`language` varchar(32) NOT NULL,
|
||||
`theme` varchar(32) NOT NULL,
|
||||
`comment` text NOT NULL,
|
||||
`role` smallint(1) NOT NULL default '0',
|
||||
`hidden` smallint(1) NOT NULL default '0',
|
||||
`pwdExpiration` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`loginfailures` tinyint(4) NOT NULL default '0',
|
||||
`disabled` smallint(1) NOT NULL default '0',
|
||||
`quota` bigint,
|
||||
`homefolder` int(11) default NULL,
|
||||
`role` smallint(1) NOT NULL DEFAULT '0',
|
||||
`hidden` smallint(1) NOT NULL DEFAULT '0',
|
||||
`pwdExpiration` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`loginfailures` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`disabled` smallint(1) NOT NULL DEFAULT '0',
|
||||
`quota` bigint(20) DEFAULT NULL,
|
||||
`homefolder` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE (`login`)
|
||||
UNIQUE KEY `login` (`login`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
@ -77,11 +77,12 @@ CREATE TABLE `tblUsers` (
|
|||
--
|
||||
|
||||
CREATE TABLE `tblUserPasswordRequest` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`userID` int(11) NOT NULL default '0',
|
||||
`hash` varchar(50) default NULL,
|
||||
`date` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`userID` int(11) NOT NULL DEFAULT '0',
|
||||
`hash` varchar(50) DEFAULT NULL,
|
||||
`date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `tblUserPasswordRequest_user` (`userID`),
|
||||
CONSTRAINT `tblUserPasswordRequest_user` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
@ -92,11 +93,12 @@ CREATE TABLE `tblUserPasswordRequest` (
|
|||
--
|
||||
|
||||
CREATE TABLE `tblUserPasswordHistory` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`userID` int(11) NOT NULL default '0',
|
||||
`pwd` varchar(50) default NULL,
|
||||
`date` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`userID` int(11) NOT NULL DEFAULT '0',
|
||||
`pwd` varchar(50) DEFAULT NULL,
|
||||
`date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `tblUserPasswordHistory_user` (`userID`),
|
||||
CONSTRAINT `tblUserPasswordHistory_user` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
@ -107,11 +109,12 @@ CREATE TABLE `tblUserPasswordHistory` (
|
|||
--
|
||||
|
||||
CREATE TABLE `tblUserImages` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`userID` int(11) NOT NULL default '0',
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`userID` int(11) NOT NULL DEFAULT '0',
|
||||
`image` blob NOT NULL,
|
||||
`mimeType` varchar(10) NOT NULL default '',
|
||||
`mimeType` varchar(10) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `tblUserImages_user` (`userID`),
|
||||
CONSTRAINT `tblUserImages_user` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
@ -122,22 +125,23 @@ CREATE TABLE `tblUserImages` (
|
|||
--
|
||||
|
||||
CREATE TABLE `tblFolders` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`name` varchar(70) default NULL,
|
||||
`parent` int(11) default NULL,
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(70) DEFAULT NULL,
|
||||
`parent` int(11) DEFAULT NULL,
|
||||
`folderList` text NOT NULL,
|
||||
`comment` text,
|
||||
`date` int(12) default NULL,
|
||||
`owner` int(11) default NULL,
|
||||
`inheritAccess` tinyint(1) NOT NULL default '1',
|
||||
`defaultAccess` tinyint(4) NOT NULL default '0',
|
||||
`sequence` double NOT NULL default '0',
|
||||
`date` int(12) DEFAULT NULL,
|
||||
`owner` int(11) DEFAULT NULL,
|
||||
`inheritAccess` tinyint(1) NOT NULL DEFAULT '1',
|
||||
`defaultAccess` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`sequence` double NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `parent` (`parent`),
|
||||
KEY `tblFolders_owner` (`owner`),
|
||||
CONSTRAINT `tblFolders_owner` FOREIGN KEY (`owner`) REFERENCES `tblUsers` (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
ALTER TABLE tblUsers ADD CONSTRAINT `tblUsers_homefolder` FOREIGN KEY (`homefolder`) REFERENCES `tblFolders` (`id`);
|
||||
ALTER TABLE `tblUsers` ADD CONSTRAINT `tblUsers_homefolder` FOREIGN KEY (`homefolder`) REFERENCES `tblFolders` (`id`);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
|
@ -146,14 +150,15 @@ ALTER TABLE tblUsers ADD CONSTRAINT `tblUsers_homefolder` FOREIGN KEY (`homefold
|
|||
--
|
||||
|
||||
CREATE TABLE `tblFolderAttributes` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`folder` int(11) default NULL,
|
||||
`attrdef` int(11) default NULL,
|
||||
`value` text default NULL,
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`folder` int(11) DEFAULT NULL,
|
||||
`attrdef` int(11) DEFAULT NULL,
|
||||
`value` text,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE (folder, attrdef),
|
||||
CONSTRAINT `tblFolderAttributes_folder` FOREIGN KEY (`folder`) REFERENCES `tblFolders` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblFolderAttributes_attrdef` FOREIGN KEY (`attrdef`) REFERENCES `tblAttributeDefinitions` (`id`)
|
||||
UNIQUE KEY `folder` (`folder`,`attrdef`),
|
||||
KEY `tblFolderAttributes_attrdef` (`attrdef`),
|
||||
CONSTRAINT `tblFolderAttributes_attrdef` FOREIGN KEY (`attrdef`) REFERENCES `tblAttributeDefinitions` (`id`),
|
||||
CONSTRAINT `tblFolderAttributes_folder` FOREIGN KEY (`folder`) REFERENCES `tblFolders` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
@ -163,20 +168,22 @@ CREATE TABLE `tblFolderAttributes` (
|
|||
--
|
||||
|
||||
CREATE TABLE `tblDocuments` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`name` varchar(150) default NULL,
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(150) DEFAULT NULL,
|
||||
`comment` text,
|
||||
`date` int(12) default NULL,
|
||||
`expires` int(12) default NULL,
|
||||
`owner` int(11) default NULL,
|
||||
`folder` int(11) default NULL,
|
||||
`date` int(12) DEFAULT NULL,
|
||||
`expires` int(12) DEFAULT NULL,
|
||||
`owner` int(11) DEFAULT NULL,
|
||||
`folder` int(11) DEFAULT NULL,
|
||||
`folderList` text NOT NULL,
|
||||
`inheritAccess` tinyint(1) NOT NULL default '1',
|
||||
`defaultAccess` tinyint(4) NOT NULL default '0',
|
||||
`locked` int(11) NOT NULL default '-1',
|
||||
`inheritAccess` tinyint(1) NOT NULL DEFAULT '1',
|
||||
`defaultAccess` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`locked` int(11) NOT NULL DEFAULT '-1',
|
||||
`keywords` text NOT NULL,
|
||||
`sequence` double NOT NULL default '0',
|
||||
`sequence` double NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `tblDocuments_folder` (`folder`),
|
||||
KEY `tblDocuments_owner` (`owner`),
|
||||
CONSTRAINT `tblDocuments_folder` FOREIGN KEY (`folder`) REFERENCES `tblFolders` (`id`),
|
||||
CONSTRAINT `tblDocuments_owner` FOREIGN KEY (`owner`) REFERENCES `tblUsers` (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
@ -188,14 +195,15 @@ CREATE TABLE `tblDocuments` (
|
|||
--
|
||||
|
||||
CREATE TABLE `tblDocumentAttributes` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`document` int(11) default NULL,
|
||||
`attrdef` int(11) default NULL,
|
||||
`value` text default NULL,
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`document` int(11) DEFAULT NULL,
|
||||
`attrdef` int(11) DEFAULT NULL,
|
||||
`value` text,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE (document, attrdef),
|
||||
CONSTRAINT `tblDocumentAttributes_document` FOREIGN KEY (`document`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblDocumentAttributes_attrdef` FOREIGN KEY (`attrdef`) REFERENCES `tblAttributeDefinitions` (`id`)
|
||||
UNIQUE KEY `document` (`document`,`attrdef`),
|
||||
KEY `tblDocumentAttributes_attrdef` (`attrdef`),
|
||||
CONSTRAINT `tblDocumentAttributes_attrdef` FOREIGN KEY (`attrdef`) REFERENCES `tblAttributeDefinitions` (`id`),
|
||||
CONSTRAINT `tblDocumentAttributes_document` FOREIGN KEY (`document`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
@ -205,11 +213,11 @@ CREATE TABLE `tblDocumentAttributes` (
|
|||
--
|
||||
|
||||
CREATE TABLE `tblDocumentApprovers` (
|
||||
`approveID` int(11) NOT NULL auto_increment,
|
||||
`documentID` int(11) NOT NULL default '0',
|
||||
`version` smallint(5) unsigned NOT NULL default '0',
|
||||
`type` tinyint(4) NOT NULL default '0',
|
||||
`required` int(11) NOT NULL default '0',
|
||||
`approveID` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`documentID` int(11) NOT NULL DEFAULT '0',
|
||||
`version` smallint(5) unsigned NOT NULL DEFAULT '0',
|
||||
`type` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`required` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`approveID`),
|
||||
UNIQUE KEY `documentID` (`documentID`,`version`,`type`,`required`),
|
||||
CONSTRAINT `tblDocumentApprovers_document` FOREIGN KEY (`documentID`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE
|
||||
|
@ -222,13 +230,15 @@ CREATE TABLE `tblDocumentApprovers` (
|
|||
--
|
||||
|
||||
CREATE TABLE `tblDocumentApproveLog` (
|
||||
`approveLogID` int(11) NOT NULL auto_increment,
|
||||
`approveID` int(11) NOT NULL default '0',
|
||||
`status` tinyint(4) NOT NULL default '0',
|
||||
`approveLogID` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`approveID` int(11) NOT NULL DEFAULT '0',
|
||||
`status` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`comment` text NOT NULL,
|
||||
`date` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`userID` int(11) NOT NULL default '0',
|
||||
`date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`userID` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`approveLogID`),
|
||||
KEY `tblDocumentApproveLog_approve` (`approveID`),
|
||||
KEY `tblDocumentApproveLog_user` (`userID`),
|
||||
CONSTRAINT `tblDocumentApproveLog_approve` FOREIGN KEY (`approveID`) REFERENCES `tblDocumentApprovers` (`approveID`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblDocumentApproveLog_user` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
@ -240,20 +250,20 @@ CREATE TABLE `tblDocumentApproveLog` (
|
|||
--
|
||||
|
||||
CREATE TABLE `tblDocumentContent` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`document` int(11) NOT NULL default '0',
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`document` int(11) NOT NULL DEFAULT '0',
|
||||
`version` smallint(5) unsigned NOT NULL,
|
||||
`comment` text,
|
||||
`date` int(12) default NULL,
|
||||
`createdBy` int(11) default NULL,
|
||||
`dir` varchar(255) NOT NULL default '',
|
||||
`orgFileName` varchar(150) NOT NULL default '',
|
||||
`fileType` varchar(10) NOT NULL default '',
|
||||
`mimeType` varchar(100) NOT NULL default '',
|
||||
`fileSize` BIGINT,
|
||||
`checksum` char(32),
|
||||
`date` int(12) DEFAULT NULL,
|
||||
`createdBy` int(11) DEFAULT NULL,
|
||||
`dir` varchar(255) NOT NULL DEFAULT '',
|
||||
`orgFileName` varchar(150) NOT NULL DEFAULT '',
|
||||
`fileType` varchar(10) NOT NULL DEFAULT '',
|
||||
`mimeType` varchar(100) NOT NULL DEFAULT '',
|
||||
`fileSize` bigint(20) DEFAULT NULL,
|
||||
`checksum` char(32) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE (`document`, `version`),
|
||||
UNIQUE KEY `document` (`document`,`version`),
|
||||
CONSTRAINT `tblDocumentContent_document` FOREIGN KEY (`document`) REFERENCES `tblDocuments` (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
@ -264,14 +274,15 @@ CREATE TABLE `tblDocumentContent` (
|
|||
--
|
||||
|
||||
CREATE TABLE `tblDocumentContentAttributes` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`content` int(11) default NULL,
|
||||
`attrdef` int(11) default NULL,
|
||||
`value` text default NULL,
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`content` int(11) DEFAULT NULL,
|
||||
`attrdef` int(11) DEFAULT NULL,
|
||||
`value` text,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE (content, attrdef),
|
||||
CONSTRAINT `tblDocumentContentAttributes_document` FOREIGN KEY (`content`) REFERENCES `tblDocumentContent` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblDocumentContentAttributes_attrdef` FOREIGN KEY (`attrdef`) REFERENCES `tblAttributeDefinitions` (`id`)
|
||||
UNIQUE KEY `content` (`content`,`attrdef`),
|
||||
KEY `tblDocumentContentAttributes_attrdef` (`attrdef`),
|
||||
CONSTRAINT `tblDocumentContentAttributes_attrdef` FOREIGN KEY (`attrdef`) REFERENCES `tblAttributeDefinitions` (`id`),
|
||||
CONSTRAINT `tblDocumentContentAttributes_document` FOREIGN KEY (`content`) REFERENCES `tblDocumentContent` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
@ -281,12 +292,15 @@ CREATE TABLE `tblDocumentContentAttributes` (
|
|||
--
|
||||
|
||||
CREATE TABLE `tblDocumentLinks` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`document` int(11) NOT NULL default '0',
|
||||
`target` int(11) NOT NULL default '0',
|
||||
`userID` int(11) NOT NULL default '0',
|
||||
`public` tinyint(1) NOT NULL default '0',
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`document` int(11) NOT NULL DEFAULT '0',
|
||||
`target` int(11) NOT NULL DEFAULT '0',
|
||||
`userID` int(11) NOT NULL DEFAULT '0',
|
||||
`public` tinyint(1) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `tblDocumentLinks_document` (`document`),
|
||||
KEY `tblDocumentLinks_target` (`target`),
|
||||
KEY `tblDocumentLinks_user` (`userID`),
|
||||
CONSTRAINT `tblDocumentLinks_document` FOREIGN KEY (`document`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblDocumentLinks_target` FOREIGN KEY (`target`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblDocumentLinks_user` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`)
|
||||
|
@ -299,23 +313,23 @@ CREATE TABLE `tblDocumentLinks` (
|
|||
--
|
||||
|
||||
CREATE TABLE `tblDocumentFiles` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`document` int(11) NOT NULL default '0',
|
||||
`userID` int(11) NOT NULL default '0',
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`document` int(11) NOT NULL DEFAULT '0',
|
||||
`userID` int(11) NOT NULL DEFAULT '0',
|
||||
`comment` text,
|
||||
`name` varchar(150) default NULL,
|
||||
`date` int(12) default NULL,
|
||||
`dir` varchar(255) NOT NULL default '',
|
||||
`orgFileName` varchar(150) NOT NULL default '',
|
||||
`fileType` varchar(10) NOT NULL default '',
|
||||
`mimeType` varchar(100) NOT NULL default '',
|
||||
`name` varchar(150) DEFAULT NULL,
|
||||
`date` int(12) DEFAULT NULL,
|
||||
`dir` varchar(255) NOT NULL DEFAULT '',
|
||||
`orgFileName` varchar(150) NOT NULL DEFAULT '',
|
||||
`fileType` varchar(10) NOT NULL DEFAULT '',
|
||||
`mimeType` varchar(100) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `tblDocumentFiles_document` (`document`),
|
||||
KEY `tblDocumentFiles_user` (`userID`),
|
||||
CONSTRAINT `tblDocumentFiles_document` FOREIGN KEY (`document`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblDocumentFiles_user` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
|
@ -323,9 +337,10 @@ CREATE TABLE `tblDocumentFiles` (
|
|||
--
|
||||
|
||||
CREATE TABLE `tblDocumentLocks` (
|
||||
`document` int(11) NOT NULL default '0',
|
||||
`userID` int(11) NOT NULL default '0',
|
||||
`document` int(11) NOT NULL DEFAULT '0',
|
||||
`userID` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`document`),
|
||||
KEY `tblDocumentLocks_user` (`userID`),
|
||||
CONSTRAINT `tblDocumentLocks_document` FOREIGN KEY (`document`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblDocumentLocks_user` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
@ -337,11 +352,11 @@ CREATE TABLE `tblDocumentLocks` (
|
|||
--
|
||||
|
||||
CREATE TABLE `tblDocumentReviewers` (
|
||||
`reviewID` int(11) NOT NULL auto_increment,
|
||||
`documentID` int(11) NOT NULL default '0',
|
||||
`version` smallint(5) unsigned NOT NULL default '0',
|
||||
`type` tinyint(4) NOT NULL default '0',
|
||||
`required` int(11) NOT NULL default '0',
|
||||
`reviewID` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`documentID` int(11) NOT NULL DEFAULT '0',
|
||||
`version` smallint(5) unsigned NOT NULL DEFAULT '0',
|
||||
`type` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`required` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`reviewID`),
|
||||
UNIQUE KEY `documentID` (`documentID`,`version`,`type`,`required`),
|
||||
CONSTRAINT `tblDocumentReviewers_document` FOREIGN KEY (`documentID`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE
|
||||
|
@ -354,13 +369,15 @@ CREATE TABLE `tblDocumentReviewers` (
|
|||
--
|
||||
|
||||
CREATE TABLE `tblDocumentReviewLog` (
|
||||
`reviewLogID` int(11) NOT NULL auto_increment,
|
||||
`reviewID` int(11) NOT NULL default '0',
|
||||
`status` tinyint(4) NOT NULL default '0',
|
||||
`reviewLogID` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`reviewID` int(11) NOT NULL DEFAULT '0',
|
||||
`status` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`comment` text NOT NULL,
|
||||
`date` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`userID` int(11) NOT NULL default '0',
|
||||
`date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`userID` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`reviewLogID`),
|
||||
KEY `tblDocumentReviewLog_review` (`reviewID`),
|
||||
KEY `tblDocumentReviewLog_user` (`userID`),
|
||||
CONSTRAINT `tblDocumentReviewLog_review` FOREIGN KEY (`reviewID`) REFERENCES `tblDocumentReviewers` (`reviewID`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblDocumentReviewLog_user` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
@ -372,9 +389,9 @@ CREATE TABLE `tblDocumentReviewLog` (
|
|||
--
|
||||
|
||||
CREATE TABLE `tblDocumentStatus` (
|
||||
`statusID` int(11) NOT NULL auto_increment,
|
||||
`documentID` int(11) NOT NULL default '0',
|
||||
`version` smallint(5) unsigned NOT NULL default '0',
|
||||
`statusID` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`documentID` int(11) NOT NULL DEFAULT '0',
|
||||
`version` smallint(5) unsigned NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`statusID`),
|
||||
UNIQUE KEY `documentID` (`documentID`,`version`),
|
||||
CONSTRAINT `tblDocumentStatus_document` FOREIGN KEY (`documentID`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE
|
||||
|
@ -387,14 +404,15 @@ CREATE TABLE `tblDocumentStatus` (
|
|||
--
|
||||
|
||||
CREATE TABLE `tblDocumentStatusLog` (
|
||||
`statusLogID` int(11) NOT NULL auto_increment,
|
||||
`statusID` int(11) NOT NULL default '0',
|
||||
`status` tinyint(4) NOT NULL default '0',
|
||||
`statusLogID` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`statusID` int(11) NOT NULL DEFAULT '0',
|
||||
`status` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`comment` text NOT NULL,
|
||||
`date` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`userID` int(11) NOT NULL default '0',
|
||||
`date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`userID` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`statusLogID`),
|
||||
KEY `statusID` (`statusID`),
|
||||
KEY `tblDocumentStatusLog_user` (`userID`),
|
||||
CONSTRAINT `tblDocumentStatusLog_status` FOREIGN KEY (`statusID`) REFERENCES `tblDocumentStatus` (`statusID`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblDocumentStatusLog_user` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
@ -406,8 +424,8 @@ CREATE TABLE `tblDocumentStatusLog` (
|
|||
--
|
||||
|
||||
CREATE TABLE `tblGroups` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`name` varchar(50) default NULL,
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(50) DEFAULT NULL,
|
||||
`comment` text NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
@ -419,12 +437,13 @@ CREATE TABLE `tblGroups` (
|
|||
--
|
||||
|
||||
CREATE TABLE `tblGroupMembers` (
|
||||
`groupID` int(11) NOT NULL default '0',
|
||||
`userID` int(11) NOT NULL default '0',
|
||||
`manager` smallint(1) NOT NULL default '0',
|
||||
UNIQUE (`groupID`,`userID`),
|
||||
CONSTRAINT `tblGroupMembers_user` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblGroupMembers_group` FOREIGN KEY (`groupID`) REFERENCES `tblGroups` (`id`) ON DELETE CASCADE
|
||||
`groupID` int(11) NOT NULL DEFAULT '0',
|
||||
`userID` int(11) NOT NULL DEFAULT '0',
|
||||
`manager` smallint(1) NOT NULL DEFAULT '0',
|
||||
UNIQUE KEY `groupID` (`groupID`,`userID`),
|
||||
KEY `tblGroupMembers_user` (`userID`),
|
||||
CONSTRAINT `tblGroupMembers_group` FOREIGN KEY (`groupID`) REFERENCES `tblGroups` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblGroupMembers_user` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
@ -434,9 +453,9 @@ CREATE TABLE `tblGroupMembers` (
|
|||
--
|
||||
|
||||
CREATE TABLE `tblKeywordCategories` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`name` varchar(255) NOT NULL default '',
|
||||
`owner` int(11) NOT NULL default '0',
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(255) NOT NULL DEFAULT '',
|
||||
`owner` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
@ -447,10 +466,11 @@ CREATE TABLE `tblKeywordCategories` (
|
|||
--
|
||||
|
||||
CREATE TABLE `tblKeywords` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`category` int(11) NOT NULL default '0',
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`category` int(11) NOT NULL DEFAULT '0',
|
||||
`keywords` text NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `tblKeywords_category` (`category`),
|
||||
CONSTRAINT `tblKeywords_category` FOREIGN KEY (`category`) REFERENCES `tblKeywordCategories` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
@ -461,8 +481,10 @@ CREATE TABLE `tblKeywords` (
|
|||
--
|
||||
|
||||
CREATE TABLE `tblDocumentCategory` (
|
||||
`categoryID` int(11) NOT NULL default 0,
|
||||
`documentID` int(11) NOT NULL default 0,
|
||||
`categoryID` int(11) NOT NULL DEFAULT '0',
|
||||
`documentID` int(11) NOT NULL DEFAULT '0',
|
||||
KEY `tblDocumentCategory_category` (`categoryID`),
|
||||
KEY `tblDocumentCategory_document` (`documentID`),
|
||||
CONSTRAINT `tblDocumentCategory_category` FOREIGN KEY (`categoryID`) REFERENCES `tblCategory` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblDocumentCategory_document` FOREIGN KEY (`documentID`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
@ -474,10 +496,10 @@ CREATE TABLE `tblDocumentCategory` (
|
|||
--
|
||||
|
||||
CREATE TABLE `tblNotify` (
|
||||
`target` int(11) NOT NULL default '0',
|
||||
`targetType` int(11) NOT NULL default '0',
|
||||
`userID` int(11) NOT NULL default '-1',
|
||||
`groupID` int(11) NOT NULL default '-1',
|
||||
`target` int(11) NOT NULL DEFAULT '0',
|
||||
`targetType` int(11) NOT NULL DEFAULT '0',
|
||||
`userID` int(11) NOT NULL DEFAULT '-1',
|
||||
`groupID` int(11) NOT NULL DEFAULT '-1',
|
||||
PRIMARY KEY (`target`,`targetType`,`userID`,`groupID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
@ -488,28 +510,29 @@ CREATE TABLE `tblNotify` (
|
|||
--
|
||||
|
||||
CREATE TABLE `tblSessions` (
|
||||
`id` varchar(50) NOT NULL default '',
|
||||
`userID` int(11) NOT NULL default '0',
|
||||
`lastAccess` int(11) NOT NULL default '0',
|
||||
`theme` varchar(30) NOT NULL default '',
|
||||
`language` varchar(30) NOT NULL default '',
|
||||
`clipboard` text default NULL,
|
||||
`su` INTEGER DEFAULT NULL,
|
||||
`splashmsg` text default NULL,
|
||||
`id` varchar(50) NOT NULL DEFAULT '',
|
||||
`userID` int(11) NOT NULL DEFAULT '0',
|
||||
`lastAccess` int(11) NOT NULL DEFAULT '0',
|
||||
`theme` varchar(30) NOT NULL DEFAULT '',
|
||||
`language` varchar(30) NOT NULL DEFAULT '',
|
||||
`clipboard` text,
|
||||
`su` int(11) DEFAULT NULL,
|
||||
`splashmsg` text,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `tblSessions_user` (`userID`),
|
||||
CONSTRAINT `tblSessions_user` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for mandatory reviewers
|
||||
-- Table structure for table `tblMandatoryReviewers`
|
||||
--
|
||||
|
||||
CREATE TABLE `tblMandatoryReviewers` (
|
||||
`userID` int(11) NOT NULL default '0',
|
||||
`reviewerUserID` int(11) NOT NULL default '0',
|
||||
`reviewerGroupID` int(11) NOT NULL default '0',
|
||||
`userID` int(11) NOT NULL DEFAULT '0',
|
||||
`reviewerUserID` int(11) NOT NULL DEFAULT '0',
|
||||
`reviewerGroupID` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`userID`,`reviewerUserID`,`reviewerGroupID`),
|
||||
CONSTRAINT `tblMandatoryReviewers_user` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
@ -517,13 +540,13 @@ CREATE TABLE `tblMandatoryReviewers` (
|
|||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for mandatory approvers
|
||||
-- Table structure for table `tblMandatoryApprovers`
|
||||
--
|
||||
|
||||
CREATE TABLE `tblMandatoryApprovers` (
|
||||
`userID` int(11) NOT NULL default '0',
|
||||
`approverUserID` int(11) NOT NULL default '0',
|
||||
`approverGroupID` int(11) NOT NULL default '0',
|
||||
`userID` int(11) NOT NULL DEFAULT '0',
|
||||
`approverUserID` int(11) NOT NULL DEFAULT '0',
|
||||
`approverGroupID` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`userID`,`approverUserID`,`approverGroupID`),
|
||||
CONSTRAINT `tblMandatoryApprovers_user` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
@ -531,32 +554,32 @@ CREATE TABLE `tblMandatoryApprovers` (
|
|||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for events (calendar)
|
||||
-- Table structure for table `tblEvents`
|
||||
--
|
||||
|
||||
CREATE TABLE `tblEvents` (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`name` varchar(150) default NULL,
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(150) DEFAULT NULL,
|
||||
`comment` text,
|
||||
`start` int(12) default NULL,
|
||||
`stop` int(12) default NULL,
|
||||
`date` int(12) default NULL,
|
||||
`userID` int(11) NOT NULL default '0',
|
||||
`start` int(12) DEFAULT NULL,
|
||||
`stop` int(12) DEFAULT NULL,
|
||||
`date` int(12) DEFAULT NULL,
|
||||
`userID` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for workflow states
|
||||
-- Table structure for table `tblWorkflowStates`
|
||||
--
|
||||
|
||||
CREATE TABLE tblWorkflowStates (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
CREATE TABLE `tblWorkflowStates` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` text NOT NULL,
|
||||
`visibility` smallint(5) DEFAULT 0,
|
||||
`maxtime` int(11) DEFAULT 0,
|
||||
`precondfunc` text DEFAULT NULL,
|
||||
`visibility` smallint(5) DEFAULT '0',
|
||||
`maxtime` int(11) DEFAULT '0',
|
||||
`precondfunc` text,
|
||||
`documentstatus` smallint(5) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
@ -564,11 +587,11 @@ CREATE TABLE tblWorkflowStates (
|
|||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for workflow actions
|
||||
-- Table structure for table `tblWorkflowActions`
|
||||
--
|
||||
|
||||
CREATE TABLE tblWorkflowActions (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
CREATE TABLE `tblWorkflowActions` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` text NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
@ -576,48 +599,55 @@ CREATE TABLE tblWorkflowActions (
|
|||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for workflows
|
||||
-- Table structure for table `tblWorkflows`
|
||||
--
|
||||
|
||||
CREATE TABLE tblWorkflows (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
CREATE TABLE `tblWorkflows` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` text NOT NULL,
|
||||
`initstate` int(11) NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `tblWorkflow_initstate` (`initstate`),
|
||||
CONSTRAINT `tblWorkflow_initstate` FOREIGN KEY (`initstate`) REFERENCES `tblWorkflowStates` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for workflow transitions
|
||||
-- Table structure for table `tblWorkflowTransitions`
|
||||
--
|
||||
|
||||
CREATE TABLE tblWorkflowTransitions (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`workflow` int(11) default NULL,
|
||||
`state` int(11) default NULL,
|
||||
`action` int(11) default NULL,
|
||||
`nextstate` int(11) default NULL,
|
||||
`maxtime` int(11) DEFAULT 0,
|
||||
CREATE TABLE `tblWorkflowTransitions` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`workflow` int(11) DEFAULT NULL,
|
||||
`state` int(11) DEFAULT NULL,
|
||||
`action` int(11) DEFAULT NULL,
|
||||
`nextstate` int(11) DEFAULT NULL,
|
||||
`maxtime` int(11) DEFAULT '0',
|
||||
PRIMARY KEY (`id`),
|
||||
CONSTRAINT `tblWorkflowTransitions_workflow` FOREIGN KEY (`workflow`) REFERENCES `tblWorkflows` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblWorkflowTransitions_state` FOREIGN KEY (`state`) REFERENCES `tblWorkflowStates` (`id`) ON DELETE CASCADE,
|
||||
KEY `tblWorkflowTransitions_workflow` (`workflow`),
|
||||
KEY `tblWorkflowTransitions_state` (`state`),
|
||||
KEY `tblWorkflowTransitions_action` (`action`),
|
||||
KEY `tblWorkflowTransitions_nextstate` (`nextstate`),
|
||||
CONSTRAINT `tblWorkflowTransitions_action` FOREIGN KEY (`action`) REFERENCES `tblWorkflowActions` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblWorkflowTransitions_nextstate` FOREIGN KEY (`nextstate`) REFERENCES `tblWorkflowStates` (`id`) ON DELETE CASCADE
|
||||
CONSTRAINT `tblWorkflowTransitions_nextstate` FOREIGN KEY (`nextstate`) REFERENCES `tblWorkflowStates` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblWorkflowTransitions_state` FOREIGN KEY (`state`) REFERENCES `tblWorkflowStates` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblWorkflowTransitions_workflow` FOREIGN KEY (`workflow`) REFERENCES `tblWorkflows` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for workflow transition users
|
||||
-- Table structure for table `tblWorkflowTransitionUsers`
|
||||
--
|
||||
|
||||
CREATE TABLE tblWorkflowTransitionUsers (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`transition` int(11) default NULL,
|
||||
`userid` int(11) default NULL,
|
||||
CREATE TABLE `tblWorkflowTransitionUsers` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`transition` int(11) DEFAULT NULL,
|
||||
`userid` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `tblWorkflowTransitionUsers_transition` (`transition`),
|
||||
KEY `tblWorkflowTransitionUsers_userid` (`userid`),
|
||||
CONSTRAINT `tblWorkflowTransitionUsers_transition` FOREIGN KEY (`transition`) REFERENCES `tblWorkflowTransitions` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblWorkflowTransitionUsers_userid` FOREIGN KEY (`userid`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
@ -625,84 +655,94 @@ CREATE TABLE tblWorkflowTransitionUsers (
|
|||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for workflow transition groups
|
||||
-- Table structure for table `tblWorkflowTransitionGroups`
|
||||
--
|
||||
|
||||
CREATE TABLE tblWorkflowTransitionGroups (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`transition` int(11) default NULL,
|
||||
`groupid` int(11) default NULL,
|
||||
`minusers` int(11) default NULL,
|
||||
CREATE TABLE `tblWorkflowTransitionGroups` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`transition` int(11) DEFAULT NULL,
|
||||
`groupid` int(11) DEFAULT NULL,
|
||||
`minusers` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
CONSTRAINT `tblWorkflowTransitionGroups_transition` FOREIGN KEY (`transition`) REFERENCES `tblWorkflowTransitions` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblWorkflowTransitionGroups_groupid` FOREIGN KEY (`groupID`) REFERENCES `tblGroups` (`id`) ON DELETE CASCADE
|
||||
KEY `tblWorkflowTransitionGroups_transition` (`transition`),
|
||||
KEY `tblWorkflowTransitionGroups_groupid` (`groupid`),
|
||||
CONSTRAINT `tblWorkflowTransitionGroups_groupid` FOREIGN KEY (`groupid`) REFERENCES `tblGroups` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblWorkflowTransitionGroups_transition` FOREIGN KEY (`transition`) REFERENCES `tblWorkflowTransitions` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for workflow log
|
||||
-- Table structure for table `tblWorkflowLog`
|
||||
--
|
||||
|
||||
CREATE TABLE tblWorkflowLog (
|
||||
`id` int(11) NOT NULL auto_increment,
|
||||
`document` int(11) default NULL,
|
||||
`version` smallint(5) default NULL,
|
||||
`workflow` int(11) default NULL,
|
||||
`userid` int(11) default NULL,
|
||||
`transition` int(11) default NULL,
|
||||
`date` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
CREATE TABLE `tblWorkflowLog` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`document` int(11) DEFAULT NULL,
|
||||
`version` smallint(5) DEFAULT NULL,
|
||||
`workflow` int(11) DEFAULT NULL,
|
||||
`userid` int(11) DEFAULT NULL,
|
||||
`transition` int(11) DEFAULT NULL,
|
||||
`date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`comment` text,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `tblWorkflowLog_document` (`document`),
|
||||
KEY `tblWorkflowLog_workflow` (`workflow`),
|
||||
KEY `tblWorkflowLog_userid` (`userid`),
|
||||
KEY `tblWorkflowLog_transition` (`transition`),
|
||||
CONSTRAINT `tblWorkflowLog_document` FOREIGN KEY (`document`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblWorkflowLog_workflow` FOREIGN KEY (`workflow`) REFERENCES `tblWorkflows` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblWorkflowLog_transition` FOREIGN KEY (`transition`) REFERENCES `tblWorkflowTransitions` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblWorkflowLog_userid` FOREIGN KEY (`userid`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblWorkflowLog_transition` FOREIGN KEY (`transition`) REFERENCES `tblWorkflowTransitions` (`id`) ON DELETE CASCADE
|
||||
CONSTRAINT `tblWorkflowLog_workflow` FOREIGN KEY (`workflow`) REFERENCES `tblWorkflows` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for workflow document relation
|
||||
-- Table structure for table `tblWorkflowDocumentContent`
|
||||
--
|
||||
|
||||
CREATE TABLE tblWorkflowDocumentContent (
|
||||
`parentworkflow` int(11) DEFAULT 0,
|
||||
CREATE TABLE `tblWorkflowDocumentContent` (
|
||||
`parentworkflow` int(11) DEFAULT '0',
|
||||
`workflow` int(11) DEFAULT NULL,
|
||||
`document` int(11) DEFAULT NULL,
|
||||
`version` smallint(5) DEFAULT NULL,
|
||||
`state` int(11) DEFAULT NULL,
|
||||
`date` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
KEY `tblWorkflowDocument_document` (`document`),
|
||||
KEY `tblWorkflowDocument_workflow` (`workflow`),
|
||||
KEY `tblWorkflowDocument_state` (`state`),
|
||||
CONSTRAINT `tblWorkflowDocument_document` FOREIGN KEY (`document`) REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblWorkflowDocument_workflow` FOREIGN KEY (`workflow`) REFERENCES `tblWorkflows` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblWorkflowDocument_state` FOREIGN KEY (`state`) REFERENCES `tblWorkflowStates` (`id`) ON DELETE CASCADE
|
||||
CONSTRAINT `tblWorkflowDocument_state` FOREIGN KEY (`state`) REFERENCES `tblWorkflowStates` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblWorkflowDocument_workflow` FOREIGN KEY (`workflow`) REFERENCES `tblWorkflows` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for mandatory workflows
|
||||
-- Table structure for table `tblWorkflowMandatoryWorkflow`
|
||||
--
|
||||
|
||||
CREATE TABLE tblWorkflowMandatoryWorkflow (
|
||||
`userid` int(11) default NULL,
|
||||
`workflow` int(11) default NULL,
|
||||
UNIQUE(userid, workflow),
|
||||
CONSTRAINT `tblWorkflowMandatoryWorkflow_workflow` FOREIGN KEY (`workflow`) REFERENCES `tblWorkflows` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblWorkflowMandatoryWorkflow_userid` FOREIGN KEY (`userid`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
|
||||
CREATE TABLE `tblWorkflowMandatoryWorkflow` (
|
||||
`userid` int(11) DEFAULT NULL,
|
||||
`workflow` int(11) DEFAULT NULL,
|
||||
UNIQUE KEY `userid` (`userid`,`workflow`),
|
||||
KEY `tblWorkflowMandatoryWorkflow_workflow` (`workflow`),
|
||||
CONSTRAINT `tblWorkflowMandatoryWorkflow_userid` FOREIGN KEY (`userid`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `tblWorkflowMandatoryWorkflow_workflow` FOREIGN KEY (`workflow`) REFERENCES `tblWorkflows` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for version
|
||||
-- Table structure for table `tblVersion`
|
||||
--
|
||||
|
||||
CREATE TABLE `tblVersion` (
|
||||
`date` datetime,
|
||||
`major` smallint,
|
||||
`minor` smallint,
|
||||
`subminor` smallint
|
||||
`date` datetime NOT NULL,
|
||||
`major` smallint(6) DEFAULT NULL,
|
||||
`minor` smallint(6) DEFAULT NULL,
|
||||
`subminor` smallint(6) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
@ -715,4 +755,3 @@ INSERT INTO tblUsers VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', 'Ad
|
|||
INSERT INTO tblUsers VALUES (2, 'guest', NULL, 'Guest User', NULL, '', '', '', 2, 0, '0000-00-00 00:00:00', 0, 0, 0, NULL);
|
||||
INSERT INTO tblFolders VALUES (1, 'DMS', 0, '', 'DMS root', UNIX_TIMESTAMP(), 1, 0, 2, 0);
|
||||
INSERT INTO tblVersion VALUES (NOW(), 5, 0, 0);
|
||||
INSERT INTO tblCategory VALUES (0, '');
|
||||
|
|
|
@ -286,21 +286,6 @@ CREATE TABLE `tblDocumentLocks` (
|
|||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `tblDocumentReviewLog`
|
||||
--
|
||||
|
||||
CREATE TABLE `tblDocumentReviewLog` (
|
||||
`reviewLogID` INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
`reviewID` INTEGER NOT NULL default 0 REFERENCES `tblDocumentReviewers` (`reviewID`) ON DELETE CASCADE,
|
||||
`status` INTEGER NOT NULL default 0,
|
||||
`comment` TEXT NOT NULL,
|
||||
`date` TEXT NOT NULL default '0000-00-00 00:00:00',
|
||||
`userID` INTEGER NOT NULL default 0 REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
|
||||
) ;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `tblDocumentReviewers`
|
||||
--
|
||||
|
@ -316,6 +301,21 @@ CREATE TABLE `tblDocumentReviewers` (
|
|||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `tblDocumentReviewLog`
|
||||
--
|
||||
|
||||
CREATE TABLE `tblDocumentReviewLog` (
|
||||
`reviewLogID` INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
`reviewID` INTEGER NOT NULL default 0 REFERENCES `tblDocumentReviewers` (`reviewID`) ON DELETE CASCADE,
|
||||
`status` INTEGER NOT NULL default 0,
|
||||
`comment` TEXT NOT NULL,
|
||||
`date` TEXT NOT NULL default '0000-00-00 00:00:00',
|
||||
`userID` INTEGER NOT NULL default 0 REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
|
||||
) ;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `tblDocumentStatus`
|
||||
--
|
||||
|
@ -481,13 +481,13 @@ CREATE TABLE `tblEvents` (
|
|||
-- Table structure for workflow states
|
||||
--
|
||||
|
||||
CREATE TABLE tblWorkflowStates (
|
||||
CREATE TABLE `tblWorkflowStates` (
|
||||
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
`name` text NOT NULL,
|
||||
`visibility` smallint(5) DEFAULT 0,
|
||||
`visibility` INTEGER DEFAULT 0,
|
||||
`maxtime` INTEGER DEFAULT 0,
|
||||
`precondfunc` text DEFAULT NULL,
|
||||
`documentstatus` smallint(5) DEFAULT NULL
|
||||
`documentstatus` INTEGER DEFAULT NULL
|
||||
) ;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
@ -496,7 +496,7 @@ CREATE TABLE tblWorkflowStates (
|
|||
-- Table structure for workflow actions
|
||||
--
|
||||
|
||||
CREATE TABLE tblWorkflowActions (
|
||||
CREATE TABLE `tblWorkflowActions` (
|
||||
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
`name` text NOT NULL
|
||||
) ;
|
||||
|
@ -507,7 +507,7 @@ CREATE TABLE tblWorkflowActions (
|
|||
-- Table structure for workflows
|
||||
--
|
||||
|
||||
CREATE TABLE tblWorkflows (
|
||||
CREATE TABLE `tblWorkflows` (
|
||||
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
`name` text NOT NULL,
|
||||
`initstate` INTEGER NOT NULL REFERENCES `tblWorkflowStates` (`id`) ON DELETE CASCADE
|
||||
|
@ -519,7 +519,7 @@ CREATE TABLE tblWorkflows (
|
|||
-- Table structure for workflow transitions
|
||||
--
|
||||
|
||||
CREATE TABLE tblWorkflowTransitions (
|
||||
CREATE TABLE `tblWorkflowTransitions` (
|
||||
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
`workflow` INTEGER default NULL REFERENCES `tblWorkflows` (`id`) ON DELETE CASCADE,
|
||||
`state` INTEGER default NULL REFERENCES `tblWorkflowStates` (`id`) ON DELETE CASCADE,
|
||||
|
@ -534,7 +534,7 @@ CREATE TABLE tblWorkflowTransitions (
|
|||
-- Table structure for workflow transition users
|
||||
--
|
||||
|
||||
CREATE TABLE tblWorkflowTransitionUsers (
|
||||
CREATE TABLE `tblWorkflowTransitionUsers` (
|
||||
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
`transition` INTEGER default NULL REFERENCES `tblWorkflowTransitions` (`id`) ON DELETE CASCADE,
|
||||
`userid` INTEGER default NULL REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
|
||||
|
@ -546,7 +546,7 @@ CREATE TABLE tblWorkflowTransitionUsers (
|
|||
-- Table structure for workflow transition groups
|
||||
--
|
||||
|
||||
CREATE TABLE tblWorkflowTransitionGroups (
|
||||
CREATE TABLE `tblWorkflowTransitionGroups` (
|
||||
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
`transition` INTEGER default NULL REFERENCES `tblWorkflowTransitions` (`id`) ON DELETE CASCADE,
|
||||
`groupid` INTEGER default NULL REFERENCES `tblGroups` (`id`) ON DELETE CASCADE,
|
||||
|
@ -559,10 +559,10 @@ CREATE TABLE tblWorkflowTransitionGroups (
|
|||
-- Table structure for workflow log
|
||||
--
|
||||
|
||||
CREATE TABLE tblWorkflowLog (
|
||||
CREATE TABLE `tblWorkflowLog` (
|
||||
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
`document` INTEGER default NULL REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
|
||||
`version` smallint default NULL,
|
||||
`version` INTEGER default NULL,
|
||||
`workflow` INTEGER default NULL REFERENCES `tblWorkflows` (`id`) ON DELETE CASCADE,
|
||||
`userid` INTEGER default NULL REFERENCES `tblUsers` (`id`) ON DELETE CASCADE,
|
||||
`transition` INTEGER default NULL REFERENCES `tblWorkflowTransitions` (`id`) ON DELETE CASCADE,
|
||||
|
@ -576,11 +576,11 @@ CREATE TABLE tblWorkflowLog (
|
|||
-- Table structure for workflow document relation
|
||||
--
|
||||
|
||||
CREATE TABLE tblWorkflowDocumentContent (
|
||||
CREATE TABLE `tblWorkflowDocumentContent` (
|
||||
`parentworkflow` INTEGER DEFAULT 0,
|
||||
`workflow` INTEGER DEFAULT NULL REFERENCES `tblWorkflows` (`id`) ON DELETE CASCADE,
|
||||
`document` INTEGER DEFAULT NULL REFERENCES `tblDocuments` (`id`) ON DELETE CASCADE,
|
||||
`version` smallint DEFAULT NULL,
|
||||
`version` INTEGER DEFAULT NULL,
|
||||
`state` INTEGER DEFAULT NULL REFERENCES `tblWorkflowStates` (`id`) ON DELETE CASCADE,
|
||||
`date` datetime NOT NULL default '0000-00-00 00:00:00'
|
||||
) ;
|
||||
|
@ -591,7 +591,7 @@ CREATE TABLE tblWorkflowDocumentContent (
|
|||
-- Table structure for mandatory workflows
|
||||
--
|
||||
|
||||
CREATE TABLE tblWorkflowMandatoryWorkflow (
|
||||
CREATE TABLE `tblWorkflowMandatoryWorkflow` (
|
||||
`userid` INTEGER default NULL REFERENCES `tblUsers` (`id`) ON DELETE CASCADE,
|
||||
`workflow` INTEGER default NULL REFERENCES `tblWorkflows` (`id`) ON DELETE CASCADE,
|
||||
UNIQUE(userid, workflow)
|
||||
|
@ -605,9 +605,9 @@ CREATE TABLE tblWorkflowMandatoryWorkflow (
|
|||
|
||||
CREATE TABLE `tblVersion` (
|
||||
`date` TEXT NOT NULL default '0000-00-00 00:00:00',
|
||||
`major` smallint,
|
||||
`minor` smallint,
|
||||
`subminor` smallint
|
||||
`major` INTEGER,
|
||||
`minor` INTEGER,
|
||||
`subminor` INTEGER
|
||||
) ;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
@ -620,4 +620,3 @@ INSERT INTO tblUsers VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', 'Ad
|
|||
INSERT INTO tblUsers VALUES (2, 'guest', NULL, 'Guest User', NULL, '', '', '', 2, 0, '', 0, 0, 0, 0);
|
||||
INSERT INTO tblFolders VALUES (1, 'DMS', 0, '', 'DMS root', strftime('%s','now'), 1, 0, 2, 0);
|
||||
INSERT INTO tblVersion VALUES (DATETIME(), 5, 0, 0);
|
||||
INSERT INTO tblCategory VALUES (0, '');
|
||||
|
|
|
@ -118,7 +118,7 @@ function fileExistsInIncludePath($file) { /* {{{ */
|
|||
* Load default settings + set
|
||||
*/
|
||||
define("SEEDDMS_INSTALL", "on");
|
||||
define("SEEDDMS_VERSION", "5.0.9");
|
||||
define("SEEDDMS_VERSION", "5.0.10");
|
||||
|
||||
require_once('../inc/inc.ClassSettings.php');
|
||||
|
||||
|
|
|
@ -33,11 +33,14 @@ if (!file_exists($configDir."/ENABLE_INSTALL_TOOL")) {
|
|||
exit;
|
||||
}
|
||||
|
||||
$theme = "blue";
|
||||
$theme = "bootstrap";
|
||||
require_once("../inc/inc.Language.php");
|
||||
include "../languages/en_GB/lang.inc";
|
||||
require_once("../inc/inc.ClassUI.php");
|
||||
|
||||
UI::htmlStartPage('Database update');
|
||||
UI::globalBanner();
|
||||
UI::contentStart();
|
||||
UI::contentHeading("SeedDMS Installation for version ".$_GET['version']);
|
||||
UI::contentContainerStart();
|
||||
|
||||
|
@ -104,6 +107,11 @@ if($rec = $res->fetch(PDO::FETCH_ASSOC)) {
|
|||
}
|
||||
$db = null;
|
||||
|
||||
// just remove info for web page installation
|
||||
$settings->_printDisclaimer = false;
|
||||
$settings->_footNote = false;
|
||||
// end of the page
|
||||
UI::contentContainerEnd();
|
||||
UI::contentEnd();
|
||||
UI::htmlEndPage();
|
||||
?>
|
||||
|
|
|
@ -541,8 +541,13 @@ URL: [url]',
|
|||
'include_content' => '',
|
||||
'include_documents' => 'اشمل مستندات',
|
||||
'include_subdirectories' => 'اشمل مجلدات فرعية',
|
||||
'indexing_tasks_in_queue' => '',
|
||||
'index_converters' => 'فهرس تحويل المستند',
|
||||
'index_done' => '',
|
||||
'index_error' => '',
|
||||
'index_folder' => 'ﻒﻫﺮﺳﺓ ﺎﻠﻤﺠﻟﺩ',
|
||||
'index_pending' => '',
|
||||
'index_waiting' => '',
|
||||
'individuals' => 'افراد',
|
||||
'indivіduals_in_groups' => '',
|
||||
'inherited' => 'موروث',
|
||||
|
@ -761,6 +766,7 @@ URL: [url]',
|
|||
'only_jpg_user_images' => 'فقط يمكنك استخدام ملفات من تنسيق jpg كصورة المستخدم',
|
||||
'order_by_sequence_off' => '',
|
||||
'original_filename' => 'اسم الملف الاصلي',
|
||||
'overall_indexing_progress' => '',
|
||||
'owner' => 'المالك',
|
||||
'ownership_changed_email' => 'تم تغيير المالك',
|
||||
'ownership_changed_email_body' => 'تم تغيير المالك
|
||||
|
@ -842,6 +848,7 @@ Parent folder: [folder_path]
|
|||
مستخدم: [username]
|
||||
URL: [url]',
|
||||
'removed_workflow_email_subject' => '[sitename]: [name] - تم ازالة مسار العمل من اصدار المستند',
|
||||
'removeFolderFromDropFolder' => '',
|
||||
'remove_marked_files' => 'ازالة الملفات المختارة',
|
||||
'repaired' => 'تم اصلاحه',
|
||||
'repairing_objects' => 'تحضير المستندات والمجلدات.',
|
||||
|
@ -913,6 +920,7 @@ URL: [url]',
|
|||
'rm_default_keyword_category' => 'ازالة القسم',
|
||||
'rm_document' => 'ازالة المستند',
|
||||
'rm_document_category' => 'ازالة القسم',
|
||||
'rm_event' => '',
|
||||
'rm_file' => 'ازالة الملف',
|
||||
'rm_folder' => 'ازالة المجلد',
|
||||
'rm_from_clipboard' => 'ازالة من لوحة القصاصات',
|
||||
|
@ -1319,9 +1327,11 @@ URL: [url]',
|
|||
'splash_document_added' => '',
|
||||
'splash_document_checkedout' => '',
|
||||
'splash_document_edited' => '',
|
||||
'splash_document_indexed' => '',
|
||||
'splash_document_locked' => 'تم قفل المستند',
|
||||
'splash_document_unlocked' => 'تم الغاء قفل المستند',
|
||||
'splash_edit_attribute' => '',
|
||||
'splash_edit_event' => '',
|
||||
'splash_edit_group' => '',
|
||||
'splash_edit_role' => '',
|
||||
'splash_edit_user' => '',
|
||||
|
|
|
@ -472,8 +472,13 @@ $text = array(
|
|||
'include_content' => '',
|
||||
'include_documents' => 'Включи документи',
|
||||
'include_subdirectories' => 'Включи под-папки',
|
||||
'indexing_tasks_in_queue' => '',
|
||||
'index_converters' => 'Index document conversion',
|
||||
'index_done' => '',
|
||||
'index_error' => '',
|
||||
'index_folder' => '',
|
||||
'index_pending' => '',
|
||||
'index_waiting' => '',
|
||||
'individuals' => 'Личности',
|
||||
'indivіduals_in_groups' => '',
|
||||
'inherited' => 'наследен',
|
||||
|
@ -668,6 +673,7 @@ $text = array(
|
|||
'only_jpg_user_images' => 'Разрешени са само .jpg-изображения',
|
||||
'order_by_sequence_off' => '',
|
||||
'original_filename' => 'Оригинално име на файл',
|
||||
'overall_indexing_progress' => '',
|
||||
'owner' => 'Собственик',
|
||||
'ownership_changed_email' => 'Собственикът променен',
|
||||
'ownership_changed_email_body' => '',
|
||||
|
@ -734,6 +740,7 @@ $text = array(
|
|||
'removed_revispr' => '',
|
||||
'removed_workflow_email_body' => '',
|
||||
'removed_workflow_email_subject' => '',
|
||||
'removeFolderFromDropFolder' => '',
|
||||
'remove_marked_files' => '',
|
||||
'repaired' => '',
|
||||
'repairing_objects' => 'Поправка на папки и документи',
|
||||
|
@ -785,6 +792,7 @@ $text = array(
|
|||
'rm_default_keyword_category' => 'Премахни категория',
|
||||
'rm_document' => 'Премахни документ',
|
||||
'rm_document_category' => 'Премахни категория',
|
||||
'rm_event' => '',
|
||||
'rm_file' => 'Премахни файл',
|
||||
'rm_folder' => 'Премахни папка',
|
||||
'rm_from_clipboard' => 'Премахни от clipboard буфера',
|
||||
|
@ -1184,9 +1192,11 @@ $text = array(
|
|||
'splash_document_added' => '',
|
||||
'splash_document_checkedout' => '',
|
||||
'splash_document_edited' => '',
|
||||
'splash_document_indexed' => '',
|
||||
'splash_document_locked' => '',
|
||||
'splash_document_unlocked' => '',
|
||||
'splash_edit_attribute' => '',
|
||||
'splash_edit_event' => '',
|
||||
'splash_edit_group' => '',
|
||||
'splash_edit_role' => '',
|
||||
'splash_edit_user' => '',
|
||||
|
|
|
@ -477,8 +477,13 @@ URL: [url]',
|
|||
'include_content' => '',
|
||||
'include_documents' => 'Incloure documents',
|
||||
'include_subdirectories' => 'Incloure subdirectoris',
|
||||
'indexing_tasks_in_queue' => '',
|
||||
'index_converters' => '',
|
||||
'index_done' => '',
|
||||
'index_error' => '',
|
||||
'index_folder' => 'Carpeta d\'índex',
|
||||
'index_pending' => '',
|
||||
'index_waiting' => '',
|
||||
'individuals' => 'Individuals',
|
||||
'indivіduals_in_groups' => '',
|
||||
'inherited' => '',
|
||||
|
@ -673,6 +678,7 @@ URL: [url]',
|
|||
'only_jpg_user_images' => 'Només pot utilitzar imatges .jpg com imatges d\'usuari',
|
||||
'order_by_sequence_off' => '',
|
||||
'original_filename' => '',
|
||||
'overall_indexing_progress' => '',
|
||||
'owner' => 'Propietari/a',
|
||||
'ownership_changed_email' => 'Propietari/a canviat',
|
||||
'ownership_changed_email_body' => '',
|
||||
|
@ -739,6 +745,7 @@ URL: [url]',
|
|||
'removed_revispr' => '',
|
||||
'removed_workflow_email_body' => '',
|
||||
'removed_workflow_email_subject' => '',
|
||||
'removeFolderFromDropFolder' => '',
|
||||
'remove_marked_files' => '',
|
||||
'repaired' => '',
|
||||
'repairing_objects' => '',
|
||||
|
@ -790,6 +797,7 @@ URL: [url]',
|
|||
'rm_default_keyword_category' => 'Eliminar categoria',
|
||||
'rm_document' => 'Eliminar document',
|
||||
'rm_document_category' => '',
|
||||
'rm_event' => '',
|
||||
'rm_file' => 'Eliminar fitxer',
|
||||
'rm_folder' => 'Eliminar carpeta',
|
||||
'rm_from_clipboard' => '',
|
||||
|
@ -1189,9 +1197,11 @@ URL: [url]',
|
|||
'splash_document_added' => '',
|
||||
'splash_document_checkedout' => '',
|
||||
'splash_document_edited' => '',
|
||||
'splash_document_indexed' => '',
|
||||
'splash_document_locked' => 'Document blocat',
|
||||
'splash_document_unlocked' => 'Document desblocat',
|
||||
'splash_edit_attribute' => '',
|
||||
'splash_edit_event' => '',
|
||||
'splash_edit_group' => '',
|
||||
'splash_edit_role' => '',
|
||||
'splash_edit_user' => '',
|
||||
|
|
|
@ -548,8 +548,13 @@ URL: [url]',
|
|||
'include_content' => '',
|
||||
'include_documents' => 'Včetně dokumentů',
|
||||
'include_subdirectories' => 'Včetně podadresářů',
|
||||
'indexing_tasks_in_queue' => '',
|
||||
'index_converters' => 'Index konverze dokumentu',
|
||||
'index_done' => '',
|
||||
'index_error' => '',
|
||||
'index_folder' => 'Složka indexu',
|
||||
'index_pending' => '',
|
||||
'index_waiting' => '',
|
||||
'individuals' => 'Jednotlivci',
|
||||
'indivіduals_in_groups' => '',
|
||||
'inherited' => 'Zděděno',
|
||||
|
@ -768,6 +773,7 @@ URL: [url]',
|
|||
'only_jpg_user_images' => 'Pro obrázky uživatelů je možné použít pouze obrázky .jpg',
|
||||
'order_by_sequence_off' => '',
|
||||
'original_filename' => 'Originální název souboru',
|
||||
'overall_indexing_progress' => '',
|
||||
'owner' => 'Vlastník',
|
||||
'ownership_changed_email' => 'Vlastník změněn',
|
||||
'ownership_changed_email_body' => 'Vlastník změněn
|
||||
|
@ -852,6 +858,7 @@ Nadřazená složka: [folder_path]
|
|||
Uživatel: [username]
|
||||
URL: [url]',
|
||||
'removed_workflow_email_subject' => '[sitename]: [name] - Odstraněn průběh práce z verze dokumentu',
|
||||
'removeFolderFromDropFolder' => '',
|
||||
'remove_marked_files' => 'Odstranit označené soubory',
|
||||
'repaired' => 'opraveno',
|
||||
'repairing_objects' => 'Opravuji dokumenty a složky.',
|
||||
|
@ -922,6 +929,7 @@ URL: [url]',
|
|||
'rm_default_keyword_category' => 'Smazat kategorii',
|
||||
'rm_document' => 'Odstranit dokument',
|
||||
'rm_document_category' => 'Vymazat kategorii',
|
||||
'rm_event' => '',
|
||||
'rm_file' => 'Odstranit soubor',
|
||||
'rm_folder' => 'Odstranit složku',
|
||||
'rm_from_clipboard' => 'Odstranit ze schránky',
|
||||
|
@ -1328,9 +1336,11 @@ URL: [url]',
|
|||
'splash_document_added' => 'Dokument přidán',
|
||||
'splash_document_checkedout' => '',
|
||||
'splash_document_edited' => 'Dokument uložen',
|
||||
'splash_document_indexed' => '',
|
||||
'splash_document_locked' => 'Dokument zamčen',
|
||||
'splash_document_unlocked' => 'Dokument odemčen',
|
||||
'splash_edit_attribute' => 'Atribut uložen',
|
||||
'splash_edit_event' => '',
|
||||
'splash_edit_group' => 'Skupina uložena',
|
||||
'splash_edit_role' => '',
|
||||
'splash_edit_user' => 'Uživatel uložen',
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
// Translators: Admin (2366), dgrutsch (22)
|
||||
// Translators: Admin (2376), dgrutsch (22)
|
||||
|
||||
$text = array(
|
||||
'2_factor_auth' => '2-Faktor Authentifizierung',
|
||||
|
@ -553,8 +553,13 @@ URL: [url]',
|
|||
'include_content' => 'Inhalte mit exportieren',
|
||||
'include_documents' => 'Dokumente miteinbeziehen',
|
||||
'include_subdirectories' => 'Unterverzeichnisse miteinbeziehen',
|
||||
'indexing_tasks_in_queue' => 'Indiziervorgänge in der Warteschleife',
|
||||
'index_converters' => 'Index Dokumentenumwandlung',
|
||||
'index_done' => 'Fertig',
|
||||
'index_error' => 'Fehler',
|
||||
'index_folder' => 'Indiziere Ordner',
|
||||
'index_pending' => 'Vorgemerkt',
|
||||
'index_waiting' => 'Warte',
|
||||
'individuals' => 'Einzelpersonen',
|
||||
'indivіduals_in_groups' => 'Mitglieder einer Gruppe',
|
||||
'inherited' => 'geerbt',
|
||||
|
@ -772,6 +777,7 @@ URL: [url]',
|
|||
'only_jpg_user_images' => 'Es sind nur JPG-Bilder erlaubt',
|
||||
'order_by_sequence_off' => 'Die Sortierung nach Folge ist in den Einstellungen ausgeschaltet. Wenn dieser Parameter wirksam sein soll, muss sie wieder eingeschaltet werden.',
|
||||
'original_filename' => 'Original filename',
|
||||
'overall_indexing_progress' => 'Gesamtfortschritt bei der Indizierung',
|
||||
'owner' => 'Besitzer',
|
||||
'ownership_changed_email' => 'Besitzer geändert',
|
||||
'ownership_changed_email_body' => 'Besitzer geändert
|
||||
|
@ -872,6 +878,7 @@ Elternordner: [folder_path]
|
|||
Benutzer: [username]
|
||||
URL: [url]',
|
||||
'removed_workflow_email_subject' => '[sitename]: [name] - Workflow von Dokumentenversion',
|
||||
'removeFolderFromDropFolder' => 'Ordner nach Import entfernen',
|
||||
'remove_marked_files' => 'Markierte Dateien löschen',
|
||||
'repaired' => 'repariert',
|
||||
'repairing_objects' => 'Repariere Dokumente und Ordner.',
|
||||
|
@ -972,6 +979,7 @@ URL: [url]',
|
|||
'rm_default_keyword_category' => 'Kategorie löschen',
|
||||
'rm_document' => 'Löschen',
|
||||
'rm_document_category' => 'Lösche Kategorie',
|
||||
'rm_event' => 'Ereignis löschen',
|
||||
'rm_file' => 'Datei Löschen',
|
||||
'rm_folder' => 'Löschen',
|
||||
'rm_from_clipboard' => 'Aus Zwischenablage löschen',
|
||||
|
@ -1378,9 +1386,11 @@ URL: [url]',
|
|||
'splash_document_added' => 'Dokument hinzugefügt',
|
||||
'splash_document_checkedout' => 'Dokument ausgecheckt',
|
||||
'splash_document_edited' => 'Dokument gespeichert',
|
||||
'splash_document_indexed' => 'Dokument \'[name]\' indiziert.',
|
||||
'splash_document_locked' => 'Dokument gesperrt',
|
||||
'splash_document_unlocked' => 'Dokumentensperre aufgehoben',
|
||||
'splash_edit_attribute' => 'Attribut gespeichert',
|
||||
'splash_edit_event' => 'Ereignis gespeichert',
|
||||
'splash_edit_group' => 'Gruppe gespeichert',
|
||||
'splash_edit_role' => 'Rolle gespeichert',
|
||||
'splash_edit_user' => 'Benutzer gespeichert',
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
// Translators: Admin (214)
|
||||
// Translators: Admin (215)
|
||||
|
||||
$text = array(
|
||||
'2_factor_auth' => '',
|
||||
|
@ -472,8 +472,13 @@ $text = array(
|
|||
'include_content' => '',
|
||||
'include_documents' => '',
|
||||
'include_subdirectories' => '',
|
||||
'indexing_tasks_in_queue' => '',
|
||||
'index_converters' => '',
|
||||
'index_done' => '',
|
||||
'index_error' => '',
|
||||
'index_folder' => '',
|
||||
'index_pending' => '',
|
||||
'index_waiting' => '',
|
||||
'individuals' => 'Άτομα',
|
||||
'indivіduals_in_groups' => '',
|
||||
'inherited' => '',
|
||||
|
@ -606,7 +611,7 @@ $text = array(
|
|||
'new' => 'Νέο',
|
||||
'new_attrdef' => '',
|
||||
'new_default_keywords' => '',
|
||||
'new_default_keyword_category' => '',
|
||||
'new_default_keyword_category' => 'Προσθήκη Κατηγορίας',
|
||||
'new_document_category' => '',
|
||||
'new_document_email' => 'Νέο Έγγραφο',
|
||||
'new_document_email_body' => 'Νέο έγγραφο
|
||||
|
@ -679,6 +684,7 @@ URL: [url]',
|
|||
'only_jpg_user_images' => '',
|
||||
'order_by_sequence_off' => '',
|
||||
'original_filename' => '',
|
||||
'overall_indexing_progress' => '',
|
||||
'owner' => 'Ιδιοκτήτης',
|
||||
'ownership_changed_email' => '',
|
||||
'ownership_changed_email_body' => '',
|
||||
|
@ -745,6 +751,7 @@ URL: [url]',
|
|||
'removed_revispr' => '',
|
||||
'removed_workflow_email_body' => '',
|
||||
'removed_workflow_email_subject' => '',
|
||||
'removeFolderFromDropFolder' => '',
|
||||
'remove_marked_files' => '',
|
||||
'repaired' => '',
|
||||
'repairing_objects' => '',
|
||||
|
@ -796,6 +803,7 @@ URL: [url]',
|
|||
'rm_default_keyword_category' => '',
|
||||
'rm_document' => 'Διαγραφή εγγράφου',
|
||||
'rm_document_category' => 'Διαγραφή κατηγορίας',
|
||||
'rm_event' => '',
|
||||
'rm_file' => 'Διαγραφή αρχείου',
|
||||
'rm_folder' => 'Διαγραφή φακέλου',
|
||||
'rm_from_clipboard' => '',
|
||||
|
@ -1195,9 +1203,11 @@ URL: [url]',
|
|||
'splash_document_added' => '',
|
||||
'splash_document_checkedout' => '',
|
||||
'splash_document_edited' => '',
|
||||
'splash_document_indexed' => '',
|
||||
'splash_document_locked' => '',
|
||||
'splash_document_unlocked' => '',
|
||||
'splash_edit_attribute' => '',
|
||||
'splash_edit_event' => '',
|
||||
'splash_edit_group' => '',
|
||||
'splash_edit_role' => '',
|
||||
'splash_edit_user' => '',
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
// Translators: Admin (1493), dgrutsch (9), netixw (14)
|
||||
// Translators: Admin (1503), dgrutsch (9), netixw (14)
|
||||
|
||||
$text = array(
|
||||
'2_factor_auth' => '2-factor authentication',
|
||||
|
@ -553,8 +553,13 @@ URL: [url]',
|
|||
'include_content' => 'Include content',
|
||||
'include_documents' => 'Include documents',
|
||||
'include_subdirectories' => 'Include subdirectories',
|
||||
'indexing_tasks_in_queue' => 'Indexing tasks in queue',
|
||||
'index_converters' => 'Index document conversion',
|
||||
'index_done' => 'Done',
|
||||
'index_error' => 'Error',
|
||||
'index_folder' => 'Index folder',
|
||||
'index_pending' => 'Pending',
|
||||
'index_waiting' => 'Waiting',
|
||||
'individuals' => 'Individuals',
|
||||
'indivіduals_in_groups' => 'Members of a group',
|
||||
'inherited' => 'inherited',
|
||||
|
@ -773,6 +778,7 @@ URL: [url]',
|
|||
'only_jpg_user_images' => 'Only .jpg-images may be used as user-images',
|
||||
'order_by_sequence_off' => 'Ordering by sequence is turned off in the settings. If you want this parameter to have effect, you will have to turn it back on.',
|
||||
'original_filename' => 'Original filename',
|
||||
'overall_indexing_progress' => 'Overall indexing progress',
|
||||
'owner' => 'Owner',
|
||||
'ownership_changed_email' => 'Owner changed',
|
||||
'ownership_changed_email_body' => 'Owner changed
|
||||
|
@ -873,6 +879,7 @@ Parent folder: [folder_path]
|
|||
User: [username]
|
||||
URL: [url]',
|
||||
'removed_workflow_email_subject' => '[sitename]: [name] - Removed workflow from document version',
|
||||
'removeFolderFromDropFolder' => 'Remove folder after import',
|
||||
'remove_marked_files' => 'Remove marked files',
|
||||
'repaired' => 'repaired',
|
||||
'repairing_objects' => 'Repairing documents and folders.',
|
||||
|
@ -966,6 +973,7 @@ URL: [url]',
|
|||
'rm_default_keyword_category' => 'Remove category',
|
||||
'rm_document' => 'Remove document',
|
||||
'rm_document_category' => 'Remove category',
|
||||
'rm_event' => 'Remove event',
|
||||
'rm_file' => 'Remove file',
|
||||
'rm_folder' => 'Remove folder',
|
||||
'rm_from_clipboard' => 'Remove from clipboard',
|
||||
|
@ -1372,9 +1380,11 @@ URL: [url]',
|
|||
'splash_document_added' => 'Document added',
|
||||
'splash_document_checkedout' => 'Document checked out',
|
||||
'splash_document_edited' => 'Document saved',
|
||||
'splash_document_indexed' => 'Document \'[name]\' indexed.',
|
||||
'splash_document_locked' => 'Document locked',
|
||||
'splash_document_unlocked' => 'Document unlocked',
|
||||
'splash_edit_attribute' => 'Attribute saved',
|
||||
'splash_edit_event' => 'Event saved',
|
||||
'splash_edit_group' => 'Group saved',
|
||||
'splash_edit_role' => 'Role saved',
|
||||
'splash_edit_user' => 'User saved',
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
// Translators: acabello (20), Admin (1008), angel (123), francisco (2), jaimem (14)
|
||||
// Translators: acabello (20), Admin (1009), angel (123), francisco (2), jaimem (14)
|
||||
|
||||
$text = array(
|
||||
'2_factor_auth' => '',
|
||||
|
@ -548,8 +548,13 @@ URL: [url]',
|
|||
'include_content' => '',
|
||||
'include_documents' => 'Incluir documentos',
|
||||
'include_subdirectories' => 'Incluir subcarpetas',
|
||||
'indexing_tasks_in_queue' => '',
|
||||
'index_converters' => 'Conversión de índice de documentos',
|
||||
'index_done' => '',
|
||||
'index_error' => '',
|
||||
'index_folder' => 'Índice de carpetas',
|
||||
'index_pending' => '',
|
||||
'index_waiting' => '',
|
||||
'individuals' => 'Individuales',
|
||||
'indivіduals_in_groups' => '',
|
||||
'inherited' => 'heredado',
|
||||
|
@ -625,7 +630,7 @@ URL: [url]',
|
|||
'linked_to_this_version' => '',
|
||||
'link_alt_updatedocument' => 'Si desea subir archivos mayores que el tamaño máximo actualmente permitido, por favor, utilice la <a href="%s">página de subida</a> alternativa.',
|
||||
'link_to_version' => '',
|
||||
'list_access_rights' => '',
|
||||
'list_access_rights' => 'Listar los derechos de acceso',
|
||||
'list_contains_no_access_docs' => '',
|
||||
'list_hooks' => '',
|
||||
'local_file' => 'Fichero local',
|
||||
|
@ -768,6 +773,7 @@ URL: [url]',
|
|||
'only_jpg_user_images' => 'Sólo puede usar imágenes .jpg como imágenes de usuario',
|
||||
'order_by_sequence_off' => 'El orden secuencial está desactivado en la configuración. Si quiere utilizar este parámetro, deberá activarlo.',
|
||||
'original_filename' => 'Nombre de fichero original',
|
||||
'overall_indexing_progress' => '',
|
||||
'owner' => 'Propietario',
|
||||
'ownership_changed_email' => 'Propietario modificado',
|
||||
'ownership_changed_email_body' => 'Propietario modificado
|
||||
|
@ -857,6 +863,7 @@ Carpeta principal: [folder_path]
|
|||
Usuario: [username]
|
||||
nURL: [url]',
|
||||
'removed_workflow_email_subject' => '[sitename]: [name] - Eliminar flujo de trabajo de la versión del documento',
|
||||
'removeFolderFromDropFolder' => '',
|
||||
'remove_marked_files' => 'Eliminar ficheros marcados',
|
||||
'repaired' => 'Reparado',
|
||||
'repairing_objects' => 'Reparando documentos y carpetas.',
|
||||
|
@ -928,6 +935,7 @@ URL: [url]',
|
|||
'rm_default_keyword_category' => 'Eliminar categoría',
|
||||
'rm_document' => 'Eliminar documento',
|
||||
'rm_document_category' => 'Eliminar categoría',
|
||||
'rm_event' => '',
|
||||
'rm_file' => 'Eliminar fichero',
|
||||
'rm_folder' => 'Eliminar carpeta',
|
||||
'rm_from_clipboard' => 'Borrar del portapapeles',
|
||||
|
@ -1334,9 +1342,11 @@ URL: [url]',
|
|||
'splash_document_added' => 'Documento añadido',
|
||||
'splash_document_checkedout' => '',
|
||||
'splash_document_edited' => 'Documento guardado',
|
||||
'splash_document_indexed' => '',
|
||||
'splash_document_locked' => 'Documento bloqueado',
|
||||
'splash_document_unlocked' => 'Documento desbloqueado',
|
||||
'splash_edit_attribute' => 'Atributo guardado',
|
||||
'splash_edit_event' => '',
|
||||
'splash_edit_group' => 'Grupo guardado',
|
||||
'splash_edit_role' => '',
|
||||
'splash_edit_user' => 'Usuario guardado',
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
// Translators: Admin (1058), jeromerobert (50), lonnnew (9), Oudiceval (171)
|
||||
// Translators: Admin (1060), jeromerobert (50), lonnnew (9), Oudiceval (182)
|
||||
|
||||
$text = array(
|
||||
'2_factor_auth' => 'Authentification forte',
|
||||
|
@ -309,7 +309,7 @@ URL: [url]',
|
|||
'docs_in_reception_no_access' => '',
|
||||
'docs_in_revision_no_access' => '',
|
||||
'document' => 'Document',
|
||||
'documentcontent' => '',
|
||||
'documentcontent' => 'Version de document',
|
||||
'documents' => 'Documents',
|
||||
'documents_checked_out_by_you' => 'Documents bloqués par vous',
|
||||
'documents_in_process' => 'Documents en cours',
|
||||
|
@ -553,8 +553,13 @@ URL: [url]',
|
|||
'include_content' => '',
|
||||
'include_documents' => 'Inclure les documents',
|
||||
'include_subdirectories' => 'Inclure les sous-dossiers',
|
||||
'indexing_tasks_in_queue' => '',
|
||||
'index_converters' => 'Conversion de document Index',
|
||||
'index_done' => '',
|
||||
'index_error' => '',
|
||||
'index_folder' => 'Dossier Index',
|
||||
'index_pending' => '',
|
||||
'index_waiting' => '',
|
||||
'individuals' => 'Individuels',
|
||||
'indivіduals_in_groups' => '',
|
||||
'inherited' => 'hérité',
|
||||
|
@ -629,8 +634,8 @@ URL: [url]',
|
|||
'linked_to_document' => '',
|
||||
'linked_to_this_version' => '',
|
||||
'link_alt_updatedocument' => 'Pour déposer des fichiers de taille supérieure, utilisez la <a href="%s">page d\'ajout multiple</a>.',
|
||||
'link_to_version' => '',
|
||||
'list_access_rights' => '',
|
||||
'link_to_version' => 'Version',
|
||||
'list_access_rights' => 'Liste des droits d’accès…',
|
||||
'list_contains_no_access_docs' => '',
|
||||
'list_hooks' => '',
|
||||
'local_file' => 'Fichier local',
|
||||
|
@ -710,7 +715,7 @@ URL: [url]',
|
|||
'new_password' => 'Nouveau mot de passe',
|
||||
'new_subfolder_email' => 'Nouveau dossier',
|
||||
'new_subfolder_email_body' => 'Nouveau dossier
|
||||
Name: [name]
|
||||
Nom : [name]
|
||||
Dossier parent : [folder_path]
|
||||
Commentaire : [comment]
|
||||
Utilisateur : [username]
|
||||
|
@ -773,6 +778,7 @@ URL: [url]',
|
|||
'only_jpg_user_images' => 'Images d\'utilisateur au format .jpg seulement',
|
||||
'order_by_sequence_off' => 'Le tri par séquence est désactivé dans les préférences. Si vous souhaitez que ce paramètre prenne effet, vous devez l\'activer.',
|
||||
'original_filename' => 'Nom de fichier original',
|
||||
'overall_indexing_progress' => '',
|
||||
'owner' => 'Propriétaire',
|
||||
'ownership_changed_email' => 'Propriétaire modifié',
|
||||
'ownership_changed_email_body' => 'Propriétaire modifié
|
||||
|
@ -825,8 +831,14 @@ En cas de problème persistant, veuillez contacter votre administrateur.',
|
|||
'quota_exceeded' => 'Votre quota de disque est dépassé de [bytes].',
|
||||
'quota_is_disabled' => 'Le support des quota est actuellement désactivé dans les réglages. Affecter un quota utilisateur n\'aura pas d\'effet jusqu\'à ce qu\'il soit de nouveau activé.',
|
||||
'quota_warning' => 'Votre quota d’espace disque est dépassé de [bytes]. Veuillez supprimer des documents ou d\'anciennes versions.',
|
||||
'receipt_deletion_email_body' => '',
|
||||
'receipt_deletion_email_subject' => '',
|
||||
'receipt_deletion_email_body' => 'L’utilisateur a été retiré de la liste des destinataires
|
||||
Document : [name]
|
||||
Version : [version]
|
||||
Dossier parent : [folder_path]
|
||||
Destinataire : [recipient]
|
||||
Utilisateur : [username]
|
||||
URL : [url]',
|
||||
'receipt_deletion_email_subject' => '[sitename] : [name] - Destinataire supprimé',
|
||||
'receipt_log' => '',
|
||||
'receipt_request_email_body' => '',
|
||||
'receipt_request_email_subject' => '',
|
||||
|
@ -859,6 +871,7 @@ Répertoire: [folder_path]
|
|||
Utilisateur: [username]
|
||||
URL: [url]',
|
||||
'removed_workflow_email_subject' => '',
|
||||
'removeFolderFromDropFolder' => '',
|
||||
'remove_marked_files' => 'Supprimer les fichiers sélectionnés',
|
||||
'repaired' => 'réparé',
|
||||
'repairing_objects' => 'Réparation des documents et des dossiers.',
|
||||
|
@ -917,6 +930,7 @@ URL: [url]',
|
|||
'rm_default_keyword_category' => 'Supprimer la catégorie',
|
||||
'rm_document' => 'Supprimer le document',
|
||||
'rm_document_category' => 'Supprimer la catégorie',
|
||||
'rm_event' => 'Supprimer l’événement',
|
||||
'rm_file' => 'Supprimer le fichier',
|
||||
'rm_folder' => 'Supprimer le dossier',
|
||||
'rm_from_clipboard' => 'Supprimer le dossier du presse-papiers',
|
||||
|
@ -1044,8 +1058,8 @@ URL: [url]',
|
|||
'settings_dbUser' => 'Nom d\'utilisateur',
|
||||
'settings_dbUser_desc' => 'Le nom d\'utilisateur pour l\'accès à votre base de données entré pendant le processus d\'installation. Ne pas modifier le champ sauf si vraiment nécessaire, par exemple pour le transfert de la base de données vers un nouvel hébergement.',
|
||||
'settings_dbVersion' => 'Schéma de base de données trop ancien',
|
||||
'settings_defaultAccessDocs' => '',
|
||||
'settings_defaultAccessDocs_desc' => '',
|
||||
'settings_defaultAccessDocs' => 'Accès par défaut des nouveaux documents',
|
||||
'settings_defaultAccessDocs_desc' => 'Lors de la création d’un nouveau document, ce droit d’accès sera appliqué par défaut.',
|
||||
'settings_defaultSearchMethod' => 'Méthode de recherche par défaut',
|
||||
'settings_defaultSearchMethod_desc' => 'Méthode de recherche par défaut, lorsque la recherche est exécutée depuis le moteur de recherche du menu principal',
|
||||
'settings_defaultSearchMethod_valdatabase' => 'base de données',
|
||||
|
@ -1118,8 +1132,8 @@ URL: [url]',
|
|||
'settings_enableThemeSelector_desc' => 'Activer/désactiver le sélecteur de thème sur la page de connexion.',
|
||||
'settings_enableUpdateReceipt' => '',
|
||||
'settings_enableUpdateReceipt_desc' => '',
|
||||
'settings_enableUpdateRevApp' => '',
|
||||
'settings_enableUpdateRevApp_desc' => '',
|
||||
'settings_enableUpdateRevApp' => 'Autorise la modification de révisions et approbations existantes',
|
||||
'settings_enableUpdateRevApp_desc' => 'A activer si l\'utilisateur qui a fait la révision/approbations peut changer sa position alors que l\'étape actuelle du processus n\'est pas terminée',
|
||||
'settings_enableUserImage' => 'Activer image utilisateurs',
|
||||
'settings_enableUserImage_desc' => 'Activer les images utilisateurs',
|
||||
'settings_enableUsersView' => 'Activer Vue des Utilisateurs',
|
||||
|
@ -1156,7 +1170,7 @@ URL: [url]',
|
|||
'settings_initialDocumentStatus_draft' => 'Brouillon',
|
||||
'settings_initialDocumentStatus_released' => 'publié',
|
||||
'settings_installADOdb' => 'Installer ADOdb',
|
||||
'settings_install_disabled' => 'Le fichier ENABLE_INSTALL_TOOL a été supprimé. ous pouvez maintenant vous connecter à SeedDMS et poursuivre la configuration.',
|
||||
'settings_install_disabled' => 'Le fichier ENABLE_INSTALL_TOOL a été supprimé. Vous pouvez maintenant vous connecter à SeedDMS et poursuivre la configuration.',
|
||||
'settings_install_pear_package_log' => 'Installer le paquet Pear \'Log\'',
|
||||
'settings_install_pear_package_webdav' => 'Installer le paquet Pear \'HTTP_WebDAV_Server\', si vous avez l\'intention d\'utiliser l\'interface webdav',
|
||||
'settings_install_success' => 'L\'installation est terminée avec succès',
|
||||
|
@ -1221,7 +1235,7 @@ URL: [url]',
|
|||
'settings_printDisclaimer_desc' => 'Si activé, le message d’avertissement sera affiché en bas de chaque page.',
|
||||
'settings_quota' => 'Quota de l\'utilisateur',
|
||||
'settings_quota_desc' => 'Le maximum de bytes qu\'un utilisateur peut utiliser sur le disque. Définir à 0 pour un espace illimité. Cette valeur peut être outrepasser pour chaque utilisation dans son profile.',
|
||||
'settings_removeFromDropFolder' => 'Supprimer le fichier du dossier de dépôt après un upload résussi',
|
||||
'settings_removeFromDropFolder' => 'Supprimer le fichier du dossier de dépôt après un chargement réussi',
|
||||
'settings_removeFromDropFolder_desc' => 'Activez ceci si un fichier pris du dossier de dépôt doit être supprimé après un upload réussi.',
|
||||
'settings_restricted' => 'Accès restreint',
|
||||
'settings_restricted_desc' => 'Autoriser les utilisateurs à se connecter seulement s\'ils ont une entrée dans la BD locale (independamment d\'une authentification réussie avec LDAP)',
|
||||
|
@ -1316,9 +1330,11 @@ URL: [url]',
|
|||
'splash_document_added' => 'Document ajouté',
|
||||
'splash_document_checkedout' => 'Document bloqué',
|
||||
'splash_document_edited' => 'Document sauvegardé',
|
||||
'splash_document_indexed' => '',
|
||||
'splash_document_locked' => 'Document vérouillé',
|
||||
'splash_document_unlocked' => 'Document déverrouillé',
|
||||
'splash_edit_attribute' => 'Attribut modifié',
|
||||
'splash_edit_event' => '',
|
||||
'splash_edit_group' => 'Groupe sauvé',
|
||||
'splash_edit_role' => '',
|
||||
'splash_edit_user' => 'Utilisateur modifié',
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
// Translators: Admin (1191), marbanas (16)
|
||||
// Translators: Admin (1195), marbanas (16)
|
||||
|
||||
$text = array(
|
||||
'2_factor_auth' => '',
|
||||
|
@ -553,8 +553,13 @@ Internet poveznica: [url]',
|
|||
'include_content' => 'Uključi sadržaj',
|
||||
'include_documents' => 'Sadrži dokumente',
|
||||
'include_subdirectories' => 'Sadrži podmape',
|
||||
'indexing_tasks_in_queue' => '',
|
||||
'index_converters' => 'Pretvorba indeksa dokumenta',
|
||||
'index_done' => '',
|
||||
'index_error' => '',
|
||||
'index_folder' => 'Mapa indeksa',
|
||||
'index_pending' => '',
|
||||
'index_waiting' => '',
|
||||
'individuals' => 'Pojedinci',
|
||||
'indivіduals_in_groups' => '',
|
||||
'inherited' => 'naslijeđeno',
|
||||
|
@ -772,6 +777,7 @@ Internet poveznica: [url]',
|
|||
'only_jpg_user_images' => 'Kao korisničke slike mogu se koristiti samo .jpg slike',
|
||||
'order_by_sequence_off' => 'Sortiranje po sekvencei ne isključeno u postavkama. Ako želite da ovaj parametar ima utjecaja, morat ćete ga ponovno uključiti.',
|
||||
'original_filename' => 'Izvorni naziv datoteke',
|
||||
'overall_indexing_progress' => '',
|
||||
'owner' => 'Vlasnik',
|
||||
'ownership_changed_email' => 'Promijenjen vlasnik',
|
||||
'ownership_changed_email_body' => 'Promijenjen vlasnik
|
||||
|
@ -861,6 +867,7 @@ Glavna mapa: [folder_path]
|
|||
Korisnik: [username]
|
||||
Internet poveznica: [url]',
|
||||
'removed_workflow_email_subject' => '[sitename]: [name] - Uklonjeni tok rada iz ove verzije dokumenta',
|
||||
'removeFolderFromDropFolder' => '',
|
||||
'remove_marked_files' => 'Ukloni označene datoteke',
|
||||
'repaired' => 'popravljeno',
|
||||
'repairing_objects' => 'Popravljanje dokumenata ili mapa.',
|
||||
|
@ -949,6 +956,7 @@ Internet poveznica: [url]',
|
|||
'rm_default_keyword_category' => 'Uklonite kategoriju',
|
||||
'rm_document' => 'Ukloni dokument',
|
||||
'rm_document_category' => 'Uklonite kategoriju',
|
||||
'rm_event' => '',
|
||||
'rm_file' => 'Uklonite datoteku',
|
||||
'rm_folder' => 'Uklonite mapu',
|
||||
'rm_from_clipboard' => 'Uklonite iz međuspremnika',
|
||||
|
@ -1042,7 +1050,7 @@ Internet poveznica: [url]',
|
|||
'settings_Authentication' => 'Postavke autentifikacije',
|
||||
'settings_autoLoginUser' => 'Automatska prijava',
|
||||
'settings_autoLoginUser_desc' => 'Koristite ovaj korisnički ID za pristup ukoliko korisnik već nije prijavljen. Takav pristup neće otvoriti sesiju.',
|
||||
'settings_available_languages' => '',
|
||||
'settings_available_languages' => 'Dostupni jezici',
|
||||
'settings_available_languages_desc' => '',
|
||||
'settings_backupDir' => 'Mapa za sigurnosnu kopiju',
|
||||
'settings_backupDir_desc' => 'Mapa gdje alat za sigurnosne kopije sprema podatke. Ako ova mapa nije postavljena ili joj se ne može pristupiti, tada se sigurnosne kopije spremaju u mapu sadržaja.',
|
||||
|
@ -1060,7 +1068,7 @@ Internet poveznica: [url]',
|
|||
'settings_contentDir_desc' => 'Gdje se spremaju učitane datoteke (najbolje da odaberete mapu koja nije dostupna kroz vaš web-server)',
|
||||
'settings_contentOffsetDir' => 'Offset mapa sadržaja',
|
||||
'settings_contentOffsetDir_desc' => 'Za zaobilaželje ograničenja unutar datotečnog sustava, nova struktura mapa je a new directory structure je zasnovana i nalazi se unutar mape sadržaja. Ovo zahtjeva baznu mapu od koje se kreće. Uobičajeno da se ostavlja zadana postavka, 1048576, ali može biti bilo koji niz koji se već ne nalazi unutar mape sadržaja',
|
||||
'settings_convertToPdf' => '',
|
||||
'settings_convertToPdf' => 'Pretvori dokument u PDF format za brzi prikaz',
|
||||
'settings_convertToPdf_desc' => '',
|
||||
'settings_cookieLifetime' => 'Životni vijek kolačića',
|
||||
'settings_cookieLifetime_desc' => 'Životni vijek kolačića u sekundama. Ako je postavljeno na 0, kolačić će biti uklonjen kada se zatvori pretraživač.',
|
||||
|
@ -1222,7 +1230,7 @@ Internet poveznica: [url]',
|
|||
'settings_maxExecutionTime_desc' => 'Ovo postavlja maksimalno vrijeme u sekundama u kojem je skripti dopušteno da se pokrene prije nego se prekine rasčlanjivanjem',
|
||||
'settings_maxRecursiveCount' => 'Max. broj rekurzivnog dokumenta/mape',
|
||||
'settings_maxRecursiveCount_desc' => 'To je maksimalni broj dokumenata ili mapa koji će biti označen pristupnim pravima, pri rekurzivnom brojanju objekata. Ako se taj broj premaši, broj dokumenata i mapa u pregledu mape će biti procjenjen.',
|
||||
'settings_maxSizeForFullText' => '',
|
||||
'settings_maxSizeForFullText' => 'Maksimalna veličina dokumenta za instant indeksiranje',
|
||||
'settings_maxSizeForFullText_desc' => '',
|
||||
'settings_more_settings' => 'Konfiguriraj više postavki. Zadana prijava: admin/admin',
|
||||
'settings_notfound' => 'Nije pronađeno',
|
||||
|
@ -1270,7 +1278,7 @@ Internet poveznica: [url]',
|
|||
'settings_rootFolderID_desc' => 'ID root mape (većinom ne treba mijenjati)',
|
||||
'settings_SaveError' => 'Greška pri spremanju datoteke konfiguracije',
|
||||
'settings_Server' => 'Postavke servera',
|
||||
'settings_showFullPreview' => '',
|
||||
'settings_showFullPreview' => 'Prikaži cijeli dokument',
|
||||
'settings_showFullPreview_desc' => '',
|
||||
'settings_showMissingTranslations' => 'Prikaži prijevode koji nedostaju',
|
||||
'settings_showMissingTranslations_desc' => 'Navedi sve prijevode koji nedostaju na stranici na dnu stranice. Prijavljeni korisnik će moći podnijeti prijedlog za prijevode koji nedostaju koji će biti pohranjen u csv datoteku. Ne uključujte ovu funkciju ako ste u proizvodnoj okolini!',
|
||||
|
@ -1355,9 +1363,11 @@ Internet poveznica: [url]',
|
|||
'splash_document_added' => 'Dokument dodan',
|
||||
'splash_document_checkedout' => 'Dokument odjavljen',
|
||||
'splash_document_edited' => 'Dokument pohranjen',
|
||||
'splash_document_indexed' => '',
|
||||
'splash_document_locked' => 'Dokument zaključan',
|
||||
'splash_document_unlocked' => 'Dokument otključan',
|
||||
'splash_edit_attribute' => 'Atribut pohranjen',
|
||||
'splash_edit_event' => '',
|
||||
'splash_edit_group' => 'Groupa pohranjena',
|
||||
'splash_edit_role' => '',
|
||||
'splash_edit_user' => 'Korisnik pohranjen',
|
||||
|
|
|
@ -548,8 +548,13 @@ URL: [url]',
|
|||
'include_content' => '',
|
||||
'include_documents' => 'Tartalmazó dokumentumok',
|
||||
'include_subdirectories' => 'Tartalmazó alkönyvtárak',
|
||||
'indexing_tasks_in_queue' => '',
|
||||
'index_converters' => 'Index dokumentum konverzió',
|
||||
'index_done' => '',
|
||||
'index_error' => '',
|
||||
'index_folder' => 'Mappa indexelése',
|
||||
'index_pending' => '',
|
||||
'index_waiting' => '',
|
||||
'individuals' => 'Egyedek',
|
||||
'indivіduals_in_groups' => '',
|
||||
'inherited' => 'örökölt',
|
||||
|
@ -768,6 +773,7 @@ URL: [url]',
|
|||
'only_jpg_user_images' => 'Felhasználói képként csak .jpg állományok adhatók meg',
|
||||
'order_by_sequence_off' => '',
|
||||
'original_filename' => 'Eredeti fájlnév',
|
||||
'overall_indexing_progress' => '',
|
||||
'owner' => 'Tulajdonos',
|
||||
'ownership_changed_email' => 'Tulajdonos megváltozott',
|
||||
'ownership_changed_email_body' => 'Tulajdonos megváltozott
|
||||
|
@ -857,6 +863,7 @@ Szülő mappa: [folder_path]
|
|||
Felhasználó: [username]
|
||||
URL: [url]',
|
||||
'removed_workflow_email_subject' => '[sitename]: [name] - Dokumentum változatból eltávolított munkafolyamat',
|
||||
'removeFolderFromDropFolder' => '',
|
||||
'remove_marked_files' => 'Megjelölt állományok eltávolítása',
|
||||
'repaired' => 'javított',
|
||||
'repairing_objects' => 'Dokumentumok és mappák helyreállítása',
|
||||
|
@ -928,6 +935,7 @@ URL: [url]',
|
|||
'rm_default_keyword_category' => 'Kategória eltávolítása',
|
||||
'rm_document' => 'Dokumentum eltávolítása',
|
||||
'rm_document_category' => 'Kategória eltávolítása',
|
||||
'rm_event' => '',
|
||||
'rm_file' => 'Állomány eltávolítása',
|
||||
'rm_folder' => 'Könyvtár eltávolítása',
|
||||
'rm_from_clipboard' => 'Eltávolítás a vágólapról',
|
||||
|
@ -1333,9 +1341,11 @@ URL: [url]',
|
|||
'splash_document_added' => '',
|
||||
'splash_document_checkedout' => '',
|
||||
'splash_document_edited' => 'Dokumentum elmentve',
|
||||
'splash_document_indexed' => '',
|
||||
'splash_document_locked' => 'Dokumentum zárolva',
|
||||
'splash_document_unlocked' => 'Dokumentum zárolás feloldva',
|
||||
'splash_edit_attribute' => 'Jellemző mentve',
|
||||
'splash_edit_event' => '',
|
||||
'splash_edit_group' => 'Csoport mentve',
|
||||
'splash_edit_role' => '',
|
||||
'splash_edit_user' => 'Felhasználó mentve',
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
// Translators: Admin (1537), rickr (144), s.pnt (26)
|
||||
// Translators: Admin (1538), rickr (144), s.pnt (26)
|
||||
|
||||
$text = array(
|
||||
'2_factor_auth' => 'Autorizzazione a due fattori',
|
||||
|
@ -554,8 +554,13 @@ URL: [url]',
|
|||
'include_content' => 'Includi contenuto',
|
||||
'include_documents' => 'Includi documenti',
|
||||
'include_subdirectories' => 'Includi sottocartelle',
|
||||
'indexing_tasks_in_queue' => '',
|
||||
'index_converters' => 'Indice di conversione documenti',
|
||||
'index_done' => '',
|
||||
'index_error' => '',
|
||||
'index_folder' => 'Indicizza cartella',
|
||||
'index_pending' => '',
|
||||
'index_waiting' => '',
|
||||
'individuals' => 'Singoli',
|
||||
'indivіduals_in_groups' => 'I membri de la gruppo',
|
||||
'inherited' => 'ereditato',
|
||||
|
@ -774,6 +779,7 @@ URL: [url]',
|
|||
'only_jpg_user_images' => 'Possono essere utilizzate solo immagini di tipo jpeg',
|
||||
'order_by_sequence_off' => 'Ordina in sequenza disabilitato',
|
||||
'original_filename' => 'Nome file originale',
|
||||
'overall_indexing_progress' => '',
|
||||
'owner' => 'Proprietario',
|
||||
'ownership_changed_email' => 'Proprietario cambiato',
|
||||
'ownership_changed_email_body' => 'Cambio di proprietario
|
||||
|
@ -868,6 +874,7 @@ Cartella: [folder_path]
|
|||
Utente: [username]
|
||||
URL: [url]',
|
||||
'removed_workflow_email_subject' => '[sitename]: [name] - Flusso di lavoro rimosso dalla versione del documento',
|
||||
'removeFolderFromDropFolder' => '',
|
||||
'remove_marked_files' => 'Rimuovi i files contrassegnati',
|
||||
'repaired' => 'riparato',
|
||||
'repairing_objects' => 'Riparazione documenti e cartelle in corso...',
|
||||
|
@ -961,6 +968,7 @@ URL: [url]',
|
|||
'rm_default_keyword_category' => 'Rimuovi categoria',
|
||||
'rm_document' => 'Rimuovi documento',
|
||||
'rm_document_category' => 'Rimuovi categoria',
|
||||
'rm_event' => '',
|
||||
'rm_file' => 'Rimuovi file',
|
||||
'rm_folder' => 'Rimuovi cartella',
|
||||
'rm_from_clipboard' => 'Rimuovi dalla clipboard',
|
||||
|
@ -1054,7 +1062,7 @@ URL: [url]',
|
|||
'settings_Authentication' => 'Impostazioni di Autenticazione',
|
||||
'settings_autoLoginUser' => 'Login automatico',
|
||||
'settings_autoLoginUser_desc' => 'Utilizzare questo ID utente per l\'accesso se l\'utente non è già connesso. Questo tipo di accesso non creerà una sessione.',
|
||||
'settings_available_languages' => '',
|
||||
'settings_available_languages' => 'Lingue disponibili',
|
||||
'settings_available_languages_desc' => '',
|
||||
'settings_backupDir' => 'Directory di backup',
|
||||
'settings_backupDir_desc' => 'Directory in cui lo strumento di backup salva i backup. Se questa directory non è impostato o non è possibile accedervi, quindi i backup vengono salvati nella directory dei contenuti.',
|
||||
|
@ -1367,9 +1375,11 @@ URL: [url]',
|
|||
'splash_document_added' => 'Documento aggiunto',
|
||||
'splash_document_checkedout' => 'Documento approvato',
|
||||
'splash_document_edited' => 'Documento modificato',
|
||||
'splash_document_indexed' => '',
|
||||
'splash_document_locked' => 'Documento bloccato',
|
||||
'splash_document_unlocked' => 'Documento sbloccato',
|
||||
'splash_edit_attribute' => 'Attributo modificato',
|
||||
'splash_edit_event' => '',
|
||||
'splash_edit_group' => 'Gruppo modificato',
|
||||
'splash_edit_role' => 'Ruolo memorizzata',
|
||||
'splash_edit_user' => 'Utente modificato',
|
||||
|
|
|
@ -553,8 +553,13 @@ URL: [url]',
|
|||
'include_content' => '내용을 포함',
|
||||
'include_documents' => '문서 포함',
|
||||
'include_subdirectories' => '서브 디렉토리를 포함',
|
||||
'indexing_tasks_in_queue' => '',
|
||||
'index_converters' => '인덱스 문서 변환',
|
||||
'index_done' => '',
|
||||
'index_error' => '',
|
||||
'index_folder' => '인덱스 폴더',
|
||||
'index_pending' => '',
|
||||
'index_waiting' => '',
|
||||
'individuals' => '개인',
|
||||
'indivіduals_in_groups' => '개별 그룹',
|
||||
'inherited' => '상속',
|
||||
|
@ -773,6 +778,7 @@ URL : [url]',
|
|||
'only_jpg_user_images' => '.JPG - 이미지만 사용자가 이미지로 사용할 수 있습니다',
|
||||
'order_by_sequence_off' => '순서에 의한 정렬 설정이 켜져 있습니다. 이 매개 변수를 사용하고 싶은 경우 이것을 활성화 해야 합니다.',
|
||||
'original_filename' => '원래본 파일명',
|
||||
'overall_indexing_progress' => '',
|
||||
'owner' => '소유자',
|
||||
'ownership_changed_email' => '소유자 변경',
|
||||
'ownership_changed_email_body' => '소유자 변경
|
||||
|
@ -854,6 +860,7 @@ URL : [url]',
|
|||
사용자: [username]
|
||||
URL: [url]',
|
||||
'removed_workflow_email_subject' => '[sitename] : [name] - 문서 버전에서 제거 된 워크플로우',
|
||||
'removeFolderFromDropFolder' => '',
|
||||
'remove_marked_files' => '마크 파일을 제거',
|
||||
'repaired' => '복구',
|
||||
'repairing_objects' => '문서 및 폴더 복구',
|
||||
|
@ -942,6 +949,7 @@ URL: [url]',
|
|||
'rm_default_keyword_category' => '범주 제거',
|
||||
'rm_document' => '문서 제거',
|
||||
'rm_document_category' => '카테고리 제거',
|
||||
'rm_event' => '',
|
||||
'rm_file' => '파일 삭제',
|
||||
'rm_folder' => '폴더 제거',
|
||||
'rm_from_clipboard' => '클립 보드에서 제거',
|
||||
|
@ -1348,9 +1356,11 @@ URL : [url]',
|
|||
'splash_document_added' => '문서를 추가',
|
||||
'splash_document_checkedout' => '문서 체크아웃',
|
||||
'splash_document_edited' => '문서 저장',
|
||||
'splash_document_indexed' => '',
|
||||
'splash_document_locked' => '문서 잠금',
|
||||
'splash_document_unlocked' => '문서 잠금 해제',
|
||||
'splash_edit_attribute' => '속성 저장',
|
||||
'splash_edit_event' => '',
|
||||
'splash_edit_group' => '그룹 저장',
|
||||
'splash_edit_role' => '',
|
||||
'splash_edit_user' => '사용자 저장',
|
||||
|
|
|
@ -546,8 +546,13 @@ URL: [url]',
|
|||
'include_content' => 'inclusief inhoud',
|
||||
'include_documents' => 'Inclusief documenten',
|
||||
'include_subdirectories' => 'Inclusief submappen',
|
||||
'indexing_tasks_in_queue' => '',
|
||||
'index_converters' => 'Index document conversie',
|
||||
'index_done' => '',
|
||||
'index_error' => '',
|
||||
'index_folder' => 'Inhoud',
|
||||
'index_pending' => '',
|
||||
'index_waiting' => '',
|
||||
'individuals' => 'Individuen',
|
||||
'indivіduals_in_groups' => 'Individuen in groepen',
|
||||
'inherited' => 'overgeerfd',
|
||||
|
@ -765,6 +770,7 @@ URL: [url]',
|
|||
'only_jpg_user_images' => 'U mag alleen .jpg afbeeldingen gebruiken als gebruikersafbeeldingen.',
|
||||
'order_by_sequence_off' => 'Volgorde uit',
|
||||
'original_filename' => 'Originele bestandsnaam',
|
||||
'overall_indexing_progress' => '',
|
||||
'owner' => 'Eigenaar',
|
||||
'ownership_changed_email' => 'Eigenaar gewijzigd',
|
||||
'ownership_changed_email_body' => 'Eigenaar gewijzigd
|
||||
|
@ -859,6 +865,7 @@ Bovenliggende map: [folder_path]
|
|||
Gebruiker: [username]
|
||||
URL: [url]',
|
||||
'removed_workflow_email_subject' => '[sitename]: [name] - Workflow verwijderd van document versie',
|
||||
'removeFolderFromDropFolder' => '',
|
||||
'remove_marked_files' => 'Geselecteerde bestanden zijn verwijderd',
|
||||
'repaired' => 'Gerepareerd',
|
||||
'repairing_objects' => 'Documenten en mappen repareren.',
|
||||
|
@ -951,6 +958,7 @@ URL: [url]',
|
|||
'rm_default_keyword_category' => 'Verwijder Categorie',
|
||||
'rm_document' => 'Verwijder Document',
|
||||
'rm_document_category' => 'Verwijder categorie',
|
||||
'rm_event' => '',
|
||||
'rm_file' => 'Verwijder bestand',
|
||||
'rm_folder' => 'Verwijder map',
|
||||
'rm_from_clipboard' => 'Verwijder van klembord',
|
||||
|
@ -1361,9 +1369,11 @@ URL: [url]',
|
|||
'splash_document_added' => 'Nieuw document toegevoegd',
|
||||
'splash_document_checkedout' => 'Document in gebruik genomen',
|
||||
'splash_document_edited' => 'Document opgeslagen',
|
||||
'splash_document_indexed' => '',
|
||||
'splash_document_locked' => 'Document vergrendeld',
|
||||
'splash_document_unlocked' => 'Document ontgrendeld',
|
||||
'splash_edit_attribute' => 'Attribuut opgeslagen',
|
||||
'splash_edit_event' => '',
|
||||
'splash_edit_group' => 'Groep opgeslagen',
|
||||
'splash_edit_role' => 'Rol opgeslagen',
|
||||
'splash_edit_user' => 'Gebruiker opgeslagen',
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
// Translators: Admin (747), netixw (84), romi (93), uGn (112)
|
||||
// Translators: Admin (752), netixw (84), romi (93), uGn (112)
|
||||
|
||||
$text = array(
|
||||
'2_factor_auth' => '',
|
||||
|
@ -541,8 +541,13 @@ URL: [url]',
|
|||
'include_content' => '',
|
||||
'include_documents' => 'Uwzględnij dokumenty',
|
||||
'include_subdirectories' => 'Uwzględnij podkatalogi',
|
||||
'indexing_tasks_in_queue' => '',
|
||||
'index_converters' => 'Konwersja indeksu dokumentów',
|
||||
'index_done' => '',
|
||||
'index_error' => '',
|
||||
'index_folder' => 'Indeksuj folder',
|
||||
'index_pending' => '',
|
||||
'index_waiting' => '',
|
||||
'individuals' => 'Indywidualni',
|
||||
'indivіduals_in_groups' => '',
|
||||
'inherited' => 'dziedziczony',
|
||||
|
@ -761,6 +766,7 @@ URL: [url]',
|
|||
'only_jpg_user_images' => 'Wyłącznie pliki typu .jpg mogą być użyte jako obrazy użytkowników',
|
||||
'order_by_sequence_off' => '',
|
||||
'original_filename' => 'Oryginalna nazwa pliku',
|
||||
'overall_indexing_progress' => '',
|
||||
'owner' => 'Właściciel',
|
||||
'ownership_changed_email' => 'Właściciel zmieniony',
|
||||
'ownership_changed_email_body' => 'Zmiana właściciela
|
||||
|
@ -850,6 +856,7 @@ Folder nadrzędny: [folder_path]
|
|||
Użytkownik: [username]
|
||||
URL: [url]',
|
||||
'removed_workflow_email_subject' => '[sitename]: [name] - Usunięty workflow z wersji dokumentu',
|
||||
'removeFolderFromDropFolder' => '',
|
||||
'remove_marked_files' => 'Usuń zaznaczone pliki',
|
||||
'repaired' => 'naprawiony',
|
||||
'repairing_objects' => 'Naprawa dokumentów i katalogów.',
|
||||
|
@ -907,6 +914,7 @@ URL: [url]',
|
|||
'rm_default_keyword_category' => 'Usuń kategorię',
|
||||
'rm_document' => 'Usuń dokument',
|
||||
'rm_document_category' => 'Usuń kategorię',
|
||||
'rm_event' => '',
|
||||
'rm_file' => 'Usuń plik',
|
||||
'rm_folder' => 'Usuń folder',
|
||||
'rm_from_clipboard' => 'Usuń ze schowka',
|
||||
|
@ -1000,7 +1008,7 @@ URL: [url]',
|
|||
'settings_Authentication' => 'Ustawienia uwierzytelniania',
|
||||
'settings_autoLoginUser' => '',
|
||||
'settings_autoLoginUser_desc' => '',
|
||||
'settings_available_languages' => '',
|
||||
'settings_available_languages' => 'Dostępne języki',
|
||||
'settings_available_languages_desc' => '',
|
||||
'settings_backupDir' => '',
|
||||
'settings_backupDir_desc' => '',
|
||||
|
@ -1085,7 +1093,7 @@ URL: [url]',
|
|||
'settings_enableGuestAutoLogin_desc' => '',
|
||||
'settings_enableGuestLogin' => 'Pozwól na logowanie gościa',
|
||||
'settings_enableGuestLogin_desc' => 'Jeśli chcesz dowolnej osobie zalogować się jako gość, zaznacz tę opcję. Uwaga: logowanie gościa powinno być używane wyłącznie w zaufanym środowisku.',
|
||||
'settings_enableHelp' => '',
|
||||
'settings_enableHelp' => 'Włącz pomoc',
|
||||
'settings_enableHelp_desc' => '',
|
||||
'settings_enableLanguageSelector' => 'Włącz wybór języka',
|
||||
'settings_enableLanguageSelector_desc' => 'Pokaż selektor języka dla interfejsu użytkownika po zalogowaniu To nie ma wpływu na wybór języka na stronie logowania.',
|
||||
|
@ -1210,9 +1218,9 @@ URL: [url]',
|
|||
'settings_php_version' => 'Wersja PHP',
|
||||
'settings_presetExpirationDate' => '',
|
||||
'settings_presetExpirationDate_desc' => '',
|
||||
'settings_previewWidthDetail' => '',
|
||||
'settings_previewWidthDetail_desc' => '',
|
||||
'settings_previewWidthList' => '',
|
||||
'settings_previewWidthDetail' => 'Szerokość obrazka podglądu (szczegóły)',
|
||||
'settings_previewWidthDetail_desc' => 'Szerokość obrazka podglądu na stronie szczegółów',
|
||||
'settings_previewWidthList' => 'Szerokość obrazka podglądu (lista)',
|
||||
'settings_previewWidthList_desc' => 'Szerokość podglądu obrazu pokazanego na liście',
|
||||
'settings_printDisclaimer' => 'Wyświetlaj Zrzeczenie się',
|
||||
'settings_printDisclaimer_desc' => 'Zaznaczenie tej opcji spowoduje, że na dole strony będzie wyświetlany komunikat zrzeczenia się zawarty w pliku lang.inc.',
|
||||
|
@ -1313,9 +1321,11 @@ URL: [url]',
|
|||
'splash_document_added' => '',
|
||||
'splash_document_checkedout' => '',
|
||||
'splash_document_edited' => 'Dokument został zapisany',
|
||||
'splash_document_indexed' => '',
|
||||
'splash_document_locked' => 'Dokument zablokowany',
|
||||
'splash_document_unlocked' => 'Odblokowano dokument',
|
||||
'splash_edit_attribute' => 'Zapisano atrybuty',
|
||||
'splash_edit_event' => '',
|
||||
'splash_edit_group' => 'Grupa zapisana',
|
||||
'splash_edit_role' => '',
|
||||
'splash_edit_user' => 'Zapisano użytkownika',
|
||||
|
|
|
@ -547,8 +547,13 @@ URL: [url]',
|
|||
'include_content' => '',
|
||||
'include_documents' => 'Include documents',
|
||||
'include_subdirectories' => 'Include subdirectories',
|
||||
'indexing_tasks_in_queue' => '',
|
||||
'index_converters' => 'Índice de conversão de documentos',
|
||||
'index_done' => '',
|
||||
'index_error' => '',
|
||||
'index_folder' => 'Pasta Raiz',
|
||||
'index_pending' => '',
|
||||
'index_waiting' => '',
|
||||
'individuals' => 'Individuals',
|
||||
'indivіduals_in_groups' => '',
|
||||
'inherited' => 'herdado',
|
||||
|
@ -766,6 +771,7 @@ URL: [url]',
|
|||
'only_jpg_user_images' => 'Somente imagens jpg podem ser utilizadas como avatar',
|
||||
'order_by_sequence_off' => '',
|
||||
'original_filename' => 'Arquivo original',
|
||||
'overall_indexing_progress' => '',
|
||||
'owner' => 'Proprietário',
|
||||
'ownership_changed_email' => 'O proprietário mudou',
|
||||
'ownership_changed_email_body' => 'Proprietário mudou
|
||||
|
@ -855,6 +861,7 @@ Pasta mãe: [folder_path]
|
|||
Usuário: [username]
|
||||
URL: [url]',
|
||||
'removed_workflow_email_subject' => '[sitename]: [name] - Fluxo de trabalho removido da versão do documento',
|
||||
'removeFolderFromDropFolder' => '',
|
||||
'remove_marked_files' => 'Remover arquivos marcados',
|
||||
'repaired' => 'reparado',
|
||||
'repairing_objects' => 'Reparando documentos e pastas',
|
||||
|
@ -925,6 +932,7 @@ URL: [url]',
|
|||
'rm_default_keyword_category' => 'Apague esta categoria',
|
||||
'rm_document' => 'Remove documento',
|
||||
'rm_document_category' => 'Remover categoria',
|
||||
'rm_event' => '',
|
||||
'rm_file' => 'Remove file',
|
||||
'rm_folder' => 'Remove pasta',
|
||||
'rm_from_clipboard' => 'Remover da área de transferência',
|
||||
|
@ -1331,9 +1339,11 @@ URL: [url]',
|
|||
'splash_document_added' => 'Documento inserido',
|
||||
'splash_document_checkedout' => '',
|
||||
'splash_document_edited' => 'Documento salvo',
|
||||
'splash_document_indexed' => '',
|
||||
'splash_document_locked' => 'Documento bloqueado',
|
||||
'splash_document_unlocked' => 'Documento desbloqueado',
|
||||
'splash_edit_attribute' => 'Atributo salvo',
|
||||
'splash_edit_event' => '',
|
||||
'splash_edit_group' => 'Grupo salvo',
|
||||
'splash_edit_role' => '',
|
||||
'splash_edit_user' => 'Usuário salvo',
|
||||
|
|
|
@ -553,8 +553,13 @@ URL: [url]',
|
|||
'include_content' => '',
|
||||
'include_documents' => 'Include documente',
|
||||
'include_subdirectories' => 'Include subfoldere',
|
||||
'indexing_tasks_in_queue' => '',
|
||||
'index_converters' => 'Indexare conversie documente',
|
||||
'index_done' => '',
|
||||
'index_error' => '',
|
||||
'index_folder' => 'Index folder',
|
||||
'index_pending' => '',
|
||||
'index_waiting' => '',
|
||||
'individuals' => 'Individuals',
|
||||
'indivіduals_in_groups' => '',
|
||||
'inherited' => 'moștenit',
|
||||
|
@ -773,6 +778,7 @@ URL: [url]',
|
|||
'only_jpg_user_images' => 'Doar imagini .jpg pot fi utilizate ca imagine-utilizator',
|
||||
'order_by_sequence_off' => 'Ordonarea dupa secventa este dezactivata in setari. Daca doriti acest parametru sa aiba efect, va trebui sa-l reactivati.',
|
||||
'original_filename' => 'Nume de fișier original',
|
||||
'overall_indexing_progress' => '',
|
||||
'owner' => 'Proprietar',
|
||||
'ownership_changed_email' => 'Proprietar schimbat',
|
||||
'ownership_changed_email_body' => 'Proprietar schimbat
|
||||
|
@ -862,6 +868,7 @@ Folder parinte: [folder_path]
|
|||
Utilizator: [username]
|
||||
URL: [url]',
|
||||
'removed_workflow_email_subject' => '[sitename]: [name] - Workflow eliminat din versiunea documentului',
|
||||
'removeFolderFromDropFolder' => '',
|
||||
'remove_marked_files' => 'Eliminați fișierele marcate',
|
||||
'repaired' => 'reparat',
|
||||
'repairing_objects' => 'Reparare documente și foldere.',
|
||||
|
@ -950,6 +957,7 @@ URL: [url]',
|
|||
'rm_default_keyword_category' => 'Eliminați categorie',
|
||||
'rm_document' => 'Eliminați document',
|
||||
'rm_document_category' => 'Eliminați categorie',
|
||||
'rm_event' => '',
|
||||
'rm_file' => 'Eliminați fisier',
|
||||
'rm_folder' => 'Eliminați folder',
|
||||
'rm_from_clipboard' => 'Eliminați din clipboard',
|
||||
|
@ -1356,9 +1364,11 @@ URL: [url]',
|
|||
'splash_document_added' => 'Document adăugat',
|
||||
'splash_document_checkedout' => 'Document verificat',
|
||||
'splash_document_edited' => 'Document salvat',
|
||||
'splash_document_indexed' => '',
|
||||
'splash_document_locked' => 'Document blocat',
|
||||
'splash_document_unlocked' => 'Document deblocat',
|
||||
'splash_edit_attribute' => 'Atribut salvat',
|
||||
'splash_edit_event' => '',
|
||||
'splash_edit_group' => 'Grup salvat',
|
||||
'splash_edit_role' => '',
|
||||
'splash_edit_user' => 'Utilizator salvat',
|
||||
|
|
|
@ -553,8 +553,13 @@ URL: [url]',
|
|||
'include_content' => 'Включая содержимое',
|
||||
'include_documents' => 'Включая документы',
|
||||
'include_subdirectories' => 'Включая подкаталоги',
|
||||
'indexing_tasks_in_queue' => '',
|
||||
'index_converters' => 'Индексирование документов',
|
||||
'index_done' => '',
|
||||
'index_error' => '',
|
||||
'index_folder' => 'Полнотекстовый индекс',
|
||||
'index_pending' => '',
|
||||
'index_waiting' => '',
|
||||
'individuals' => 'Пользователи',
|
||||
'indivіduals_in_groups' => 'Пользователи группы',
|
||||
'inherited' => 'унаследованный',
|
||||
|
@ -772,6 +777,7 @@ URL: [url]',
|
|||
'only_jpg_user_images' => 'Разрешены только .jpg-изображения',
|
||||
'order_by_sequence_off' => 'Сортировка последовательности выключена в настройках. Если вы хотите применить этот эффект, вам необходимо его включить',
|
||||
'original_filename' => 'Исходное имя файла',
|
||||
'overall_indexing_progress' => '',
|
||||
'owner' => 'Владелец',
|
||||
'ownership_changed_email' => 'Владелец изменён',
|
||||
'ownership_changed_email_body' => 'Изменён владелец
|
||||
|
@ -864,6 +870,7 @@ URL: [url]',
|
|||
Пользователь: [username]
|
||||
URL: [url]',
|
||||
'removed_workflow_email_subject' => '[sitename]: удалён процесс из версии документа «[name]»',
|
||||
'removeFolderFromDropFolder' => '',
|
||||
'remove_marked_files' => 'Удалить выбранные файлы',
|
||||
'repaired' => 'исправлено',
|
||||
'repairing_objects' => 'Восстановление каталогов и документов',
|
||||
|
@ -957,6 +964,7 @@ URL: [url]',
|
|||
'rm_default_keyword_category' => 'Удалить метку',
|
||||
'rm_document' => 'Удалить документ',
|
||||
'rm_document_category' => 'Удалить категорию',
|
||||
'rm_event' => '',
|
||||
'rm_file' => 'Удалить файл',
|
||||
'rm_folder' => 'Удалить каталог',
|
||||
'rm_from_clipboard' => 'Удалить из буфера обмена',
|
||||
|
@ -1363,9 +1371,11 @@ URL: [url]',
|
|||
'splash_document_added' => 'Добавлен документ',
|
||||
'splash_document_checkedout' => 'Документ отправлен на обработку',
|
||||
'splash_document_edited' => 'Документ сохранён',
|
||||
'splash_document_indexed' => '',
|
||||
'splash_document_locked' => 'Документ заблокирован',
|
||||
'splash_document_unlocked' => 'Документ разблокирован',
|
||||
'splash_edit_attribute' => 'Атрибут сохранён',
|
||||
'splash_edit_event' => '',
|
||||
'splash_edit_group' => 'Группа сохранена',
|
||||
'splash_edit_role' => '',
|
||||
'splash_edit_user' => 'Пользователь сохранён',
|
||||
|
|
|
@ -476,8 +476,13 @@ URL: [url]',
|
|||
'include_content' => '',
|
||||
'include_documents' => 'Vrátane súborov',
|
||||
'include_subdirectories' => 'Vrátane podzložiek',
|
||||
'indexing_tasks_in_queue' => '',
|
||||
'index_converters' => '',
|
||||
'index_done' => '',
|
||||
'index_error' => '',
|
||||
'index_folder' => 'Indexovať zložku',
|
||||
'index_pending' => '',
|
||||
'index_waiting' => '',
|
||||
'individuals' => 'Jednotlivci',
|
||||
'indivіduals_in_groups' => '',
|
||||
'inherited' => 'zdedené',
|
||||
|
@ -672,6 +677,7 @@ URL: [url]',
|
|||
'only_jpg_user_images' => 'Ako obrázky používateľov je možné použiť iba obrázky .jpg',
|
||||
'order_by_sequence_off' => '',
|
||||
'original_filename' => '',
|
||||
'overall_indexing_progress' => '',
|
||||
'owner' => 'Vlastník',
|
||||
'ownership_changed_email' => 'Majitel zmeneny',
|
||||
'ownership_changed_email_body' => '',
|
||||
|
@ -738,6 +744,7 @@ URL: [url]',
|
|||
'removed_revispr' => '',
|
||||
'removed_workflow_email_body' => '',
|
||||
'removed_workflow_email_subject' => '',
|
||||
'removeFolderFromDropFolder' => '',
|
||||
'remove_marked_files' => 'Zrušiť označenie súborov',
|
||||
'repaired' => '',
|
||||
'repairing_objects' => '',
|
||||
|
@ -789,6 +796,7 @@ URL: [url]',
|
|||
'rm_default_keyword_category' => 'Zmazať kategóriu',
|
||||
'rm_document' => 'Odstrániť dokument',
|
||||
'rm_document_category' => '',
|
||||
'rm_event' => '',
|
||||
'rm_file' => 'Odstrániť súbor',
|
||||
'rm_folder' => 'Odstrániť zložku',
|
||||
'rm_from_clipboard' => '',
|
||||
|
@ -1188,9 +1196,11 @@ URL: [url]',
|
|||
'splash_document_added' => '',
|
||||
'splash_document_checkedout' => '',
|
||||
'splash_document_edited' => '',
|
||||
'splash_document_indexed' => '',
|
||||
'splash_document_locked' => 'Dokument uzamknutý',
|
||||
'splash_document_unlocked' => 'Dokument odomknutý',
|
||||
'splash_edit_attribute' => '',
|
||||
'splash_edit_event' => '',
|
||||
'splash_edit_group' => '',
|
||||
'splash_edit_role' => '',
|
||||
'splash_edit_user' => '',
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
// Translators: Admin (1136), tmichelfelder (106)
|
||||
// Translators: Admin (1138), tmichelfelder (106)
|
||||
|
||||
$text = array(
|
||||
'2_factor_auth' => '',
|
||||
|
@ -541,8 +541,13 @@ URL: [url]',
|
|||
'include_content' => '',
|
||||
'include_documents' => 'Inkludera dokument',
|
||||
'include_subdirectories' => 'Inkludera under-kataloger',
|
||||
'indexing_tasks_in_queue' => '',
|
||||
'index_converters' => 'Omvandling av indexdokument',
|
||||
'index_done' => '',
|
||||
'index_error' => '',
|
||||
'index_folder' => 'Index mapp',
|
||||
'index_pending' => '',
|
||||
'index_waiting' => '',
|
||||
'individuals' => 'Personer',
|
||||
'indivіduals_in_groups' => '',
|
||||
'inherited' => 'ärvd',
|
||||
|
@ -603,7 +608,7 @@ URL: [url]',
|
|||
'keep' => '',
|
||||
'keep_doc_status' => 'Bibehåll dokumentstatus',
|
||||
'keywords' => 'Nyckelord',
|
||||
'keywords_loading' => '',
|
||||
'keywords_loading' => 'Vänta till nyckelordlistan har laddats',
|
||||
'keyword_exists' => 'Nyckelordet finns redan',
|
||||
'ko_KR' => 'Koreanska',
|
||||
'language' => 'Språk',
|
||||
|
@ -750,7 +755,7 @@ URL: [url]',
|
|||
'no_update_cause_locked' => 'Därför kan du inte uppdatera detta dokument. Ta kontakt med användaren som låst dokumentet.',
|
||||
'no_user_image' => 'Ingen bild hittades',
|
||||
'no_version_check' => 'Fel vid sökning efter ny version av SeedDMS! Ursaken kan vara att allow_url_fopen i din php konfiguration är satt till 0.',
|
||||
'no_version_modification' => '',
|
||||
'no_version_modification' => 'Inga andra versioner finns',
|
||||
'no_workflow_available' => '',
|
||||
'objectcheck' => 'Katalog/Dokument-kontroll',
|
||||
'object_check_critical' => '',
|
||||
|
@ -761,6 +766,7 @@ URL: [url]',
|
|||
'only_jpg_user_images' => 'Bara .jpg-bilder kan användas som användarbild',
|
||||
'order_by_sequence_off' => '',
|
||||
'original_filename' => 'Ursprungligt filnamn',
|
||||
'overall_indexing_progress' => '',
|
||||
'owner' => 'Ägare',
|
||||
'ownership_changed_email' => 'Ägare har ändrats',
|
||||
'ownership_changed_email_body' => 'Ägare har ändrats
|
||||
|
@ -842,6 +848,7 @@ Arbetsflöde: [workflow]
|
|||
Användare: [username]
|
||||
URL: [url]',
|
||||
'removed_workflow_email_subject' => '[sitename]: [name] - Arbetsflöde borttagen från dokument version',
|
||||
'removeFolderFromDropFolder' => '',
|
||||
'remove_marked_files' => 'Ta bort markerade filer',
|
||||
'repaired' => 'repaired',
|
||||
'repairing_objects' => 'Förbereder dokument och kataloger.',
|
||||
|
@ -913,6 +920,7 @@ URL: [url]',
|
|||
'rm_default_keyword_category' => 'Ta bort kategori',
|
||||
'rm_document' => 'Ta bort',
|
||||
'rm_document_category' => 'Ta bort kategori',
|
||||
'rm_event' => '',
|
||||
'rm_file' => 'Ta bort fil',
|
||||
'rm_folder' => 'Ta bort katalog',
|
||||
'rm_from_clipboard' => 'Ta bort från Urklipp',
|
||||
|
@ -1319,9 +1327,11 @@ URL: [url]',
|
|||
'splash_document_added' => '',
|
||||
'splash_document_checkedout' => '',
|
||||
'splash_document_edited' => 'Dokument sparad',
|
||||
'splash_document_indexed' => '',
|
||||
'splash_document_locked' => 'Dokument låst',
|
||||
'splash_document_unlocked' => 'Dokument upplåst',
|
||||
'splash_edit_attribute' => 'Attribut sparat',
|
||||
'splash_edit_event' => '',
|
||||
'splash_edit_group' => 'Grupp sparat',
|
||||
'splash_edit_role' => '',
|
||||
'splash_edit_user' => 'Användare sparat',
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
// Translators: Admin (1046), aydin (83)
|
||||
// Translators: Admin (1048), aydin (83)
|
||||
|
||||
$text = array(
|
||||
'2_factor_auth' => '',
|
||||
|
@ -399,7 +399,7 @@ URL: [url]',
|
|||
'dump_creation_warning' => 'Bu işlemle veritabanınızın dump dosyasını oluşturabilirsiniz. Dump dosyası sunucunuzdaki data klasörüne kaydedilcektir.',
|
||||
'dump_list' => 'Mevcut dump dosyaları',
|
||||
'dump_remove' => 'Dump dosyasını sil',
|
||||
'duplicate_content' => '',
|
||||
'duplicate_content' => 'içeriği_klonla',
|
||||
'edit' => 'Düzenle',
|
||||
'edit_attributes' => 'Nitelikleri düzenle',
|
||||
'edit_comment' => 'Açıklamayı düzenle',
|
||||
|
@ -547,8 +547,13 @@ URL: [url]',
|
|||
'include_content' => '',
|
||||
'include_documents' => 'Dokümanları kapsa',
|
||||
'include_subdirectories' => 'Alt klasörleri kapsa',
|
||||
'indexing_tasks_in_queue' => '',
|
||||
'index_converters' => 'Doküman dönüştürmeyi indeksle',
|
||||
'index_done' => '',
|
||||
'index_error' => '',
|
||||
'index_folder' => 'Klasörü indeksle',
|
||||
'index_pending' => '',
|
||||
'index_waiting' => '',
|
||||
'individuals' => 'Bireysel',
|
||||
'indivіduals_in_groups' => '',
|
||||
'inherited' => 'devralındı',
|
||||
|
@ -767,6 +772,7 @@ URL: [url]',
|
|||
'only_jpg_user_images' => 'Kullanıcı resmi olarak sadece .jpg uzantı resimler kullanılabilir',
|
||||
'order_by_sequence_off' => '',
|
||||
'original_filename' => 'Orijinal dosya adı',
|
||||
'overall_indexing_progress' => '',
|
||||
'owner' => 'Sahibi',
|
||||
'ownership_changed_email' => 'Sahip değişti',
|
||||
'ownership_changed_email_body' => 'Sahip değişti
|
||||
|
@ -858,6 +864,7 @@ Klasör: [folder_path]
|
|||
Kullanıcı: [username]
|
||||
URL: [url]',
|
||||
'removed_workflow_email_subject' => '[sitename]: [name] - Doküman versiyonundan iş akışı silindi',
|
||||
'removeFolderFromDropFolder' => '',
|
||||
'remove_marked_files' => 'İşaretli dosyaları sil',
|
||||
'repaired' => 'onarıldı',
|
||||
'repairing_objects' => 'Doküman ve klasörler onarılıyor.',
|
||||
|
@ -929,6 +936,7 @@ URL: [url]',
|
|||
'rm_default_keyword_category' => 'Kategoriyi sil',
|
||||
'rm_document' => 'Dokümanı sil',
|
||||
'rm_document_category' => 'Kategoriyi sil',
|
||||
'rm_event' => '',
|
||||
'rm_file' => 'Dosyayı sil',
|
||||
'rm_folder' => 'Klasörü sil',
|
||||
'rm_from_clipboard' => 'Panodan sil',
|
||||
|
@ -1022,7 +1030,7 @@ URL: [url]',
|
|||
'settings_Authentication' => 'Yetkilendirme ayarları',
|
||||
'settings_autoLoginUser' => '',
|
||||
'settings_autoLoginUser_desc' => '',
|
||||
'settings_available_languages' => '',
|
||||
'settings_available_languages' => 'kullanılabilir diller',
|
||||
'settings_available_languages_desc' => '',
|
||||
'settings_backupDir' => '',
|
||||
'settings_backupDir_desc' => '',
|
||||
|
@ -1335,9 +1343,11 @@ URL: [url]',
|
|||
'splash_document_added' => 'Doküman eklendi',
|
||||
'splash_document_checkedout' => '',
|
||||
'splash_document_edited' => 'Doküman kaydedildi',
|
||||
'splash_document_indexed' => '',
|
||||
'splash_document_locked' => 'Doküman kilitlendi',
|
||||
'splash_document_unlocked' => 'Doküman kiliti açıldı',
|
||||
'splash_edit_attribute' => 'Nitelik kaydedildi',
|
||||
'splash_edit_event' => '',
|
||||
'splash_edit_group' => 'Grup kaydedildi',
|
||||
'splash_edit_role' => '',
|
||||
'splash_edit_user' => 'Kullanıcı kaydedildi',
|
||||
|
|
|
@ -553,8 +553,13 @@ URL: [url]',
|
|||
'include_content' => 'Включно з вмістом',
|
||||
'include_documents' => 'Включно з документами',
|
||||
'include_subdirectories' => 'Включно з підкаталогами',
|
||||
'indexing_tasks_in_queue' => '',
|
||||
'index_converters' => 'Індексування документів',
|
||||
'index_done' => '',
|
||||
'index_error' => '',
|
||||
'index_folder' => 'Каталог індексу',
|
||||
'index_pending' => '',
|
||||
'index_waiting' => '',
|
||||
'individuals' => 'Користувачі',
|
||||
'indivіduals_in_groups' => 'Користувачі групи',
|
||||
'inherited' => 'успадкований',
|
||||
|
@ -772,6 +777,7 @@ URL: [url]',
|
|||
'only_jpg_user_images' => 'Дозволені лише .jpg-зображення',
|
||||
'order_by_sequence_off' => 'Можливість ручного сортування відключена в налаштуваннях. Якщо ви хочете використовувати цю функцію, ви повинні знову її включити.',
|
||||
'original_filename' => 'Початкова назва файлу',
|
||||
'overall_indexing_progress' => '',
|
||||
'owner' => 'Власник',
|
||||
'ownership_changed_email' => 'Власника змінено',
|
||||
'ownership_changed_email_body' => 'Змінено власника
|
||||
|
@ -864,6 +870,7 @@ URL: [url]',
|
|||
Користувач: [username]
|
||||
URL: [url]',
|
||||
'removed_workflow_email_subject' => '[sitename]: видалено процес з версії документа «[name]»',
|
||||
'removeFolderFromDropFolder' => '',
|
||||
'remove_marked_files' => 'Видалити обрані файли',
|
||||
'repaired' => 'виправлено',
|
||||
'repairing_objects' => 'Відновлення каталогів і документів',
|
||||
|
@ -950,6 +957,7 @@ URL: [url]',
|
|||
'rm_default_keyword_category' => 'Видалити категорію',
|
||||
'rm_document' => 'Видалити документ',
|
||||
'rm_document_category' => 'Видалити категорію',
|
||||
'rm_event' => '',
|
||||
'rm_file' => 'Видалити файл',
|
||||
'rm_folder' => 'Видалити каталог',
|
||||
'rm_from_clipboard' => 'Видалити з буферу обміну',
|
||||
|
@ -1356,9 +1364,11 @@ URL: [url]',
|
|||
'splash_document_added' => 'Додано документ',
|
||||
'splash_document_checkedout' => 'Документ відправлено на опрацювання',
|
||||
'splash_document_edited' => 'Документ збережено',
|
||||
'splash_document_indexed' => '',
|
||||
'splash_document_locked' => 'Документ заблоковано',
|
||||
'splash_document_unlocked' => 'Документ розблоковано',
|
||||
'splash_edit_attribute' => 'Атрибут збережено',
|
||||
'splash_edit_event' => '',
|
||||
'splash_edit_group' => 'Групу збережено',
|
||||
'splash_edit_role' => '',
|
||||
'splash_edit_user' => 'Користувача збережено',
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
// Translators: Admin (652), fengjohn (5)
|
||||
// Translators: Admin (674), fengjohn (5)
|
||||
|
||||
$text = array(
|
||||
'2_factor_auth' => '',
|
||||
|
@ -203,7 +203,7 @@ URL: [url]',
|
|||
'chart_docspercategory_title' => '目录文档数',
|
||||
'chart_docspermimetype_title' => '',
|
||||
'chart_docspermonth_title' => '每月创建的新文档',
|
||||
'chart_docsperstatus_title' => '',
|
||||
'chart_docsperstatus_title' => '各状态文档数',
|
||||
'chart_docsperuser_title' => '单用户文档数',
|
||||
'chart_selection' => '选择报表',
|
||||
'chart_sizeperuser_title' => '单用户磁盘空间',
|
||||
|
@ -237,7 +237,7 @@ URL: [url]',
|
|||
'comment_changed_email' => '',
|
||||
'comment_for_current_version' => '版本说明',
|
||||
'confirm_clear_cache' => '',
|
||||
'confirm_create_fulltext_index' => '',
|
||||
'confirm_create_fulltext_index' => '确认重新创建全文索引',
|
||||
'confirm_move_document' => '',
|
||||
'confirm_move_folder' => '',
|
||||
'confirm_pwd' => '确认密码',
|
||||
|
@ -478,8 +478,13 @@ URL: [url]',
|
|||
'include_content' => '',
|
||||
'include_documents' => '包含文档',
|
||||
'include_subdirectories' => '包含子目录',
|
||||
'indexing_tasks_in_queue' => '',
|
||||
'index_converters' => '索引文件转换',
|
||||
'index_done' => '',
|
||||
'index_error' => '',
|
||||
'index_folder' => '索引目录',
|
||||
'index_pending' => '',
|
||||
'index_waiting' => '',
|
||||
'individuals' => '个人',
|
||||
'indivіduals_in_groups' => '',
|
||||
'inherited' => '继承',
|
||||
|
@ -674,6 +679,7 @@ URL: [url]',
|
|||
'only_jpg_user_images' => '只用jpg格式的图片才可以作为用户身份图片',
|
||||
'order_by_sequence_off' => '',
|
||||
'original_filename' => '原始文件名',
|
||||
'overall_indexing_progress' => '',
|
||||
'owner' => '所有者',
|
||||
'ownership_changed_email' => '所有者已变更',
|
||||
'ownership_changed_email_body' => '',
|
||||
|
@ -694,7 +700,7 @@ URL: [url]',
|
|||
'password_send' => '',
|
||||
'password_send_text' => '',
|
||||
'password_strength' => '密码强度',
|
||||
'password_strength_insuffient' => '',
|
||||
'password_strength_insuffient' => '密码强度不够',
|
||||
'password_wrong' => '',
|
||||
'pending_approvals' => '',
|
||||
'pending_reviews' => '',
|
||||
|
@ -740,6 +746,7 @@ URL: [url]',
|
|||
'removed_revispr' => '',
|
||||
'removed_workflow_email_body' => '',
|
||||
'removed_workflow_email_subject' => '',
|
||||
'removeFolderFromDropFolder' => '',
|
||||
'remove_marked_files' => '删除选中的文件',
|
||||
'repaired' => '',
|
||||
'repairing_objects' => '',
|
||||
|
@ -791,6 +798,7 @@ URL: [url]',
|
|||
'rm_default_keyword_category' => '删除类别',
|
||||
'rm_document' => '删除文档',
|
||||
'rm_document_category' => '删除分类',
|
||||
'rm_event' => '',
|
||||
'rm_file' => '删除文件',
|
||||
'rm_folder' => '删除文件夹',
|
||||
'rm_from_clipboard' => '从剪切板删除',
|
||||
|
@ -884,8 +892,8 @@ URL: [url]',
|
|||
'settings_cacheDir' => '',
|
||||
'settings_cacheDir_desc' => '',
|
||||
'settings_Calendar' => '',
|
||||
'settings_calendarDefaultView' => '',
|
||||
'settings_calendarDefaultView_desc' => '',
|
||||
'settings_calendarDefaultView' => '日历默认试图',
|
||||
'settings_calendarDefaultView_desc' => '日历默认试图',
|
||||
'settings_cannot_disable' => '',
|
||||
'settings_checkOutDir' => '',
|
||||
'settings_checkOutDir_desc' => '',
|
||||
|
@ -895,8 +903,8 @@ URL: [url]',
|
|||
'settings_contentDir_desc' => '',
|
||||
'settings_contentOffsetDir' => '内容偏移目录',
|
||||
'settings_contentOffsetDir_desc' => '要解决在底层文件系统的限制,一个新的目录结构已制定了内容目录(内容目录)中存在的。这需要从它开始一个基本目录。通常离开这个为默认设置,1048576,也可以是内(内容目录)不存在任何数字或字符串',
|
||||
'settings_convertToPdf' => '',
|
||||
'settings_convertToPdf_desc' => '',
|
||||
'settings_convertToPdf' => '将文档转换为pdf预览',
|
||||
'settings_convertToPdf_desc' => '如果浏览器不支持原始文件预览,允许转换为pdf文件预览',
|
||||
'settings_cookieLifetime' => '',
|
||||
'settings_cookieLifetime_desc' => '',
|
||||
'settings_coreDir' => 'SeedDMS核心目录',
|
||||
|
@ -907,16 +915,16 @@ URL: [url]',
|
|||
'settings_createdirectory' => '',
|
||||
'settings_currentvalue' => '',
|
||||
'settings_Database' => '数据库设置',
|
||||
'settings_dbDatabase' => '',
|
||||
'settings_dbDatabase_desc' => '',
|
||||
'settings_dbDatabase' => '数据库名称',
|
||||
'settings_dbDatabase_desc' => '设置连接的数据库',
|
||||
'settings_dbDriver' => '',
|
||||
'settings_dbDriver_desc' => '',
|
||||
'settings_dbHostname' => '',
|
||||
'settings_dbHostname_desc' => '',
|
||||
'settings_dbPass' => '',
|
||||
'settings_dbPass_desc' => '',
|
||||
'settings_dbUser' => '',
|
||||
'settings_dbUser_desc' => '',
|
||||
'settings_dbHostname' => '数据库地址',
|
||||
'settings_dbHostname_desc' => '设置数据库的连接地址',
|
||||
'settings_dbPass' => '数据库密码',
|
||||
'settings_dbPass_desc' => '填写连接数据库用户的密码',
|
||||
'settings_dbUser' => '数据库用户',
|
||||
'settings_dbUser_desc' => '设置连接数据库的用户',
|
||||
'settings_dbVersion' => '',
|
||||
'settings_defaultAccessDocs' => '',
|
||||
'settings_defaultAccessDocs_desc' => '',
|
||||
|
@ -932,7 +940,7 @@ URL: [url]',
|
|||
'settings_dropFolderDir' => '',
|
||||
'settings_dropFolderDir_desc' => '',
|
||||
'settings_Edition' => '编辑设置',
|
||||
'settings_editOnlineFileTypes' => '',
|
||||
'settings_editOnlineFileTypes' => '编辑在线文件类型',
|
||||
'settings_editOnlineFileTypes_desc' => '',
|
||||
'settings_enable2FactorAuthentication' => '',
|
||||
'settings_enable2FactorAuthentication_desc' => '',
|
||||
|
@ -1013,7 +1021,7 @@ URL: [url]',
|
|||
'settings_Extensions' => '',
|
||||
'settings_extraPath' => '额外的PHP的include路径',
|
||||
'settings_extraPath_desc' => '附加软件的路径。这是包含目录,例如在ADODB目录或额外的PEAR包',
|
||||
'settings_firstDayOfWeek' => '',
|
||||
'settings_firstDayOfWeek' => '每周第一天',
|
||||
'settings_firstDayOfWeek_desc' => '',
|
||||
'settings_footNote' => '附注',
|
||||
'settings_footNote_desc' => '显示在每个页面底部的信息',
|
||||
|
@ -1093,20 +1101,20 @@ URL: [url]',
|
|||
'settings_previewWidthList_desc' => '列表中缩略图的宽度',
|
||||
'settings_printDisclaimer' => '显示免责声明',
|
||||
'settings_printDisclaimer_desc' => '如果开启,这个免责声明信息将在每个页面的底部显示',
|
||||
'settings_quota' => '',
|
||||
'settings_quota' => '设置磁盘配额',
|
||||
'settings_quota_desc' => '',
|
||||
'settings_removeFromDropFolder' => '',
|
||||
'settings_removeFromDropFolder_desc' => '',
|
||||
'settings_restricted' => '',
|
||||
'settings_restricted_desc' => '',
|
||||
'settings_rootDir' => '',
|
||||
'settings_rootDir' => '根目录',
|
||||
'settings_rootDir_desc' => '',
|
||||
'settings_rootFolderID' => '',
|
||||
'settings_rootFolderID_desc' => '',
|
||||
'settings_SaveError' => '',
|
||||
'settings_Server' => '',
|
||||
'settings_Server' => '服务设置',
|
||||
'settings_showFullPreview' => '显示完整的文档',
|
||||
'settings_showFullPreview_desc' => '',
|
||||
'settings_showFullPreview_desc' => '启用/禁用详细页面完整预览, 如果浏览器>支持的话',
|
||||
'settings_showMissingTranslations' => '显示丢失的翻译',
|
||||
'settings_showMissingTranslations_desc' => '',
|
||||
'settings_showSingleSearchHit' => '',
|
||||
|
@ -1169,7 +1177,7 @@ URL: [url]',
|
|||
'set_expiry' => '设置截止日期',
|
||||
'set_owner' => '设置所有者',
|
||||
'set_owner_error' => '错误 设置所有者',
|
||||
'set_password' => '',
|
||||
'set_password' => '设定密码',
|
||||
'set_workflow' => '',
|
||||
'signed_in_as' => '登录为',
|
||||
'sign_in' => '',
|
||||
|
@ -1190,9 +1198,11 @@ URL: [url]',
|
|||
'splash_document_added' => '',
|
||||
'splash_document_checkedout' => '',
|
||||
'splash_document_edited' => '',
|
||||
'splash_document_indexed' => '',
|
||||
'splash_document_locked' => '文档已被锁定',
|
||||
'splash_document_unlocked' => '已解锁的文档',
|
||||
'splash_edit_attribute' => '',
|
||||
'splash_edit_event' => '',
|
||||
'splash_edit_group' => '',
|
||||
'splash_edit_role' => '',
|
||||
'splash_edit_user' => '',
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
// Translators: Admin (2374)
|
||||
// Translators: Admin (2376)
|
||||
|
||||
$text = array(
|
||||
'2_factor_auth' => '',
|
||||
|
@ -476,8 +476,13 @@ URL: [url]',
|
|||
'include_content' => '',
|
||||
'include_documents' => '包含文檔',
|
||||
'include_subdirectories' => '包含子目錄',
|
||||
'indexing_tasks_in_queue' => '',
|
||||
'index_converters' => '索引檔轉換',
|
||||
'index_done' => '',
|
||||
'index_error' => '',
|
||||
'index_folder' => '索引目錄',
|
||||
'index_pending' => '',
|
||||
'index_waiting' => '',
|
||||
'individuals' => '個人',
|
||||
'indivіduals_in_groups' => '',
|
||||
'inherited' => '繼承',
|
||||
|
@ -672,6 +677,7 @@ URL: [url]',
|
|||
'only_jpg_user_images' => '只用jpg格式的圖片才可以作為使用者身份圖片',
|
||||
'order_by_sequence_off' => '',
|
||||
'original_filename' => '',
|
||||
'overall_indexing_progress' => '',
|
||||
'owner' => '所有者',
|
||||
'ownership_changed_email' => '所有者已變更',
|
||||
'ownership_changed_email_body' => '',
|
||||
|
@ -738,6 +744,7 @@ URL: [url]',
|
|||
'removed_revispr' => '',
|
||||
'removed_workflow_email_body' => '',
|
||||
'removed_workflow_email_subject' => '',
|
||||
'removeFolderFromDropFolder' => '',
|
||||
'remove_marked_files' => '刪除勾選的檔案',
|
||||
'repaired' => '',
|
||||
'repairing_objects' => '',
|
||||
|
@ -789,6 +796,7 @@ URL: [url]',
|
|||
'rm_default_keyword_category' => '刪除類別',
|
||||
'rm_document' => '刪除文檔',
|
||||
'rm_document_category' => '刪除分類',
|
||||
'rm_event' => '',
|
||||
'rm_file' => '刪除檔',
|
||||
'rm_folder' => '刪除資料夾',
|
||||
'rm_from_clipboard' => '',
|
||||
|
@ -1127,9 +1135,9 @@ URL: [url]',
|
|||
'settings_smtpUser_desc' => '',
|
||||
'settings_sortFoldersDefault' => '',
|
||||
'settings_sortFoldersDefault_desc' => '',
|
||||
'settings_sortFoldersDefault_val_name' => '',
|
||||
'settings_sortFoldersDefault_val_name' => '按名称',
|
||||
'settings_sortFoldersDefault_val_sequence' => '',
|
||||
'settings_sortFoldersDefault_val_unsorted' => '',
|
||||
'settings_sortFoldersDefault_val_unsorted' => '不排序',
|
||||
'settings_sortUsersInList' => '',
|
||||
'settings_sortUsersInList_desc' => '',
|
||||
'settings_sortUsersInList_val_fullname' => '',
|
||||
|
@ -1188,9 +1196,11 @@ URL: [url]',
|
|||
'splash_document_added' => '',
|
||||
'splash_document_checkedout' => '',
|
||||
'splash_document_edited' => '',
|
||||
'splash_document_indexed' => '',
|
||||
'splash_document_locked' => '文檔已被鎖定',
|
||||
'splash_document_unlocked' => '已解鎖的文檔',
|
||||
'splash_edit_attribute' => '',
|
||||
'splash_edit_event' => '',
|
||||
'splash_edit_group' => '',
|
||||
'splash_edit_role' => '',
|
||||
'splash_edit_user' => '',
|
||||
|
|
|
@ -240,12 +240,29 @@ if($settings->_dropFolderDir) {
|
|||
}
|
||||
}
|
||||
|
||||
if(isset($_POST['fineuploaderuuids']) && $_POST['fineuploaderuuids']) {
|
||||
$uuids = explode(';', $_POST['fineuploaderuuids']);
|
||||
$names = explode(';', $_POST['fineuploadernames']);
|
||||
foreach($uuids as $i=>$uuid) {
|
||||
$fullfile = $settings->_stagingDir.'/'.basename($uuid);
|
||||
if(file_exists($fullfile)) {
|
||||
$finfo = finfo_open(FILEINFO_MIME_TYPE);
|
||||
$mimetype = finfo_file($finfo, $fullfile);
|
||||
$_FILES["userfile"]['tmp_name'][] = $fullfile;
|
||||
$_FILES["userfile"]['type'][] = $mimetype;
|
||||
$_FILES["userfile"]['name'][] = isset($names[$i]) ? $names[$i] : $uuid;
|
||||
$_FILES["userfile"]['size'][] = filesize($fullfile);
|
||||
$_FILES["userfile"]['error'][] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Check files for Errors first */
|
||||
for ($file_num=0;$file_num<count($_FILES["userfile"]["tmp_name"]);$file_num++){
|
||||
if ($_FILES["userfile"]["size"][$file_num]==0) {
|
||||
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("uploading_zerosize"));
|
||||
}
|
||||
if (is_uploaded_file($_FILES["userfile"]["tmp_name"][$file_num]) && $_FILES['userfile']['error'][$file_num]!=0){
|
||||
if (/* is_uploaded_file($_FILES["userfile"]["tmp_name"][$file_num]) && */$_FILES['userfile']['error'][$file_num]!=0){
|
||||
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("uploading_failed"));
|
||||
}
|
||||
}
|
||||
|
@ -319,7 +336,15 @@ for ($file_num=0;$file_num<count($_FILES["userfile"]["tmp_name"]);$file_num++){
|
|||
$index = $indexconf['Indexer']::open($settings->_luceneDir);
|
||||
if($index) {
|
||||
$indexconf['Indexer']::init($settings->_stopWordsFile);
|
||||
$index->addDocument(new $indexconf['IndexedDocument']($dms, $document, isset($settings->_converters['fulltext']) ? $settings->_converters['fulltext'] : null, !($filesize < $settings->_maxSizeForFullText)));
|
||||
$idoc = new $indexconf['IndexedDocument']($dms, $document, isset($settings->_converters['fulltext']) ? $settings->_converters['fulltext'] : null, !($filesize < $settings->_maxSizeForFullText));
|
||||
if(isset($GLOBALS['SEEDDMS_HOOKS']['addDocument'])) {
|
||||
foreach($GLOBALS['SEEDDMS_HOOKS']['addDocument'] as $hookObj) {
|
||||
if (method_exists($hookObj, 'preIndexDocument')) {
|
||||
$hookObj->preIndexDocument(null, $document, $idoc);
|
||||
}
|
||||
}
|
||||
}
|
||||
$index->addDocument($idoc);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ include("../inc/inc.Extension.php");
|
|||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
include("../inc/inc.Calendar.php");
|
||||
include("../inc/inc.ClassCalendar.php");
|
||||
include("../inc/inc.Authentication.php");
|
||||
|
||||
if ($user->isGuest()) {
|
||||
|
@ -66,7 +66,9 @@ if ($to<=$from){
|
|||
UI::exitError(getMLText("add_event"),getMLText("to_before_from"));
|
||||
}
|
||||
|
||||
$res = addEvent($from, $to, $name, $comment);
|
||||
$calendar = new SeedDMS_Calendar($dms->getDB(), $user);
|
||||
|
||||
$res = $calendar->addEvent($from, $to, $name, $comment);
|
||||
|
||||
if (is_bool($res) && !$res) {
|
||||
UI::exitError(getMLText("add_event"),getMLText("error_occured"));
|
||||
|
|
|
@ -44,20 +44,43 @@ if ($document->getAccessMode($user) < M_READWRITE) {
|
|||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
|
||||
}
|
||||
|
||||
if (is_uploaded_file($_FILES["userfile"]["tmp_name"]) && $_FILES["userfile"]["size"] > 0 && $_FILES['userfile']['error']!=0){
|
||||
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("uploading_failed"));
|
||||
if(isset($_POST['fineuploaderuuids']) && $_POST['fineuploaderuuids']) {
|
||||
$uuids = explode(';', $_POST['fineuploaderuuids']);
|
||||
$names = explode(';', $_POST['fineuploadernames']);
|
||||
foreach($uuids as $i=>$uuid) {
|
||||
$fullfile = $settings->_stagingDir.'/'.basename($uuid);
|
||||
if(file_exists($fullfile)) {
|
||||
$finfo = finfo_open(FILEINFO_MIME_TYPE);
|
||||
$mimetype = finfo_file($finfo, $fullfile);
|
||||
$_FILES["userfile"]['tmp_name'][] = $fullfile;
|
||||
$_FILES["userfile"]['type'][] = $mimetype;
|
||||
$_FILES["userfile"]['name'][] = isset($names[$i]) ? $names[$i] : $uuid;
|
||||
$_FILES["userfile"]['size'][] = filesize($fullfile);
|
||||
$_FILES["userfile"]['error'][] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for ($file_num=0;$file_num<count($_FILES["userfile"]["tmp_name"]);$file_num++){
|
||||
if ($_FILES["userfile"]["size"][$file_num]==0) {
|
||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("uploading_zerosize"));
|
||||
}
|
||||
if (is_uploaded_file($_FILES["userfile"]["tmp_name"][$file_num]) && $_FILES['userfile']['error'][$file_num] != 0){
|
||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("uploading_failed"));
|
||||
}
|
||||
if($_FILES["userfile"]["error"][$file_num]) {
|
||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured"));
|
||||
}
|
||||
|
||||
if(count($_FILES["userfile"]["tmp_name"]) == 1 && !empty($_POST['name']))
|
||||
$name = $_POST["name"];
|
||||
else
|
||||
$name = $_FILES["userfile"]['name'][$file_num];
|
||||
$comment = $_POST["comment"];
|
||||
|
||||
if($_FILES["userfile"]["error"]) {
|
||||
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("error_occured"));
|
||||
}
|
||||
|
||||
$userfiletmp = $_FILES["userfile"]["tmp_name"];
|
||||
$userfiletype = $_FILES["userfile"]["type"];
|
||||
$userfilename = $_FILES["userfile"]["name"];
|
||||
$userfiletmp = $_FILES["userfile"]["tmp_name"][$file_num];
|
||||
$userfiletype = $_FILES["userfile"]["type"][$file_num];
|
||||
$userfilename = $_FILES["userfile"]["name"][$file_num];
|
||||
|
||||
$fileType = ".".pathinfo($userfilename, PATHINFO_EXTENSION);
|
||||
|
||||
|
@ -76,24 +99,6 @@ if (is_bool($res) && !$res) {
|
|||
if($notifier) {
|
||||
$notifyList = $document->getNotifyList();
|
||||
|
||||
/*
|
||||
$subject = "###SITENAME###: ".$document->getName()." - ".getMLText("new_file_email");
|
||||
$message = getMLText("new_file_email")."\r\n";
|
||||
$message .=
|
||||
getMLText("name").": ".$name."\r\n".
|
||||
getMLText("comment").": ".$comment."\r\n".
|
||||
getMLText("user").": ".$user->getFullName()." <". $user->getEmail() .">\r\n".
|
||||
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."\r\n";
|
||||
|
||||
$subject=$subject;
|
||||
$message=$message;
|
||||
|
||||
$notifier->toList($user, $document->_notifyList["users"], $subject, $message);
|
||||
foreach ($document->_notifyList["groups"] as $grp) {
|
||||
$notifier->toGroup($user, $grp, $subject, $message);
|
||||
}
|
||||
*/
|
||||
|
||||
$subject = "new_file_email_subject";
|
||||
$message = "new_file_email_body";
|
||||
$params = array();
|
||||
|
@ -110,6 +115,7 @@ if (is_bool($res) && !$res) {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
add_log_line("?name=".$name."&documentid=".$documentid);
|
||||
|
||||
|
|
|
@ -251,7 +251,7 @@ switch($command) {
|
|||
} else {
|
||||
$mfolder = $dms->getFolder($_REQUEST['folderid']);
|
||||
if($mfolder) {
|
||||
if ($mfolder->getAccessMode($user) >= M_READ) {
|
||||
if ($mfolder->getAccessMode($user) >= M_READWRITE) {
|
||||
if($folder = $dms->getFolder($_REQUEST['targetfolderid'])) {
|
||||
if($folder->getAccessMode($user) >= M_READWRITE) {
|
||||
if($mfolder->setParent($folder)) {
|
||||
|
@ -290,7 +290,7 @@ switch($command) {
|
|||
} else {
|
||||
$mdocument = $dms->getDocument($_REQUEST['docid']);
|
||||
if($mdocument) {
|
||||
if ($mdocument->getAccessMode($user) >= M_READ) {
|
||||
if ($mdocument->getAccessMode($user) >= M_READWRITE) {
|
||||
if($folder = $dms->getFolder($_REQUEST['targetfolderid'])) {
|
||||
if($folder->getAccessMode($user) >= M_READWRITE) {
|
||||
if($mdocument->setFolder($folder)) {
|
||||
|
@ -671,8 +671,8 @@ switch($command) {
|
|||
}
|
||||
}
|
||||
|
||||
if(isset($GLOBALS['SEEDDMS_HOOKS']['postAddDocument'])) {
|
||||
foreach($GLOBALS['SEEDDMS_HOOKS']['postAddDocument'] as $hookObj) {
|
||||
if(isset($GLOBALS['SEEDDMS_HOOKS']['addDocument'])) {
|
||||
foreach($GLOBALS['SEEDDMS_HOOKS']['addDocument'] as $hookObj) {
|
||||
if (method_exists($hookObj, 'postAddDocument')) {
|
||||
$hookObj->postAddDocument($document);
|
||||
}
|
||||
|
@ -682,7 +682,15 @@ switch($command) {
|
|||
$index = $indexconf['Indexer']::open($settings->_luceneDir);
|
||||
if($index) {
|
||||
$indexconf['Indexer']::init($settings->_stopWordsFile);
|
||||
$index->addDocument(new $indexconf['IndexedDocument']($dms, $document, isset($settings->_converters['fulltext']) ? $settings->_converters['fulltext'] : null, !($filesize < $settings->_maxSizeForFullText)));
|
||||
$idoc = new $indexconf['IndexedDocument']($dms, $document, isset($settings->_converters['fulltext']) ? $settings->_converters['fulltext'] : null, !($filesize < $settings->_maxSizeForFullText));
|
||||
if(isset($GLOBALS['SEEDDMS_HOOKS']['addDocument'])) {
|
||||
foreach($GLOBALS['SEEDDMS_HOOKS']['addDocument'] as $hookObj) {
|
||||
if (method_exists($hookObj, 'preIndexDocument')) {
|
||||
$hookObj->preIndexDocument($document, $idoc);
|
||||
}
|
||||
}
|
||||
}
|
||||
$index->addDocument($idoc);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -738,5 +746,38 @@ switch($command) {
|
|||
}
|
||||
break; /* }}} */
|
||||
|
||||
case 'indexdocument': /* {{{ */
|
||||
if($user && $user->isAdmin()) {
|
||||
if($settings->_enableFullSearch) {
|
||||
$document = $dms->getDocument($_REQUEST['id']);
|
||||
if($document) {
|
||||
$index = $indexconf['Indexer']::open($settings->_luceneDir);
|
||||
if($index) {
|
||||
$indexconf['Indexer']::init($settings->_stopWordsFile);
|
||||
$idoc = new $indexconf['IndexedDocument']($dms, $document, isset($settings->_converters['fulltext']) ? $settings->_converters['fulltext'] : null, false);
|
||||
if(isset($GLOBALS['SEEDDMS_HOOKS']['indexDocument'])) {
|
||||
foreach($GLOBALS['SEEDDMS_HOOKS']['indexDocument'] as $hookObj) {
|
||||
if (method_exists($hookObj, 'preIndexDocument')) {
|
||||
$hookObj->preIndexDocument(null, $document, $idoc);
|
||||
}
|
||||
}
|
||||
}
|
||||
$index->addDocument($idoc);
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode(array('success'=>true, 'message'=>getMLText('splash_document_indexed'), 'data'=>$document->getID()));
|
||||
} else {
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode(array('success'=>false, 'message'=>getMLText('error_occured'), 'data'=>$document->getID()));
|
||||
}
|
||||
} else {
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode(array('success'=>false, 'message'=>getMLText('invalid_doc_id'), 'data'=>''));
|
||||
}
|
||||
} else {
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode(array('success'=>false, 'message'=>getMLText('error_occured'), 'data'=>''));
|
||||
}
|
||||
}
|
||||
break; /* }}} */
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -27,7 +27,7 @@ include("../inc/inc.Init.php");
|
|||
include("../inc/inc.Extension.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
include("../inc/inc.Calendar.php");
|
||||
include("../inc/inc.ClassCalendar.php");
|
||||
include("../inc/inc.Authentication.php");
|
||||
|
||||
if ($user->isGuest()) {
|
||||
|
@ -43,46 +43,60 @@ if (!isset($_POST["from"]) && !(isset($_POST["frommonth"]) && isset($_POST["from
|
|||
UI::exitError(getMLText("edit_event"),getMLText("error_occured"));
|
||||
}
|
||||
|
||||
if (!isset($_POST["to"]) && !(isset($_POST["tomonth"]) && isset($_POST["today"]) && isset($_POST["toyear"])) ) {
|
||||
UI::exitError(getMLText("edit_event"),getMLText("error_occured"));
|
||||
}
|
||||
|
||||
if (!isset($_POST["name"]) || !isset($_POST["comment"]) ) {
|
||||
UI::exitError(getMLText("edit_event"),getMLText("error_occured"));
|
||||
}
|
||||
|
||||
if (!isset($_POST["eventid"])) {
|
||||
$calendar = new SeedDMS_Calendar($dms->getDB(), $user);
|
||||
|
||||
if (!isset($_POST["eventid"]) || !($event = $calendar->getEvent($_POST["eventid"]))) {
|
||||
UI::exitError(getMLText("edit_event"),getMLText("error_occured"));
|
||||
}
|
||||
|
||||
/* Not setting name or comment will leave them untouched */
|
||||
if (!isset($_POST["name"]))
|
||||
$name = null;
|
||||
else
|
||||
$name = $_POST["name"];
|
||||
|
||||
if (!isset($_POST["comment"]))
|
||||
$comment = null;
|
||||
else
|
||||
$comment = $_POST["comment"];
|
||||
|
||||
if(isset($_POST["from"])) {
|
||||
$tmp = explode('-', $_POST["from"]);
|
||||
$from = mktime(0,0,0, $tmp[1], $tmp[2], $tmp[0]);
|
||||
} else {
|
||||
$from = mktime(0,0,0, intval($_POST["frommonth"]), intval($_POST["fromday"]), intval($_POST["fromyear"]));
|
||||
UI::exitError(getMLText("edit_event"),getMLText("error_occured"));
|
||||
}
|
||||
if(isset($_POST["to"])) {
|
||||
$tmp = explode('-', $_POST["to"]);
|
||||
$to = mktime(23,59,59, $tmp[1], $tmp[2], $tmp[0]);
|
||||
} else {
|
||||
$to = mktime(23,59,59, intval($_POST["tomonth"]), intval($_POST["today"]), intval($_POST["toyear"]));
|
||||
$to = $event['stop'] - $event['start'] + $from;;
|
||||
}
|
||||
|
||||
if ($to<=$from){
|
||||
if ($to !== null && $to<=$from){
|
||||
$to = $from + 86400 -1;
|
||||
}
|
||||
|
||||
$res = editEvent($_POST["eventid"], $from, $to, $name, $comment );
|
||||
$res = $calendar->editEvent($_POST["eventid"], $from, $to, $name, $comment );
|
||||
|
||||
if(isset($_POST["ajax"]) && $_POST["ajax"]) {
|
||||
header('Content-Type: application/json');
|
||||
if (is_bool($res) && !$res)
|
||||
echo json_encode(array('success'=>false, 'message'=>getMLText('error_occured')));
|
||||
else {
|
||||
echo json_encode(array('success'=>true, 'message'=>getMLText('splash_edit_event')));
|
||||
add_log_line("?eventid=".$_POST["eventid"]."&name=".$name."&from=".$from."&to=".$to);
|
||||
}
|
||||
} else {
|
||||
if (is_bool($res) && !$res) {
|
||||
UI::exitError(getMLText("edit_event"),getMLText("error_occured"));
|
||||
}
|
||||
|
||||
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_edit_event')));
|
||||
|
||||
add_log_line("?eventid=".$_POST["eventid"]."&name=".$name."&from=".$from."&to=".$to);
|
||||
|
||||
header("Location:../out/out.Calendar.php?mode=w&day=".$_POST["fromday"]."&year=".$_POST["fromyear"]."&month=".$_POST["frommonth"]);
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -42,8 +42,9 @@ if ($folder->getAccessMode($user) < M_READWRITE) {
|
|||
if (empty($_GET["dropfolderfileform1"])) {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("invalid_target_folder"));
|
||||
}
|
||||
$dirname = $settings->_dropFolderDir.'/'.$user->getLogin()."/".$_GET["dropfolderfileform1"];
|
||||
if(!is_dir($dirname)) {
|
||||
|
||||
$dirname = realpath($settings->_dropFolderDir.'/'.$user->getLogin()."/".$_GET["dropfolderfileform1"]);
|
||||
if(strpos($dirname, realpath($settings->_dropFolderDir.'/'.$user->getLogin().'/')) !== 0 || !is_dir($dirname)) {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("invalid_dropfolder_folder"));
|
||||
}
|
||||
|
||||
|
@ -104,8 +105,14 @@ $foldercount = $doccount = 0;
|
|||
if($newfolder = $folder->addSubFolder($_GET["dropfolderfileform1"], '', $user, 1)) {
|
||||
if(!import_folder($dirname, $newfolder))
|
||||
$session->setSplashMsg(array('type'=>'error', 'msg'=>getMLText('error_importfs')));
|
||||
else
|
||||
else {
|
||||
if(isset($_GET['remove']) && $_GET["remove"]) {
|
||||
$cmd = 'rm -rf '.$dirname;
|
||||
$ret = null;
|
||||
system($cmd, $ret);
|
||||
}
|
||||
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_importfs', array('docs'=>$doccount, 'folders'=>$foldercount))));
|
||||
}
|
||||
} else {
|
||||
$session->setSplashMsg(array('type'=>'error', 'msg'=>getMLText('error_importfs')));
|
||||
}
|
||||
|
|
77
op/op.PdfPreview.php
Normal file
77
op/op.PdfPreview.php
Normal file
|
@ -0,0 +1,77 @@
|
|||
<?php
|
||||
// MyDMS. Document Management System
|
||||
// Copyright (C) 2002-2005 Markus Westphal
|
||||
// Copyright (C) 2006-2008 Malcolm Cowe
|
||||
// Copyright (C) 2010 Matteo Lucarelli
|
||||
// Copyright (C) 2010-2016 Uwe Steinmann
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation; either version 2 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.LogInit.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.Init.php");
|
||||
include("../inc/inc.Extension.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
include("../inc/inc.Authentication.php");
|
||||
|
||||
/**
|
||||
* Include class to preview documents
|
||||
*/
|
||||
require_once("SeedDMS/Preview.php");
|
||||
|
||||
$documentid = $_GET["documentid"];
|
||||
if (!isset($documentid) || !is_numeric($documentid) || intval($documentid)<1) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$document = $dms->getDocument($documentid);
|
||||
if (!is_object($document)) {
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($document->getAccessMode($user) < M_READ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
if(isset($_GET['version'])) {
|
||||
$version = $_GET["version"];
|
||||
if (!is_numeric($version))
|
||||
exit;
|
||||
if(intval($version)<1)
|
||||
$object = $document->getLatestContent();
|
||||
else
|
||||
$object = $document->getContentByVersion($version);
|
||||
} elseif(isset($_GET['file'])) {
|
||||
$file = $_GET['file'];
|
||||
if (!is_numeric($file) || intval($file)<1)
|
||||
exit;
|
||||
$object = $document->getDocumentFile($file);
|
||||
} else {
|
||||
exit;
|
||||
}
|
||||
|
||||
if (!is_object($object)) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$previewer = new SeedDMS_Preview_PdfPreviewer($settings->_cacheDir);
|
||||
if(!$previewer->hasPreview($object))
|
||||
$previewer->createPreview($object);
|
||||
header('Content-Type: application/pdf');
|
||||
$previewer->getPreview($object);
|
||||
|
|
@ -27,7 +27,7 @@ include("../inc/inc.Init.php");
|
|||
include("../inc/inc.Extension.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
include("../inc/inc.Calendar.php");
|
||||
include("../inc/inc.ClassCalendar.php");
|
||||
include("../inc/inc.Authentication.php");
|
||||
|
||||
/* Check if the form data comes from a trusted request */
|
||||
|
@ -39,13 +39,14 @@ if (!isset($_POST["eventid"]) || !is_numeric($_POST["eventid"]) || intval($_POST
|
|||
UI::exitError(getMLText("edit_event"),getMLText("error_occured"));
|
||||
}
|
||||
|
||||
$event=getEvent($_POST["eventid"]);
|
||||
$calendar = new SeedDMS_Calendar($dms->getDB(), $user);
|
||||
$event=$calendar->getEvent($_POST["eventid"]);
|
||||
|
||||
if (($user->getID()!=$event["userID"])&&(!$user->isAdmin())){
|
||||
UI::exitError(getMLText("edit_event"),getMLText("access_denied"));
|
||||
}
|
||||
|
||||
$res = delEvent($_POST["eventid"]);
|
||||
$res = $calendar->delEvent($_POST["eventid"]);
|
||||
|
||||
if (is_bool($res) && !$res) {
|
||||
UI::exitError(getMLText("edit_event"),getMLText("error_occured"));
|
||||
|
|
|
@ -58,14 +58,30 @@ if ($document->isLocked()) {
|
|||
else $document->setLocked(false);
|
||||
}
|
||||
|
||||
if(isset($_POST['fineuploaderuuids']) && $_POST['fineuploaderuuids']) {
|
||||
$uuids = explode(';', $_POST['fineuploaderuuids']);
|
||||
$names = explode(';', $_POST['fineuploadernames']);
|
||||
$uuid = $uuids[0];
|
||||
$fullfile = $settings->_stagingDir.'/'.basename($uuid);
|
||||
if(file_exists($fullfile)) {
|
||||
$finfo = finfo_open(FILEINFO_MIME_TYPE);
|
||||
$mimetype = finfo_file($finfo, $fullfile);
|
||||
$_FILES["userfile"]['tmp_name'] = $fullfile;
|
||||
$_FILES["userfile"]['type'] = $mimetype;
|
||||
$_FILES["userfile"]['name'] = isset($names[0]) ? $names[0] : $uuid;
|
||||
$_FILES["userfile"]['size'] = filesize($fullfile);
|
||||
$_FILES["userfile"]['error'] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($_POST["comment"]))
|
||||
$comment = $_POST["comment"];
|
||||
else
|
||||
$comment = "";
|
||||
|
||||
if ($_FILES['userfile']['error'] == 0) {
|
||||
if(!is_uploaded_file($_FILES["userfile"]["tmp_name"]))
|
||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured"));
|
||||
// if(!is_uploaded_file($_FILES["userfile"]["tmp_name"]))
|
||||
// UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured")."lsajdflk");
|
||||
|
||||
if($_FILES["userfile"]["size"] == 0)
|
||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("uploading_zerosize"));
|
||||
|
@ -221,12 +237,27 @@ if ($_FILES['userfile']['error'] == 0) {
|
|||
$attributes = array();
|
||||
}
|
||||
|
||||
if(isset($GLOBALS['SEEDDMS_HOOKS']['updateDocument'])) {
|
||||
foreach($GLOBALS['SEEDDMS_HOOKS']['updateDocument'] as $hookObj) {
|
||||
if (method_exists($hookObj, 'preUpdateDocument')) {
|
||||
$hookObj->preUpdateDocument(array('name'=>&$name, 'comment'=>&$comment));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$filesize = SeedDMS_Core_File::fileSize($userfiletmp);
|
||||
$contentResult=$document->addContent($comment, $user, $userfiletmp, basename($userfilename), $fileType, $userfiletype, $reviewers, $approvers, $version=0, $attributes, $workflow);
|
||||
if (is_bool($contentResult) && !$contentResult) {
|
||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured"));
|
||||
}
|
||||
else {
|
||||
if(isset($GLOBALS['SEEDDMS_HOOKS']['updateDocument'])) {
|
||||
foreach($GLOBALS['SEEDDMS_HOOKS']['updateDocument'] as $hookObj) {
|
||||
if (method_exists($hookObj, 'postUpdateDocument')) {
|
||||
$hookObj->postUpdateDocument($document);
|
||||
}
|
||||
}
|
||||
}
|
||||
if($settings->_enableFullSearch) {
|
||||
$index = $indexconf['Indexer']::open($settings->_luceneDir);
|
||||
if($index) {
|
||||
|
@ -235,7 +266,15 @@ if ($_FILES['userfile']['error'] == 0) {
|
|||
$index->delete($hit->id);
|
||||
}
|
||||
$indexconf['Indexer']::init($settings->_stopWordsFile);
|
||||
$index->addDocument(new $indexconf['IndexedDocument']($dms, $document, isset($settings->_converters['fulltext']) ? $settings->_converters['fulltext'] : null, !($filesize < $settings->_maxSizeForFullText)));
|
||||
$idoc = new $indexconf['IndexedDocument']($dms, $document, isset($settings->_converters['fulltext']) ? $settings->_converters['fulltext'] : null, !($filesize < $settings->_maxSizeForFullText));
|
||||
if(isset($GLOBALS['SEEDDMS_HOOKS']['updateDocument'])) {
|
||||
foreach($GLOBALS['SEEDDMS_HOOKS']['updateDocument'] as $hookObj) {
|
||||
if (method_exists($hookObj, 'preIndexDocument')) {
|
||||
$hookObj->preIndexDocument(null, $document, $idoc);
|
||||
}
|
||||
}
|
||||
}
|
||||
$index->addDocument($idoc);
|
||||
$index->commit();
|
||||
}
|
||||
}
|
||||
|
|
66
op/op.UploadChunks.php
Normal file
66
op/op.UploadChunks.php
Normal file
|
@ -0,0 +1,66 @@
|
|||
<?php
|
||||
// MyDMS. Document Management System
|
||||
// Copyright (C) 2002-2005 Markus Westphal
|
||||
// Copyright (C) 2006-2008 Malcolm Cowe
|
||||
// Copyright (C) 2010 Matteo Lucarelli
|
||||
// Copyright (C) 2010-2106 Uwe Steinmann
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation; either version 2 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.LogInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.Init.php");
|
||||
include("../inc/inc.Extension.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
include("../inc/inc.Authentication.php");
|
||||
|
||||
//print_r($_FILES);
|
||||
//print_r($_POST);
|
||||
//exit;
|
||||
|
||||
$file_param_name = 'qqfile';
|
||||
$file_name = $_FILES[ $file_param_name ][ 'name' ];
|
||||
$source_file_path = $_FILES[ $file_param_name ][ 'tmp_name' ];
|
||||
$fileId = $_POST['qquuid'];
|
||||
$partitionIndex = (int) $_POST['qqpartindex'];
|
||||
$totalparts = (int) $_POST['qqtotalparts'];
|
||||
$target_file_path =$settings->_stagingDir.$fileId."-".$partitionIndex;
|
||||
if( move_uploaded_file( $source_file_path, $target_file_path ) ) {
|
||||
if($partitionIndex+1 == $totalparts) {
|
||||
if($fpnew = fopen($settings->_stagingDir.$fileId, 'w+')) {
|
||||
for($i=0; $i<$totalparts; $i++) {
|
||||
$content = file_get_contents($settings->_stagingDir.$fileId."-".$i, 'r');
|
||||
fwrite($fpnew, $content);
|
||||
unlink($settings->_stagingDir.$fileId."-".$i);
|
||||
}
|
||||
fclose($fpnew);
|
||||
header("Content-Type: text/plain");
|
||||
echo json_encode(array('success'=>true));
|
||||
exit;
|
||||
} else {
|
||||
header("Content-Type: text/plain");
|
||||
echo json_encode(array('success'=>false, 'error'=>'Could not upload file'));
|
||||
exit;
|
||||
}
|
||||
}
|
||||
header("Content-Type: text/plain");
|
||||
echo json_encode(array('success'=>true));
|
||||
exit;
|
||||
}
|
||||
header("Content-Type: text/plain");
|
||||
echo json_encode(array('success'=>false, 'error'=>'Could not upload file'));
|
||||
?>
|
|
@ -32,6 +32,7 @@ if ($user->isGuest()) {
|
|||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));
|
||||
if($view) {
|
||||
$view->setParam('strictformcheck', $settings->_strictFormCheck);
|
||||
$view($_GET);
|
||||
exit;
|
||||
}
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.LogInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.Init.php");
|
||||
include("../inc/inc.Extension.php");
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.Calendar.php");
|
||||
include("../inc/inc.ClassCalendar.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.Init.php");
|
||||
include("../inc/inc.Extension.php");
|
||||
|
@ -26,26 +26,51 @@ include("../inc/inc.DBInit.php");
|
|||
include("../inc/inc.ClassUI.php");
|
||||
include("../inc/inc.Authentication.php");
|
||||
|
||||
if ($_GET["mode"]) $mode=$_GET["mode"];
|
||||
if (isset($_GET["start"])) $start=$_GET["start"];
|
||||
else $start = '';
|
||||
if (isset($_GET["end"])) $end=$_GET["end"];
|
||||
else $end = '';
|
||||
|
||||
// get required date else use current
|
||||
$currDate = time();
|
||||
if(isset($_GET['documentid']) && $_GET['documentid'] && is_numeric($_GET['documentid'])) {
|
||||
$document = $dms->getDocument($_GET["documentid"]);
|
||||
if (!is_object($document)) {
|
||||
$view->exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
|
||||
}
|
||||
} else
|
||||
$document = null;
|
||||
|
||||
if (isset($_GET["year"])&&is_numeric($_GET["year"])) $year=$_GET["year"];
|
||||
else $year = (int)date("Y", $currDate);
|
||||
if (isset($_GET["month"])&&is_numeric($_GET["month"])) $month=$_GET["month"];
|
||||
else $month = (int)date("m", $currDate);
|
||||
if (isset($_GET["day"])&&is_numeric($_GET["day"])) $day=$_GET["day"];
|
||||
else $day = (int)date("d", $currDate);
|
||||
$calendar = new SeedDMS_Calendar($dms->getDB(), $user);
|
||||
|
||||
if(isset($_GET['eventid']) && $_GET['eventid'] && is_numeric($_GET['eventid'])) {
|
||||
$event = $calendar->getEvent($_GET["eventid"]);
|
||||
} else
|
||||
$event = null;
|
||||
|
||||
if(isset($_GET['version']) && $_GET['version'] && is_numeric($_GET['version'])) {
|
||||
$content = $document->getContentByVersion($_GET['version']);
|
||||
} else
|
||||
$content = null;
|
||||
|
||||
if(isset($_GET['eventtype']) && $_GET['eventtype']) {
|
||||
$eventtype = $_GET['eventtype'];
|
||||
} else
|
||||
$eventtype = 'regular';
|
||||
|
||||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));
|
||||
if($view) {
|
||||
$view->setParam('mode', $mode);
|
||||
$view->setParam('year', $year);
|
||||
$view->setParam('month', $month);
|
||||
$view->setParam('day', $day);
|
||||
$view->setParam('firstdayofweek', $settings->_firstDayOfWeek);
|
||||
$view->setParam('calendar', $calendar);
|
||||
$view->setParam('start', $start);
|
||||
$view->setParam('end', $end);
|
||||
$view->setParam('document', $document);
|
||||
$view->setParam('version', $content);
|
||||
$view->setParam('event', $event);
|
||||
$view->setParam('strictformcheck', $settings->_strictFormCheck);
|
||||
$view->setParam('eventtype', $eventtype);
|
||||
$view->setParam('cachedir', $settings->_cacheDir);
|
||||
$view->setParam('previewWidthList', $settings->_previewWidthList);
|
||||
$view->setParam('previewWidthDetail', $settings->_previewWidthDetail);
|
||||
$view->setParam('timeout', $settings->_cmdTimeout);
|
||||
$view($_GET);
|
||||
exit;
|
||||
}
|
||||
|
|
|
@ -69,6 +69,7 @@ if($view) {
|
|||
$view->setParam('index', $index);
|
||||
$view->setParam('indexconf', $indexconf);
|
||||
$view->setParam('recreate', (isset($_GET['create']) && $_GET['create']==1));
|
||||
$view->setParam('forceupdate', (isset($_GET['forceupdate']) && $_GET['forceupdate']==1));
|
||||
$view->setParam('folder', $folder);
|
||||
$view->setParam('converters', $settings->_converters['fulltext']);
|
||||
$view->setParam('timeout', $settings->_cmdTimeout);
|
||||
|
|
|
@ -3,6 +3,7 @@ define('USE_PHP_SESSION', 0);
|
|||
|
||||
include("../inc/inc.Settings.php");
|
||||
require_once "SeedDMS/Core.php";
|
||||
require_once "SeedDMS/Preview.php";
|
||||
|
||||
$db = new SeedDMS_Core_DatabaseAccess($settings->_dbDriver, $settings->_dbHostname, $settings->_dbUser, $settings->_dbPass, $settings->_dbDatabase);
|
||||
$db->connect() or die ("Could not connect to db-server \"" . $settings->_dbHostname . "\"");
|
||||
|
@ -52,8 +53,9 @@ if(USE_PHP_SESSION) {
|
|||
}
|
||||
|
||||
|
||||
require 'Slim/Slim.php';
|
||||
\Slim\Slim::registerAutoloader();
|
||||
#require 'Slim/Slim.php';
|
||||
require "vendor/autoload.php";
|
||||
#\Slim\Slim::registerAutoloader();
|
||||
|
||||
function doLogin() { /* {{{ */
|
||||
global $app, $dms, $userobj, $session, $settings;
|
||||
|
|
|
@ -54,6 +54,14 @@ ul.jqtree-tree li.jqtree-selected > .jqtree-element:hover {
|
|||
font-weight: bold;
|
||||
}
|
||||
|
||||
td.today {
|
||||
background-color: rgb(255, 200, 0);
|
||||
}
|
||||
|
||||
td.event {
|
||||
background-color: rgb(0, 200, 255);
|
||||
}
|
||||
|
||||
.wordbreak {
|
||||
word-break: break-word;
|
||||
}
|
||||
|
@ -206,6 +214,45 @@ div.popupbox span.closepopupbox {
|
|||
top: 0px;
|
||||
}
|
||||
|
||||
ul.qq-upload-list {
|
||||
/*
|
||||
background-color: #fff;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #cccccc;
|
||||
*/
|
||||
}
|
||||
|
||||
ul.qq-upload-list li {
|
||||
display: inline-block;
|
||||
margin: 5px 5px 5px 0;
|
||||
padding: 5px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #cccccc;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
ul.qq-upload-list li img {
|
||||
display: block;
|
||||
}
|
||||
|
||||
ul.qq-upload-list li span {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.qq-upload-button {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.qq-upload-drop-area {
|
||||
display: inline-block;
|
||||
width: 200px;
|
||||
height: 22px;
|
||||
padding: 3px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #cccccc;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.nav-tabs > li {
|
||||
float:none;
|
||||
|
|
|
@ -385,7 +385,7 @@ $(document).ready( function() {
|
|||
});
|
||||
}); /* }}} */
|
||||
|
||||
$('div.ajax').on('update', function(event, param1) { /* {{{ */
|
||||
$('div.ajax').on('update', function(event, param1, callback) { /* {{{ */
|
||||
var element = $(this);
|
||||
var url = '';
|
||||
var href = element.data('href');
|
||||
|
@ -397,6 +397,9 @@ $(document).ready( function() {
|
|||
url = href;
|
||||
if(typeof param1 === 'object') {
|
||||
for(var key in param1) {
|
||||
if(key == 'callback')
|
||||
callback = param1[key];
|
||||
else
|
||||
url += "&"+key+"="+param1[key];
|
||||
}
|
||||
} else {
|
||||
|
@ -432,6 +435,8 @@ $(document).ready( function() {
|
|||
}
|
||||
}
|
||||
}); /* }}} */
|
||||
if(callback)
|
||||
callback.call();
|
||||
});
|
||||
}); /* }}} */
|
||||
|
||||
|
|
21
styles/bootstrap/fine-uploader/LICENSE
Normal file
21
styles/bootstrap/fine-uploader/LICENSE
Normal file
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2013-present, Widen Enterprises, Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
BIN
styles/bootstrap/fine-uploader/continue.gif
Normal file
BIN
styles/bootstrap/fine-uploader/continue.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 221 B |
1093
styles/bootstrap/fine-uploader/dnd.js
Normal file
1093
styles/bootstrap/fine-uploader/dnd.js
Normal file
File diff suppressed because it is too large
Load Diff
1
styles/bootstrap/fine-uploader/dnd.js.map
Normal file
1
styles/bootstrap/fine-uploader/dnd.js.map
Normal file
File diff suppressed because one or more lines are too long
3
styles/bootstrap/fine-uploader/dnd.min.js
vendored
Normal file
3
styles/bootstrap/fine-uploader/dnd.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
styles/bootstrap/fine-uploader/dnd.min.js.map
Normal file
1
styles/bootstrap/fine-uploader/dnd.min.js.map
Normal file
File diff suppressed because one or more lines are too long
BIN
styles/bootstrap/fine-uploader/edit.gif
Normal file
BIN
styles/bootstrap/fine-uploader/edit.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 150 B |
471
styles/bootstrap/fine-uploader/fine-uploader-gallery.css
Normal file
471
styles/bootstrap/fine-uploader/fine-uploader-gallery.css
Normal file
|
@ -0,0 +1,471 @@
|
|||
/* ---------------------------------------
|
||||
/* Fine Uploader Gallery View Styles
|
||||
/* ---------------------------------------
|
||||
|
||||
|
||||
/* Buttons
|
||||
------------------------------------------ */
|
||||
.qq-gallery .qq-btn
|
||||
{
|
||||
float: right;
|
||||
border: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* Upload Button
|
||||
------------------------------------------ */
|
||||
.qq-gallery .qq-upload-button {
|
||||
display: inline;
|
||||
width: 105px;
|
||||
padding: 7px 10px;
|
||||
float: left;
|
||||
text-align: center;
|
||||
background: #00ABC7;
|
||||
color: #FFFFFF;
|
||||
border-radius: 2px;
|
||||
border: 1px solid #37B7CC;
|
||||
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.37) inset,
|
||||
1px 0 1px rgba(255, 255, 255, 0.07) inset,
|
||||
0 1px 0 rgba(0, 0, 0, 0.36),
|
||||
0 -2px 12px rgba(0, 0, 0, 0.08) inset
|
||||
}
|
||||
.qq-gallery .qq-upload-button-hover {
|
||||
background: #33B6CC;
|
||||
}
|
||||
.qq-gallery .qq-upload-button-focus {
|
||||
outline: 1px dotted #000000;
|
||||
}
|
||||
|
||||
|
||||
/* Drop Zone
|
||||
------------------------------------------ */
|
||||
.qq-gallery.qq-uploader {
|
||||
position: relative;
|
||||
min-height: 200px;
|
||||
max-height: 490px;
|
||||
overflow-y: hidden;
|
||||
width: inherit;
|
||||
border-radius: 6px;
|
||||
border: 1px dashed #CCCCCC;
|
||||
background-color: #FAFAFA;
|
||||
padding: 20px;
|
||||
}
|
||||
.qq-gallery.qq-uploader:before {
|
||||
content: attr(qq-drop-area-text) " ";
|
||||
position: absolute;
|
||||
font-size: 200%;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
top: 45%;
|
||||
opacity: 0.25;
|
||||
filter: alpha(opacity=25);
|
||||
}
|
||||
.qq-gallery .qq-upload-drop-area, .qq-upload-extra-drop-area {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-height: 30px;
|
||||
z-index: 2;
|
||||
background: #F9F9F9;
|
||||
border-radius: 4px;
|
||||
text-align: center;
|
||||
}
|
||||
.qq-gallery .qq-upload-drop-area span {
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: 100%;
|
||||
margin-top: -8px;
|
||||
font-size: 16px;
|
||||
}
|
||||
.qq-gallery .qq-upload-extra-drop-area {
|
||||
position: relative;
|
||||
margin-top: 50px;
|
||||
font-size: 16px;
|
||||
padding-top: 30px;
|
||||
height: 20px;
|
||||
min-height: 40px;
|
||||
}
|
||||
.qq-gallery .qq-upload-drop-area-active {
|
||||
background: #FDFDFD;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.qq-gallery .qq-upload-list {
|
||||
margin: 0;
|
||||
padding: 10px 0 0;
|
||||
list-style: none;
|
||||
max-height: 450px;
|
||||
overflow-y: auto;
|
||||
clear: both;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
|
||||
/* Uploaded Elements
|
||||
------------------------------------------ */
|
||||
.qq-gallery .qq-upload-list li {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
max-width: 120px;
|
||||
margin: 0 25px 25px 0;
|
||||
padding: 0;
|
||||
line-height: 16px;
|
||||
font-size: 13px;
|
||||
color: #424242;
|
||||
background-color: #FFFFFF;
|
||||
border-radius: 2px;
|
||||
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.22);
|
||||
vertical-align: top;
|
||||
|
||||
/* to ensure consistent size of tiles - may need to change if qq-max-size attr on preview img changes */
|
||||
height: 186px;
|
||||
}
|
||||
|
||||
.qq-gallery .qq-upload-spinner,
|
||||
.qq-gallery .qq-upload-size,
|
||||
.qq-gallery .qq-upload-retry,
|
||||
.qq-gallery .qq-upload-failed-text,
|
||||
.qq-gallery .qq-upload-delete,
|
||||
.qq-gallery .qq-upload-pause,
|
||||
.qq-gallery .qq-upload-continue {
|
||||
display: inline;
|
||||
}
|
||||
.qq-gallery .qq-upload-retry:hover,
|
||||
.qq-gallery .qq-upload-delete:hover,
|
||||
.qq-gallery .qq-upload-pause:hover,
|
||||
.qq-gallery .qq-upload-continue:hover {
|
||||
background-color: transparent;
|
||||
}
|
||||
.qq-gallery .qq-upload-delete,
|
||||
.qq-gallery .qq-upload-pause,
|
||||
.qq-gallery .qq-upload-continue,
|
||||
.qq-gallery .qq-upload-cancel {
|
||||
cursor: pointer;
|
||||
}
|
||||
.qq-gallery .qq-upload-delete,
|
||||
.qq-gallery .qq-upload-pause,
|
||||
.qq-gallery .qq-upload-continue {
|
||||
border:none;
|
||||
background: none;
|
||||
color: #00A0BA;
|
||||
font-size: 12px;
|
||||
padding: 0;
|
||||
}
|
||||
/* to ensure consistent size of tiles - only display status text before auto-retry or after failure */
|
||||
.qq-gallery .qq-upload-status-text {
|
||||
color: #333333;
|
||||
font-size: 12px;
|
||||
padding-left: 3px;
|
||||
padding-top: 2px;
|
||||
width: inherit;
|
||||
display: none;
|
||||
width: 108px;
|
||||
}
|
||||
.qq-gallery .qq-upload-fail .qq-upload-status-text {
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow-x: hidden;
|
||||
display: block;
|
||||
}
|
||||
.qq-gallery .qq-upload-retrying .qq-upload-status-text {
|
||||
display: inline-block;
|
||||
}
|
||||
.qq-gallery .qq-upload-retrying .qq-progress-bar-container {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.qq-gallery .qq-upload-cancel {
|
||||
background-color: #525252;
|
||||
color: #F7F7F7;
|
||||
font-weight: bold;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-radius: 12px;
|
||||
border: none;
|
||||
height: 22px;
|
||||
width: 22px;
|
||||
padding: 4px;
|
||||
position: absolute;
|
||||
right: -5px;
|
||||
top: -6px;
|
||||
margin: 0;
|
||||
line-height: 17px;
|
||||
}
|
||||
.qq-gallery .qq-upload-cancel:hover {
|
||||
background-color: #525252;
|
||||
}
|
||||
.qq-gallery .qq-upload-retry {
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
top: 30px;
|
||||
left: 50%;
|
||||
margin-left: -31px;
|
||||
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.37) inset,
|
||||
1px 0 1px rgba(255, 255, 255, 0.07) inset,
|
||||
0 4px 4px rgba(0, 0, 0, 0.5),
|
||||
0 -2px 12px rgba(0, 0, 0, 0.08) inset;
|
||||
padding: 3px 4px;
|
||||
border: 1px solid #d2ddc7;
|
||||
border-radius: 2px;
|
||||
color: inherit;
|
||||
background-color: #EBF6E0;
|
||||
z-index: 1;
|
||||
}
|
||||
.qq-gallery .qq-upload-retry:hover {
|
||||
background-color: #f7ffec;
|
||||
}
|
||||
|
||||
.qq-gallery .qq-file-info {
|
||||
padding: 10px 6px 4px;
|
||||
margin-top: -3px;
|
||||
border-radius: 0 0 2px 2px;
|
||||
text-align: left;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.qq-gallery .qq-file-info .qq-file-name {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.qq-gallery .qq-upload-file {
|
||||
display: block;
|
||||
margin-right: 0;
|
||||
margin-bottom: 3px;
|
||||
width: auto;
|
||||
|
||||
/* to ensure consistent size of tiles - constrain text to single line */
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
.qq-gallery .qq-upload-spinner {
|
||||
display: inline-block;
|
||||
background: url("loading.gif");
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
margin-left: -7px;
|
||||
top: 53px;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
.qq-gallery .qq-drop-processing {
|
||||
display: block;
|
||||
}
|
||||
.qq-gallery .qq-drop-processing-spinner {
|
||||
display: inline-block;
|
||||
background: url("processing.gif");
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
.qq-gallery .qq-upload-failed-text {
|
||||
display: none;
|
||||
font-style: italic;
|
||||
font-weight: bold;
|
||||
}
|
||||
.qq-gallery .qq-upload-failed-icon {
|
||||
display:none;
|
||||
width:15px;
|
||||
height:15px;
|
||||
vertical-align:text-bottom;
|
||||
}
|
||||
.qq-gallery .qq-upload-fail .qq-upload-failed-text {
|
||||
display: inline;
|
||||
}
|
||||
.qq-gallery .qq-upload-retrying .qq-upload-failed-text {
|
||||
display: inline;
|
||||
}
|
||||
.qq-gallery .qq-upload-list li.qq-upload-success {
|
||||
background-color: #F2F7ED;
|
||||
}
|
||||
.qq-gallery .qq-upload-list li.qq-upload-fail {
|
||||
background-color: #F5EDED;
|
||||
box-shadow: 0 0 1px 0 red;
|
||||
border: 0;
|
||||
}
|
||||
.qq-gallery .qq-progress-bar {
|
||||
display: block;
|
||||
background: #00abc7;
|
||||
width: 0%;
|
||||
height: 15px;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
|
||||
.qq-gallery .qq-total-progress-bar {
|
||||
height: 25px;
|
||||
border-radius: 9px;
|
||||
}
|
||||
|
||||
.qq-gallery .qq-total-progress-bar-container {
|
||||
margin-left: 9px;
|
||||
display: inline;
|
||||
float: right;
|
||||
width: 500px;
|
||||
}
|
||||
|
||||
.qq-gallery .qq-upload-size {
|
||||
float: left;
|
||||
font-size: 11px;
|
||||
color: #929292;
|
||||
margin-bottom: 3px;
|
||||
margin-right: 0;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.qq-gallery INPUT.qq-edit-filename {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
filter: alpha(opacity=0);
|
||||
z-index: -1;
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
|
||||
}
|
||||
|
||||
.qq-gallery .qq-upload-file.qq-editable {
|
||||
cursor: pointer;
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
.qq-gallery .qq-edit-filename-icon.qq-editable {
|
||||
display: inline-block;
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.qq-gallery INPUT.qq-edit-filename.qq-editing {
|
||||
position: static;
|
||||
height: 28px;
|
||||
width: 90px;
|
||||
width: -moz-available;
|
||||
padding: 0 8px;
|
||||
margin-bottom: 3px;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 2px;
|
||||
font-size: 13px;
|
||||
|
||||
opacity: 1;
|
||||
filter: alpha(opacity=100);
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
|
||||
}
|
||||
|
||||
.qq-gallery .qq-edit-filename-icon {
|
||||
display: none;
|
||||
background: url("edit.gif");
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
.qq-gallery .qq-delete-icon {
|
||||
background: url("trash.gif");
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
vertical-align: sub;
|
||||
display: inline-block;
|
||||
}
|
||||
.qq-gallery .qq-retry-icon {
|
||||
background: url("retry.gif");
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
vertical-align: sub;
|
||||
display: inline-block;
|
||||
float: none;
|
||||
}
|
||||
.qq-gallery .qq-continue-icon {
|
||||
background: url("continue.gif");
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
vertical-align: sub;
|
||||
display: inline-block;
|
||||
}
|
||||
.qq-gallery .qq-pause-icon {
|
||||
background: url("pause.gif");
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
vertical-align: sub;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.qq-gallery .qq-hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
/* Thumbnail
|
||||
------------------------------------------ */
|
||||
.qq-gallery .qq-in-progress .qq-thumbnail-wrapper {
|
||||
/* makes the spinner on top of the thumbnail more visible */
|
||||
opacity: 0.5;
|
||||
filter: alpha(opacity=50);
|
||||
}
|
||||
.qq-gallery .qq-thumbnail-wrapper {
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
|
||||
/* to ensure consistent size of tiles - should match qq-max-size attribute value on qq-thumbnail-selector IMG element */
|
||||
height: 120px;
|
||||
width: 120px;
|
||||
}
|
||||
.qq-gallery .qq-thumbnail-selector {
|
||||
border-radius: 2px 2px 0 0;
|
||||
bottom: 0;
|
||||
|
||||
/* we will override this in the :root thumbnail selector (to help center the preview) for everything other than IE8 */
|
||||
top: 0;
|
||||
|
||||
/* center the thumb horizontally in the tile */
|
||||
margin:auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* hack to ensure we don't try to center preview in IE8, since -ms-filter doesn't mimic translateY as expected in all cases */
|
||||
:root *> .qq-gallery .qq-thumbnail-selector {
|
||||
/* vertically center preview image on tile */
|
||||
position: relative;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
-moz-transform: translateY(-50%);
|
||||
-ms-transform: translateY(-50%);
|
||||
-webkit-transform: translateY(-50%);
|
||||
}
|
||||
|
||||
/* <dialog> element styles */
|
||||
.qq-gallery.qq-uploader DIALOG {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.qq-gallery.qq-uploader DIALOG[open] {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.qq-gallery.qq-uploader DIALOG {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.qq-gallery.qq-uploader DIALOG[open] {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.qq-gallery.qq-uploader DIALOG .qq-dialog-buttons {
|
||||
text-align: center;
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
.qq-gallery.qq-uploader DIALOG .qq-dialog-buttons BUTTON {
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.qq-gallery.qq-uploader DIALOG .qq-dialog-message-selector {
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.qq-gallery .qq-uploader DIALOG::backdrop {
|
||||
background-color: rgba(0, 0, 0, 0.7);
|
||||
}
|
1
styles/bootstrap/fine-uploader/fine-uploader-gallery.min.css
vendored
Normal file
1
styles/bootstrap/fine-uploader/fine-uploader-gallery.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
{"version":3,"sources":["_build/fine-uploader-gallery.css"],"names":[],"mappings":"AAOA,oBAEI,MAAO,MACP,YACA,QAAS,EACT,OAAQ,EACR,WAAY,KAKhB,8BACI,QAAS,OACT,MAAO,MACP,QAAS,IAAI,KACb,MAAO,KACP,WAAY,OACZ,WAAY,QACZ,MAAO,KACP,cAAe,IACf,OAAQ,IAAI,MAAM,QAClB,WAAY,EAAE,IAAI,IAAI,sBAA0B,MAAO,IAAI,EAAE,IAAI,sBAA0B,MAAO,EAAE,IAAI,EAAE,gBAAqB,EAAE,KAAK,KAAK,gBAAoB,MAEnK,oCACI,WAAY,QAEhB,oCACI,QAAoB,KAAP,OAAJ,IAMb,wBACI,SAAU,SACV,WAAY,MACZ,WAAY,MACZ,WAAY,OACZ,MAAO,QACP,cAAe,IACf,OAAQ,IAAI,OAAO,KACnB,iBAAkB,QAClB,QAAS,KAEb,+BACI,QAAS,wBAAwB,IACjC,SAAU,SACV,UAAW,KACX,KAAM,EACN,MAAO,KACP,WAAY,OACZ,IAAK,IACL,QAAS,IACT,OAAQ,kBAEZ,iCAAkC,2BAC9B,SAAU,SACV,IAAK,EACL,KAAM,EACN,MAAO,KACP,OAAQ,KACR,WAAY,KACZ,QAAS,EACT,WAAY,QACZ,cAAe,IACf,WAAY,OAEhB,sCACI,QAAS,MACT,SAAU,SACV,IAAK,IACL,MAAO,KACP,WAAY,KACZ,UAAW,KAEf,uCACI,SAAU,SACV,WAAY,KACZ,UAAW,KACX,YAAa,KACb,OAAQ,KACR,WAAY,KAEhB,wCACI,WAAY,QACZ,cAAe,IAEnB,4BACI,OAAQ,EACR,QAAS,KAAK,EAAE,EAChB,WAAY,KACZ,WAAY,MACZ,WAAY,KACZ,MAAO,KACP,WAAY,KAMhB,+BACI,QAAS,aACT,SAAU,SACV,UAAW,MACX,OAAQ,EAAE,KAAK,KAAK,EACpB,QAAS,EACT,YAAa,KACb,UAAW,KACX,MAAO,QACP,iBAAkB,KAClB,cAAe,IACf,WAAY,EAAE,IAAI,IAAI,EAAE,gBACxB,eAAgB,IAGhB,OAA8J,MASlK,gCAFA,8BADA,mCAEA,6BAHA,6BADA,4BADA,+BAOI,QAAS,OAKb,sCAFA,oCACA,mCAFA,mCAII,iBAAkB,YAKtB,8BADA,gCAFA,8BACA,6BAGI,OAAQ,QAIZ,gCAFA,8BACA,6BAEI,YACA,eACA,MAAO,QACP,UAAW,KACX,QAAS,EAGb,mCACI,MAAO,KACP,UAAW,KACX,aAAc,IACd,YAAa,IAEb,QAAS,KACT,MAAO,MAEX,mDACI,cAAe,SACf,YAAa,OACb,WAAY,OACZ,QAAS,MAEb,uDACI,QAAS,aAEb,2DACI,QAAS,KAGb,8BACI,iBAAkB,QAClB,MAAO,QACP,YAAa,IACb,YAAa,MAAO,UAAW,WAC/B,cAAe,KACf,YACA,OAAQ,KACR,MAAO,KACP,QAAS,IACT,SAAU,SACV,MAAO,KACP,IAAK,KACL,OAAQ,EACR,YAAa,KAEjB,oCACI,iBAAkB,QAEtB,6BACI,OAAQ,QACR,SAAU,SACV,IAAK,KACL,KAAM,IACN,YAAa,MACb,WAAY,EAAE,IAAI,IAAI,sBAA0B,MAAO,IAAI,EAAE,IAAI,sBAA0B,MAAO,EAAE,IAAI,IAAI,eAAoB,EAAE,KAAK,KAAK,gBAAoB,MAChK,QAAS,IAAI,IACb,OAAQ,IAAI,MAAM,QAClB,cAAe,IACf,MAAO,QACP,iBAAkB,QAClB,QAAS,EAEb,mCACI,iBAAkB,QAGtB,0BACI,QAAS,KAAK,IAAI,IAClB,WAAY,KACZ,cAAe,EAAE,EAAE,IAAI,IACvB,WAAY,KACZ,SAAU,OAGd,wCACI,SAAU,SAGd,4BACI,QAAS,MACT,aAAc,EACd,cAAe,IACf,MAAO,KAGP,cAAqV,SACrV,YAAa,OACb,WAAY,OAEhB,+BACI,QAAS,aACT,WAAY,iBACZ,SAAU,SACV,KAAM,IACN,YAAa,KACb,IAAK,KACL,MAAO,KACP,OAAQ,KACR,eAAgB,YAEpB,gCACI,QAAS,MAEb,wCACI,QAAS,aACT,WAAY,oBACZ,MAAO,KACP,OAAQ,KACR,eAAgB,YAEpB,mCACI,QAAS,KACT,WAAY,OACZ,YAAa,IAEjB,mCACI,QAAQ,KACR,MAAM,KACN,OAAO,KACP,eAAe,YAEnB,mDAGA,uDAFI,QAAS,OAKb,iDACI,iBAAkB,QAEtB,8CACI,iBAAkB,QAClB,WAAY,EAAE,EAAE,IAAI,EAAE,IACtB,OAAQ,EAEZ,6BACI,QAAS,MACT,WAAY,QACZ,MAAO,EACP,OAAQ,KACR,cAAe,IACf,cAAe,IAGnB,mCACI,OAAQ,KACR,cAAe,IAGnB,6CACI,YAAa,IACb,QAAS,OACT,MAAO,MACP,MAAO,MAGX,4BACI,MAAO,KACP,UAAW,KACX,MAAO,QACP,cAAe,IACf,aAAc,EACd,QAAS,aAGb,mCACI,SAAU,SACV,QAAS,EACT,OAAQ,iBACR,QAAS,GACT,WAAY,qDAGhB,wCACI,OAAQ,QACR,aAAc,KAGlB,+CACI,QAAS,aACT,OAAQ,QACR,SAAU,SACV,MAAO,EACP,IAAK,EAGT,8CACI,SAAU,OACV,OAAQ,KACR,MAAO,KACP,MAAO,eACP,QAAS,EAAE,IACX,cAAe,IACf,OAAQ,IAAI,MAAM,KAClB,cAAe,IACf,UAAW,KAEX,QAAS,EACT,OAAQ,mBACR,WAAY,uDAGhB,mCACI,QAAS,KACT,WAAY,cACZ,MAAO,KACP,OAAQ,KACR,eAAgB,YAiBpB,8BAfA,4BAsBA,2BAfA,2BAiBI,MAAO,KACP,OAAQ,KACR,eAAgB,IAChB,QAAS,aA3Bb,4BACI,WAAY,eAMhB,2BACI,WAAY,eAKZ,MAAO,KAEX,8BACI,WAAY,kBAMhB,2BACI,WAAY,eAOhB,qBACI,QAAS,KAMb,kDAEI,QAAmH,GACnH,OAAQ,kBAEZ,kCACI,SAAU,OACV,SAAU,SAGV,OAA2O,MAC3O,MAAO,MAEX,mCACI,cAAe,IAAI,IAAI,EAAE,EACzB,OAAQ,EAGR,IAA+V,EAG/V,OAAiZ,KACjZ,QAAS,MAIb,2CAEI,SAAikB,SACjkB,IAAK,IACL,UAAW,iBACX,eAAgB,iBAChB,cAAe,iBACf,kBAAmB,iBAYvB,+BACI,QAAS,KAGb,qCACI,QAAS,MAGb,kDACI,WAAY,OACZ,YAAa,KAGjB,yDACI,YAAa,IACb,aAAc,IAGlB,2DACI,eAAgB,KAGpB,0CACI,iBAAkB"}
|
354
styles/bootstrap/fine-uploader/fine-uploader-new.css
Normal file
354
styles/bootstrap/fine-uploader/fine-uploader-new.css
Normal file
|
@ -0,0 +1,354 @@
|
|||
/* ---------------------------------------
|
||||
/* Fine Uploader Styles
|
||||
/* ---------------------------------------
|
||||
|
||||
/* Buttons
|
||||
------------------------------------------ */
|
||||
.qq-btn
|
||||
{
|
||||
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.37) inset,
|
||||
1px 0 1px rgba(255, 255, 255, 0.07) inset,
|
||||
0 1px 0 rgba(0, 0, 0, 0.36),
|
||||
0 -2px 12px rgba(0, 0, 0, 0.08) inset;
|
||||
padding: 3px 4px;
|
||||
border: 1px solid #CCCCCC;
|
||||
border-radius: 2px;
|
||||
color: inherit;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
.qq-upload-delete, .qq-upload-pause, .qq-upload-continue {
|
||||
display: inline;
|
||||
}
|
||||
.qq-upload-delete
|
||||
{
|
||||
background-color: #e65c47;
|
||||
color: #FAFAFA;
|
||||
border-color: #dc523d;
|
||||
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
|
||||
}
|
||||
.qq-upload-delete:hover {
|
||||
background-color: #f56b56;
|
||||
}
|
||||
.qq-upload-cancel
|
||||
{
|
||||
background-color: #F5D7D7;
|
||||
border-color: #e6c8c8;
|
||||
}
|
||||
.qq-upload-cancel:hover {
|
||||
background-color: #ffe1e1;
|
||||
}
|
||||
.qq-upload-retry
|
||||
{
|
||||
background-color: #EBF6E0;
|
||||
border-color: #d2ddc7;
|
||||
}
|
||||
.qq-upload-retry:hover {
|
||||
background-color: #f7ffec;
|
||||
}
|
||||
.qq-upload-pause, .qq-upload-continue {
|
||||
background-color: #00ABC7;
|
||||
color: #FAFAFA;
|
||||
border-color: #2dadc2;
|
||||
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
|
||||
}
|
||||
.qq-upload-pause:hover, .qq-upload-continue:hover {
|
||||
background-color: #0fbad6;
|
||||
}
|
||||
|
||||
/* Upload Button
|
||||
------------------------------------------ */
|
||||
.qq-upload-button {
|
||||
display: inline;
|
||||
width: 105px;
|
||||
margin-bottom: 10px;
|
||||
padding: 7px 10px;
|
||||
text-align: center;
|
||||
float: left;
|
||||
background: #00ABC7;
|
||||
color: #FFFFFF;
|
||||
border-radius: 2px;
|
||||
border: 1px solid #2dadc2;
|
||||
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.37) inset,
|
||||
1px 0 1px rgba(255, 255, 255, 0.07) inset,
|
||||
0 1px 0 rgba(0, 0, 0, 0.36),
|
||||
0 -2px 12px rgba(0, 0, 0, 0.08) inset;
|
||||
}
|
||||
.qq-upload-button-hover {
|
||||
background: #33B6CC;
|
||||
}
|
||||
.qq-upload-button-focus {
|
||||
outline: 1px dotted #000000;
|
||||
}
|
||||
|
||||
|
||||
/* Drop Zone
|
||||
------------------------------------------ */
|
||||
.qq-uploader {
|
||||
position: relative;
|
||||
min-height: 200px;
|
||||
max-height: 490px;
|
||||
overflow-y: hidden;
|
||||
width: inherit;
|
||||
border-radius: 6px;
|
||||
background-color: #FDFDFD;
|
||||
border: 1px dashed #CCCCCC;
|
||||
padding: 20px;
|
||||
}
|
||||
.qq-uploader:before {
|
||||
content: attr(qq-drop-area-text) " ";
|
||||
position: absolute;
|
||||
font-size: 200%;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
top: 45%;
|
||||
opacity: 0.25;
|
||||
}
|
||||
.qq-upload-drop-area, .qq-upload-extra-drop-area {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-height: 30px;
|
||||
z-index: 2;
|
||||
background: #F9F9F9;
|
||||
border-radius: 4px;
|
||||
border: 1px dashed #CCCCCC;
|
||||
text-align: center;
|
||||
}
|
||||
.qq-upload-drop-area span {
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: 100%;
|
||||
margin-top: -8px;
|
||||
font-size: 16px;
|
||||
}
|
||||
.qq-upload-extra-drop-area {
|
||||
position: relative;
|
||||
margin-top: 50px;
|
||||
font-size: 16px;
|
||||
padding-top: 30px;
|
||||
height: 20px;
|
||||
min-height: 40px;
|
||||
}
|
||||
.qq-upload-drop-area-active {
|
||||
background: #FDFDFD;
|
||||
border-radius: 4px;
|
||||
border: 1px dashed #CCCCCC;
|
||||
}
|
||||
.qq-upload-list {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
max-height: 450px;
|
||||
overflow-y: auto;
|
||||
box-shadow: 0px 1px 0px rgba(15, 15, 50, 0.14);
|
||||
clear: both;
|
||||
}
|
||||
|
||||
|
||||
/* Uploaded Elements
|
||||
------------------------------------------ */
|
||||
.qq-upload-list li {
|
||||
margin: 0;
|
||||
padding: 9px;
|
||||
line-height: 15px;
|
||||
font-size: 16px;
|
||||
color: #424242;
|
||||
background-color: #F6F6F6;
|
||||
border-top: 1px solid #FFFFFF;
|
||||
border-bottom: 1px solid #DDDDDD;
|
||||
}
|
||||
.qq-upload-list li:first-child {
|
||||
border-top: none;
|
||||
}
|
||||
.qq-upload-list li:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.qq-upload-file, .qq-upload-spinner, .qq-upload-size,
|
||||
.qq-upload-cancel, .qq-upload-retry, .qq-upload-failed-text,
|
||||
.qq-upload-delete, .qq-upload-pause, .qq-upload-continue {
|
||||
margin-right: 12px;
|
||||
display: inline;
|
||||
}
|
||||
.qq-upload-file {
|
||||
vertical-align: middle;
|
||||
display: inline-block;
|
||||
width: 300px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow-x: hidden;
|
||||
height: 18px;
|
||||
}
|
||||
.qq-upload-spinner {
|
||||
display: inline-block;
|
||||
background: url("loading.gif");
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
.qq-drop-processing {
|
||||
display: block;
|
||||
}
|
||||
.qq-drop-processing-spinner {
|
||||
display: inline-block;
|
||||
background: url("processing.gif");
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
.qq-upload-size, .qq-upload-cancel, .qq-upload-retry,
|
||||
.qq-upload-delete, .qq-upload-pause, .qq-upload-continue {
|
||||
font-size: 12px;
|
||||
font-weight: normal;
|
||||
cursor: pointer;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.qq-upload-status-text {
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
display: block;
|
||||
}
|
||||
.qq-upload-failed-text {
|
||||
display: none;
|
||||
font-style: italic;
|
||||
font-weight: bold;
|
||||
}
|
||||
.qq-upload-failed-icon {
|
||||
display:none;
|
||||
width:15px;
|
||||
height:15px;
|
||||
vertical-align:text-bottom;
|
||||
}
|
||||
.qq-upload-fail .qq-upload-failed-text {
|
||||
display: inline;
|
||||
}
|
||||
.qq-upload-retrying .qq-upload-failed-text {
|
||||
display: inline;
|
||||
}
|
||||
.qq-upload-list li.qq-upload-success {
|
||||
background-color: #EBF6E0;
|
||||
color: #424242;
|
||||
border-bottom: 1px solid #D3DED1;
|
||||
border-top: 1px solid #F7FFF5;
|
||||
}
|
||||
.qq-upload-list li.qq-upload-fail {
|
||||
background-color: #F5D7D7;
|
||||
color: #424242;
|
||||
border-bottom: 1px solid #DECACA;
|
||||
border-top: 1px solid #FCE6E6;
|
||||
}
|
||||
.qq-progress-bar {
|
||||
display: block;
|
||||
display: block;
|
||||
background: #00abc7;
|
||||
width: 0%;
|
||||
height: 15px;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
|
||||
.qq-total-progress-bar {
|
||||
height: 25px;
|
||||
border-radius: 9px;
|
||||
}
|
||||
|
||||
.qq-total-progress-bar-container {
|
||||
margin-left: 9px;
|
||||
display: inline;
|
||||
float: right;
|
||||
width: 500px;
|
||||
}
|
||||
|
||||
INPUT.qq-edit-filename {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
filter: alpha(opacity=0);
|
||||
z-index: -1;
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
|
||||
}
|
||||
|
||||
.qq-upload-file.qq-editable {
|
||||
cursor: pointer;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.qq-edit-filename-icon.qq-editable {
|
||||
display: inline-block;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
INPUT.qq-edit-filename.qq-editing {
|
||||
position: static;
|
||||
height: 28px;
|
||||
padding: 0 8px;
|
||||
margin-right: 10px;
|
||||
margin-bottom: -5px;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 2px;
|
||||
font-size: 16px;
|
||||
|
||||
opacity: 1;
|
||||
filter: alpha(opacity=100);
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
|
||||
}
|
||||
|
||||
.qq-edit-filename-icon {
|
||||
display: none;
|
||||
background: url("edit.gif");
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
vertical-align: text-bottom;
|
||||
margin-right: 16px;
|
||||
}
|
||||
|
||||
.qq-hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
/* Thumbnail
|
||||
------------------------------------------ */
|
||||
.qq-thumbnail-selector {
|
||||
vertical-align: middle;
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
||||
|
||||
/* <dialog> element styles */
|
||||
.qq-uploader DIALOG {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.qq-uploader DIALOG[open] {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.qq-uploader DIALOG {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.qq-uploader DIALOG[open] {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.qq-uploader DIALOG .qq-dialog-buttons {
|
||||
text-align: center;
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
.qq-uploader DIALOG .qq-dialog-buttons BUTTON {
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.qq-uploader DIALOG .qq-dialog-message-selector {
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.qq-uploader DIALOG::backdrop {
|
||||
background-color: rgba(0, 0, 0, 0.7);
|
||||
}
|
1
styles/bootstrap/fine-uploader/fine-uploader-new.min.css
vendored
Normal file
1
styles/bootstrap/fine-uploader/fine-uploader-new.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
{"version":3,"sources":["_build/fine-uploader-new.css"],"names":[],"mappings":"AAMA,QAkDA,kBAWI,WAAY,EAAE,IAAI,IAAI,sBAA0B,MAAO,IAAI,EAAE,IAAI,sBAA0B,MAAO,EAAE,IAAI,EAAE,gBAAqB,EAAE,KAAK,KAAK,gBAAoB,MA7DnK,QAGI,QAAS,IAAI,IACb,OAAQ,IAAI,MAAM,KAClB,cAAe,IACf,MAAO,QACP,iBAAkB,KAKtB,kBAEI,iBAAkB,QAClB,MAAO,QACP,aAAc,QACd,YAAa,EAAE,IAAI,IAAI,gBAE3B,wBACI,iBAAkB,QAEtB,kBAEI,iBAAkB,QAClB,aAAc,QAElB,wBACI,iBAAkB,QAEtB,iBAEI,iBAAkB,QAClB,aAAc,QAElB,uBACI,iBAAkB,QAEJ,oBAAlB,iBACI,iBAAkB,QAClB,MAAO,QACP,aAAc,QACd,YAAa,EAAE,IAAI,IAAI,gBAEH,0BAAxB,uBACI,iBAAkB,QAKtB,kBACI,QAAS,OACT,MAAO,MACP,cAAe,KACf,QAAS,IAAI,KACb,WAAY,OACZ,MAAO,KACP,WAAY,QACZ,MAAO,KACP,cAAe,IACf,OAAQ,IAAI,MAAM,QAGtB,wBACI,WAAY,QAEhB,wBACI,QAAoB,KAAP,OAAJ,IAMb,aACI,SAAU,SACV,WAAY,MACZ,WAAY,MACZ,WAAY,OACZ,MAAO,QACP,cAAe,IACf,iBAAkB,QAClB,OAAQ,IAAI,OAAO,KACnB,QAAS,KAEb,oBACI,QAAS,wBAAwB,IACjC,SAAU,SACV,UAAW,KACX,KAAM,EACN,MAAO,KACP,WAAY,OACZ,IAAK,IACL,QAAS,IAEb,qBAAsB,2BAClB,SAAU,SACV,IAAK,EACL,KAAM,EACN,MAAO,KACP,OAAQ,KACR,WAAY,KACZ,QAAS,EACT,WAAY,QACZ,cAAe,IACf,OAAQ,IAAI,OAAO,KACnB,WAAY,OAEhB,0BACI,QAAS,MACT,SAAU,SACV,IAAK,IACL,MAAO,KACP,WAAY,KACZ,UAAW,KAEf,2BACI,SAAU,SACV,WAAY,KACZ,UAAW,KACX,YAAa,KACb,OAAQ,KACR,WAAY,KAEhB,4BACI,WAAY,QACZ,cAAe,IACf,OAAQ,IAAI,OAAO,KAEvB,gBACI,OAAQ,EACR,QAAS,EACT,WAAY,KACZ,WAAY,MACZ,WAAY,KACZ,WAAY,EAAI,IAAI,EAAI,mBACxB,MAAO,KAMX,mBACI,OAAQ,EACR,QAAS,IACT,YAAa,KACb,UAAW,KACX,MAAO,QACP,iBAAkB,QAClB,WAAY,IAAI,MAAM,KACtB,cAAe,IAAI,MAAM,KAE7B,+BACI,WAAY,KAEhB,8BACI,cAAe,KAInB,kBACqC,oBAArC,kBADqC,uBADrC,gBAEmB,iBADA,iBADkB,gBAApB,mBAGb,aAAc,KACd,QAAS,OAEb,gBACI,eAAgB,OAChB,QAAS,aACT,MAAO,MACP,cAAe,SACf,YAAa,OACb,WAAY,OACZ,OAAQ,KAEZ,mBACI,QAAS,aACT,WAAY,iBACZ,MAAO,KACP,OAAQ,KACR,eAAgB,YAEpB,oBACI,QAAS,MAEb,4BACI,QAAS,aACT,WAAY,oBACZ,MAAO,KACP,OAAQ,KACR,eAAgB,YAEH,kBACoB,oBAArC,kBAAmB,iBADiB,iBAApC,gBAEI,UAAW,KACX,YAAa,IACb,OAAQ,QACR,eAAgB,OAEpB,uBACI,UAAW,KACX,YAAa,IACb,QAAS,MAEb,uBACI,QAAS,KACT,WAAY,OACZ,YAAa,IAEjB,uBACI,QAAQ,KACR,MAAM,KACN,OAAO,KACP,eAAe,YAEnB,uCAGA,2CAFI,QAAS,OAKb,qCACI,iBAAkB,QAClB,MAAO,QACP,cAAe,IAAI,MAAM,QACzB,WAAY,IAAI,MAAM,QAE1B,kCACI,iBAAkB,QAClB,MAAO,QACP,cAAe,IAAI,MAAM,QACzB,WAAY,IAAI,MAAM,QAE1B,iBACI,QAAS,MAET,WAAY,QACZ,MAAO,EACP,OAAQ,KACR,cAAe,IACf,cAAe,IAGnB,uBACI,OAAQ,KACR,cAAe,IAGnB,iCACI,YAAa,IACb,QAAS,OACT,MAAO,MACP,MAAO,MAGX,uBACI,SAAU,SACV,QAAS,EACT,OAAQ,iBACR,QAAS,GACT,WAAY,qDAGhB,4BACI,OAAQ,QACR,aAAc,IAGlB,mCACI,QAAS,aACT,OAAQ,QA2BZ,SAsBA,oBACI,QAAS,KA/Cb,kCACI,SAAU,OACV,OAAQ,KACR,QAAS,EAAE,IACX,aAAc,KACd,cAAe,KACf,OAAQ,IAAI,MAAM,KAClB,cAAe,IACf,UAAW,KAEX,QAAS,EACT,OAAQ,mBACR,WAAY,uDAGhB,uBACI,QAAS,KACT,WAAY,cACZ,MAAO,KACP,OAAQ,KACR,eAAgB,YAChB,aAAc,KAUlB,uBACI,eAAgB,OAChB,aAAc,KAiBlB,0BACI,QAAS,MAGb,uCACI,WAAY,OACZ,YAAa,KAGjB,8CACI,YAAa,IACb,aAAc,IAGlB,gDACI,eAAgB,KAGpB,8BACI,iBAAkB"}
|
5515
styles/bootstrap/fine-uploader/fine-uploader.core.js
Normal file
5515
styles/bootstrap/fine-uploader/fine-uploader.core.js
Normal file
File diff suppressed because it is too large
Load Diff
1
styles/bootstrap/fine-uploader/fine-uploader.core.js.map
Normal file
1
styles/bootstrap/fine-uploader/fine-uploader.core.js.map
Normal file
File diff suppressed because one or more lines are too long
6
styles/bootstrap/fine-uploader/fine-uploader.core.min.js
vendored
Normal file
6
styles/bootstrap/fine-uploader/fine-uploader.core.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
225
styles/bootstrap/fine-uploader/fine-uploader.css
Normal file
225
styles/bootstrap/fine-uploader/fine-uploader.css
Normal file
|
@ -0,0 +1,225 @@
|
|||
.qq-uploader {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
.qq-upload-button {
|
||||
display: block;
|
||||
width: 105px;
|
||||
padding: 7px 0;
|
||||
text-align: center;
|
||||
background: #880000;
|
||||
border-bottom: 1px solid #DDD;
|
||||
color: #FFF;
|
||||
}
|
||||
.qq-upload-button-hover {
|
||||
background: #CC0000;
|
||||
}
|
||||
.qq-upload-button-focus {
|
||||
outline: 1px dotted #000000;
|
||||
}
|
||||
.qq-upload-drop-area, .qq-upload-extra-drop-area {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-height: 30px;
|
||||
z-index: 2;
|
||||
background: #FF9797;
|
||||
text-align: center;
|
||||
}
|
||||
.qq-upload-drop-area span {
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: 100%;
|
||||
margin-top: -8px;
|
||||
font-size: 16px;
|
||||
}
|
||||
.qq-upload-extra-drop-area {
|
||||
position: relative;
|
||||
margin-top: 50px;
|
||||
font-size: 16px;
|
||||
padding-top: 30px;
|
||||
height: 20px;
|
||||
min-height: 40px;
|
||||
}
|
||||
.qq-upload-drop-area-active {
|
||||
background: #FF7171;
|
||||
}
|
||||
.qq-upload-list {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
.qq-upload-list li {
|
||||
margin: 0;
|
||||
padding: 9px;
|
||||
line-height: 15px;
|
||||
font-size: 16px;
|
||||
background-color: #FFF0BD;
|
||||
}
|
||||
.qq-upload-file, .qq-upload-spinner, .qq-upload-size,
|
||||
.qq-upload-cancel, .qq-upload-retry, .qq-upload-failed-text,
|
||||
.qq-upload-delete, .qq-upload-pause, .qq-upload-continue {
|
||||
margin-right: 12px;
|
||||
display: inline;
|
||||
}
|
||||
.qq-upload-file {
|
||||
}
|
||||
.qq-upload-spinner {
|
||||
display: inline-block;
|
||||
background: url("loading.gif");
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
.qq-drop-processing {
|
||||
display: block;
|
||||
}
|
||||
.qq-drop-processing-spinner {
|
||||
display: inline-block;
|
||||
background: url("processing.gif");
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
|
||||
.qq-upload-delete, .qq-upload-pause, .qq-upload-continue {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.qq-upload-retry, .qq-upload-delete, .qq-upload-cancel,
|
||||
.qq-upload-pause, .qq-upload-continue {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.qq-upload-size, .qq-upload-cancel, .qq-upload-retry,
|
||||
.qq-upload-delete, .qq-upload-pause, .qq-upload-continue {
|
||||
font-size: 12px;
|
||||
font-weight: normal;
|
||||
}
|
||||
.qq-upload-failed-text {
|
||||
display: none;
|
||||
font-style: italic;
|
||||
font-weight: bold;
|
||||
}
|
||||
.qq-upload-failed-icon {
|
||||
display:none;
|
||||
width:15px;
|
||||
height:15px;
|
||||
vertical-align:text-bottom;
|
||||
}
|
||||
.qq-upload-fail .qq-upload-failed-text {
|
||||
display: inline;
|
||||
}
|
||||
.qq-upload-retrying .qq-upload-failed-text {
|
||||
display: inline;
|
||||
color: #D60000;
|
||||
}
|
||||
.qq-upload-list li.qq-upload-success {
|
||||
background-color: #5DA30C;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.qq-upload-list li.qq-upload-fail {
|
||||
background-color: #D60000;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.qq-progress-bar {
|
||||
display: block;
|
||||
background: -moz-linear-gradient(top, rgba(30,87,153,1) 0%, rgba(41,137,216,1) 50%, rgba(32,124,202,1) 51%, rgba(125,185,232,1) 100%); /* FF3.6+ */
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(30,87,153,1)), color-stop(50%,rgba(41,137,216,1)), color-stop(51%,rgba(32,124,202,1)), color-stop(100%,rgba(125,185,232,1))); /* Chrome,Safari4+ */
|
||||
background: -webkit-linear-gradient(top, rgba(30,87,153,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: -o-linear-gradient(top, rgba(30,87,153,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* Opera 11.10+ */
|
||||
background: -ms-linear-gradient(top, rgba(30,87,153,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* IE10+ */
|
||||
background: linear-gradient(to bottom, rgba(30,87,153,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* W3C */
|
||||
width: 0%;
|
||||
height: 15px;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
|
||||
.qq-total-progress-bar {
|
||||
height: 25px;
|
||||
border-radius: 9px;
|
||||
}
|
||||
|
||||
.qq-total-progress-bar-container {
|
||||
margin: 9px;
|
||||
}
|
||||
|
||||
INPUT.qq-edit-filename {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
filter: alpha(opacity=0);
|
||||
z-index: -1;
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
|
||||
}
|
||||
|
||||
.qq-upload-file.qq-editable {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.qq-edit-filename-icon.qq-editable {
|
||||
display: inline-block;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
INPUT.qq-edit-filename.qq-editing {
|
||||
position: static;
|
||||
margin-top: -5px;
|
||||
margin-right: 10px;
|
||||
margin-bottom: -5px;
|
||||
|
||||
opacity: 1;
|
||||
filter: alpha(opacity=100);
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
|
||||
}
|
||||
|
||||
.qq-edit-filename-icon {
|
||||
display: none;
|
||||
background: url("edit.gif");
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
vertical-align: text-bottom;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.qq-hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* <dialog> element styles */
|
||||
.qq-uploader DIALOG {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.qq-uploader DIALOG[open] {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.qq-uploader DIALOG {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.qq-uploader DIALOG[open] {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.qq-uploader DIALOG .qq-dialog-buttons {
|
||||
text-align: center;
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
.qq-uploader DIALOG .qq-dialog-buttons BUTTON {
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.qq-uploader DIALOG .qq-dialog-message-selector {
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.qq-uploader DIALOG::backdrop {
|
||||
background-color: rgba(0, 0, 0, 0.7);
|
||||
}
|
7414
styles/bootstrap/fine-uploader/fine-uploader.js
Normal file
7414
styles/bootstrap/fine-uploader/fine-uploader.js
Normal file
File diff suppressed because it is too large
Load Diff
1
styles/bootstrap/fine-uploader/fine-uploader.js.map
Normal file
1
styles/bootstrap/fine-uploader/fine-uploader.js.map
Normal file
File diff suppressed because one or more lines are too long
1
styles/bootstrap/fine-uploader/fine-uploader.min.css
vendored
Normal file
1
styles/bootstrap/fine-uploader/fine-uploader.min.css
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
.qq-uploader{position:relative;width:100%}.qq-upload-button{display:block;width:105px;padding:7px 0;text-align:center;background:#800;border-bottom:1px solid #DDD;color:#FFF}.qq-upload-button-hover{background:#C00}.qq-upload-button-focus{outline:#000 dotted 1px}.qq-upload-drop-area,.qq-upload-extra-drop-area{position:absolute;top:0;left:0;width:100%;height:100%;min-height:30px;z-index:2;background:#FF9797;text-align:center}.qq-upload-drop-area span{display:block;position:absolute;top:50%;width:100%;margin-top:-8px;font-size:16px}.qq-upload-extra-drop-area{position:relative;margin-top:50px;font-size:16px;padding-top:30px;height:20px;min-height:40px}.qq-upload-drop-area-active{background:#FF7171}.qq-upload-list{margin:0;padding:0;list-style:none}.qq-upload-list li{margin:0;padding:9px;line-height:15px;font-size:16px;background-color:#FFF0BD}.qq-upload-cancel,.qq-upload-continue,.qq-upload-delete,.qq-upload-failed-text,.qq-upload-file,.qq-upload-pause,.qq-upload-retry,.qq-upload-size,.qq-upload-spinner{margin-right:12px;display:inline}.qq-upload-spinner{display:inline-block;background:url(loading.gif);width:15px;height:15px;vertical-align:text-bottom}.qq-drop-processing{display:block}.qq-drop-processing-spinner{display:inline-block;background:url(processing.gif);width:24px;height:24px;vertical-align:text-bottom}.qq-upload-continue,.qq-upload-delete,.qq-upload-pause{display:inline}.qq-upload-cancel,.qq-upload-continue,.qq-upload-delete,.qq-upload-pause,.qq-upload-retry{color:#000}.qq-upload-cancel,.qq-upload-continue,.qq-upload-delete,.qq-upload-pause,.qq-upload-retry,.qq-upload-size{font-size:12px;font-weight:400}.qq-upload-failed-text{display:none;font-style:italic;font-weight:700}.qq-upload-failed-icon{display:none;width:15px;height:15px;vertical-align:text-bottom}.qq-upload-fail .qq-upload-failed-text{display:inline}.qq-upload-retrying .qq-upload-failed-text{display:inline;color:#D60000}.qq-upload-list li.qq-upload-success{background-color:#5DA30C;color:#FFF}.qq-upload-list li.qq-upload-fail{background-color:#D60000;color:#FFF}.qq-progress-bar{display:block;background:-moz-linear-gradient(top,rgba(30,87,153,1) 0,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,rgba(30,87,153,1)),color-stop(50%,rgba(41,137,216,1)),color-stop(51%,rgba(32,124,202,1)),color-stop(100%,rgba(125,185,232,1)));background:-webkit-linear-gradient(top,rgba(30,87,153,1) 0,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%);background:-o-linear-gradient(top,rgba(30,87,153,1) 0,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%);background:-ms-linear-gradient(top,rgba(30,87,153,1) 0,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%);background:linear-gradient(to bottom,rgba(30,87,153,1) 0,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%);width:0;height:15px;border-radius:6px;margin-bottom:3px}.qq-total-progress-bar{height:25px;border-radius:9px}.qq-total-progress-bar-container{margin:9px}INPUT.qq-edit-filename{position:absolute;opacity:0;filter:alpha(opacity=0);z-index:-1;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"}.qq-upload-file.qq-editable{cursor:pointer}.qq-edit-filename-icon.qq-editable{display:inline-block;cursor:pointer}.qq-hide,.qq-uploader DIALOG{display:none}INPUT.qq-edit-filename.qq-editing{position:static;margin-top:-5px;margin-right:10px;margin-bottom:-5px;opacity:1;filter:alpha(opacity=100);-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"}.qq-edit-filename-icon{display:none;background:url(edit.gif);width:15px;height:15px;vertical-align:text-bottom;margin-right:5px}.qq-uploader DIALOG[open]{display:block}.qq-uploader DIALOG .qq-dialog-buttons{text-align:center;padding-top:10px}.qq-uploader DIALOG .qq-dialog-buttons BUTTON{margin-left:5px;margin-right:5px}.qq-uploader DIALOG .qq-dialog-message-selector{padding-bottom:10px}.qq-uploader DIALOG::backdrop{background-color:rgba(0,0,0,.7)}/*# sourceMappingURL=fine-uploader.min.css.map */
|
1
styles/bootstrap/fine-uploader/fine-uploader.min.css.map
Normal file
1
styles/bootstrap/fine-uploader/fine-uploader.min.css.map
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"sources":["_build/fine-uploader.css"],"names":[],"mappings":"AAAA,aACI,SAAU,SACV,MAAO,KAEX,kBACI,QAAS,MACT,MAAO,MACP,QAAS,IAAI,EACb,WAAY,OACZ,WAAY,KACZ,cAAe,IAAI,MAAM,KACzB,MAAO,KAEX,wBACI,WAAY,KAEhB,wBACI,QAAoB,KAAP,OAAJ,IAEb,qBAAsB,2BAClB,SAAU,SACV,IAAK,EACL,KAAM,EACN,MAAO,KACP,OAAQ,KACR,WAAY,KACZ,QAAS,EACT,WAAY,QACZ,WAAY,OAEhB,0BACI,QAAS,MACT,SAAU,SACV,IAAK,IACL,MAAO,KACP,WAAY,KACZ,UAAW,KAEf,2BACI,SAAU,SACV,WAAY,KACZ,UAAW,KACX,YAAa,KACb,OAAQ,KACR,WAAY,KAEhB,4BACI,WAAY,QAEhB,gBACI,OAAQ,EACR,QAAS,EACT,WAAY,KAEhB,mBACI,OAAQ,EACR,QAAS,IACT,YAAa,KACb,UAAW,KACX,iBAAkB,QAGtB,kBACqC,oBAArC,kBADqC,uBADrC,gBAEmB,iBADA,iBADkB,gBAApB,mBAGb,aAAc,KACd,QAAS,OAIb,mBACI,QAAS,aACT,WAAY,iBACZ,MAAO,KACP,OAAQ,KACR,eAAgB,YAEpB,oBACI,QAAS,MAEb,4BACI,QAAS,aACT,WAAY,oBACZ,MAAO,KACP,OAAQ,KACR,eAAgB,YAGiB,oBAArC,kBAAmB,iBACf,QAAS,OAGwB,kBACnB,oBADA,kBAClB,iBADA,iBAEI,MAAO,KAGM,kBACoB,oBAArC,kBAAmB,iBADiB,iBAApC,gBAEI,UAAW,KACX,YAAa,IAEjB,uBACI,QAAS,KACT,WAAY,OACZ,YAAa,IAEjB,uBACI,QAAQ,KACR,MAAM,KACN,OAAO,KACP,eAAe,YAEnB,uCACI,QAAS,OAEb,2CACI,QAAS,OACT,MAAO,QAEX,qCACI,iBAAkB,QAClB,MAAO,KAEX,kCACI,iBAAkB,QAClB,MAAO,KAEX,iBACI,QAAS,MACT,WAAY,qHACZ,WAAwB,yLACxB,WAA8C,wHAC9C,WAAyE,mHACzE,WAA4F,oHAC5F,WAAwG,sHACxG,MAA6G,EAC7G,OAAQ,KACR,cAAe,IACf,cAAe,IAGnB,uBACI,OAAQ,KACR,cAAe,IAGnB,iCACI,OAAQ,IAGZ,uBACI,SAAU,SACV,QAAS,EACT,OAAQ,iBACR,QAAS,GACT,WAAY,qDAGhB,4BACI,OAAQ,QAGZ,mCACI,QAAS,aACT,OAAQ,QAuBZ,SAaA,oBACI,QAAS,KAlCb,kCACI,SAAU,OACV,WAAY,KACZ,aAAc,KACd,cAAe,KAEf,QAAS,EACT,OAAQ,mBACR,WAAY,uDAGhB,uBACI,QAAS,KACT,WAAY,cACZ,MAAO,KACP,OAAQ,KACR,eAAgB,YAChB,aAAc,IAoBlB,0BACI,QAAS,MAGb,uCACI,WAAY,OACZ,YAAa,KAGjB,8CACI,YAAa,IACb,aAAc,IAGlB,gDACI,eAAgB,KAGpB,8BACI,iBAAkB"}
|
7
styles/bootstrap/fine-uploader/fine-uploader.min.js
vendored
Normal file
7
styles/bootstrap/fine-uploader/fine-uploader.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
styles/bootstrap/fine-uploader/fine-uploader.min.js.map
Normal file
1
styles/bootstrap/fine-uploader/fine-uploader.min.js.map
Normal file
File diff suppressed because one or more lines are too long
7671
styles/bootstrap/fine-uploader/jquery.fine-uploader.js
Normal file
7671
styles/bootstrap/fine-uploader/jquery.fine-uploader.js
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
7
styles/bootstrap/fine-uploader/jquery.fine-uploader.min.js
vendored
Normal file
7
styles/bootstrap/fine-uploader/jquery.fine-uploader.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
BIN
styles/bootstrap/fine-uploader/loading.gif
Normal file
BIN
styles/bootstrap/fine-uploader/loading.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
BIN
styles/bootstrap/fine-uploader/pause.gif
Normal file
BIN
styles/bootstrap/fine-uploader/pause.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 142 B |
BIN
styles/bootstrap/fine-uploader/placeholders/not_available-generic.png
Executable file
BIN
styles/bootstrap/fine-uploader/placeholders/not_available-generic.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user