Commit graph

1178 commits

Author SHA1 Message Date
nikrou
3aaa5b2dfd Bug 1736 fixed : Complete RSS Feed returns error
start or end dates can be null

git-svn-id: http://piwigo.org/svn/trunk@6597 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-06-24 18:42:39 +00:00
nikrou
e1ecc62b83 Bug 1735 fixed : Comment page is not PostgreSQL compatible
Fixed by adding all fields except category_id in group by clause
category_id is retrieved later in an another query.

Fixed also problem of FROM_UNIXTIME function not POstgreSQL compatible.

git-svn-id: http://piwigo.org/svn/trunk@6596 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-06-24 18:36:24 +00:00
nikrou
5561730d35 Bug 1743 fixed : comment form is not visible because of boolean management
git-svn-id: http://piwigo.org/svn/trunk@6591 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-06-23 18:34:45 +00:00
nikrou
186e9df5af Fix bug 1733 : queries must use single quotes
git-svn-id: http://piwigo.org/svn/trunk@6589 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-06-23 18:11:00 +00:00
nikrou
bedacf7b08 Bug 1737 fixed : Concatenation error with POstgreSQL
Simplify same function for SQLite

git-svn-id: http://piwigo.org/svn/trunk@6580 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-06-22 21:18:42 +00:00
nikrou
5a677f1151 Bug 1738 fixed : hour function doesn't exists for database other than mysql.
git-svn-id: http://piwigo.org/svn/trunk@6578 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-06-22 21:01:05 +00:00
rvelices
613855b83b misplaced closing paranthesis in common.inc.php
git-svn-id: http://piwigo.org/svn/trunk@6523 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-06-12 09:55:41 +00:00
nikrou
ce187863e8 Bug 1730 fixed : search doesn't work when database engine is not mysql
For posgresql and sqlite date must allways use day and month with two diggits.

git-svn-id: http://piwigo.org/svn/trunk@6518 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-06-10 21:07:22 +00:00
nikrou
175e9a110d Fix bug 1722 : PosgtreSQL wants all fields in select to be in Group by clause
or agregate function
Fix issue for lambda function (incorrect number of params)

git-svn-id: http://piwigo.org/svn/trunk@6510 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-06-09 20:25:03 +00:00
nikrou
a629994ea9 Bug 1716 fixed : Check upgrades failed in intro
Incorrect use of database dependant functions.
Fixed same problem for ws functions

git-svn-id: http://piwigo.org/svn/trunk@6500 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-06-09 09:55:54 +00:00
rvelices
249094fee9 - revert r6473 and r6475
- moved call to event format_exif_data earlier

git-svn-id: http://piwigo.org/svn/trunk@6484 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-06-07 19:05:04 +00:00
rvelices
85ed20da2c previous commit was still not ok
- quick fix (maybe not the cleanest) of regression 2.0 -> 2.1 when displaying metadata on picture page (event called with different input)

git-svn-id: http://piwigo.org/svn/trunk@6475 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-06-06 10:48:12 +00:00
rvelices
fbf4326d5a - quick fix (maybe not the cleanest) of regression 2.0 -> 2.1 when displaying metadata on picture page (event called with different input)
git-svn-id: http://piwigo.org/svn/trunk@6473 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-06-06 10:13:42 +00:00
nikrou
fd0f465c59 Fix bug 1717 : SQLite: access failure on Admin > Tools > History
hour function doesn't exists

git-svn-id: http://piwigo.org/svn/trunk@6463 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-06-04 19:36:56 +00:00
rvelices
2a99a22130 - do not remove slashes before calling insert_user_comment (homogeneity with update_user_comment and general use of slashes in piwigo)
- when using a modifier on a non array variable use @| instead of | (generated code is simpler and faster)

git-svn-id: http://piwigo.org/svn/trunk@6437 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-06-01 19:52:44 +00:00
nikrou
0005a6eec1 Bug 1705 fixed : double quotes were not escaped
git-svn-id: http://piwigo.org/svn/trunk@6423 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-29 11:32:01 +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
d63d95e024 merge r6384 from branch 2.1 to trunk
bug 1704 fixed: windows needs a specific directory separator when creating
recursive directory.


git-svn-id: http://piwigo.org/svn/trunk@6385 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-27 07:31:08 +00:00
plegall
5f597c2cba merge r6361 from branch 2.1 to trunk
feature 1697: ability to deactivate the synchronization method to add photos.


git-svn-id: http://piwigo.org/svn/trunk@6365 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-26 00:20:07 +00:00
rvelices
4d013f7a32 fix bug 1663 : wrong decoding of non Ascii iptc/exif (charset issue)
git-svn-id: http://piwigo.org/svn/trunk@6355 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-25 19:49:13 +00:00
plegall
2690d2f929 merge r6338 from branch 2.1 to trunk
bug 1694 fixed: COMPUTED Exif fields were not displayed on picture.php


