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
plegall
639edaa04b
bug 3186: improved security on search.php
...
git-svn-id: http://piwigo.org/svn/trunk@30864 68402e56-0260-453c-a942-63ccdbb3a9ee
2015-01-08 13:06:27 +00:00
plegall
b0cc8f1bc2
* feature 3142: upgrade script to Piwigo 2.7
...
* link to Tour 2_7_0 at the end of upgrade
* activate plugin Take a Tour by default
git-svn-id: http://piwigo.org/svn/trunk@29665 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-09-20 11:43:01 +00:00
mistic100
9ff7ab03a8
feature:2807 better fix for svn:28995
...
git-svn-id: http://piwigo.org/svn/trunk@29008 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-07-08 19:00:47 +00:00
mistic100
8a1ea2ad0a
feature 2807: nicer display of "from to" dates (required changes in "format_date" function)
...
git-svn-id: http://piwigo.org/svn/trunk@28981 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-07-07 09:54:15 +00:00
plegall
266f2f756c
remove line commited by mistake in r28913
...
git-svn-id: http://piwigo.org/svn/trunk@28914 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-07-02 09:40:05 +00:00
mistic100
78c98bd7ec
feature 3046: Add option "force_fallback" to load_language + clean code
...
git-svn-id: http://piwigo.org/svn/trunk@28913 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-07-02 08:12:16 +00:00
mistic100
7c263a2dd2
correctly stringify booleans in conf_update_param
...
git-svn-id: http://piwigo.org/svn/trunk@28691 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-06-13 19:19:47 +00:00
mistic100
a70a274eaa
feature 3038 : always apply serialize&addslashes if object/array is passed and not parser is defined
...
git-svn-id: http://piwigo.org/svn/trunk@28621 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-06-03 15:05:14 +00:00
mistic100
4bd32005b5
feature 3010 : replace trigger_action/event by trigger_notify/change
...
git-svn-id: http://piwigo.org/svn/trunk@28587 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-06-02 07:55:46 +00:00
rvelices
8b4857c773
quick search - small fixes & improvements
...
available number of comments per user do not use visible_categories (only forbidden)
git-svn-id: http://piwigo.org/svn/trunk@28579 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-05-31 18:50:30 +00:00
mistic100
b317745ac9
feature 3038 : add $updateGlobal and $parser options to conf_update_param
...
git-svn-id: http://piwigo.org/svn/trunk@28567 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-05-29 14:11:14 +00:00
rvelices
f1f7e5d4ad
added a persistent cache mechanism; used so far to cache image ids in flat view mode
...
git-svn-id: http://piwigo.org/svn/trunk@28432 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-05-11 08:26:41 +00:00
flop25
168bc751df
lang key with an empty value are not displayed
...
git-svn-id: http://piwigo.org/svn/trunk@28171 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-04-13 18:44:32 +00:00
rvelices
2b81fbc4aa
more query2array
...
git-svn-id: http://piwigo.org/svn/trunk@27369 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-02-13 22:21:12 +00:00
rvelices
2d9887993c
arrayfromquery optimizations: move double if from inside loop to outside + use directly mysqli calls to avoid function call overhead for every row retrieved from db
...
git-svn-id: http://piwigo.org/svn/trunk@27336 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-02-11 21:47:44 +00:00
mistic100
922de9a63d
remove PHP < 5.2 code
...
git-svn-id: http://piwigo.org/svn/trunk@27158 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-02-04 11:02:38 +00:00
mistic100
8a8c8c161d
str2DateTime return false on empty input
...
git-svn-id: http://piwigo.org/svn/trunk@27043 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-01-29 20:49:19 +00:00
mistic100
732e0bb497
bug 3027: Fatal error on Configuration->Options->Photo size
...
git-svn-id: http://piwigo.org/svn/trunk@26902 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-01-22 10:45:24 +00:00
mistic100
4f91b4b9b0
use custom safe_version_compare instead of version_compare to handle versions numbers with letters
...
git-svn-id: http://piwigo.org/svn/trunk@26591 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-01-09 21:22:13 +00:00
mistic100
636650309a
Update headers to 2014. Happy new year!!
...
git-svn-id: http://piwigo.org/svn/trunk@26461 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-01-05 00:19:25 +00:00
mistic100
6e058da6b3
add query2array function, aiming to replace hash_from_query, array_from_query and simple_hash_fromq_query
...
git-svn-id: http://piwigo.org/svn/trunk@26048 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-12-20 10:54:02 +00:00
mistic100
e676bdc8a5
feature 2999: documentation of Template class, other classes of template.class.php pending
...
git-svn-id: http://piwigo.org/svn/trunk@25812 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-12-07 00:00:41 +00:00
mistic100
2f06b27c26
move get_query_string_diff and url_is_remote to functions_url.inc.php
...
git-svn-id: http://piwigo.org/svn/trunk@25615 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-11-21 11:22:42 +00:00
mistic100
b8eeae36dc
feature 2999: Documentation of include/functions_mail|metadata|picture
...
git-svn-id: http://piwigo.org/svn/trunk@25550 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-11-18 17:36:35 +00:00
mistic100
5e2b2f4e02
feature 2999 : documentation of include/functions_calendar.inc.php and Calendar classes
...
git-svn-id: http://piwigo.org/svn/trunk@25507 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-11-17 15:03:32 +00:00
plegall
c10683b35b
feature 2976: add output fields for pwg.users.getList. registration_date,
...
registration_date_string, registration_date_since, last_visit,
last_visit_string, last_visit_since.
bug fixed: format_date(), removing leading zero on day number
git-svn-id: http://piwigo.org/svn/trunk@25459 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-11-11 17:30:39 +00:00
mistic100
e01b40c529
move array_from_query to functions.inc.php
...
git-svn-id: http://piwigo.org/svn/trunk@25427 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-11-10 17:03:25 +00:00
mistic100
7d7a1ce4e4
feature 2999 : documentation of include/functions.inc.php
...
git-svn-id: http://piwigo.org/svn/trunk@25426 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-11-10 17:02:30 +00:00
mistic100
e6722ac1b4
delete replace_space function, modify get_cat_display_name_* functions
...
git-svn-id: http://piwigo.org/svn/trunk@25425 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-11-10 16:18:55 +00:00
mistic100
fc3b787b70
feature 2995: New email template
...
restore get_l10n_args removed at r25357
apply changes to NBM
git-svn-id: http://piwigo.org/svn/trunk@25360 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-11-06 17:57:53 +00:00
mistic100
af040415e2
feature 2651: fallback language, failed when the "child" file does not exists
...
git-svn-id: http://piwigo.org/svn/trunk@25288 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-11-01 15:34:30 +00:00
mistic100
e7fafb73a1
bug:2947 fix compatibility with PHP 5.2 and 5.3
...
git-svn-id: http://piwigo.org/svn/trunk@25114 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-24 09:07:17 +00:00
mistic100
fcf12b0b28
feature 2978: error func_get_args(): Can't be used as a function parameter on PHP <= 5.2
...
git-svn-id: http://piwigo.org/svn/trunk@25113 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-24 08:42:36 +00:00
mistic100
ae707279a1
remove all array_push (50% slower than []) + some changes missing for feature:2978
...
git-svn-id: http://piwigo.org/svn/trunk@25018 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-19 17:43:04 +00:00
mistic100
2f08283864
feature 2978: remove useless sprintf in the core
...
git-svn-id: http://piwigo.org/svn/trunk@25005 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-19 11:04:11 +00:00
mistic100
6313ae831d
feature 2978: l10n() and {translate} with additional arguments
...
TODO: apply in core
git-svn-id: http://piwigo.org/svn/trunk@24988 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-19 09:21:01 +00:00
mistic100
92d692a334
make get_query_string_diff compatible with arrays and use build-in functions
...
git-svn-id: http://piwigo.org/svn/trunk@24833 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-10 10:53:59 +00:00
mistic100
d05cff9ccc
add function conf_delete_param
...
git-svn-id: http://piwigo.org/svn/trunk@24350 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-09-05 10:41:12 +00:00