Commit graph

71 commits

Author SHA1 Message Date
plegall
06f6d97e0d fixes #1964 make sure token exists before using it 2023-08-21 15:43:50 +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
00480ce0a7 fixes #1527 ability to disable auto-detection of url port 2022-12-29 22:08:27 +01:00
plegall
ba08bffcb2 fixes #1750 input parameter check was too strong 2022-10-14 11:00:50 +02:00
plegall
2e037205ff issue #982 detect HTTPS based on forwarded protocol 2022-09-23 14:09:05 +02:00
plegall
156825d24d fixes #1697 add checks on chronology URL parameters 2022-09-16 10:37:58 +02:00
Dave Anderson
231d36613c
issue #1615 include favorite status in image list API calls 2022-07-23 12:43:02 +02:00
Thibautg16
17f4b8dbd6 fix issue 1284 2021-01-21 10:02:24 +01:00
Thibautg16
355e05adff fix issue 1284 2021-01-21 10:02:24 +01:00
plegall
a641b9eb08 fixes #1266 improve url parsing after bugs introduced for #626
* /categories/123-album/start-10 now works
* /categories/permalink1/permalink2/start-20 now works (each permalink can contain several "/")
2020-12-17 16:31:51 +01:00
plegall
4f3880af89 fixes #626 related albums (menu, combine, url)
* ability to combine albums in URL index.php?/category/1/2/3 will consider 1 as $page['category'] and {2,3} as $page['combined_categories']

