68 Commits

Author SHA1 Message Date
plegall
4f648db510 issue #2445 avoid null input on strip_tags (image name can be null) 2025-11-19 16:09:50 +01:00
plegall
eb37a4e5f1 fixes #2423, fixes #1949, fixes #2401 render title/description and keep HTML in descriptions
... and in several API methods add new output fields name_raw and comment_raw that are ready for edition
2025-11-10 17:00:58 +01:00
plegall
b167a327e3 issue #2409 add search engine filter : expert mode
* new access system not implemented yet
* dark mode handled but needs review
2025-09-15 15:10:17 +02:00
Perrom
d0ac05d951 fixes #2353 update images with upload form (#2385)
Add a mode to update photos with the upload form. Modify the upload formats form, so that it will update the photo with the same file extension.
2025-07-31 10:41:01 +02:00
plegall
7bb3994fc6 issue #2237 clean user input on custom tag_list 2024-11-11 12:37:24 +01:00
Linty
bc0a4bb107 fixes #2237 added a temporary parameter to pwg.images.setInfo
it's also adapted in the batch manager unit js file
2024-11-05 18:20:42 +01:00
Linty
99a3592eae fixes #2258 add invalidate_user_cache in ws_images_deleteOrphans method 2024-10-30 10:27:11 +01:00
plegall
a3e9ed23ce issue #2227 like for date_posted, display all presets for date_created 2024-09-20 14:21:28 +02:00
HWFord
2d2baa7052 fixes #2227 add creation date filter
Same logic as date posted
2024-09-17 16:50:38 +02:00
HWFord
921f679bca fixes ##2195 if conf['rate'] show rating filter
only allow rating filter if gallery uses rating
update api, mcs.js and tpl to check if rating
search_filters.inc.php update indentation due to extra if
2024-09-16 10:21:49 +02:00
HWFord
b3151e0129 fixes #2211 integrate new redesign for date posted filter
filter on date_posted custom values (specific years, months or days) along side last 7, 30 days, 3 and 6 months
following redesign by alice
2024-09-04 11:30:44 +02:00
mistic100
ce3214df1d Fix check "activate_comments" config in WS 2024-08-30 21:55:46 +02:00
plegall
8fc3c9cd0e issue #2114 calculate missing md5sum only once 2024-08-29 10:44:41 +02:00
marsooooo
12ca607727 issue #2164 updated & fixed bugs on batch manager
Added dark mode for unit mode
Templatized filter block for both unit and global mode
Optimized JS functions and added extensibility for unit mode
Modified images.setInfo method so unit mode could save orphan images
Fixed a bug where php would break if filter selection was empty in unit mode
2024-08-26 14:14:57 +02:00
plegall
08ae0304bb (cp 545e81e) Fix for #2114: Check for photos missing md5sum before trying to update md5sums 2024-08-21 15:20:05 +02:00
HWFord
6fe1d7db65 fixes #2193 [search] add 5 new widgets
add ratings, ratios, filesize, width and height widgets
- in functions_search add clauses according to each new filter
- in ws_functions add new api parameters
- in index.php add queries to get data for filters
- in admin.lang add missing translations for filters
- in css add basic style to work for modus newspaper
- in js add script for new filters
- in tpl combine script + CSS for double slider & jquery Ui. Add slider conf, template for new widgets