git-svn-id: http://piwigo.org/svn/trunk@6340 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-24 20:16:11 +00:00
nikrou
ee35b8a080 Fix bug 1695 : incorrect boolean to string conversion for SQLite and PostgreSQL database engines
git-svn-id: http://piwigo.org/svn/trunk@6339 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-24 20:12:35 +00:00
plegall
d3fc7fd446 merge r6321 from branch 2.1 to trunk
bug 1682: r6312 was producing a MySQL error (depending on the MySQL server
version) because a count() implies a group by.

This code change was checked against MySQL 5.0.75, MySQL 5.0.51 (where the
error occured) and SQLite 3.6.22.


git-svn-id: http://piwigo.org/svn/trunk@6322 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-24 11:14:54 +00:00
patdenice
34bce4c832 $themeconf['id'] hard coded in template class
git-svn-id: http://piwigo.org/svn/trunk@6318 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-24 07:06:35 +00:00
plegall
1e1dfbb6dd merge r6313 from branch 2.1 to trunk
bug 1685 fixed: typo on identification.php link


git-svn-id: http://piwigo.org/svn/trunk@6316 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-23 23:44:45 +00:00
plegall
3181dded77 merge r6312 from branch 2.1 to trunk
bug 1684 fixed: the test to check availability of the user_infos line was
wrong. I had changed the old db_num_rows > 0 because it was not working with
SQLite. As suggested by nicolas, let's use a simpler trick "count(1)" in the
query itself, this way it should work with any database engine.

I've also removed the while (true) (ugly infinite loop, with a condition for
exit) that was producing an infinite loop for Piwigo installations with 2.0
database model and 2.1 code (before launching upgrade.php)


git-svn-id: http://piwigo.org/svn/trunk@6315 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-23 23:43:43 +00:00
plegall
9bef83abe8 merge r6311 from branch 2.1 to trunk
bug 1683 fixed: as soon as an admin modifies the admin>conf>options>guest settings, registration is broken. This is because user_infos.theme/language are emptied (while they should not).

I have also added an "automatic repair" piece of code in get_default_user_info function. This piece of code should be removed for 2.2 with the appropriate migration task.


git-svn-id: http://piwigo.org/svn/trunk@6314 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-23 23:42:03 +00:00
nikrou
d8d8ca5ed3 Fix get_enums function for SQLite
hard coded enums values for all tables
because enum feature doesn't exists for SQLite.

git-svn-id: http://piwigo.org/svn/trunk@6153 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-09 20:52:38 +00:00
plegall
8469140471 add nl.piwigo.org as domain name if current language is nl_NL
fix typos on language names in install.php

correct list of available newsletters

git-svn-id: http://piwigo.org/svn/trunk@6152 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-09 20:51:01 +00:00
plegall
eb0aec9752 bug 1652 fixed: json_encode function is required for admin.php?fckb_tags=1
(used in the new tags widget)

git-svn-id: http://piwigo.org/svn/trunk@6126 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-08 19:22:29 +00:00
nikrou
a34af69677 Amend bug 1559. standard deviation was not removed in some places.
So, sqlite crashed because std function has been removed.

git-svn-id: http://piwigo.org/svn/trunk@6125 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-08 18:43:50 +00:00
plegall
445182279c bug 1649 fixed: search EXIF/IPTC in the high definition photo if there is no
EXIF/IPTC in the web sized photo.

git-svn-id: http://piwigo.org/svn/trunk@6093 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-07 10:23:26 +00:00
nikrou
acc0b27412 SQLite availabilty must be check by existence of SQLite3 class
git-svn-id: http://piwigo.org/svn/trunk@6092 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-07 09:09:44 +00:00
plegall
48ab333212 bug 1648 fixed: add the pwg_db_check_version functions for pdo-sqlite, sqlite
and pgsql, also make the $pwg_db_link global in the install_db_connect function
so that it can be used in SQLite functions.

bug fixed: with pdo-sqlite, pwg_db_num_rows always returns 0, so when
initializing user data, it tries to insert the same row twice.

git-svn-id: http://piwigo.org/svn/trunk@6090 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-07 00:34:56 +00:00
plegall
a00a203998 remove debug trace
git-svn-id: http://piwigo.org/svn/trunk@6075 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-04 22:22:26 +00:00
plegall
fe797be8d4 bug 1501 fixed: with apache_authentication, fall back to REDIRECT_REMOTE_USER
if REMOTE_USER is not set.