* new menu block "related albums" which displays only the hierarchy of albums related to the current set of photos, excluding current album(s). In the hierarchy, only the related albums have a link, not ancestors
2020-11-09 14:28:55 +01:00
plegall
fc193f7474 issue #830 simplify PHP files header, remove copyright/license info 2019-06-04 17:13:51 +02:00
plegall
c789347c51 happy new year 2016, all headers updated 2016-01-14 12:17:58 +01:00
Eike Rathke
a8381737bd fix #367 - do not specialize numeric tag to 'id-tag' URL
Apparently there is no reason in make_section_in_url() to "escape" a
numeric URL for a tags section if tag_url_style is 'tag'. In
parse_section_url() tag_url_style is checked, and if 'tag' the URL token
is used.
2015-11-08 20:06:01 +01:00
Tobias Ollmann
6d01f33d9f Do not add the server port when sitting behind a proxy.
Assume that Http-X-Forwarded-Host is set correctly
2015-09-17 19:44:45 +02:00
Tobias Ollmann
d58534e877 Use HTTP_X_FORWARDED_HOST if available
This enables piwigo to be run e.g. in a docker container behind a proxy.
If HTTP_X_FORWARDED_HOST is not set, HTTP_HOST is used as usual
2015-09-16 19:24:57 +02:00
rvelices
656ac54090 more query2array and remove unnecessary tests in often called url functions
git-svn-id: http://piwigo.org/svn/trunk@27388 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-02-16 07:39:19 +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
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
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
92134bc102 bug:2933 make plain url when picture_url_style='id-file'
git-svn-id: http://piwigo.org/svn/trunk@23822 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-07-07 12:45:48 +00:00
rvelices
cecee258bb nicer urls when used over https
git-svn-id: http://piwigo.org/svn/trunk@23187 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-06-13 18:41:32 +00:00
plegall
4bc775e479 update Piwigo headers to 2013 (the end of the world didn't occur as expected on r12922)
git-svn-id: http://piwigo.org/svn/trunk@19703 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-01-01 12:35:02 +00:00
mistic100
b1cec7bf86 feature:2614 pagination on albums
return to old fashioned way (one query in category_cats), restoring recent_cats feature and "menubar optimization", rename "starta" into "startcat"

git-svn-id: http://piwigo.org/svn/trunk@18462 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-10-04 15:03:55 +00:00
mistic100
4e65d9af46 feature 2614: pagination on albums
git-svn-id: http://piwigo.org/svn/trunk@18165 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-09-23 11:19:26 +00:00
ddtddt
6239d54d08 [trunk] - l10n page no found message 2
git-svn-id: http://piwigo.org/svn/trunk@15383 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-05-28 14:56:21 +00:00
rvelices
28255b81a0 "home url" is not always absolute with host name + html compaction - through removal of unused attributes, some white spaces ...
git-svn-id: http://piwigo.org/svn/trunk@14180 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-04-16 03:11:43 +00:00
plegall
25200e2c25 convert tabulations into 2-spaces for indentation (introduced in r13240)
git-svn-id: http://piwigo.org/svn/trunk@13258 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-02-19 19:59:22 +00:00
rvelices
a893882789 - multisize thumb longest side can be smaller than the square size
- remove unused css, shorten/optimize php called very often (at least theoretically should be faster)

git-svn-id: http://piwigo.org/svn/trunk@13240 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-02-18 20:46:46 +00:00
mistic100
112d730f3a update Piwigo headers to 2012, last change before the expected (or not) apocalypse
git-svn-id: http://piwigo.org/svn/trunk@12922 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-01-17 22:48:36 +00:00
rvelices
34717c1391 feature 2548 multisize - improved picture.php display (original...) + code cleanup
git-svn-id: http://piwigo.org/svn/trunk@12855 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-01-05 22:06:21 +00:00
patdenice
41202b1f2b bug:2386
Bug in tag urls if tag start with a number

git-svn-id: http://piwigo.org/svn/trunk@11831 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-07-25 19:10:30 +00:00
plegall
ceacda960c feature 2197 added: if make_index_url() adds no parameters after index.php?, then we return get_absolute_root_url()
git-svn-id: http://piwigo.org/svn/trunk@9353 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-02-22 22:21:59 +00:00
plegall
6db359c622 Happy new year 2011
Change "Piwigo - a PHP based picture gallery" into "Piwigo - a PHP based photo gallery"


git-svn-id: http://piwigo.org/svn/trunk@8728 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-01-18 00:02:52 +00:00
rvelices
732eb6bfba removed unused files / code / css; shorter code
git-svn-id: http://piwigo.org/svn/trunk@8247 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-12-23 05:22:19 +00:00
patdenice
914045aad4 feature 2057: fetchRemote can send POST data
git-svn-id: http://piwigo.org/svn/trunk@8079 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-12-11 19:50:05 +00:00
rvelices
722c4a3a97 merge r6368,6410 from branch-2.1 to trunk
- merged the linkroot integration with the existing gallery_url (unique $conf['gallery_url'] used for RSS, mail homepage root in the browse path)
- added an option $conf['debug_mail'] - if set all outgoing mails are saved into local_data_dir

git-svn-id: http://piwigo.org/svn/trunk@6411 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-28 19:58:51 +00:00
plegall
86ad1d5b49 increase copyright year to 2010
git-svn-id: http://piwigo.org/svn/trunk@5196 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-19 22:37:10 +00:00
nikrou
b7f3513d7e bug fix 1024 : the way to discover protocol (http/https) was not correct
git-svn-id: http://piwigo.org/svn/trunk@3403 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-06-09 15:47:47 +00:00
rvelices
e34c68cb89 - embellish_url compacts now ..
- some trigger improvements (render_category_description)
- improved perf of duplicate_xxx_url ( rewrote func params_for_duplication and remove some vars from $page )

git-svn-id: http://piwigo.org/svn/trunk@3126 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-05 03:03:30 +00:00
plegall
1b711ad236 Administration: happy new year 2009, all PHP headers updated.
git-svn-id: http://piwigo.org/svn/trunk@3049 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-04 23:28:36 +00:00
rvelices
3326f742fe merge rev 2771,2772 from branch 2.0
- 2771 event tracer improvement: option to show all registered event handlers for every page
- 2772 php optims (small): remove/replace preg_xxx with faster simple string functions

git-svn-id: http://piwigo.org/svn/trunk@2773 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-18 01:08:58 +00:00
rvelices
b8a5fde846 - better management of fatal errors (instead of die or trigger_error rather use fatal_error ...)
git-svn-id: http://piwigo.org/svn/trunk@2502 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-05 01:24:01 +00:00
plegall
524011bfa6 Bug fixed: as rvelices notified me by email, my header replacement script was
bugged (r2297 was repeating new and old header).

By the way, I've also removed the replacement keywords. We were using them
because it was a common usage with CVS but it is advised not to use them with
Subversion. Personnaly, it is a problem when I search differences between 2
Piwigo installations outside Subversion.


git-svn-id: http://piwigo.org/svn/trunk@2299 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-04-05 14:14:07 +00:00
plegall
3f235497f3 Modification: new header on PHP files, PhpWebGallery renamed Piwigo.
git-svn-id: http://piwigo.org/svn/trunk@2297 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-04-04 22:57:23 +00:00
patdenice
c38328da6b Merge from revision 2228.
Resolved bugs:
741 and 793: Added user does not appear in listing.
769: show email address in adviser mode when editing user profil.
800: get_absolute_root_url does not work with https protocol.

git-svn-id: http://piwigo.org/svn/trunk@2229 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-02-29 13:10:58 +00:00
rvelices
01687607ec - added compatibility function file_put_contents
git-svn-id: http://piwigo.org/svn/trunk@2215 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-02-27 02:22:19 +00:00
rvelices
831694b4d1 - send status code 403 when attempt to enter a user comment, but comments are disabled
- don't increase hit count when a comment is posted
- remove the check of user ip agains spamhaus.org when a comment is entered (my conclusion is that is useless)

git-svn-id: http://piwigo.org/svn/trunk@2155 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-10-29 23:39:41 +00:00
rub
45fde2cc6b Resolved 0000738: Double port on url
Merge branch-1_7 2048:2050 into BSF

git-svn-id: http://piwigo.org/svn/trunk@2083 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-08-30 05:32:37 +00:00
rvelices
12af0a0079 feature 713: allow permalinks to contain the slash ("/") character
git-svn-id: http://piwigo.org/svn/trunk@2047 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-06-28 02:16:03 +00:00