62 Commits

Author SHA1 Message Date
plegall
f78e796dbe (cp 1646f5e) fixes #998 temporary fix for Piwigo Remote Sync compatibility 2019-04-02 11:35:07 +02:00
plegall
e45e726b58 (cp 0637112) 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:58:26 +02:00
plegall
0ec289769e (cp 23fa4c1) fixes #871, CVE-2018-7722 strip tags on methods pwg.categories.add, pwg.categories.setInfo, pwg.images.setInfo
Adding pwg_token would be a better solution but would break remote applications (like the iOS app)
2018-07-06 18:31:58 +02:00
plegall
6d2f2a1d0d (cp 63932b9) fixes #735, add API method pwg.users.getAuthKey 2018-02-22 14:17:44 +01:00
plegall
27de5c0345 (cp ee4aae7) Fixes #767 - Return a 500 HTTP status when a file upload error occurs. (#768) 2017-10-05 15:40:21 +02:00
plegall
8d6fee190d (cp 164b595) fixes #777 WS categories getImages, TotalCount for correct pagination builder 2017-09-30 17:09:03 +02:00
plegall
be9ec05596 (cp 4d031c9) fixes #725, protect pwg.images.setInfo from HTML 2017-07-03 13:55:19 +02:00
plegall
f728020878 (cp 9fa8f30) fixes #696, invalidate user cache when deleting an album via API 2017-05-31 15:27:10 +02:00
plegall
07a689db71 (cp 1c71e59) fixes #674, by default user groups should be an empty array, not an empty string 2017-05-05 11:05:51 +02:00
plegall
d50aa7476c fixes #191, auto reset $_SESSION['need_update'] on new version
To avoid saying the user a new version is available after a manual upgrade
(which didn't reset the $_SESSION['need_update'] variable)
2017-03-30 11:41:01 +02:00
plegall
309b2f4476 feature #606, check pwg_token and display error (if any) 2017-01-24 17:29:28 +01:00
plegall
3466c432e1 feature #606, backend API method pwg.images.deleteOrphans
This method will delete a block of orphans and return the number of remaining orphans.
2017-01-24 15:09:52 +01:00
modus75
37fc55e6b6 issue 593 - batch manager block deletion; simpler php code + exact progress feed back ... 2017-01-10 21:24:25 +01:00
plegall
743bbb61f4 feature #593, simplify detailed output for pwg.images.delete 2017-01-09 14:33:26 +01:00
plegall
e6e7465b9d fixes #593, delete by blocks of 100 photos, with a progress bar 2016-12-26 23:24:29 +01:00
plegall
a4bb90c2e4 feature #416, return a structured list
... instead of string with comma separated values
2016-12-09 09:49:26 +01:00
plegall
5c8528afec fixes #416, returns available_sizes in pwg.session.getStatus 2016-12-06 19:28:22 +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
c9c10bd524 fixes #442, forgot to include admin functions 2016-03-24 09:52:40 +01:00
plegall
bbe117080d feature #321, set status with pwg.categories.setInfos 2016-02-23 15:58:31 +01:00
plegall
e936d291eb feature #321, pwg.categories.getList returns status 2016-02-23 15:35:49 +01:00
plegall
fbd90fa460 fixes #414, deactivate auth keys on password change 2016-02-12 20:20:12 +01:00
plegall
6290be46f2 fixes #419, an admin can't change webmaster password 2016-02-12 14:56:00 +01:00
plegall
6af4590f01 fixes #410, add param thumbnail_size to pwg.categories.getList 2016-02-03 10:21:36 +01:00
plegall
bc7316639f fixes #349, API set ranks of all album photos at once
on pwg.images.setRank, ability to provide a list of image_id (and no rank).
This way you can set the order of all photos of a given album, at once.
2016-01-28 16:03:39 +01:00
plegall
c789347c51 happy new year 2016, all headers updated 2016-01-14 12:17:58 +01:00
plegall
f28420acfe feature #346, give chunk size in pwg.session.getStatus response 2015-12-20 11:49:49 +01:00
plegall
2080897f3b faster SQL, by @mistic100 2015-12-01 13:53:57 +01:00
plegall
be6afad731 fixes #377 use Ajax calls to refresh/delete album thumbnail 2015-12-01 12:08:10 +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
rvelices
4e60430dc6 use query2array
git-svn-id: http://piwigo.org/svn/trunk@31031 68402e56-0260-453c-a942-63ccdbb3a9ee
2015-03-12 19:51:21 +00:00
plegall
1cc9155c74 bug 3171 fixed: no need to double escape the file name from HTML5 upload
git-svn-id: http://piwigo.org/svn/trunk@30375 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-11-06 09:16:30 +00:00
rvelices
2b58912b96 bug 3163: pwg.tags.getImages mysql error if order parameter is provided
git-svn-id: http://piwigo.org/svn/trunk@30359 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-11-03 21:07:33 +00:00
mistic100
0f0b8e0430 final fix for plugins update ?
- plugins.version is not updated in "activate" action
- plugins.version is updated in "update" action and "load_plugin()" function (not only for plugins using maintain.class.php)

cases covered:
- autoupdate while active or inactive
- FTP update while active or inactive


git-svn-id: http://piwigo.org/svn/trunk@29779 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-09-25 09:25:24 +00:00
mistic100
17a72f2bb2 fix plugins autoupdate: call ##_maintain::update when updating from back-office
git-svn-id: http://piwigo.org/svn/trunk@29773 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-09-24 17:30:08 +00:00
plegall
4dbf817829 feature 3083: return the upload_file_types in pwg.session.getStatus (list of file extension, comma separated)
git-svn-id: http://piwigo.org/svn/trunk@29729 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-09-22 09:29:00 +00:00
plegall
379398d917 feature 3067: upload any file type with the new HTML5 upload form.
$file_types = conf['upload_form_all_types'] ? $conf['file_ext'] : $conf['picture_ext'];

By default, conf['upload_form_all_types'] = false;


git-svn-id: http://piwigo.org/svn/trunk@29124 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-07-30 13:48:35 +00:00
plegall
bf58209d7d bug 3104: less rights for admins (compared to webmaster). Now an admin can't:
* delete a webmaster
* give webmaster/admin status to any user
* change status of a webmaster/admin 


git-svn-id: http://piwigo.org/svn/trunk@29074 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-07-25 09:10:49 +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
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
plegall
7b3783c981 feature 2616: better behavior at the end of upload (more like with uploadify, but no page reload)
git-svn-id: http://piwigo.org/svn/trunk@28554 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-05-28 16:41:56 +00:00
plegall
682148e917 feature 2616, customizations for plupload
* bug fixed, remove debug inserts in table "plupload"
* display photo title as tooltip on thumbnail
* hide useless .plupload_header
* hide any other form fieldset until an album is selected


git-svn-id: http://piwigo.org/svn/trunk@28552 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-05-28 09:33:17 +00:00
plegall
70bcfb5b86 feature 2616: HTML5 upload (with plupload 2.1.2). First basic implementation. Needs customization.
Chunked upload + Drag & drop (no more Flash)

use a new specific API method pwg.images.upload


git-svn-id: http://piwigo.org/svn/trunk@28545 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-05-27 14:11:23 +00:00
mistic100
a5b2cf8200 feature 3077 : factorize code for categories cache (TODO for other collections) + fix incorrect categories list for dissociation
git-svn-id: http://piwigo.org/svn/trunk@28542 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-05-26 22:03:57 +00:00
mistic100
f932ee79df feature 3077 : use Selectize with AJAX load/cache on picture_modify
git-svn-id: http://piwigo.org/svn/trunk@28494 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-05-17 12:11:47 +00:00
rvelices
1f3f5ff73f bug 3069: add quick search as filter in batch manager
git-svn-id: http://piwigo.org/svn/trunk@28087 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-04-05 19:24:27 +00:00
plegall
b08c46f3c3 merge r27810 from branch 2.6 to trunk
bug 3055: add security pwg_token on API methods introduced in Piwigo 2.6
(pwg.groups.addUser, pwg.groups.deleteUser, pwg.groups.setInfo, pwg.users.add,
pwg.users.setInfo, pwg.permissions.add, pwg.permissions.remove)



git-svn-id: http://piwigo.org/svn/trunk@27811 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-03-17 22:20:28 +00:00
plegall
cdeb5959bb merge r27715 from branch 2.6 to trunk
feature 3054: new trigger ws_users_getList



git-svn-id: http://piwigo.org/svn/trunk@27716 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-03-12 13:42:31 +00:00
rvelices
3be1afd583 removed unnecessary by ref parameters + do not define IN_ADMIN on ws method
git-svn-id: http://piwigo.org/svn/trunk@27694 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-03-11 20:48:27 +00:00
rvelices
9f05167bac web service always return pwg version (allow in the future mobile apps to maintain compatibility)
git-svn-id: http://piwigo.org/svn/trunk@27371 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-02-13 22:26:17 +00:00