git-svn-id: http://piwigo.org/svn/trunk@6074 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-04 22:21:11 +00:00
plegall
0ce0f28a23 bug 1063 fixed: avoid error when adding a tag in chinese or russian characters.
In any language where the str2url would return an empty string. The behavior
doesn't change for european characters.

rvelices warned me about the many issues we might encounter with copy/paste of
the URL and required url_encode/url_decode BUT after many tests (Linux with
Firefox 3.0/Google Chrome 5, MacOS 10.6 with Firefox/Safari, WindowsXP with
IE6/Firefox) I've found 0 problem, even with the most error prone mode
$conf['tag_url_style'] = 'tag'

git-svn-id: http://piwigo.org/svn/trunk@6060 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-03 23:31:42 +00:00
plegall
0c8cebe044 bug 1639 fixed: the upload form now correctly uses the $conf['upload_dir']
parameter (web API already use it).

By default, the $conf['upload_dir'] is no longer dependent to PHPWG_ROOT_PATH
because it becomes a real mess when admin/include/uploadify.php (called
directly, not from an include) tries to perform an upload.

Improvement: make clearer how $conf['upload_dir'] can be set (relative to the
Piwigo installation directory + HTTP reachable)

git-svn-id: http://piwigo.org/svn/trunk@6052 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-03 12:49:26 +00:00
plegall
89384aa6b1 improvement: use the same code to check upload readiness in admin>photos>add
screen and in web API.

bug fixed: UploadForm partly takes into account the configurable upload
directory (must be propagated everywhere in the UploadForm process)

git-svn-id: http://piwigo.org/svn/trunk@6051 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-03 09:56:22 +00:00
plegall
2de8344c97 bug 1635 fixed: new API method pwg.images.checkUpload tells pLoader if Piwigo
is ready for upload (currently, it checks write access on the upload directory)

git-svn-id: http://piwigo.org/svn/trunk@6049 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-03 09:09:40 +00:00
plegall
10dac9de37 bug 1637: make the privacy level the same everywher, use "who can see this photo?"
instead of "minimum privacy level".

git-svn-id: http://piwigo.org/svn/trunk@6025 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-30 22:38:17 +00:00
patdenice
0a5b09601b feature 1502: Add $themeconf['load_parent_local_head'] parameter
git-svn-id: http://piwigo.org/svn/trunk@6006 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-29 19:57:48 +00:00
plegall
ad27e26c48 bug 860 related: don't try to update the configuration during install because
pwg_query is not available yet.

git-svn-id: http://piwigo.org/svn/trunk@5999 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-29 16:02:20 +00:00
plegall
b8d3c9dba4 bug 860 related: if the directory doesn't exist (SVN users) first try to
create it. To avoid useless checks on filesystem (rvelices should
appreciate) a configuration variable tells if we have to check or not.

git-svn-id: http://piwigo.org/svn/trunk@5998 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-29 14:43:06 +00:00
patdenice
53f66ba4ef feature 1502: $themeconf['load_css_parent'] apply recursively
git-svn-id: http://piwigo.org/svn/trunk@5993 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-29 12:51:19 +00:00
patdenice
a2ccb9a5c9 feature 1502: Add $themeconf['load_parent_css'] parameter
git-svn-id: http://piwigo.org/svn/trunk@5991 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-29 12:45:27 +00:00
plegall
e7487082c3 bug 1484: prevent XSS vulnerability, encode url.
improvement: no need to transmit the REQUEST_URI from PHP, Smarty already
knows it.

git-svn-id: http://piwigo.org/svn/trunk@5990 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-29 10:44:30 +00:00
plegall
8849bd5fbc bug 1484: after a "quick connect" you are correctly redirect to the same page.
git-svn-id: http://piwigo.org/svn/trunk@5986 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-28 16:52:28 +00:00
plegall
056668c9ae bug 860: display a more readable error when the _data directory is not writable
git-svn-id: http://piwigo.org/svn/trunk@5985 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-28 16:11:07 +00:00
plegall
73db66afa5 feature 1630: upgrade to Piwigo 2.1 :-)
bug 1604: only activate core themes not all themes.

git-svn-id: http://piwigo.org/svn/trunk@5982 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-28 14:28:05 +00:00
nikrou
c277a646c3 Fix missing argument for pwg_db_changes()
git-svn-id: http://piwigo.org/svn/trunk@5930 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-20 21:08:48 +00:00
laurent.duretz
ec85b24529 Issue 1521 : correction of separator problem
git-svn-id: http://piwigo.org/svn/trunk@5924 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-20 07:05:58 +00:00
nikrou
94d40c0eab Bug 1617 fixed : help page is displayed in current theme in public or admin pages
git-svn-id: http://piwigo.org/svn/trunk@5920 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-18 18:59:37 +00:00
laurent.duretz
43a30afea6 Issue 1521 : correction for admin pages
git-svn-id: http://piwigo.org/svn/trunk@5917 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-18 09:11:10 +00:00
plegall
0e93f533bb bug 1606: don't try to check the "no photo yet" feature when displaying an
help popup.

