Commit Graph

148 Commits

Author SHA1 Message Date
Uwe Steinmann
3388a14793 fix line indenting 2022-05-09 15:26:45 +02:00
Uwe Steinmann
f93af56f52 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-02-12 19:48:56 +01:00
Uwe Steinmann
9889bbe639 make role id an integer 2022-01-20 07:44:31 +01:00
Uwe Steinmann
b7315c501f get id from args in getFolderParent() 2022-01-16 10:58:19 +01:00
Uwe Steinmann
3f0cbc50bd use conversion manager 2021-12-29 12:06:50 +01:00
Uwe Steinmann
4ef64199ab Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-11-26 10:05:24 +01:00
Uwe Steinmann
248f11653a allo echo without authentication 2021-11-26 09:43:06 +01:00
Uwe Steinmann
0c1a795113 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-09-28 10:33:44 +02:00
Uwe Steinmann
6d4f00a137 fix echo test 2021-09-27 10:18:16 +02:00
Uwe Steinmann
4a23c1df86 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2021-04-30 16:13:30 +02:00
Uwe Steinmann
8be856e688 check for quota and duplicate content when uploading new doc or version 2021-04-30 14:49:02 +02:00
Uwe Steinmann
104952d644 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-12-01 12:42:48 +01:00
Uwe Steinmann
5c9ddac11d pass params to $dms->search() by array 2020-11-30 15:40:33 +01:00
Uwe Steinmann
6ed79ac5dc Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-10-28 13:57:05 +01:00
Uwe Steinmann
0159208e20 add new method setDocumentOwner(), owner can be set when uploadig document 2020-10-26 15:26:32 +01:00
Uwe Steinmann
8f563622b6 set php handler, fix name of mod_headers 2020-10-26 15:26:04 +01:00
Uwe Steinmann
dc8c8670db Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-10-06 14:24:57 +02:00
Uwe Steinmann
fd9bc77fef add new method addDocumentCategory 2020-10-06 14:07:21 +02:00
Uwe Steinmann
e3bb44d504 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-08-10 07:34:14 +02:00
Uwe Steinmann
b4944cfc64 forgot to fetch settings from container 2020-08-07 17:51:55 +02:00
Uwe Steinmann
e64ef5fae3 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-06-29 08:23:06 +02:00
Uwe Steinmann
b19db06572 fix constant auth failure even if logged in 2020-06-29 08:22:29 +02:00
Uwe Steinmann
395d71b705 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-06-24 21:23:08 +02:00
Uwe Steinmann
15c41a0528 add swagger api definition and .htaccess 2020-06-24 16:16:44 +02:00
Uwe Steinmann
7748b112ef major rework, put authentication into slim middleware, fully migrate to slim 2020-06-24 16:15:32 +02:00
Uwe Steinmann
5a3e2578e1 better error checking and fixed some return values 2020-06-23 10:01:41 +02:00
Uwe Steinmann
d56812f66d Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-06-19 08:09:30 +02:00
Uwe Steinmann
dc210cf59c clean up code, better error checking, unified http return codes 2020-06-19 08:08:23 +02:00
Uwe Steinmann
5dcafd65ce add support for cors 2020-06-17 11:18:15 +02:00
Uwe Steinmann
d9143ff271 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-06-16 12:14:03 +02:00
Uwe Steinmann
b97387ecb1 set http status 403 if user is not admin, set status 500 for some other errors 2020-06-16 12:12:50 +02:00
Uwe Steinmann
d1f47f9320 Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-04-22 17:22:24 +02:00
Uwe Steinmann
ea46cce2df fix creation of sub folders (Closes: #469) 2020-04-21 17:23:14 +02:00
Uwe Steinmann
48ee318921 fix setting and retrieving role of user 2020-03-24 09:30:26 +01:00
Uwe Steinmann
4271c40e91 expand tabs 2019-07-16 20:17:23 +02:00
Uwe Steinmann
38413b671f added check for duplicate folder and document names if turned on 2019-07-01 11:49:17 +02:00
Uwe Steinmann
51c9236c7c return version of new content after upload 2019-02-27 11:45:08 +01:00
Uwe Steinmann
b3bdf6e09d add version_comment and version_date to document data 2019-02-21 14:30:12 +01:00
Uwe Steinmann
cc790dd614 fix php warning 2019-02-15 10:39:45 +01:00
Uwe Steinmann
bcefbca382 check for more parameters doSearch() 2019-02-15 08:31:47 +01:00
Uwe Steinmann
6e2fa5022a add addDocumentLink() 2019-02-12 21:37:21 +01:00
Uwe Steinmann
32c09408d4 check if param 'limit' in doSearchByAttr() is set, before using it 2019-02-12 18:42:52 +01:00
Uwe Steinmann
f89d8bf400 sequence of new folder can be passed 2019-02-12 11:57:11 +01:00
Uwe Steinmann
8f2f81ee03 categories, attributes, comment, sequence, etc. can be set when uploading a new document 2019-02-11 14:11:34 +01:00
Uwe Steinmann
8e5e3ec4ea fix line indenting, propperly get query parameters in uploadDocumentPut 2019-01-22 13:08:20 +01:00
Uwe Steinmann
6b11e9cb87 support for Slim v3 2019-01-09 09:19:46 +01:00
Uwe Steinmann
4e87b9612d use new Slim version 2018-12-18 17:57:59 +01:00
Uwe Steinmann
86f73947b0 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2018-07-20 07:32:58 +02:00
Uwe Steinmann
54fd9698ca Merge branch 'seeddms-4.3.x' into seeddms-5.0.x 2018-07-20 07:32:08 +02:00
Uwe Steinmann
b578118bee set email field instead of fullname in setEmail() 2018-07-20 07:28:08 +02:00
Uwe Steinmann
45615be207 pass context to getAccessMode() 2018-07-12 22:36:44 +02:00
Uwe Steinmann
a074aa6606 check if search() returns false 2018-04-12 12:33:46 +02:00
Uwe Steinmann
97ff9abee5 use sendFile() instead of readfile() 2018-01-18 08:49:00 +01:00
Uwe Steinmann
6c5608d96d fix wrong variable name (part of ticket #373) 2018-01-08 10:51:08 +01:00
Uwe Steinmann
a7b0a6e000 add methods for deleting users and to get a single category 2018-01-03 08:12:46 +01:00
Uwe Steinmann
0f5284df30 take out printf 2018-01-01 08:59:48 +01:00
Uwe Steinmann
4f95d58c4b fix doLogin function, which uses the wrong user variable 2017-12-30 12:39:49 +01:00
Uwe Steinmann
d1ea639431 add more response codes 2017-12-22 13:36:01 +01:00
Uwe Steinmann
63f9170671 another major overhaul
http status codes are set in case of error, better error checking, ...
2017-12-22 13:04:26 +01:00
Uwe Steinmann
a534c3dd3f remove old code 2017-12-21 15:15:59 +01:00
Uwe Steinmann
e8bfbb5c97 add uploadDocument with POST, add changeCategoryName, moveFolder receives destination in url like moveDocument 2017-12-20 17:58:24 +01:00
Uwe Steinmann
d0a2ac51a4 add methods to manage categories 2017-12-20 16:38:10 +01:00
Uwe Steinmann
efe9ff0e42 do not pass folder in document move as 'dest' anymore 2017-12-20 13:46:38 +01:00
Uwe Steinmann
ff82caf818 fix setting of header 2017-12-20 13:42:15 +01:00
Uwe Steinmann
0b054d0fb1 add method uploadDocumentFile() 2017-12-20 13:35:23 +01:00
Uwe Steinmann
aaab438c16 return properly if user object doesn't exists 2017-12-20 13:27:33 +01:00
Uwe Steinmann
cbe184a637 return from uploadDocument() if user cannot be found 2017-12-20 13:19:41 +01:00
Uwe Steinmann
1a9f6895f7 calling /folder/ with an id will return the root folder 2017-12-20 13:18:07 +01:00
Uwe Steinmann
80c5934eb1 use new authentication mechanism, add ldap authentication 2017-12-20 13:16:15 +01:00
Uwe Steinmann
041c7934bc do not add extension if it already exists (getDocumentContent()) 2017-12-20 12:16:12 +01:00
Uwe Steinmann
83aa6fe02e move retrieval of document data into function 2017-12-20 11:51:05 +01:00
Uwe Steinmann
b539921c23 do not call htmlspecialchars() for json data
it doesn't do any harm and it's up to the application to encode the data
2017-12-20 11:33:21 +01:00
Uwe Steinmann
be112427d6 remove white space, expand tabs 2017-12-20 11:24:40 +01:00
Uwe Steinmann
5013fb154c do not htmlspecialchars() keywords, check attributes before setting them 2017-12-20 11:22:16 +01:00
Uwe Steinmann
f12d735124 Merge branch 'seeddms-5.0.x' into seeddms-5.1.x 2017-10-27 07:59:42 +02:00
Uwe Steinmann
c86bcd50ce Merge commit 'f3490fc6ced1af8d2c96b76c806d47c77553e4f1' into seeddms-5.0.x 2017-10-27 07:38:55 +02:00
Uwe Steinmann
43819b205e Merge commit '957482bc9b23949923f7ac4a3dbb8b8b54892603' into seeddms-5.0.x 2017-10-27 07:38:26 +02:00
Uwe Steinmann
02b91a52cc execute extension code 2017-10-16 09:06:37 +02:00
Uwe Steinmann
fcd8f1a53b include previewer, include slim from vendor dir 2017-02-22 09:08:52 +01:00
Uwe Steinmann
fd2d343c71 add method getDocumentPreview(), fix setting some headers 2017-01-05 10:05:47 +01:00
Uwe Steinmann
bd67ea6abd set filetype when uploading file 2016-12-22 07:54:52 +01:00
Sebastian Bartus-Kunz
f3490fc6ce Small fix. 2016-06-10 15:08:33 +02:00
Sebastian Bartus-Kunz
957482bc9b Added change password request. 2016-06-10 15:06:41 +02:00
Uwe Steinmann
45538b32ff set 'orig_filename' get return value of getDocument() 2016-06-09 19:31:18 +02:00
Uwe Steinmann
f894ac441a add methods get[Folder|Document]Attributes 2016-05-17 10:18:41 +02:00
Uwe Steinmann
b59d414adb fix some bugs in changeFolderAccess. 2016-02-15 17:03:13 +01:00
Uwe Steinmann
fbf13b6806 lots of new functions
mostly for group and account management
2016-02-15 08:23:32 +01:00
Uwe Steinmann
ef902ee120 return file size of version where appropriate 2015-08-11 14:10:28 +02:00
Uwe Steinmann
858efedfdf set default limit in doSearch to 5 2015-03-17 21:12:06 +01:00
Uwe Steinmann
401d02daaf fixed limit restriction in doSearch() 2015-03-13 08:08:28 +01:00
Uwe Steinmann
7a1856bc5d the limit passed to doSearch applys to the filtered result
previous the limit was applied to search befored filtering the
result by access rights. This can easily cause empty result sets if
the user has access to few documents. Now the search returns all
hits and limit will be applied when the documents are filtered by
access rights
2015-03-13 07:49:58 +01:00
Uwe Steinmann
15477a076d set substitution user if set 2015-03-12 17:12:44 +01:00
Uwe Steinmann
4265ff97f3 better error checking, new upload document route 2014-07-11 08:39:10 +02:00
Uwe Steinmann
d0c055e0ee more parameters for createfolder
comment and attributes can be set
2014-06-30 11:03:37 +02:00
Uwe Steinmann
8740020409 new method doSearchByAttr()
it searches objects by a given attribute and its value
2014-06-30 07:42:16 +02:00
Uwe Steinmann
010179fc98 getFolder() can be forced to treas $id as a name 2014-06-03 08:49:01 +02:00
Uwe Steinmann
f33e9ca232 getFolder also takes a name and a parent id 2014-05-28 09:50:41 +02:00
Uwe Steinmann
92803c5f39 add missing restapi files 2014-04-08 09:15:18 +02:00