Commit graph

229 commits

Author SHA1 Message Date
plegall
724a40f316 fixes #2197 pwg.users.getList check user input min_register/max_register 2024-10-28 18:45:04 +01:00
Linty
480522cca1 fixes #2244 add ignore to prevent errors from duplicate 2024-10-15 11:26:18 +02: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
Linty
2905623027 fixes #2214 initialize total_count before using it 2024-09-10 14:55:28 +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
Linty
40ca83d382 fixes #2221 use backticks instead of quotes
...because that's what backticks are for.
2024-09-03 16:19:06 +02:00
Linty
1de27871b3 fixes #2221 encase rank in quotes 2024-09-03 16:02:16 +02:00
mistic100
ce3214df1d Fix check "activate_comments" config in WS 2024-08-30 21:55:46 +02:00
mistic100
3f07808d7f Fix "total_count" type on some WS methods 2024-08-30 20:24:42 +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
Linty
3826f355ae issue #2132 update ws_categories_getAdminList
add new params: cat_id and recursive
2024-07-31 11:36:43 +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
Linty
c8d7503d4e related to #2165 new add user popin
- add field for add user
- in the `pwg.users.add` method, the params `send_password_by_mail` does nothing anymore. Because we no longer want to send passwords in clear text.
- in the `pwg.users.add` add a new `auto_password` parameter to generate a random password when a user is created
- use this parameter (`auto_password`) in user_list.js
- change mail content et password page on first login
2024-06-28 18:56:28 +02:00
Linty
27cd5cde9e related to #2158 update user and guest pop in
- Implementation of a new modal for modifying a user or guest
- Addition of a function to allow plugins to add a tab to the new user modal
- Fix bug: "badger-number" is updated when a user is added or deleted
- Fix bug: When the user who is editing has permissions to delete the user he is modifying, the delete icon is now displayed correctly
- Added a new api method for modifying the main user and generating a link to reset a password
- Passed $conf[‘webmaster_id’] in database configuration
2024-05-31 18:12:52 +02:00
Linty
4d26c62470 issue #2132 album selector hierarchy added to search page 2024-03-08 15:55:43 +01:00
Linty
4adf36f2e5 fixes #2120 add new return value to 'pwg.categories.move' method API
Added a new return value for API method 'pwg.categories.move': updated_cats . This value returns an array of albums whose values have been modified after an album has been moved (for the moment, the data is the id and the number of photos in its sub-albums).
2024-02-19 17:06:59 +01:00
Linty
1629cd9386 issue #2106 added details to search history
API method modification `ws_history_search`: Added a new property in API return `SEARCH_DETAILS` only for searches.
These details are displayed on the `History` page in the `Search` section.
2024-02-02 11:50:56 +01:00
plegall
08124d10f7 fixes #2100 do not send save_visits to PiwigoRemoteSync 2024-01-31 11:14:27 +01:00
Willy "Linty
fbae0b735c fixes #2071 sorts users by date and username 2023-12-18 18:05:09 +01:00
plegall
09d30129cd fixes #2050 provide a default user_name for pwg.history.search 2023-11-27 16:02:01 +01: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
Willy "Linty
a267cc022b Issue #2035 Declare new parameters
We change min and max format date, now we expect `YYYY` or `YYYY-mm`or `YYYY-mm-dd`
2023-11-10 14:40:08 +01:00
plegall
4c734bedd8 issue #1991 make sure requested albums exist on pwg.categories.getImages 2023-10-29 14:48:37 +01:00
Damien Sorel
85db5eb9d1 Fix warning in pwg.categories.php
"Undefined variable: total_images" message when request category does not exist
2023-10-29 14:25:43 +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
b5c9ca4819 issue #2016 save search in history 2023-10-02 12:31:33 +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
ab111cdbe2 fixes #1967 POST/GET input are already escaped 2023-08-23 18:56:08 +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
plegall
d92986a13d fixes #1920 new output parameter save_visits for pwg.session.getStatus 2023-08-03 11:19:44 +02:00
plegall
7d73935323 issue #1917 add parameter is_download to pwg.history.log 2023-08-03 10:52:20 +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
382884836a issue #916 and issue #1917 increment images.hit when calling pwg.history.log 2023-07-10 14:49:36 +02:00
Teatek
639c9d96fa
Issue #917 album photo sort order (#955)
* returns an image_order for API methods pwg.categories.getList and pwg.categories.getAdminList
2023-07-05 11:06:31 +02:00
plegall
c469f5142c fixes #1937 quick search redirects to normal search 2023-07-03 15:22:52 +02:00
plegall
fdabd4a988 fixes #1929 add parameter search on pwg.categories.getList (and use it) 2023-06-27 14:41:28 +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
plegall
0649ad3245 fixes #1924 protect API user input from SQL injections 2023-05-29 12:25:03 +02:00
plegall
b9ddcf17f1 fixes #1871 move the retrieve of the number of queried rows
The FOUND_ROWS() must be performed right after the SQL_CALC_FOUND_ROWS but commit 4d81d28eca had added some new SQL queries in between.
2023-02-21 15:17:24 +01:00
sjsjsjsjsjsjsjsjsj
29b83b1cae fixes #1786 export to piwigo broken with php 8.1 2023-02-11 18:09:47 +01:00
plegall
0b9e177782 issue #1852 also forbid extension deletion 2023-01-25 15:18:45 +01:00