git-svn-id: http://piwigo.org/svn/trunk@5861 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-15 09:45:44 +00:00
plegall
44eae4ae16 bug 1603: encoding charset added at HTTP level for the "no photo yet" specific
page.

git-svn-id: http://piwigo.org/svn/trunk@5854 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-14 21:39:02 +00:00
patdenice
17e2e12b84 User theme was not used for header and footer in NBM.
git-svn-id: http://piwigo.org/svn/trunk@5796 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-11 12:30:32 +00:00
nikrou
265d57e830 Bug 1567 fixed : problem with old version of mysql
required version is now 5.0.0
move required version to functions database specific file like others engines

git-svn-id: http://piwigo.org/svn/trunk@5782 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-10 19:52:40 +00:00
nikrou
8ed51d8497 Fix some issues with database connections.
install_db_connect() function must return database resource link
insert into set syntax is mysql specific

git-svn-id: http://piwigo.org/svn/trunk@5781 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-10 19:49:30 +00:00
grum
7c38deb01a bug 1595
git-svn-id: http://piwigo.org/svn/trunk@5773 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-10 18:51:51 +00:00
rvelices
b7e2107181 feqture 1583 : show related tags block also when browsing non tag sections
git-svn-id: http://piwigo.org/svn/trunk@5752 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-10 09:47:19 +00:00
nikrou
70d90c4083 Bug 1581 fixed : missing comment_id for email_admin() function
git-svn-id: http://piwigo.org/svn/trunk@5707 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-08 08:58:51 +00:00
plegall
c5a5bbc079 feature 1583: (tag navigation ergonomy) in the page title, always display the
"remove tag" icon, whatever the number of tags.

git-svn-id: http://piwigo.org/svn/trunk@5706 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-08 08:49:40 +00:00
plegall
44d3601933 feature 1583: replace add_tag.png icon by a simple "+" character in the
"related tags" block. Only keep one link for each tag in the "related tags"
block.

git-svn-id: http://piwigo.org/svn/trunk@5703 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-08 08:26:34 +00:00
patdenice
e5f8722c33 Fix some issues on NBM: move css rules to mail body if it's possible.
Remove fieldset on available plugins page.

git-svn-id: http://piwigo.org/svn/trunk@5695 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-07 08:09:30 +00:00
rvelices
4e4f257a58 fixes only:
- some searches returned bad array for page['items'] (resulting in php warnings and sometimes mysql fatal error) still existing in branch 2.0
- mysql fatal error in admin maintenance
- php warn in plugins_list.php
- fix check on function param in admin/include/functions.php

git-svn-id: http://piwigo.org/svn/trunk@5691 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-06 20:04:42 +00:00
grum
9a33a4ea66 bug 1580 - remove some hard coded markup (move them to the template)
git-svn-id: http://piwigo.org/svn/trunk@5682 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-05 20:49:32 +00:00
plegall
dd843c7823 bug 1579: admins should see all user comments on picture.php, validated or not.
git-svn-id: http://piwigo.org/svn/trunk@5654 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-04 22:50:12 +00:00
plegall
7424433a54 bug 1534: if you're a guest, if configuration tells you can't add user
comments, you won't see the form on the picture page.

git-svn-id: http://piwigo.org/svn/trunk@5649 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-04 22:00:29 +00:00
rvelices
ff8049ff28 move no_photo_yet feature to a new php file included by common.inc.php only if required (avoid parsing this code that will be rarely executed)
git-svn-id: http://piwigo.org/svn/trunk@5509 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-31 20:36:32 +00:00
nikrou
c7905118b8 Feature 1559 : remove custom function (std) for sqlite
git-svn-id: http://piwigo.org/svn/trunk@5503 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-31 18:16:27 +00:00
plegall
9f0034807a feature 1559: remove "standard deviation" in rating.
git-svn-id: http://piwigo.org/svn/trunk@5500 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-31 14:34:21 +00:00
laurent.duretz
d2a04ce9bf Issue 1521 : Adding explanations
git-svn-id: http://piwigo.org/svn/trunk@5470 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-30 08:51:10 +00:00
laurent.duretz
463d6f5f2f Issue 1521 : get_absolute_root_url() missing in section_init.inc.php
git-svn-id: http://piwigo.org/svn/trunk@5469 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-30 08:30:41 +00:00
nikrou
a6a3a6e0c2 Fix some issues with database engines :
- insert into syntax not correct for posgresql or sqlite
- add languages table
- incorrect function for row count (sqlite)