TODO
- adapt css to different themes and skins
2024-07-25 16:11:07 +02:00
plegall
6e6a74c348 fixes #2173 allow comma separated list for image_id in pwg.images.syncMetadata 2024-07-09 15:42:31 +02:00
plegall
eb0759ef12 fixes #2046 avoid strip_tags if pwg_token is provided
* pwg.categories.setInfo
* pwg.categories.add
* pwg.images.setInfo
2023-11-23 19:46:46 +01:00
plegall
c904d536a5 fixes #2025 add author field in search by words filter 2023-10-18 18:19:30 +02:00
plegall
14e8ba664b fixes #1735 new API method pwg.images.setCategory to associate/dissociate/move a list of images 2023-10-11 16:58:14 +02:00
plegall
fdd2177e78 fixes #2007 no longer possible to update a filteredSearch
* Piwigo will create a new search for any modification in the filters
* we keep the "origin" of the new search with piwigo_search.forked_from field
2023-09-27 16:30:05 +02:00
plegall
e0a82909fa fixes #1968 new values for date_posted filter
* add 24h, 3m and yNNNN (year 2023 or 2022...)
* remove 1y
* provide labels from backend instead of managing it in javascript
2023-08-26 12:55:12 +02:00
plegall
b787dfd291 issue #1953 improved privacy on searches and associate each search to its creator
* remove temporary functions ws_gallery_getSearch and ws_gallery_updateSearch
* split get_search_array into sub-functions to use them in web API
* use search_uuid as search_id instead of the numeric search.id : better privacy
* only the creator of the search can update it
* if a visitors tries to open the search of another user, it (the search) gets forked into a new search
2023-08-09 19:18:30 +02:00
MatthieuLP
b5dc413b40 related to #1931 & #1946 Added Posted date filter 2023-07-25 16:47:25 +02:00
plegall
87c4fad23e issue #1946 implement backend for search by date_posted 2023-07-24 16:49:53 +02:00
plegall
2d46924bf6 issue #1941 search, implement filter by file type 2023-07-10 15:17:46 +02:00
plegall
c469f5142c fixes #1937 quick search redirects to normal search 2023-07-03 15:22:52 +02:00
Pierrick Le Gall
60363ecd42 Issue #1869 multi-criteria search (#1927)
* First implementation of the new multi-criteria search. It replaces the old search.php form.
* Displays live search criteria above search results. Each change reloads the list of results (displayed as thumbnails).
* New API method pwg.images.filteredSearch.update called in AJAX to live change the filters.
* New kind of filter: added_by
2023-06-21 16:11:08 +02:00
sjsjsjsjsjsjsjsjsj
29b83b1cae fixes #1786 export to piwigo broken with php 8.1 2023-02-11 18:09:47 +01:00
Zacharie Guet
5781810348 Adding a Formats Tab on Edit photo page
* Add 3 new files for the tab creation (php, tpl and js)
* Creation of a new API method : pwg.images.formats.remove
* Adding translation in en_GB and fr_FR for the formats
* Minor change on the head-button css class
2022-07-29 15:56:53 +02:00
Dave Anderson
231d36613c issue #1615 include favorite status in image list API calls 2022-07-23 12:43:02 +02:00
plegall
758e36e4b4 issue #389 really search image_ids in pwg.images.formats.searchImage 2022-06-06 16:31:54 +02:00
Zacharie Guet
d2f28c6676 issue #389 Bug and design fixes 2022-06-06 16:31:54 +02:00
plegall
3a63eccb0e issue #389 partial back-end implementation of multiple formats web upload 2022-06-06 16:31:54 +02:00
plegall
8ef50d84e4 fixes #1553 pwg.images.uploadCompleted details about updated album 2021-11-09 16:19:32 +01:00
plegall
f9b80b4236 fixes #1552 pwg.images.upload correct number of photos in output
We need to take into account the number of photos in the lounge for this album.
2021-11-09 16:12:25 +01:00
plegall
8effbe8e95 fixes #1356 pwg.images.uploadAsync, move auth code to inc/user.inc.php
In order to avoid loading user context as "guest" and then wait to be in ws_images_uploadAsync function to authenticate and load a new user context. This way we deal with "automatic" authentication in the same place (as apache auth or url auth) and we use the more common user context loading mecanism. Making Community compatible is now much easier.

To avoid duplicating too many lines of ws.php into inc/user.inc.php, I have moved the init of ws.php into inc/ws_init.inc.php
2021-10-07 14:53:27 +02:00
plegall
fb84527e3b issue #164 add new API method pwg.images.uploadCompleted
+ trigger ws_images_uploadCompleted when this API method is called
+ trigger empty_lounge (can be called at another moment with different effect)
2021-09-15 13:50:15 +02:00
plegall
1ec5a2933c fixes #1343 remove auto-escape of reserved keywords on MySQL 8
ie no more adding backticks around "rank" and "groups". Too many collateral damages.
2021-08-03 19:27:31 +02:00
plegall
ac0d1a5b47 fixes #1419 add photos in a lounge as a temporary space
* at the end of the upload of after a maximum duration, move the photos from the lounge to their actual categories.
* do not invalidate user cache when photos are added in the lounge, thus avoiding to rebuild cache on every photo uploaded
* the lounge system activates itself only beyond 50k (by default) photo
2021-06-11 16:42:48 +02:00
plegall
af7e4028b0 fixes #1203 add API method pwg.images.uploadAsync
Available as a plugin for Piwigo 2.10, this method is now embedded in Piwigo 11. Designed to work with iOS app, can be used by any remote application.
2020-11-19 18:14:05 +01:00
plegall
1e23ed84d3 fixes #1168 prevent XSS on pwg.images.setInfo 2020-03-24 14:07:49 +01:00
plegall
fa8996e10f issue #1073 prevents from making uploaded file executable
* for the name of the file in buffer directory, do not use the name given by the user, but the md5 of the name without extension
* function add_uploaded_file deletes uploaded file if not expected
2019-09-20 16:26:21 +02:00
plegall
fc193f7474 issue #830 simplify PHP files header, remove copyright/license info 2019-06-04 17:13:51 +02:00
Yann Le Boudec
9891c79f25 issue #1019 photo upload redesign
Based on Samuel's mockup.
2019-05-22 16:49:35 +02:00
plegall
940d1d2e8c issue #552
* many more admin actions are logged into activity table
* use the activity.details as an associative array (serialized in database)
2019-04-01 16:19:09 +02:00
Teatek
b8d6f01b38 fixes #966 progression bar for sync metadata
* [Batch Manager] adding progression bar for metadata sync action
* [Batch Manager] display the number of synchronized photos in the success message
2019-01-27 17:16:13 +01:00
Teatek
b05241f508 Fixes #272 missing md5sum
* dashboard: add warning if missing checksums
* add a "compute all missing md5sum" option in batch manager (inspired by delete orphans)
* progress bar when computing md5sums
2019-01-22 10:26:52 +01:00
plegall
23fa4c1a73 fixes #871, CVE-2018-7722 strip tags on methods pwg.categories.add, pwg.categories.setInfo, pwg.images.setInfo
Adding pwg_token would be a better solution but would break remote applications (like the iOS app)
2018-07-06 18:29:41 +02:00
Cosmin Stroe
ee4aae7e74 Fixes #767 - Return a 500 HTTP status when a file upload error occurs. (#768)
* Return a 500 HTTP status when a file upload error occurs.
2017-10-05 15:35:24 +02:00