Commit graph

363 commits

Author SHA1 Message Date
plegall
e5e84e07e6 issue #2194 change data organization 2024-07-30 23:05:03 +02:00
plegall
db08d32d6f fixes #2194 more details about files in send_piwigo_infos
new function to handle unique_exec (can be used in other places as well)
2024-07-29 23:39:40 +02:00
plegall
03074bae4b issue #2166 typo fixed 2024-06-13 21:55:32 +02:00
plegall
848ac5082a issue #2166 more tests to avoid sending name of private extensions 2024-06-13 11:16:33 +02:00
plegall
d0143e9259 issue #2166 remove debug code 2024-06-10 22:21:22 +02:00
plegall
71cd92c04d fixes #2166 add feature to send anonymous stats to piwigo.org 2024-06-10 21:32:04 +02:00
plegall
929bd1bd73 fixes #2142 truncate tags_strings if longer than 50 chars 2024-03-31 17:08:54 +02:00
plegall
d69bc8b884 fixes #2134 make sure database is writeable before new version notification 2024-03-13 11:11:48 +01:00
plegall
e3cda5108a fixes #2088 case-insensitive check for history.section autofill 2024-01-18 11:26:10 +01:00
plegall
b5c9ca4819 issue #2016 save search in history 2023-10-02 12:31:33 +02:00
plegall
d92986a13d fixes #1920 new output parameter save_visits for pwg.session.getStatus 2023-08-03 11:19:44 +02:00
Pierrick Le Gall
978425527d
Merge pull request from GHSA-934w-qj9p-3qcx 2023-07-07 16:23:49 +02:00
plegall
a761d83e56 issue #1841 during install (activate_core_themes) there is no session yet 2023-01-23 15:49:07 +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
plegall
796f726ed1 fixes #1835 remove HTML tags from user_agent before storing it 2022-12-25 11:20:00 +01:00
plegall
bb69269239 fixes #1841 register system activities 2022-12-24 17:36:35 +01:00
plegall
72d3940a40 fixes #1606 filter_var, remove deprecated constants. Requires PHP 5.2+ 2022-09-08 09:47:07 +02:00
Matthieu Leproux
3d69c6b093 creating user agent column for activities 2022-06-21 13:56:34 +02:00
plegall
21ac55c5a5 fixes #1587 do not register a login activity for pwg.images.uploadAsync 2021-12-23 17:55:40 +01: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
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
86d212f4f1 fixes #1292 ability to avoid the reserved words escape in pwg_query
Useful for conf_update_param because we don't want any modification in the config.value and we know we won't use the reserved words in the SQL.
2021-01-21 16:10:36 +01:00
plegall
56fd5dccd2 The branch is now only the first digits before the first dot in version number.
In order to change from versions 2.10.x to 11.x.y, Piwigo needs to only consider 11 as the branch, and not 11.x. Or else it will mess up with minor and major updates.
2020-11-12 11:29:08 +01:00
plegall
fc193f7474 issue #830 simplify PHP files header, remove copyright/license info 2019-06-04 17:13:51 +02:00
plegall
dc40d1956e fixes #945 pwg_log automatically creates a new history.section in the enum, when needed 2019-04-02 16:04:01 +02:00
Peter Stimpel
16abd1af28 solves issue 945, if plugin developers add their own sections, Piwigo tries to put them into history table. Since the section column is an enum, php issued a warning. 2019-04-02 14:53:11 +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
plegall
063711240a Squashed commit of the following:
commit 7190866ccf15033f27095d635546e46dacbb755e
Author: plegall <plg@piwigo.org>
Date:   Thu Jul 12 10:52:33 2018 +0200

    Revert "Replace not maintained cssmin with fork from github https://github.com/natxet/CssMin"

    This reverts commit c8b12a2ed0.

commit 1dac11ecb6783d0d5353c3d250388f018c30fc5c
Author: plegall <plg@piwigo.org>
Date:   Thu Jul 12 10:52:24 2018 +0200

    Revert "Update Smarty to 3.1.3"

    This reverts commit db684f6151.

commit 3ac752dc93912ba5701d22dadd9bb3b81e5bb383
Merge: d1c2e71 8d58256
Author: plegall <plg@piwigo.org>
Date:   Thu Jul 12 10:50:43 2018 +0200

    Merge branch 'php72' of https://github.com/Infern1/Piwigo into Infern1-php72