git-svn-id: http://piwigo.org/svn/trunk@5452 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-29 18:16:33 +00:00
laurent.duretz
a37f1fbae1 Issue 1521 : picture.tpl updated to avoid double home link, picture.php updated because tpl update, functions_html.inc.php updated to work with question_mark_in_urls = false
git-svn-id: http://piwigo.org/svn/trunk@5451 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-29 17:05:38 +00:00
patdenice
6024107c9c feature 1502: Configuration menu is selected when theme configuration page is selected.
Remove useless global $page.

git-svn-id: http://piwigo.org/svn/trunk@5448 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-29 15:14:21 +00:00
patdenice
29d36ffdc3 feature 1502: Allow to have configuration page for each theme.css.
About string for theme has to be saved in language theme directory (about.html)

git-svn-id: http://piwigo.org/svn/trunk@5446 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-29 13:30:02 +00:00
laurent.duretz
72bdf727ee Issue 1521 : Integration of LinkRoot plugin in Piwigo core
git-svn-id: http://piwigo.org/svn/trunk@5441 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-29 08:02:44 +00:00
patdenice
cae3ae428e feature 1502: In template extensions admin page, change "Bound template" by "Bound theme".
Template extensions are now attached to all themes if nothing is selected in "bound theme" column.

git-svn-id: http://piwigo.org/svn/trunk@5434 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-28 20:29:55 +00:00
patdenice
adda4f81b1 feature 1502: Wrong path corrected (to check themeconf.inc.php existence)
git-svn-id: http://piwigo.org/svn/trunk@5419 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-28 13:25:45 +00:00
patdenice
6b445114da Feature 1535: Add language manager.
git-svn-id: http://piwigo.org/svn/trunk@5357 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-25 20:18:28 +00:00
patdenice
06c7acda4f Feature 1535: Add languages table.
Ready for theme manager!

git-svn-id: http://piwigo.org/svn/trunk@5341 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-25 10:27:17 +00:00
rvelices
6717089705 - fix cat_modify
* missing token in url
 * double icon display
- simplified func check_pwg_token


git-svn-id: http://piwigo.org/svn/trunk@5335 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-25 05:59:35 +00:00
patdenice
2ad08fa8c1 feature 1502: bug corrected on guest setting page.
Remove $conf['default_theme'] from config file (useless).
Check if theme is still installed in pwg_get_themes.

git-svn-id: http://piwigo.org/svn/trunk@5306 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-24 01:36:28 +00:00
patdenice
c4fd9f9141 Feature 1533: Change "General" by "Options" in Configuration menu.
Change "Default Display" tab by "Guest Settings" tab.
Add display tab in Configuration/Option menu.

Allow to activate/deactivate a lot of display features:

On main page:
# Display only recently posted images
# Sort order
# Display all elements in all sub-categories
# Display a calendar by posted date
# Display a calendar by creation date
# Slideshow

On photo page:
# Show file metadata
# slideshow
# Add this image to your favorites
# Navigation Bar
# Navigation Thumbnails

git-svn-id: http://piwigo.org/svn/trunk@5293 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-23 21:19:55 +00:00
patdenice
87f5424cca Avoid error if creation date calendar is empty.
Avoid error on picture_modify.php if creation date is not correct.

git-svn-id: http://piwigo.org/svn/trunk@5283 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-23 11:08:09 +00:00
rub
a6c771547d Add function is_webmaster (like is_admin function)
Add on ignore list the directory local/personal

git-svn-id: http://piwigo.org/svn/trunk@5272 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-23 05:56:50 +00:00
plegall
c0879165c6 bug fixed: if the theme for guest is empty (I don't know how this could be,
but it has been reported), the fallback on constant PHPWG_DEFAULT_TEMPLATE
was not working.

git-svn-id: http://piwigo.org/svn/trunk@5271 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-22 22:22:59 +00:00
nikrou
d6fa0a5823 Fix warning for postgresql installation
Remove unused function

git-svn-id: http://piwigo.org/svn/trunk@5267 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-22 20:31:53 +00:00
plegall
6b3dc4ede1 feature 1514: improvement, if a user has a theme that is (maybe temporary)
unactive, we fallback on default theme (the real default theme, the one set
for default user)

git-svn-id: http://piwigo.org/svn/trunk@5264 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-22 19:49:14 +00:00
plegall
f635122ef2 feature 1505: bug fixed, ability to connect with pLoader even if gallery
is empty.

