Commit graph

169 commits

Author SHA1 Message Date
Linty
34296598d4 fixes #2281 add two default conf for reset and activation link
When a password activation or reset link is generated, the link expiry time is now defined in two conf: $conf[’password_reset_duration‘] with a default time of one hour and $conf[’password_activation_duration‘] with a default time of 72 hours.
2024-11-20 17:09:26 +01:00
Bob Conan
f36d6f006d Update ws.php, fix typos 2024-10-11 08:24:08 +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
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
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
plegall
9fdba44d34 fixes #2005 in pwg.images.uploadCompleted, parameter category_id is mandatory 2024-01-31 13:19:53 +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
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
plegall
7d73935323 issue #1917 add parameter is_download to pwg.history.log 2023-08-03 10:52:20 +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
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
MatthieuLP
9bccc8588f related to #1704 Better 'visible' attribute implementation in API
* fixed SQL error
* Use correct function to save 'visible' attribute
* Underlined the 'Unlock it' button on the orange alert
2023-01-09 14:49:07 +01:00
MatthieuLP
4e899b5eae related to #1704 Added alert is album is locked
* Corrected french sentences spelled wrong
* Added max length for album names in breadcrumbs
* Added attribute 'visible' in categories.setInfos
* Can now unlock an album by clicking on the alert
* Switch used to lock an album works properly now
2023-01-04 18:06:10 +01:00
Matthieu Leproux
f4a4473f37 Issue #1704 New album edition page
* Front end development according to the mockup
* Save changes in ajax
* Implement the delete album behaviour with Jconfirm in ajax
* Adding a new Css component : infos (factorized in the tag page)
* Add a new general admin template variable : ADMIN_PAGE_OBJECT_ID (adding the id of an object on the page)
* Modify the pwg.categories.setInfo api method to fit the need of the album edition pages
* Slightly change the method time_since, add a parameter to display only the greates time unit
* Popin to change parent album, and changed it as a re-usable component
* Dropdown to replace the checkbox for comments
2023-01-02 16:24:41 +01:00
Matthieu Leproux
a3b5f26ea0 related to #1703 Added the list of params for history search API method. 2022-10-04 16:57:38 +02:00
plegall
002abf87df fixes #911 new method pwg.history.log (to be used by PhotoSwipe, in SmartPocket or BootstrapDarkroom) 2022-08-26 16:58:11 +02:00
plegall
352e256d41 details about the new input parameter position for pwg.categories.add 2022-08-18 11:34:37 +02: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
plegall
3a63eccb0e issue #389 partial back-end implementation of multiple formats web upload 2022-06-06 16:31:54 +02:00
Matthieu Leproux
6518bd0136 related to #1609 added create album and album deletion
Album creation bug, it places the ne album at the root
Album deletion bug, when deleting an album, the other click event are removed I don't  know why yet
2022-05-04 15:18:39 +02:00
plegall
c2f8238e16 issue #1640 user preferences 2022-03-31 18:16:23 +02:00
Matthieu Leproux
66bd06176c related to #1614 replacing selectize in photo editor for related categories 2022-03-16 15:09:12 +01:00
Matthieu Leproux
e96df2bcc6 related to #1465 Search action done in ajax, still need to construct response properly 2022-03-02 12:38:06 +01:00
Matthieu Leproux
47788e259a related to #1595 Filters trigger ajax call with uid in param 2022-03-02 12:08:41 +01:00
Matthieu Leproux
6eacc5ea6f Added Pagination, page size set to 100K 2022-03-02 12:08:41 +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
Matthieu Leproux
adba2def7e related to #1381 changed name of the api function that calculates orphans 2021-08-04 12:35:55 +02:00
Matthieu Leproux
ddbdbd93bb fixes #1381 orphans calculation is done only when needed by ajax call 2021-07-28 16:52:44 +02:00
Matthieu Leproux
932439b94c related to #1316 method cache size added, data fetched from php not js
Real data need to be created now
2021-06-24 17:12:09 +02:00
MatthieuLP
ec4d677cf7 issue #1378 add Activity tab in user manager 2021-06-22 18:15:17 +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
Zacharie
5deba88a5c Issue #1193 : Improvement of tag's manager
* Hide Tag item when there are more than 5
 * Change data format in Ajax calls
 * Remove useless code in tag.php
 * Remove pwg_token in pwg.tags.add
 * Minor design fixes
2020-07-08 18:12:50 +02:00
Zacharie
a3ab495446 Issue #1193 : Tag Manager redesign
* Create the new design of tag manager
 * Replace all actions by ajax actions
 * Add delete, rename, duplicate and merge tag's functions in the Piwigo API
 * Modification of group manager to match both designs
2020-07-08 18:12:50 +02:00
Zacharie
9a293dc1c5 Issue #1167 : Add pwg.groups.duplicate to API methods, add the merge action in group manager (and small code fixes) 2020-05-19 17:28:22 +02:00