commit 8d58256c45
Author: Rob Lensen <rob@bsdfreaks.nl>
Date:   Wed Mar 21 23:40:36 2018 +0100

    new feedcreator version for PHP7

commit bb0fcc3a30
Author: Rob Lensen <rob@bsdfreaks.nl>
Date:   Wed Mar 21 23:26:27 2018 +0100

    php72 fixes, replaces each() function

commit 3db22c0d33
Author: Rob Lensen <rob@bsdfreaks.nl>
Date:   Wed Mar 21 23:02:46 2018 +0100

    More fixes for PHP7.2

commit 50d8aafc77
Author: Rob Lensen <rob@bsdfreaks.nl>
Date:   Mon Mar 19 23:55:21 2018 +0100

    Some more replacements of create_function

commit 8263335c42
Author: Rob Lensen <rob@bsdfreaks.nl>
Date:   Mon Mar 19 22:54:54 2018 +0100

    Fixed indents

commit 8d58b637c6
Merge: c8b12a2 8a57d77
Author: Rob Lensen <rob@bsdfreaks.nl>
Date:   Tue Feb 27 13:51:32 2018 +0100

    Merge remote-tracking branch 'upstream/master' into php72

commit c8b12a2ed0
Author: Rob Lensen <rob@bsdfreaks.nl>
Date:   Thu Jan 18 00:32:46 2018 +0100

    Replace not maintained cssmin with fork from github https://github.com/natxet/CssMin

commit db684f6151
Author: Rob Lensen <rob@bsdfreaks.nl>
Date:   Thu Jan 18 00:23:24 2018 +0100

    Update Smarty to 3.1.3

commit 6a3f8f3e76
Author: Rob Lensen <rob@bsdfreaks.nl>
Date:   Wed Jan 17 23:40:27 2018 +0100

    Initial work to support PHP 7.2
2018-07-12 10:52:55 +02:00
plegall
a3cf80c77c fixes #732, avoid conflict with PHP function "transliterate" 2017-07-13 11:29:27 +02:00
plegall
a2e6a2670a Merge branch 'feature/optimize-history' 2016-11-25 18:38:56 +01:00
plegall
e43d48f296 Merge branch '2.8' 2016-11-21 15:22:27 +01:00
plegall
906f8d57b8 fixes #306, operator precedence issue in load_language 2016-11-21 15:20:36 +01:00
plegall
eef8a27f5e feature #370, automatic purge on history 2016-11-21 12:13:21 +01: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
dde2426bbf Merge branch '2.8' 2016-11-17 14:14:16 +01:00
plegall
b3157cbfd8 fixes #547, strong checks on url format 2016-11-17 13:43:40 +01:00
plegall
724befb35d feature #478, improve performances
By reducing frequency of update on user_infos.last_visit. Instead of updating
on each page visit, we wait at least a session length, which is 30 minutes by
default.

@modus75 suggested to use function log_user instead, which is a better design.
Unfortunately it would lead to much less accuracy, because on many systems PHP
sessions are never purged (Debian with default settings). It would be possible
to come back everyday and never update the last_visit, as long as the web
browser is not closed.
2016-07-04 15:47:02 +02: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
1fe2631774 fixes #290, avoid error on MySQL insert with ipv6 2016-02-16 14:56:32 +01:00
modus75
4bf51fc8e0 shorten some code (not really important) 2016-01-16 17:20:43 +01:00
plegall
c789347c51 happy new year 2016, all headers updated 2016-01-14 12:17:58 +01:00
plegall
c79cb18e44 Merge branch 'feature/293-trigger-upload' 2016-01-14 11:23:45 +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
8ba7a1587a feature #293 trigger to generate pwg_representative
* new function upload_file_pdf and upload_file_tiff
* code to handle videos removed for now (discussion with @xbgmsharp)
2015-12-15 10:12:46 +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
Iglou.eu
9fb420d426 Update functions.inc.php
Add //TRANSLIT to iconv for activate transliteration.
2015-10-29 15:29:50 +01:00
mistic100
0c576ea19d feature 3221 Add Logger class
git-svn-id: http://piwigo.org/svn/trunk@31102 68402e56-0260-453c-a942-63ccdbb3a9ee
2015-04-24 14:00:50 +00:00