git-svn-id: http://piwigo.org/svn/trunk@5251 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-22 10:29:34 +00:00
plegall
3fde53f0d9 feature 1505: improvement, ability to browse the empty gallery. The "no photo
yet" feature can be deactivated at session level.

git-svn-id: http://piwigo.org/svn/trunk@5241 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-22 00:39:04 +00:00
plegall
fbfe11375e feature 1505: improvement, when there is no photo yet in the gallery, first
shows a connection box (and only this), then if the user is an admin shows the
"Hello %s, your gallery is empty...".

I've also added the ability to deactivate this message. Only an admin can
deactivate it.

git-svn-id: http://piwigo.org/svn/trunk@5240 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-22 00:21:25 +00:00
patdenice
fdb92b15fa feature 1255: Move $conf['db_sqlite_default'] and $conf['dbengine_select_default'] in install.php (as constants).
PDO::SQLite is now displayed as SQLite in install page.
Always display unique SQLite engine.

git-svn-id: http://piwigo.org/svn/trunk@5239 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-21 23:41:19 +00:00
nikrou
f5af5ab4c1 Fix typo : parenthesis
git-svn-id: http://piwigo.org/svn/trunk@5238 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-21 23:00:11 +00:00
nikrou
4773d7a350 Feature 1255 :
only one function
use exceptions to deal with differents possible errors

git-svn-id: http://piwigo.org/svn/trunk@5236 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-21 22:51:36 +00:00
ddtddt
4158d32960 [trunk] localisation hu/RU feature:1526 and feature:1527
git-svn-id: http://piwigo.org/svn/trunk@5235 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-21 22:07:22 +00:00
patdenice
54c9ceb0f4 feature 1255: add pwg_select_db function.
git-svn-id: http://piwigo.org/svn/trunk@5230 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-21 21:15:54 +00:00
patdenice
2842cb6673 feature 1255: set mysql as default engine.
git-svn-id: http://piwigo.org/svn/trunk@5220 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-21 17:20:56 +00:00
patdenice
8db5b549d1 feature 1522: Move config_local.inc.php to local/config/config.inc.php
git-svn-id: http://piwigo.org/svn/trunk@5215 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-21 13:31:20 +00:00
nikrou
85c1c1b1ea Feature 1522 : move database config file to local directory
(include/config_database.inc.php becomes local/config/database.inc.php)

git-svn-id: http://piwigo.org/svn/trunk@5213 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-21 12:32:49 +00:00
ddtddt
3d05db24ee [trunk] merge bug:1523 / Compatibility with PHP 5.3
git-svn-id: http://piwigo.org/svn/trunk@5211 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-21 07:56:53 +00:00
patdenice
6e51794b3f feature 1522: Move local css local files and local language files to local directory.
Add $conf['template_force_compile'] to help developpers.

git-svn-id: http://piwigo.org/svn/trunk@5208 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-20 23:14:30 +00:00
rvelices
251eeb05ab less warnings + language fixes
git-svn-id: http://piwigo.org/svn/trunk@5206 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-20 20:28:35 +00:00
rvelices
a02bf8952b - added a js confirmation before deletign a theme
- fix link to css
- simplified language loading (a couple of years ago during utf8 migration I left the possibility to have languages defined in another charsets - this is useless)

git-svn-id: http://piwigo.org/svn/trunk@5200 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-20 08:59:54 +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
plegall
c695136e4d bug 1328: backport the pwg_token on trunk
bug 1329: backport the check_input_parameter on trunk

feature 1026: add pwg_token feature for edit/delete comment. Heavy refactoring
on this feature to make the code simpler and easier to maintain (I hope).

git-svn-id: http://piwigo.org/svn/trunk@5195 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-19 22:25:39 +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
plegall
6b296b293d feature 1502: replace the theme.name by theme.id for theme.css load
git-svn-id: http://piwigo.org/svn/trunk@5190 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-19 13:30:21 +00:00
plegall
27de15e076 feature 1519: admin instructions are dispatched into several tabs. Only
applied to en_UK and fr_FR. The help content itself needs some updates
but it will be another set of commits, in this commit, I nearly only
modified the container.

The new "Add Photos" help page only introduces you to 3 main ways to add
photos: direct upload, pLoader and FTP. Each of them has a dedicated tab
on the Admin>Photos>Add screen.

No use of the big question mark icon linked to the Help pages in the
administration header, to avoid having this icon twice : in the header
+ in the content next to H2.

