Commit Graph

79 Commits

Author SHA1 Message Date
plegall
3ab004f7f6 fixes GHSA-wfmr-9hg8-jh3m protects pwg.activity.getList 2026-02-24 17:14:35 +01:00
plegall
09a03d9818 issue #2386 optimize pwg.activity.getList
* fetch block of 10k rows from activity table instead of 500. It's not much slower and may avoid many loops to generate 100 lines of output aggregated lines.

* no need to perform a slow query to count the total number of filtered rows, we can just detect if there are more rows to aggregate to know if we have reached the last page.

* parse details only if we're on a new output key (which is discutable, but we use details only on new output line creation)
2025-08-12 16:03:49 +02:00
plegall
818233cd5e bug fixed: getActivityList, use the same SQL where clause to calculate max_line and fetch lines 2025-08-11 14:39:00 +02:00
Perrom
4dc2fc9f8d fixes #2386 update filters in users activity logs (#2399)
* Add an action filter and a date filter. 

* Additional filters on a specific object (photo/album/group) are available from their dedicated administration page.

* Performances of the page was improved : instead of loading 100k lines in activity table, we loop on 500 activity lines until 100 aggregated lines are found for the current page.
2025-08-08 15:17:50 +02:00
Linty
ae740ba3af fixes #2355 implement API key management system
- Added API key get, creation, editing, and revocation methods.

- Updated the profile template to include API key management features.

- Updated the database schema to support the new API key system, including additional fields for key management.

- Added client-side JavaScript functionality to handle API key operations and display responses.

- Update tools/htm.ws with the new way to authenticate.

- Restriction of certain api methods when used with an api key

- Backward compatibility with older apps
2025-06-09 20:35:57 +02: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
plegall
09d30129cd fixes #2050 provide a default user_name for pwg.history.search 2023-11-27 16:02:01 +01:00
plegall
b5c9ca4819 issue #2016 save search in history 2023-10-02 12:31:33 +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
plegall
382884836a issue #916 and issue #1917 increment images.hit when calling pwg.history.log 2023-07-10 14:49:36 +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
bb69269239 fixes #1841 register system activities 2022-12-24 17:36:35 +01:00
plegall
b08fd91edc fixes #1839 forget no usernames, not only performed_by 2022-12-21 19:02:52 +01:00
plegall
3b36ff0a91 fixes #1838 ability to hide connections from activities with a config setting 2022-12-21 17:18:43 +01:00
Thibautg16
555133294d fix syntax error
syntax error, unexpected ')' in include/ws_functions/pwg.php
2022-10-17 12:56:36 +02:00
Matthieu Leproux
f63e6a5c32 related to #1743 better detail section with tiptip and icons and link to cat in gallery 2022-10-10 15:46:26 +02: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
Matthieu Leproux
38105aff23 fix #1740 better UI for edit btn when the image is deleted 2022-10-03 14:43:31 +02:00
Matthieu Leproux
f4bb3894da fixed #1711 removing start date gives coherent results now 2022-09-28 12:52:39 +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
Matthieu Leproux
3d69c6b093 creating user agent column for activities 2022-06-21 13:56:34 +02:00
Matthieu Leproux
0e0ab49fac related to #1672 Quick fix for activity unserializing $details 2022-06-20 14:50:29 +02:00
Matthieu Leproux
6856a3cff0 bug fix history search, allow data load when images are deleted 2022-05-10 14:02:15 +02:00
Matthieu Leproux
958031c141 related to #1465 better drop down for images and bugfix on filters 2022-03-02 12:46:29 +01:00
Matthieu Leproux
e6cfb068ce related to #1465 better UI if no results + borders + better refresh 2022-03-02 12:46:29 +01:00
Matthieu Leproux
758a7ef4d1 related to #1465 max page added to pagination 2022-03-02 12:46:29 +01:00
Matthieu Leproux
5723f99056 related to #1465 added better pagination + dark mode for lines 2022-03-02 12:46:29 +01:00
Matthieu Leproux
a23167f98c related to #1465 removed useless code in history.php and added version to api function 2022-03-02 12:46:29 +01:00
Matthieu Leproux
1ada02c1b6 related to #1465 better indent, new translation line + add guest as filter 2022-03-02 12:46:29 +01:00
Matthieu Leproux
f9d800abcb related to #1465 code review 2022-03-02 12:45:47 +01:00
Matthieu Leproux
6fcedc19a3 related to #1465 added summary to history results 2022-03-02 12:45:47 +01:00
Matthieu Leproux
5730be596c related to #1465 category name addded 2022-03-02 12:45:47 +01:00
Matthieu Leproux
fcc14158a1 related to #1465 added category name on line display 2022-03-02 12:45:47 +01:00
Matthieu Leproux
5ca10bbfae related to #1465 added hover on ip and user name + adjustments for labels and translation 2022-03-02 12:45:47 +01:00
Matthieu Leproux
98c8269cdf related to #1465 removed useless translations + added icon on ip and username hover + labels 2022-03-02 12:45:47 +01:00
Matthieu Leproux
84dbdbabe8 related to #1465 added beginning of pagination 2022-03-02 12:45:47 +01:00
Matthieu Leproux
6860c59453 related to #1465 added ip and download filter + some titles to lines + listenners 2022-03-02 12:45:47 +01:00
Matthieu Leproux
4f85ca29e1 related to #1465 the filter "user" can be added and removed 2022-03-02 12:44:21 +01:00
Matthieu Leproux
332fc2430e related to #1465 added edit link to drop down 2022-03-02 12:38:06 +01:00
Matthieu Leproux
717213e6d4 related to #1465 displaying real info in lines 2022-03-02 12:38:06 +01:00
Matthieu Leproux
34100c049c related to #1465 fetching lines by ajax call 2022-03-02 12:38:06 +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
fb07012b06 related to #1595 cleaner code, removed unused functions 2022-03-02 12:08:41 +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
19c9c36e79 Removing user list from getActivity. Generating userlist in template init 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
Matthieu Leproux
1e8b4c747f fixes #1604 moved activity download API method to activity php file 2022-02-02 14:42:22 +01:00