244 Commits

Author SHA1 Message Date
plegall
b416bdb7c9 fixes #2417 ability to hide the new filter "expert mode"
... and removes 2 other duplicates of the filters_views configuration
2025-10-28 18:39:18 +01:00
plegall
f0f4b30ce2 search filters: avoid to write 3 times the same default configuration 2025-10-28 16:35:05 +01:00
HWFord
ac15835422 issue #2414 remove config and update css 2025-10-03 17:43:35 +02:00
HWFord
b682fd0cd3 fixes #2414 change related tags display
Add conf to display or not the related tag options by default
Add templates and css for new display
2025-10-03 15:43:29 +02:00
Linty
18bb865a23 fixes #2411 disable 3xl and 4xl by default
- Add 3XL and 4XL sizes to defaults but keep them disabled by default
- Update admin restore default derivatives resets sizes and clears cache
- Update migration 177 => updates existing installs: set 3XL/4XL as disabled
2025-09-19 18:49:05 +02:00
Linty
dbec498287 fixes #2404 notify users of impending API key expiration
Adds logic to detect when an API key is about to expire and sends a notification email to the user if the key expires within 7 days and no recent notification was sent. Introduces a new 'last_notified_on' column to the user_auth_keys table to track notification timing.
2025-09-04 17:21:53 +02:00
Perrom
2465654752 fixes #2362 add gallery filters options in admin (#2395)
Add a config page in admin for the search filters in the gallery. Privacy and default filters can be selected. Needs a database update.
2025-08-08 15:07:02 +02:00
HWFord
1f7f44bac8 relates #2377 check new sizes are bigger than xxl
if the default sizes aren't bigger than the XXL then multiply the XXL size by 1.5 for 3XL and the 3XL size by 1.5 for 4XL
2025-06-30 15:25:15 +02:00
HWFord
b825f45537 fixes #2377 add 3XL and 4XL derivatives 2025-06-26 12:35:03 +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
HWFord
711453a804 relates #2368 update comment for param 2025-05-20 14:11:21 +02:00
HWFord
853f48bf4d fixes #2368 set conf update param to true 2025-05-20 14:10:06 +02:00
HWFord
f88472fa9c fixes #2345 create piwigo standard pages
create new theme standard pages with tpl, css, js and images
update backend to handle pages
add config use_standard_pages
on update set config to false, on install set config to true
add standard pages to no be ingored in git
2025-03-18 16:46:41 +01:00
plegall
552499e053 fixes GHSA-hghg-37rg-7r42 increase security on secret_key 2024-10-17 11:11:59 +02:00
plegall
14678d28a9 fixes #942 IPv6 compatibility, increase length of history.IP 2024-09-05 10:45:34 +02:00
plegall
38951c9876 fixes #2208 reduce sessions.id length below 1000 bytes 2024-09-04 12:14:49 +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
plegall
439f275d4e fixes #860 detect duplicates during upload 2023-10-15 13:11:10 +02:00
plegall
426c20d46b fixes #2016 remove search.last_seen, never really used 2023-10-02 14:55:33 +02:00
plegall
b5c9ca4819 issue #2016 save search in history 2023-10-02 12:31:33 +02:00
plegall
2c3b6ba6ec issue #1955 search in this set (an album or some tags) 2023-08-12 16:49:42 +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
4b33001c15 fixes #1902 ability to set a specific group to notify user registrations 2023-04-22 17:21:29 +02:00
Matthieu Leproux
3d69c6b093 creating user agent column for activities 2022-06-21 13:56:34 +02:00
plegall
c2f8238e16 issue #1640 user preferences 2022-03-31 18:16:23 +02:00
plegall
8e2f12fdf0 fixes #1529 rewrite list of filter users for activities
* migration task to update activity.performed_by (with object_id) for logout action (was always user guest instead of the real user)
* activities: use the actual regrouped lines to list filter users (instead of performing a separate SQL query)
2021-10-19 16:28:52 +02:00
Matthieu Leproux
599c5ec3c3 related to #1432 Add migration task to remove duplicated activities 2021-06-18 11:25:16 +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
498fb5e85d fixes #1272 add index on images.path to speed up i.php 2020-12-18 15:35:35 +01:00
plegall
4bb4071a8a fixes #670 change default date to 1970 instead of year 0000
It was already this default value for Piwigo installed on version 2.9+. This upgrade script is for Piwigo installed previously. The 0000 default year might cause issues with MySQL 5.7+
2020-10-30 11:10:40 +01:00
plegall
b24c6c48f1 fixes #1069 config settings to promote mobile app (iOS only for now) 2020-09-29 15:12:19 +02:00
plegall
fc193f7474 issue #830 simplify PHP files header, remove copyright/license info 2019-06-04 17:13:51 +02:00
plegall
c202897a72 issue #552 change activity.occured_on to TIMESTAMP instead of DATETIME to make it work on old MySQL versions 2019-04-10 16:49:03 +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
plegall
27a6504284 issue #552 new table activity and log add/edit/delete on albums 2019-03-25 16:50:45 +01:00
Teatek
339c54fa23 issue #273 improve labels 2019-02-04 10:46:16 +01:00
Teatek
1907e678b8 Fixes #273 (Add ui option to display or not the date of an album) 2019-02-04 10:46:16 +01:00
plegall
1c5b36f734 fixes #235, show/hide edit/caddie/representative icons on index.php or picture.php 2017-04-07 14:20:19 +02:00
plegall
b0ae23e34d fixes #428, ability to hide "sizes" icon on index.php or picture.php 2017-04-06 15:55:23 +02:00
plegall
5fb18eda36 feature #509 summarize history more often
Every 1000 log entry inserted, Piwigo performs an history summarize.