git-svn-id: http://piwigo.org/svn/trunk@5182 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-18 22:12:30 +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
rvelices
4f80b6095c - allow template class to be instantiated with an empty theme (in plugins for example)
- local_head must now be defined in the themeconf.inc.php otherwise not taken into account (avoid several calls to file_exists)
- renamed themeconf['theme'] to themeconf['name'] (this is what it is themeconf[theme] is confusing)

git-svn-id: http://piwigo.org/svn/trunk@5177 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-18 18:40:00 +00:00
rvelices
15fdea6925 - removed compatibility with php4 (file_put_contents exists in php5)
- when synchronizing local files , sort them alphabetically

git-svn-id: http://piwigo.org/svn/trunk@5176 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-18 14:30:04 +00:00
nikrou
3631839e54 Revert gettext stuff.
Keep english values for language keys translation.
Provide a script to use english values for key in language files.

Todo : provide a script (to help transition) to keep using
original keys in language files for translators.

git-svn-id: http://piwigo.org/svn/trunk@5156 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-17 09:22:51 +00:00
patdenice
54b9eea12d Feature 1502: Avoid 500 error if parent theme is the theme itself.
git-svn-id: http://piwigo.org/svn/trunk@5154 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-17 00:55:26 +00:00
plegall
f82430dd3b feature 1514: new screen to manage installed themes; activate, deactivate,
delete, set as default.

plugins.class.php was merged back to a state it doesn't manage themes at all.
themes.class.php was created instead, from a duplication of plugins.class.php
and strongly modified then.

feature 1507: the display of available themes is now much more "graphic".

git-svn-id: http://piwigo.org/svn/trunk@5153 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-17 00:48:38 +00:00
plegall
b95eebbe18 feature 1505: when there is no photo yet in the gallery, displays a big and
obvious message, guiding to the Administration>Images>Add page.

git-svn-id: http://piwigo.org/svn/trunk@5138 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-14 23:56:21 +00:00
patdenice
f76ce16aa6 Feature 1502
Extend for templates now work properly.
Bound template as to be renamed in bound theme...

git-svn-id: http://piwigo.org/svn/trunk@5126 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-13 02:14:32 +00:00
patdenice
7a81759fb0 Feature 1502
Move mail images.
Change image path in mail-css files.
Remove local css file for NBM.

git-svn-id: http://piwigo.org/svn/trunk@5125 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-13 01:19:57 +00:00
plegall
14778ce673 feature 1502: based on Dotclear model, P@t has reorganized the way Piwigo
manages template/theme in a simpler "theme only level" architecture. It
supports multiple level inheritance.

