plegall
5f2bed13b6
(cp f9edbd3) PHP 7.4 fixes
2020-03-25 14:57:36 +01:00
plegall
6104b0ef41
(cp 8a5a2d9) Revert "Fix PHP-7.4 Issue "
...
This reverts commit ea25f5b3a4 .
2020-03-25 14:57:01 +01:00
plegall
f78b10d1be
(cp ea25f5b) Fix PHP-7.4 Issue
...
PHP-7.4 Issue = "Trying to access array offset on value of type null" in functions_category.inc.php
2020-02-07 15:09:17 +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
plegall
195791c4e2
fixes #348 force logical album sort order
...
This way we can safely remove empty albums without decrementing count_categories twice.
2015-09-05 00:05:35 +02:00
rvelices
c7ea93cba3
use query2array + removed unused declaration
...
git-svn-id: http://piwigo.org/svn/trunk@31030 68402e56-0260-453c-a942-63ccdbb3a9ee
2015-03-12 19:46:33 +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
fa53820760
merge r27925 from branch 2.6 to trunk
...
bug 3057: avoid warnings and SQL crash when encountering inconsistent
permissions + rewrite permissions consistancy check when setting albums
to private status.
git-svn-id: http://piwigo.org/svn/trunk@27926 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-03-24 20:22:43 +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
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
79f0a80f33
feature 2999: documentation of functions_user.inc.php (move two functions to functions_category.inc.php)
...
git-svn-id: http://piwigo.org/svn/trunk@25728 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-11-26 20:48:08 +00:00
mistic100
da06285d4e
feature 2999: documentation of functions_search and functions_tag
...
git-svn-id: http://piwigo.org/svn/trunk@25658 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-11-23 22:57:15 +00:00
mistic100
6bd462d021
feature 2999 : documentation of include/functions_category.inc.php
...
git-svn-id: http://piwigo.org/svn/trunk@25508 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-11-17 16:57:04 +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
29e2ed6b91
bug 2931: revert r23675 & r23721, make element_set_ranks.php uses ASC keyword (+ migration task)
...
git-svn-id: http://piwigo.org/svn/trunk@23813 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-07-06 18:31:14 +00:00
rvelices
4514e1592c
bug 2931: photos sort order, "default" is meaningless (fix again when order contains " ASC")
...
git-svn-id: http://piwigo.org/svn/trunk@23721 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-07-01 19:01:51 +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
rvelices
1afee20ed2
some code simplification
...
git-svn-id: http://piwigo.org/svn/trunk@18579 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-10-09 19:47:22 +00:00
mistic100
182f2b93d9
feature 2586: simpler sort order labels on gallery side
...
git-svn-id: http://piwigo.org/svn/trunk@13839 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-03-31 10:24:07 +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
rvelices
f6825cfb33
- remove square/thumb from choices on picture
...
- fix content margin on password register
- purge derivative cache by type of derivative
- session saved infos/messages are not given to the page on html redirections
- shorter/faster code in functions_xxx
git-svn-id: http://piwigo.org/svn/trunk@13074 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-02-09 21:11:34 +00:00
rvelices
4372d7aa11
feature 2548 multisize
...
- added define_derivative template functiion for themes and plugins
- code cleanup, new events ...
git-svn-id: http://piwigo.org/svn/trunk@12954 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-01-24 19:24:47 +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
86ae4d8b3a
rename #images.average_rate to rating_score
...
git-svn-id: http://piwigo.org/svn/trunk@11893 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-08-02 19:20:50 +00:00
rvelices
4e4dc79e51
feature 2384: improve average rating calculation (still need to update language files)
...
git-svn-id: http://piwigo.org/svn/trunk@11827 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-07-25 18:04:50 +00:00
mistic100
4099c6146a
bug:2361 fixed : remove html tags in categories drop-down lists
...
git-svn-id: http://piwigo.org/svn/trunk@11512 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-06-26 10:02:12 +00:00
mistic100
8d22af01b9
feature:2358 allow non-recursive mode for get_random_image_in_category
...
git-svn-id: http://piwigo.org/svn/trunk@11481 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-06-22 13:04:45 +00:00
mistic100
7532e1a802
feature:2330 ability to hide the "new" icon for recent photos
...
git-svn-id: http://piwigo.org/svn/trunk@11285 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-06-09 20:34:48 +00:00
plegall
257808402b
merge r11152 from branch 2.2 to trunk
...
feature 1622 added: pwg.categories.getList is now able to return a tree with
the new "tree_output" option. Only compatible with json/php output formats.
git-svn-id: http://piwigo.org/svn/trunk@11155 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-05-31 20:25:40 +00:00
plegall
dfb0b9d1fa
bug 937 fixed: makes sure a user won't see the thumbnail of a photo that has a
...
higher privacy level than user privacy level.
For an acceptable solution at performance level, I have implemented a cache:
for a given user, each album has a representative_picture_id. This cache also
avoids to perform numerous "order by rand()" SQL queries which is the case
when $conf['allow_random_representative'] = true;
git-svn-id: http://piwigo.org/svn/trunk@8802 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-01-20 13:32:34 +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
6eea9f9e08
feature 2102 : rename item/image/picture to photo
...
git-svn-id: http://piwigo.org/svn/trunk@8665 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-01-14 21:19:15 +00:00
rvelices
af6e6b55ca
feature 2108 finalize upload removal (php warnings)
...
git-svn-id: http://piwigo.org/svn/trunk@8652 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-01-13 20:51:57 +00:00
rvelices
c206a73dd2
feature 1616: rename "category" into "album" (first commit; still to come)
...
git-svn-id: http://piwigo.org/svn/trunk@6951 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-09-16 19:03:56 +00:00
nikrou
a9849aa9b6
Bug 1763 fixed : [PostgreSQL] double quote used in queries
...
git-svn-id: http://piwigo.org/svn/trunk@6664 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-07-05 21:18:14 +00:00
nikrou
267c1c63a2
Bug 1755 : Needs single quotes in queries official plugins
...
git-svn-id: http://piwigo.org/svn/trunk@6654 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-07-03 12:20:38 +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
4c461f36b1
Fix some sql issues :
...
- permalink that use if() syntax
- add tables themes for other database engines that mysql
git-svn-id: http://piwigo.org/svn/trunk@5192 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-19 19:39:15 +00:00
rvelices
d158f116d2
-fix language keys problems
...
git-svn-id: http://piwigo.org/svn/trunk@5178 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-18 19:21:17 +00:00
nikrou
11751ccd2c
Feature 1451 : fix mispelling and missing translations
...
git-svn-id: http://piwigo.org/svn/trunk@5036 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-03 11:18:21 +00:00
nikrou
2e890e9597
Feature 1451 : localization with gettext
...
Use php-gettext (developpement version rev43, because of php5.3) as fallback
Use native language (english) instead of key for translation
Keep directory en_UK for english customization
Need some refactoring for plurals
Todo : managing plugins in the same way
git-svn-id: http://piwigo.org/svn/trunk@5021 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-02 14:54:22 +00:00
nikrou
13ea9d50e3
Feature 1255: modification in sql queries
...
- manage random function
- manage regex syntax
- manage quote (single instead of double)
- manage interval
git-svn-id: http://piwigo.org/svn/trunk@4367 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-25 19:02:57 +00:00
nikrou
924dd262ec
Feature 1244 resolved
...
Replace all mysql functions in core code by ones independant of database engine
Fix small php code synxtax : hash must be accessed with [ ] and not { }.
git-svn-id: http://piwigo.org/svn/trunk@4325 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-20 14:17:04 +00:00
nikrou
1040cae210
Feature 1241 resolved. replace mysql_fetch_array by mysql_fetch_assoc for small php code improvements
...
git-svn-id: http://piwigo.org/svn/trunk@4265 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-15 12:26:09 +00:00
patdenice
36d0da30d3
Move get_icon function.
...
git-svn-id: http://piwigo.org/svn/trunk@3188 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-11 17:25:26 +00:00
patdenice
d3e6eabb05
Remove get_html_menu_category function and use smarty abilities.
...
git-svn-id: http://piwigo.org/svn/trunk@3171 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-04 21:49:21 +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
90be9fbb84
- merge rev 2765,2769 from branch 2.0
...
* 2765 mysql potential injection paranoia + code compaction in common.inc.php
* 2769 added an image sort order by privacy level (admins only)
* 2769 fix an IE6 display issue with quick search on index page
git-svn-id: http://piwigo.org/svn/trunk@2770 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-18 00:45:45 +00:00
rvelices
a3dc10babc
- sql optim: do not include category_cats (which makes a query) if current category does not have children (info known when building menubar)
...
- in index.php - fill the template completely before including menubar/category_cats/thumbnails (some themes might want to use in the menubar some vars ...)
git-svn-id: http://piwigo.org/svn/trunk@2586 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-25 00:39:12 +00:00