mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
6e9b840e45
12
CHANGELOG
12
CHANGELOG
|
@ -22,12 +22,20 @@
|
|||
- add document list which can be exported as an archive
|
||||
- search results can be exported
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Changes in version 5.1.1
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Changes in version 5.1.0
|
||||
--------------------------------------------------------------------------------
|
||||
- added support for postgresql
|
||||
- document attachments can linked to a version and be public or hidden
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Changes in version 5.0.11
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Changes in version 5.0.10
|
||||
--------------------------------------------------------------------------------
|
||||
|
@ -100,6 +108,10 @@
|
|||
- add .xml to online file types by default
|
||||
- add home folder for users
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Changes in version 4.3.34
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Changes in version 4.3.33
|
||||
--------------------------------------------------------------------------------
|
||||
|
|
|
@ -1371,10 +1371,10 @@ class SeedDMS_Core_DMS {
|
|||
// Only search if the offset is not beyond the number of folders
|
||||
if($totalFolders > $offset) {
|
||||
// Prepare the complete search query, including the LIMIT clause.
|
||||
$searchQuery = "SELECT DISTINCT `tblFolders`.* ".$searchQuery." GROUP BY `tblFolders`.`id`";
|
||||
$searchQuery = "SELECT DISTINCT `tblFolders`.`id` ".$searchQuery." GROUP BY `tblFolders`.`id`";
|
||||
|
||||
if($limit) {
|
||||
$searchQuery .= " LIMIT ".$offset.",".$limit;
|
||||
$searchQuery .= " LIMIT ".$limit." OFFSET ".$offset;
|
||||
}
|
||||
|
||||
// Send the complete search query to the database.
|
||||
|
@ -1636,7 +1636,7 @@ class SeedDMS_Core_DMS {
|
|||
else
|
||||
$offset = 0;
|
||||
if($limit)
|
||||
$searchQuery .= " LIMIT ".$offset.",".$remain;
|
||||
$searchQuery .= " LIMIT ".$limit." OFFSET ".$offset;
|
||||
|
||||
// Send the complete search query to the database.
|
||||
$resArr = $this->db->getResultArray($searchQuery);
|
||||
|
@ -1880,10 +1880,11 @@ class SeedDMS_Core_DMS {
|
|||
$role = '0';
|
||||
if(trim($pwdexpiration) == '' || trim($pwdexpiration) == 'never')
|
||||
$pwdexpiration = 'NULL';
|
||||
elseif(trim($pwdexpiration) == 'now')
|
||||
} elseif(trim($pwdexpiration) == 'now') {
|
||||
$pwdexpiration = $db->qstr(date('Y-m-d H:i:s'));
|
||||
else
|
||||
} else {
|
||||
$pwdexpiration = $db->qstr($pwdexpiration);
|
||||
}
|
||||
$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)."', ".$pwdexpiration.", '".intval($quota)."', ".($homefolder ? intval($homefolder) : "NULL").")";
|
||||
$res = $this->db->getResult($queryStr);
|
||||
if (!$res)
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
<email>uwe@steinmann.cx</email>
|
||||
<active>yes</active>
|
||||
</lead>
|
||||
<date>2017-02-20</date>
|
||||
<time>06:23:34</time>
|
||||
<date>2017-02-28</date>
|
||||
<time>06:34:50</time>
|
||||
<version>
|
||||
<release>6.0.0</release>
|
||||
<api>6.0.0</api>
|
||||
|
@ -24,7 +24,7 @@
|
|||
</stability>
|
||||
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
||||
<notes>
|
||||
- all changes from 5.1.0 merged
|
||||
- all changes from 5.1.1 merged
|
||||
- SeedDMS_Core_User::getReceiptStatus() and SeedDMS_Core_User::getReviewStatus()
|
||||
only return entries of the latest document version if not specific document and
|
||||
version is passed
|
||||
|
@ -1181,6 +1181,21 @@ SeedDMS_Core_DMS::getNotificationsByUser() are deprecated
|
|||
- SeedDMЅ_Core_User::setFullname() minor fix in sql statement
|
||||
</notes>
|
||||
</release>
|
||||
<release>
|
||||
<date>2017-02-28</date>
|
||||
<time>06:38:12</time>
|
||||
<version>
|
||||
<release>4.3.34</release>
|
||||
<api>4.3.34</api>
|
||||
</version>
|
||||
<stability>
|
||||
<release>stable</release>
|
||||
<api>stable</api>
|
||||
</stability>
|
||||
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
||||
<notes>
|
||||
</notes>
|
||||
</release>
|
||||
<release>
|
||||
<date>2016-01-22</date>
|
||||
<time>14:34:58</time>
|
||||
|
@ -1343,8 +1358,24 @@ SeedDMS_Core_DMS::getNotificationsByUser() are deprecated
|
|||
</notes>
|
||||
</release>
|
||||
<release>
|
||||
<date>2016-03-09</date>
|
||||
<time>09:28:28</time>
|
||||
<date>2017-02-28</date>
|
||||
<time>06:23:34</time>
|
||||
<version>
|
||||
<release>5.0.11</release>
|
||||
<api>5.0.11</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.34 merged
|
||||
</notes>
|
||||
</release>
|
||||
<release>
|
||||
<date>2017-02-20</date>
|
||||
<time>07:07:02</time>
|
||||
<version>
|
||||
<release>5.1.0</release>
|
||||
<api>5.1.0</api>
|
||||
|
|
|
@ -1274,6 +1274,7 @@ class Settings { /* {{{ */
|
|||
case 'mysql':
|
||||
case 'mysqli':
|
||||
case 'mysqlnd':
|
||||
case 'pgsql':
|
||||
$tmp = explode(":", $this->_dbHostname);
|
||||
$dsn = $this->_dbDriver.":dbname=".$this->_dbDatabase.";host=".$tmp[0];
|
||||
if(!empty($tmp[1]))
|
||||
|
@ -1287,7 +1288,7 @@ class Settings { /* {{{ */
|
|||
"status" => "notfound",
|
||||
"type" => "error",
|
||||
"currentvalue" => $this->_dbDriver,
|
||||
"suggestionvalue" => "mysql|sqlite"
|
||||
"suggestionvalue" => "mysql|sqlite|pgsql"
|
||||
);
|
||||
}
|
||||
if($dsn) {
|
||||
|
|
|
@ -350,8 +350,8 @@ CREATE TABLE `tblDocumentFiles` (
|
|||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`document` int(11) NOT NULL DEFAULT '0',
|
||||
`version` smallint(5) unsigned NOT NULL DEFAULT '0',
|
||||
`userID` int(11) NOT NULL DEFAULT '0',
|
||||
`public` tinyint(1) NOT NULL DEFAULT '0',
|
||||
`userID` int(11) NOT NULL DEFAULT '0',
|
||||
`comment` text,
|
||||
`name` varchar(150) DEFAULT NULL,
|
||||
`date` int(12) DEFAULT NULL,
|
||||
|
|
|
@ -318,7 +318,7 @@ if ($action=="setSettings") {
|
|||
$connTmp->exec($query);
|
||||
|
||||
if ($connTmp->errorCode() != 0) {
|
||||
$errorMsg .= $connTmp->errorInfo() . "<br/>";
|
||||
$errorMsg .= $connTmp->errorInfo()[2] . "<br/>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -345,7 +345,18 @@ if ($action=="setSettings") {
|
|||
$needsupdate = false;
|
||||
$connTmp =openDBConnection($settings);
|
||||
if ($connTmp) {
|
||||
$res = $connTmp->query('select * from tblVersion');
|
||||
switch($settings->_dbDriver) {
|
||||
case 'mysql':
|
||||
case 'mysqli':
|
||||
case 'mysqlnd':
|
||||
case 'sqlite':
|
||||
$sql = 'select * from `tblVersion`';
|
||||
break;
|
||||
case 'pgsql':
|
||||
$sql = 'select * from "tblVersion"';
|
||||
break;
|
||||
}
|
||||
$res = $connTmp->query($sql);
|
||||
if($res) {
|
||||
if($rec = $res->fetch(PDO::FETCH_ASSOC)) {
|
||||
$updatedirs = array();
|
||||
|
|
|
@ -6,9 +6,9 @@ ALTER TABLE `tblDocumentFiles` CHANGE `mimeType` `mimeType` varchar(100) NOT NUL
|
|||
|
||||
ALTER TABLE `tblUserImages` CHANGE `mimeType` `mimeType` varchar(100) NOT NULL default '';
|
||||
|
||||
ALTER TABLE `tblDocumentFiles` ADD COLUMN `public` INTEGER NOT NULL default '0' AFTER `document`;
|
||||
ALTER TABLE `tblDocumentFiles` ADD COLUMN `public` tinyint(1) NOT NULL default '0' AFTER `document`;
|
||||
|
||||
ALTER TABLE `tblDocumentFiles` ADD COLUMN `version` INTEGER NOT NULL default '0' AFTER `document`;
|
||||
ALTER TABLE `tblDocumentFiles` ADD COLUMN `version` smallint(5) unsigned NOT NULL default '0' AFTER `document`;
|
||||
|
||||
ALTER TABLE `tblUsers` CHANGE `pwdExpiration` `pwdExpiration` datetime default NULL;
|
||||
|
||||
|
|
|
@ -450,11 +450,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
echo " <input type=\"hidden\" name=\"folderid\" value=\"".$folder->getID()."\" />";
|
||||
}
|
||||
echo " <input type=\"hidden\" name=\"navBar\" value=\"1\" />";
|
||||
echo " <input type=\"hidden\" name=\"searchin[]\" value=\"1\" />";
|
||||
echo " <input type=\"hidden\" name=\"searchin[]\" value=\"2\" />";
|
||||
echo " <input type=\"hidden\" name=\"searchin[]\" value=\"3\" />";
|
||||
echo " <input type=\"hidden\" name=\"searchin[]\" value=\"4\" />";
|
||||
echo " <input name=\"query\" class=\"search-query\" id=\"searchfield\" data-provide=\"typeahead\" type=\"text\" style=\"width: 150px;\" placeholder=\"".getMLText("search")."\"/>";
|
||||
echo " <input name=\"query\" class=\"search-query\" ".($this->params['defaultsearchmethod'] == 'fulltext' ? "" : "id=\"searchfield\"")." data-provide=\"typeahead\" type=\"text\" style=\"width: 150px;\" placeholder=\"".getMLText("search")."\"/>";
|
||||
if($this->params['defaultsearchmethod'] == 'fulltext')
|
||||
echo " <input type=\"hidden\" name=\"fullsearch\" value=\"1\" />";
|
||||
// if($this->params['enablefullsearch']) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user