git-svn-id: http://piwigo.org/svn/trunk@5123 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-13 00:00:52 +00:00
vdigital
1ee8f746c5 New trigger on get_pwg_themes
git-svn-id: http://piwigo.org/svn/trunk@5102 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-10 23:10:27 +00:00
vdigital
964a191ff1 New feature: Modeling could be turn off in themeconf
$themeconf['modeling'] = false; /* Assume to have all *.tpl files in the template.

git-svn-id: http://piwigo.org/svn/trunk@5101 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-10 22:22:30 +00:00
vdigital
dfe94b111d Fix: failed to open dir on default template
git-svn-id: http://piwigo.org/svn/trunk@5100 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-10 22:07:14 +00:00
plegall
c9dfb3a41f feature 1494: move all *.tpl files from template/yoga to the new
template/default (from which yoga derives)

git-svn-id: http://piwigo.org/svn/trunk@5095 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-09 20:17:00 +00:00
vdigital
0f7a952bdb New feature: Template modeling to reduce coding efforts when you want to create a new template.
git-svn-id: http://piwigo.org/svn/trunk@5071 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-07 14:24:02 +00:00
Eric
97a8ddcfe7 Renaming $conf['no_case_sensitive_for_login'] to $conf['insensitive_case_logon'] according with VDigital's proposal
git-svn-id: http://piwigo.org/svn/trunk@5060 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-06 15:07:08 +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
plegall
35694a636e merge r5013 from branch 2.0 to trunk
feature 1448 added: ability to set the upload directory (for pwg.images.add
API method).

Warning: due to risk on img src construction, the upload_dir must be relative
to the Piwigo directory itself.


git-svn-id: http://piwigo.org/svn/trunk@5014 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-01 16:22:34 +00:00
nikrou
0c8e06da4a Feature 1255 : bug in install with mysql and postgresql if some form parameters are missing.
git-svn-id: http://piwigo.org/svn/trunk@5006 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-28 21:11:23 +00:00
nikrou
d4287e2ad8 Feature 1460 : Customize form installation depending on database engine
- sqlite is proposed by default if severals
    database engine are available (cf conf)
- sqlite is proposed before pdo-sqlite
- remove host, user and password for sqlite

git-svn-id: http://piwigo.org/svn/trunk@4985 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-27 20:00:00 +00:00
nikrou
4986d620e3 Feature 1459 : add support for SQLite3 via PDO
git-svn-id: http://piwigo.org/svn/trunk@4967 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-26 20:10:51 +00:00
plegall
0e45412d84 merge r4965 from branch 2.0 to trunk
bug 1047 fixed: avoid warnings when the creation date is 0000-00-00 (which
happens when date_creation comes from corrupted EXIF)

bug 859 fixed: at display time only. Piwigo still inserts wrong date in the
database, to be fixed later.


git-svn-id: http://piwigo.org/svn/trunk@4966 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-26 12:03:01 +00:00
plegall
570c905556 merge r4953 from branch 2.0 to trunk
feature 1453 added: ability to check for uniqueness on filename. No change on
the default behavior: uniqueness is set on md5sum.


git-svn-id: http://piwigo.org/svn/trunk@4954 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-23 14:41:45 +00:00
nikrou
9daf2aa7b6 Feature 1255 : missing quotes in concat function for mysql
git-svn-id: http://piwigo.org/svn/trunk@4929 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-21 17:27:22 +00:00
plegall
6ba826eb32 merge r4910 from branch 2.0 to trunk
feature 967: optionnaly transmit the original filename to pwg.images.add. When
transmitted, it fills the images.file column.


git-svn-id: http://piwigo.org/svn/trunk@4911 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-19 09:20:11 +00:00
rub
9c5a2aee19 merge -c4907 from branch 2.0 to trunk
Feature 0001142: notification on category, current user language depends on last group user 

Thanks to cljosse and Eric for their help!


git-svn-id: http://piwigo.org/svn/trunk@4908 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-18 23:12:47 +00:00
plegall
b73d129a17 merge r4902 from branch 2.0 to trunk
bug 1423 fixed: support for ExtendedDescription (and all the ones using the
"render_category_name" event) in category names.


git-svn-id: http://piwigo.org/svn/trunk@4903 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-17 16:15:56 +00:00
plegall
a8539c990f merge r4899 from branch 2.0 to trunk
bug 1422 fixed: pwg.images.add (and sub methods) can create recursive
directories for windows.

add trace in ws_logfile for add_file + ws_images_add_chunk


git-svn-id: http://piwigo.org/svn/trunk@4900 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-17 15:09:44 +00:00
nikrou
6992b27535 Bug 1426 fixed : admin help popup use gallery theme instead of admin theme
git-svn-id: http://piwigo.org/svn/trunk@4893 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-15 21:36:36 +00:00
nikrou
c1d6177df9 Feature 1255 :
update pwg_db_insert_id() function.
PosgreSQL needs table name to retrieve last insert auto increment id.

git-svn-id: http://piwigo.org/svn/trunk@4892 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-15 19:49:04 +00:00
nikrou
78b517bde6 Feature 1255 : bug in pwg_session_write() with postgresql.
replace into doesn't exists. Must do two queries

git-svn-id: http://piwigo.org/svn/trunk@4886 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-13 21:27:42 +00:00
plegall
ddf51992f0 merge r4883 from branch 2.0 to trunk
bug 1431: Community users now can see empty categories just like any admin.


git-svn-id: http://piwigo.org/svn/trunk@4884 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-12 23:05:37 +00:00
nikrou
e1de0d6faf Feature 511 : fix problems with calendar functions
add pwg_db_concat() function

git-svn-id: http://piwigo.org/svn/trunk@4833 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-03 09:26:32 +00:00
ddtddt
7fda6e5af9 [trunk] localisation merge 4758 bug:1416
git-svn-id: http://piwigo.org/svn/trunk@4816 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-01 18:53:59 +00:00
nikrou
20b58c53cd Feature 511 : improve installation for sqlite
fatal error if database cannot be accessed
fix problem with booleans

git-svn-id: http://piwigo.org/svn/trunk@4791 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-29 11:36:54 +00:00
nikrou
386864cd26 Feature 511 : add support for sqlite database engine
Using session_write_close function when session handler use database because write is called after object destruction.

git-svn-id: http://piwigo.org/svn/trunk@4781 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-28 11:30:36 +00:00
plegall
4e26a5480e merge r4684 from branch 2.0 to trunk
feature 1381: pwg.images.add automatically synchronizes metadata. Thank you to
Jochen Roth (Polly) for the patch.


git-svn-id: http://piwigo.org/svn/trunk@4685 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-15 11:28:18 +00:00
nikrou
ace36384ea Merge branch 'bug_1255'
git-svn-id: http://piwigo.org/svn/trunk@4607 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-03 09:22:32 +00:00