The summarize process has also been optimized: no longer used column
history.summarized (no longer need to update it, which took a lot in time),
we now save the history_id_from and history_id_to in history_summary table.
This way we know from where to start on next summarize.

For now, for a simple performance reason, we keep column history.summarized,
because removing it may take a long time on huge tables. Once we will have
automatic purge on history, it will be safer to drop this column.
2016-11-18 15:08:03 +01:00
plegall
4560e2d824 fixes #478, add new column user_infos.last_visit
This will speed up user edit popin opening, by avoiding to search in history for the last user visit.

The column user_infos.last_visit_from_history true/false says if the last_visit has already been search in history (to avoid making it twice). I could have implemented the search of last_visit for all users in the migration task 149 but in case of many users and long history, it would have taken years to execute...
2016-05-31 16:00:03 +02:00
plegall
c789347c51 happy new year 2016, all headers updated 2016-01-14 12:17:58 +01:00
plegall
f2f9e5ecb7 feature #392, authentication keys, history log
When a user successfully performs an authentication with an auth_key, Piwigo
registers it in the history table.

For now, it is not shown/searchable in the history screen, but we can add it
in the future and we can provide a plugin with specific details about
authentication keys usage.
2016-01-04 15:04:02 +01:00
plegall
eee57a5d2e feature #392, authentication key, new table 2015-12-31 19:53:38 +01:00
plegall
c3b748ecbf feature #379 multiple format, step 2: download formats
* if formats are available, replace the download link on picture.php by a switchBox with all formats
* register format in the history table for future statistics
2015-12-07 10:54:18 +01:00
plegall
8e098d502a feature #379 multiple format, step 1: add formats
* new table piwigo_image_format (each photo can have 0 to many formats)
* only compatible with synchronization for now. Formats must be in sub-directory pwg_format
* formats are visible on edition page only for now
2015-12-03 16:04:02 +01:00
plegall
87a30ff064 bug 3050: increase security on reset password algorithm.
* reset key has a 1-hour life
* reset key is automatically deleted once used
* reset key is stored as a hash

Thank you effigies for code suggestions


git-svn-id: http://piwigo.org/svn/trunk@29111 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-07-28 19:27:50 +00:00
plegall
30fa11fb9a feature 3103: enlarge users.id (and foreign keys user_id, added_by or author_id) from smallint (max 30k) to mediumint unsigned (max 16M)
git-svn-id: http://piwigo.org/svn/trunk@29072 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-07-24 08:34:02 +00:00
mistic100
b4b1797530 feature 3095: add "comments_enable_website" param + GUI
git-svn-id: http://piwigo.org/svn/trunk@28764 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-06-22 11:41:47 +00:00
mistic100
fea2a4efd1 feature 3077 : improve cache invalidation
- add "lastmodified" automatic field for categories, groups, users, tags and images tables
- provide a "server key" to the client cache manager

git-svn-id: http://piwigo.org/svn/trunk@28532 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-05-24 14:18:04 +00:00