Commit graph

1178 commits

Author SHA1 Message Date
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
rub
f7788450b8 Feature 1255: modification in sql queries
correction


git-svn-id: http://piwigo.org/svn/trunk@4542 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-21 15:11:35 +00:00
rvelices
8c051ea526 merge -r4512 from branch 2.0 to trunk
web method images.setPrivacyLevel (ws_images_setPrivacyLevel) is POST only

git-svn-id: http://piwigo.org/svn/trunk@4513 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-18 21:12:41 +00:00
plegall
975188d088 merge r4510 from branch 2.0 to trunk
bug 1334 fixed: for POST mode on pwg.categories.setInfo, pwg.images.setInfo,
pwg.images.addChunk web API methods.


git-svn-id: http://piwigo.org/svn/trunk@4511 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-18 00:45:03 +00:00
plegall
57db55318a merge r4459 from branch 2.0 to trunk
feature 1316 added: we now have the ability to only fill the single value
properties that are currently empty in the database instead of automatically
replacing.

feature 1312: as a matter of consistency, I have changed the replace_mode
(that was only for multiple values properties) into multiple_value_mode +
single_value_mode.


git-svn-id: http://piwigo.org/svn/trunk@4460 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-09 22:19:06 +00:00
plegall
17dd6ed3ae merge r4444 from branch 2.0 to trunk
feature 1312 added: pwg.images.setInfo can replace multiple values propreties
(tags/categories). The primary condition is to provide "tag_ids" and/or
"categories" input parameters, ie pwg.images.set won't create emptiness. You
can reduce the set of tags/categories but not remove all tags/categories.

bug 1277 fixed: with a stronger algorithm for adding/replacing categories, we
now avoid to recreate an existing image_category association.

When a remote client calls pwg.images.setInfo, Piwigo returns an error 500 if:
1. the "categories" parameter is malformed (no numeric id inside)
2. one of the input categories does not exist at database level.


git-svn-id: http://piwigo.org/svn/trunk@4445 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-07 22:30:02 +00:00
Eric
1b601a37de Feature 0000796 fixed : Strengthen login handling
git-svn-id: http://piwigo.org/svn/trunk@4429 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-05 19:55:21 +00:00
plegall
9c5cfbc789 merge r4426 from branch 2.0 to trunk
bug 1211 fixed: with PHP 5.3, the get_class function requires the input
parameter to be an object, or else throws a E_WARNING message. In webservices
files, I have replaced all "get_class" calls by "@get_class".


git-svn-id: http://piwigo.org/svn/trunk@4427 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-04 23:19:26 +00:00
plegall
110ce79b3c merge r4424 from branch 2.0 to trunk
bug 1210 fixed: check if the memory_get_usage function is available before
using it.


git-svn-id: http://piwigo.org/svn/trunk@4425 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-04 21:57:50 +00:00
nikrou
fdfaefd17a Feature 1255 :
- add postgres database engine
- change installation process to allow postgres or mysql database

git-svn-id: http://piwigo.org/svn/trunk@4410 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-02 20:27:06 +00:00
nikrou
f7222bf601 Feature 1255 :
sql functions for calendar (interval, year, month, ...)

git-svn-id: http://piwigo.org/svn/trunk@4398 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-30 20:41:11 +00:00
nikrou
2f8800b35b Feature 1255 :
misspelled function
parenthesis missing

git-svn-id: http://piwigo.org/svn/trunk@4388 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-29 14:08:43 +00:00
nikrou
ad796f152f Feature_1255:
- bug fix : function pwg_db_get_recent_period_expression
- add extra fields for select based on "order by"

git-svn-id: http://piwigo.org/svn/trunk@4387 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-29 14:06:16 +00:00
nikrou
c96097529e Feature_1255 :
- single quotes in queries
- start using $conf['dblayer']

git-svn-id: http://piwigo.org/svn/trunk@4385 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-29 12:35:19 +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
d30639ec98 Feature 928 :
partial revert of svn:4280 for external authentification.

git-svn-id: http://piwigo.org/svn/trunk@4357 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-24 10:19:27 +00:00
plegall
f974668ef5 merge r4345 from branch 2.0 to trunk
feature 1051: ability to add/update a file for an existing photo. For example,
you can add the "high" later. Another example is to update the "web resized"
file (new dimensions is a common example). It also works for thumbnails.
Updating an existing file has no impact on the logical level (list of tags,
list of categories, title, description and so on).


git-svn-id: http://piwigo.org/svn/trunk@4348 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-22 23:59:14 +00:00
plegall
858b43e87a merge r4344 from branch 2.0 to trunk
feature 1051: new API method pwg.images.checkFiles. This method will be useful
before asking for an update on photo files.

Enhancement in code factorization.


git-svn-id: http://piwigo.org/svn/trunk@4347 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-22 23:58:44 +00:00
plegall
7ee33e9c0c merge r4328 from branch 2.0 to trunk
improvement: to prepare feature 1051, the code to add a single file (works for
the 3 picture types, ie thumb/file/high) has been factorized into a single
add_file function.

bug fixed: when a function not directly called by the API (such as merge_chunks
or the new add_file function) returning a PwgError, it was not stopping the
execution, it just sets the error code/message. Now we don't return PwgError,
we only create one and then exit().


git-svn-id: http://piwigo.org/svn/trunk@4346 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-22 23:57:44 +00:00
nikrou
96aa29d484 Feature 1241 : revert pwg_db_fetch_row because we use $row[0]
git-svn-id: http://piwigo.org/svn/trunk@4335 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-21 21:05:22 +00:00
nikrou
ce3fe0d460 Feature 1255 : limit params in sql queries were in wrong order (LIMIT count OFFSET offset)
git-svn-id: http://piwigo.org/svn/trunk@4334 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-21 19:52:50 +00:00
nikrou
daa877aa8a Feature 1244 : misspelled functions pwg_db_free_result() (db missing)
git-svn-id: http://piwigo.org/svn/trunk@4332 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-21 12:41:13 +00:00
nikrou
f0d0a0952c Feature 1255 : improve sql
Replace in queries LIMIT N,M by LIMIT N OFFSET M

git-svn-id: http://piwigo.org/svn/trunk@4331 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-21 12:15:22 +00:00
nikrou
8c17d369fa Feature 1244 : bug fix
functions_mysql.inc.php must be loaded for install

git-svn-id: http://piwigo.org/svn/trunk@4326 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-20 14:55:32 +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
Eric
c020cd0d7c Rollback to preview commit
git-svn-id: http://piwigo.org/svn/trunk@4306 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-18 22:02:21 +00:00
Eric
41fe69917c Forgotten Comments author name to be escaped and correctly displayed
git-svn-id: http://piwigo.org/svn/trunk@4305 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-18 21:14:58 +00:00
Eric
1235bab527 Escape all login and username characters in database
Display correctly usernames

(I hope not to have made mistakes)

git-svn-id: http://piwigo.org/svn/trunk@4304 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-18 20:07:20 +00:00
nikrou
8a29965450 Feature 928 resolved.
Replace include/mysql.inc.php by include/config_database.inc.php to be independant of database engine
Rename database configurations variables by ones in $conf array.

git-svn-id: http://piwigo.org/svn/trunk@4280 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-16 19:17:01 +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
rvelices
dda7f4571b quick search on image file name is not case sensitive anymore
git-svn-id: http://piwigo.org/svn/trunk@4261 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-13 03:07:44 +00:00
ddtddt
a0a640fa10 [trunk] Merge 4046 new: de.piwigo.org/forum / es.piwigo.org/forum are online, PHPWG_DOMAIN updated inside Piwigo.
git-svn-id: http://piwigo.org/svn/trunk@4047 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-15 15:17:33 +00:00
patdenice
f83b8815c6 merge r4005 from branch 2.0 to trunk
bug 1187: set_magic_quote_runtime and get_magic_quote_gpc are depreciated and can produce notices from PHP 5.3.
Add a @ to avoid this notices.
This functions need to be removed with PHP 6

git-svn-id: http://piwigo.org/svn/trunk@4006 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-09 14:41:30 +00:00
patdenice
9e1b542796 Simplification of commit 3951.
git-svn-id: http://piwigo.org/svn/trunk@3953 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-01 15:11:58 +00:00
patdenice
162a4d1b78 Allow to add prefilters, postfilters and output filters to templates.
git-svn-id: http://piwigo.org/svn/trunk@3951 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-01 10:46:48 +00:00
rub
c3a950d1ea merge -c3937 from branch 2.0 to trunk
Bug 1176: Mail are not sent on Free sites
Add text/plain like alternative content-type

git-svn-id: http://piwigo.org/svn/trunk@3938 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-09-28 20:54:06 +00:00
Eric
d67b276519 [Bug 1041] Switchable double/single password input with text or password type in admin using new $conf
git-svn-id: http://piwigo.org/svn/trunk@3935 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-09-28 19:22:59 +00:00
patdenice
7405e326ab Improve template prefilter functions
git-svn-id: http://piwigo.org/svn/trunk@3928 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-09-27 23:40:38 +00:00
mathiasm
e6363de6fd Add Smarty's prefilter capability. see topic:16219 (FR).
git-svn-id: http://piwigo.org/svn/trunk@3927 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-09-27 20:47:24 +00:00
rub
1c8a47a61f merge -c3925 from branch 2.0 to trunk
Bug 1176: Mail are not sent on Free sites
"To: undisclosed-recipients: ;" are removed

git-svn-id: http://piwigo.org/svn/trunk@3926 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-09-27 20:04:24 +00:00
rub
3c3c084156 Bug 1145: Mails are sent in double
git-svn-id: http://piwigo.org/svn/trunk@3798 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-08-26 20:14:57 +00:00
nikrou
71774d6496 Fix for feature 1000: cannot access $conf array (use global)
git-svn-id: http://piwigo.org/svn/trunk@3750 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-08-18 19:11:01 +00:00
Eric
bac7567b5c PHP 5.3 compatibility - Deprecated functions were replace as follows :
ereg() -> preg_match()
ereg_replace() -> preg_replace()
eregi() -> preg_match() with the 'i' modifier
eregi_replace() -> preg_replace() with the 'i' modifier
set_magic_quotes_runtime() -> No more usefull. Fixed it by adding "@" prefix.

git-svn-id: http://piwigo.org/svn/trunk@3747 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-08-17 16:21:09 +00:00
nikrou
513b3e0bd6 New feature : configuration option for thumbnail directory
git-svn-id: http://piwigo.org/svn/trunk@3720 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-08-02 13:04:17 +00:00
rvelices
5f1a286e08 - fix smarty debugging info (not important)
git-svn-id: http://piwigo.org/svn/trunk@3703 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-30 03:59:18 +00:00
plegall
641caaa2f5 merge r3661 from branch 2.0 to trunk
feature 1071: improve log system on API calls. The log can be activated by a
configuration setting. The log file can be changed also with a configuration
setting.

improvement: pwg.images.add API methods gets a cleaner way to log received
parameters.

git-svn-id: http://piwigo.org/svn/trunk@3662 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-21 21:41:31 +00:00
plegall
b253200c95 merge r3659 from branch 2.0 to trunk
bug 1070: fix a pLoader bug on Piwigo side. Catch the bad communication:
don't try to find tags if tag_ids parameter is empty (but not null).

git-svn-id: http://piwigo.org/svn/trunk@3660 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-21 21:19:53 +00:00
rvelices
537b8430a2 - bug fix (use uasort for computed categories instead of usort) - I think this is an old bug and somehow it worked before)
git-svn-id: http://piwigo.org/svn/trunk@3642 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-20 05:36:15 +00:00
rvelices
a8d561b0bb correct bug in commit r3622 ( feature 1053 )
git-svn-id: http://piwigo.org/svn/trunk@3640 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-20 05:18:53 +00:00
rvelices
4cbf56f768 feature 1053: hide categories that contain no photo due to privacy level
git-svn-id: http://piwigo.org/svn/trunk@3622 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-18 10:30:42 +00:00
rvelices
e618e8b944 - fix php warning from comment_list.tpl
- author name is saved always in #comments (even for registered users) so that
  - sql queries are simpler on the comments page (one less table in a big join)
  - when a user is deleted, we can keep the username in the #comments (there might be still a bug that author_id is not updated when a user is deleted)

git-svn-id: http://piwigo.org/svn/trunk@3600 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-16 05:20:34 +00:00
patdenice
0870a47e99 merge r3583 from branch 2.0 to trunk
Update smarty to 2.6.26


git-svn-id: http://piwigo.org/svn/trunk@3584 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-15 11:43:44 +00:00
plegall
cc285fa731 merge r3513 from branch 2.0 to trunk
bug 1043 fixed: avoid warning when merging chunks. This warning was preventing
the PwgError to work correctly and the error code was not transmitted.

git-svn-id: http://piwigo.org/svn/trunk@3514 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-03 23:03:30 +00:00
vdigital
1bc5573c64 merge r3490 from branch 2.0 to trunk
Reverse of 3484




git-svn-id: http://piwigo.org/svn/trunk@3491 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-01 21:10:42 +00:00
rvelices
61955b7dfe - correct mysql error (while updating user comment)
git-svn-id: http://piwigo.org/svn/trunk@3489 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-01 21:04:23 +00:00
rvelices
4fa8d36ed5 - remove warn on unset variable
- insert_user_comment expects now the comment content to be sql safe (works now exactly as update_user_comment)

git-svn-id: http://piwigo.org/svn/trunk@3488 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-01 20:56:41 +00:00
vdigital
ed23132fc7 merge r3484 from branch 2.0 to trunk
New: Extend of available fields within a category page for a template-extension simple usage.
Add thumbnail dimensions to remove as much as possible some PHP in tpl extensions.

{$thumbnails.FILE_TN_WIDTH}
{$thumbnails.FILE_TN_HEIGHT}

git-svn-id: http://piwigo.org/svn/trunk@3485 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-01 19:22:53 +00:00
plegall
9b16d67c22 merge r3453 from branch 2.0 to trunk
feature 1033 added: new API method pwg.categories.setInfo makes possible to
change the name and comment of a given category.


git-svn-id: http://piwigo.org/svn/trunk@3454 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-06-24 23:01:35 +00:00
nikrou
ed7f7a574e Fix two problem with Feature 1026 :
use of $conf['user_fields']['username'] and $conf['user_fields']['id'] instead of username and id
escape comment content before editing it.

git-svn-id: http://piwigo.org/svn/trunk@3452 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-06-24 19:00:40 +00:00
nikrou
64c872a83e Feature 1026 step 2 :
add author_id column so that guest cannot modify old users comments

git-svn-id: http://piwigo.org/svn/trunk@3450 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-06-23 21:18:16 +00:00
nikrou
1ce50505e4 fix html bug (li) fix comment for guest bug (form missing)
git-svn-id: http://piwigo.org/svn/trunk@3446 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-06-23 19:51:16 +00:00
nikrou
9245227e70 Feature 1026 : Modify / delete comments for users
+ update config table content
 + minor modification of Sylvia theme
 + need refactoring

git-svn-id: http://piwigo.org/svn/trunk@3445 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-06-23 13:44:58 +00:00
nikrou
1e8ae9e88b feature 1028 : Allow admin to validate comment from picture page
git-svn-id: http://piwigo.org/svn/trunk@3409 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-06-10 20:11:28 +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
plegall
654ce203d3 merge r3381 from branch 2.0 to trunk
feature 1020 added: ability to subscribe to Piwigo Announcement Newsletter from
Piwigo itself. Admins can perform this action at the end of installation or on
administration panel index.

git-svn-id: http://piwigo.org/svn/trunk@3382 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-05-31 19:46:59 +00:00
plegall
e10636f2db merge r3276 from branch 2.0 to trunk
bug 968 fixed: charset is set in HTTP header.

improvement: in the "this gallery is locked" message, the link to the
"sign in" page is on the whole sentence, not only on the final dot.

git-svn-id: http://piwigo.org/svn/trunk@3277 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-05-06 21:09:06 +00:00
plegall
f3cdd38fe4 merge r3270 from branch 2.0 to trunk
feature 981 added: ability to set the compression level for thumbnail creation.

git-svn-id: http://piwigo.org/svn/trunk@3271 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-05-05 22:16:05 +00:00
rub
24ed6dab41 Resolved issue 0000977: Error on sendmail with smtp
git-svn-id: http://piwigo.org/svn/trunk@3261 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-04-26 18:34:57 +00:00
rub
45f95d64e6 Remove " " after ":" on smtp_mail
git-svn-id: http://piwigo.org/svn/trunk@3259 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-04-26 15:03:40 +00:00
rub
1bbf9a9f64 Rollback "Missing <ul> on NBM" in order to dd <ul> on feed too.
git-svn-id: http://piwigo.org/svn/trunk@3257 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-04-26 14:59:15 +00:00
plegall
3c27690c87 merge r3239 from branch 2.0 to trunk
bug 949 fixed: to avoid memory limit on server side, base64 encode chunks one
by one on client side and base64 decode chunks one by one on server side.


git-svn-id: http://piwigo.org/svn/trunk@3240 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-04-14 22:54:39 +00:00
patdenice
ed068b08c8 Add "tags" parameter for template extensions
git-svn-id: http://piwigo.org/svn/trunk@3207 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-16 17:51:47 +00:00
patdenice
7f8cbea1ec Move template class inclusion to common.inc.php.
Add forum link in upgrade page.
Install and upgrade try to configure PHP5.

git-svn-id: http://piwigo.org/svn/trunk@3203 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-16 16:57:10 +00:00
plegall
87a7b60bed merge r3196 from branch 2.0 to trunk
bug 926 fixed: change links to piwigo.org so that they go to existing URLs.

new: if the current language is french, the links go to fr.piwigo.org instead.


git-svn-id: http://piwigo.org/svn/trunk@3197 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-13 23:43:50 +00:00
plegall
f94ff8b8e1 merge r3192 from branch 2.0 to trunk
bug 941 fixed: to be able to upload heavy photo, chunk the files, send parts
one by one, and then pwg.images.add merge chunks together. Now big uploads
works and you can even have a fine progress bar on client side.


git-svn-id: http://piwigo.org/svn/trunk@3193 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-12 23:14:50 +00:00
patdenice
bd005369b0 URL parameter for template extensions can be used in slideshow.
git-svn-id: http://piwigo.org/svn/trunk@3190 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-12 13:18:17 +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
nikrou
bea3462f56 fix html warnings. unclosed monotags
git-svn-id: http://piwigo.org/svn/trunk@3185 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-09 19:41:45 +00:00
patdenice
9d1bff0697 Code simplification of commit 3172
git-svn-id: http://piwigo.org/svn/trunk@3173 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-06 01:06:18 +00:00
patdenice
254aee2695 Create navigation_bar.tpl file.
Move create_navigation_bar function from functions_html.inc.php to functions.inc.php.

git-svn-id: http://piwigo.org/svn/trunk@3172 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-05 21:08:04 +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
patdenice
9045f11c70 User's template extension must not be included in admin pages.
git-svn-id: http://piwigo.org/svn/trunk@3169 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-03 22:37:14 +00:00
rvelices
781ec8d7c4 - improvement: show the number of images in the chronology upper navigation bar on mouseover (title element);
git-svn-id: http://piwigo.org/svn/trunk@3168 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-03 02:05:35 +00:00
rvelices
54902df0a4 small code refactor - group together some code that should be together
git-svn-id: http://piwigo.org/svn/trunk@3167 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-03 01:39:48 +00:00
plegall
1d034894d9 merge r3165 from branch 2.0 to trunk
bug 913 fixed: ability to connect with an IPv6 address was added.


git-svn-id: http://piwigo.org/svn/trunk@3166 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-26 20:12:27 +00:00
rvelices
6c92ade174 Last (I hope) paranoic optims ...
- move get_uysername and get_groupname from public to admin/functions.inc.php
- optim in index.php
- tags.tpl does not need smarty modifier included
- move func get_comment_post_key from functions_comment to functions (avoid extra inclusion every time on picture page)

git-svn-id: http://piwigo.org/svn/trunk@3145 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-14 02:24:10 +00:00
rvelices
601134c57e - moved check upgrade feed code to admin/include/functions_upgrade.php
- refactored some code (shorter and somehow faster - but nothing revolutionary)
- decrease lost space in permalinks.tpl and hard coded column width (was illisible)

git-svn-id: http://piwigo.org/svn/trunk@3136 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-13 13:01:03 +00:00
plegall
51fe601ee9 merge r3132 from branch 2.0 to trunk
modification: phpwebgallery.net moves to piwigo.org

modification: doc/README_*.txt much simpler with link to piwigo.org for
installation and upgrade guides.

modification: latest_version has changed its path on the website to download
directory.

deletion: doc/ChangeLog was useless and outdated.


git-svn-id: http://piwigo.org/svn/trunk@3133 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-12 23:20:40 +00:00
rvelices
612c9906fb - fix issue on my previous commit
git-svn-id: http://piwigo.org/svn/trunk@3128 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-05 03:10:23 +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
rvelices
e71d84ebfb - removed triggers loc_index_thumbnail and loc_index_category_thumbnail
- changed triggers loc_end_index_thumbnails and loc_end_index_category_thumbnails from actions to events

git-svn-id: http://piwigo.org/svn/trunk@3124 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-05 02:28:37 +00:00
rvelices
e8dac75c40 - removed second parameter $type from function format_date
git-svn-id: http://piwigo.org/svn/trunk@3122 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-04 02:41:03 +00:00
rvelices
06bccdfcc3 optimizations (php only)
- removed unnecessary call to array_unique in get_image_ids_for_tags
- put back in smarty exec time counting (debug mode) for each included template
- prefix some smarty modifiers with @ in some templates
- do not call format_date (still very slow due to mktime and date even after prev commit) from category_default.inc.php - if used in templates format_date can be used as a smarty modifier

git-svn-id: http://piwigo.org/svn/trunk@3120 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-04 02:30:48 +00:00
rvelices
5c001820a1 - fix use $page['nb_image_page'] instead of $user... when creating the nav bar (same as category_default)
- rewrote function format_date without regular expressions (faster); parameter date type is not used anymore (but I left it there for now)

git-svn-id: http://piwigo.org/svn/trunk@3117 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-31 01:10:51 +00:00
rvelices
fef4f255b5 - fix hard coded urls in section_init
- moved a language string language from php to tpl

git-svn-id: http://piwigo.org/svn/trunk@3108 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-22 02:19:17 +00:00
vdigital
7ee25a3419 Title harmonization in the scope of Piwigo website integration.
$conf['reverse_home_title'] is false by default.
On reverse_home_title = true, only index page will reverse its title.

Compare to prior releases all titles are reversed.
- Croatian flag

merge -c3091 from branch 2.0 to trunk



git-svn-id: http://piwigo.org/svn/trunk@3095 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-17 22:22:30 +00:00
plegall
83275fd036 merge r3064 from branch 2.0 to trunk
bug 912 fixed: we need an extra original_sum to pwg.images.add API method to
check photo existence. Using the file_sum was a bad idea.


git-svn-id: http://piwigo.org/svn/trunk@3065 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-08 23:33:35 +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
vdigital
9a0403c698 - $conf['meta_ref'] is a new configuration parameter (Default true)
Meta tags for description, author, and keywords are generated,
except if meta robots "noindex" is forced (with some pages like search, recent cats, etc.).

In addition, $conf['meta_ref'] = false is forcing "noindex, nofollow".
merge -c3040 from branch 2.0 to trunk





git-svn-id: http://piwigo.org/svn/trunk@3041 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-03 21:08:22 +00:00
nikrou
72b2c126c4 improve task:0000902:
- add image del_all_favorites.png
- make a redirect after delete

git-svn-id: http://piwigo.org/svn/trunk@3039 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-03 19:38:53 +00:00
nikrou
b225a52b91 task:0000902: button to remove all favorites
git-svn-id: http://piwigo.org/svn/trunk@3037 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-02 20:57:56 +00:00
vdigital
b0fe06558e - ini_set usage is sometimes prohibited.
merge -c3023 from branch 2.0 to trunk

git-svn-id: http://piwigo.org/svn/trunk@3024 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-28 14:23:22 +00:00
patdenice
d1e100bd03 Upgrade Smarty to 2.6.22
git-svn-id: http://piwigo.org/svn/trunk@3000 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-19 18:12:48 +00:00
vdigital
a7a4a7d2f4 Border removal in mails on thumbnails (2). Need further tests.
merge -c2994 from branch 2.0 to trunk


git-svn-id: http://piwigo.org/svn/trunk@2995 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-16 22:55:08 +00:00
patdenice
c7e54656fe Update Smarty to 2.6.21
git-svn-id: http://piwigo.org/svn/trunk@2961 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-09 16:08:48 +00:00
patdenice
6873537fe6 - Add a "Bound Template" column for template extensions.
git-svn-id: http://piwigo.org/svn/trunk@2923 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-06 02:28:54 +00:00
plegall
0479bcde10 merge r2921 from branch 2.0 to trunk
bug 907 fixed: avoid PHP warning when pwg.images.add adds a photo in a
category that either contains no "ranked" image or when category is empty.


git-svn-id: http://piwigo.org/svn/trunk@2922 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-03 23:29:08 +00:00
plegall
991ddc9809 merge r2918 from branch 2.0 to trunk
bug 905 fixed: avoid PHP notice when rank is implicit in the categories
parameter of the pwg.images.add web API method.


git-svn-id: http://piwigo.org/svn/trunk@2920 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-03 22:56:24 +00:00
plegall
4fc7acc18b merge r2722 from branch 2.0 to trunk
feature 892 added: pwg.images.setInfo added so that once we have discovered
the photo was already in the database (thanks to pwg.images.exist), we can
only set the photo metadata.


git-svn-id: http://piwigo.org/svn/trunk@2919 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-03 22:55:17 +00:00
plegall
0ffd66ca94 merge r2916 from branch 2.0 to trunk
bug 904 fixed: an index.htm is created in directories created by
pwg.images.add web API method, only directories that contains pictures.


git-svn-id: http://piwigo.org/svn/trunk@2917 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-02 23:28:32 +00:00
patdenice
c74e2ab49e - Add home and identification buttons after installation.
- Use fetchRemote function for remote site actions.
- Corrections in fetchRemote fnction.
- Move PLUGIN_PICTURE_BEFORE in picture.tpl.

git-svn-id: http://piwigo.org/svn/trunk@2902 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-23 17:23:57 +00:00
patdenice
61d8bf79c1 - Bug fixed: username or password with accented character are now accepted for upgrade.
- Simplify query in  pwg_session_write function.
- Retrieve data with cURL method in fetchRemote function now work with forwarded URL.

git-svn-id: http://piwigo.org/svn/trunk@2900 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-22 23:33:17 +00:00
patdenice
509cfc5547 - Replace some mysql_query by pwg_query function.
- Add home button after upgrade.php.
- Add utf8 charset for access denied message.
- Replace some #content by .content in css files.
- Fix menubar blocks borders with IE.

git-svn-id: http://piwigo.org/svn/trunk@2884 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-19 15:44:04 +00:00
grum
7b0669167f Add a new config value 'show_php_error' to allow debugging of RC to be easier.
See topic #99192 on the forum.

git-svn-id: http://piwigo.org/svn/trunk@2859 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-10 10:15:04 +00:00
rub
2a804c8b21 Resolved issue 0000900: format_date function doesn't work when time is omitted with 'mysql_datetime' type
Continue correction of grum

git-svn-id: http://piwigo.org/svn/trunk@2856 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-09 21:44:44 +00:00
grum
0ebfbafa91 merge -c2850 from branch 2.0 to trunk
The exact copy of commit log in 2850.

git-svn-id: http://piwigo.org/svn/trunk@2853 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-09 14:36:24 +00:00
plegall
30e97931af merge -c2848 from branch 2.0 to trunk
bug fixed: in r2774 a bug was introduced, piwigo.org is not available yet,
and plugin manager can't connect to the extension manager.


git-svn-id: http://piwigo.org/svn/trunk@2849 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-08 20:42:50 +00:00
vdigital
187196d507 merge -c2840 from branch 2.0 to trunk
New: Extend of available fields within a category page for a template-extension simple usage.
Refer to topic: "Smoothgallery plugin" where no plugin is requested to do it.
Minor: Some format in Sylvia theme

git-svn-id: http://piwigo.org/svn/trunk@2841 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-07 18:51:36 +00:00
rvelices
ad2941220f merge -c2823 from branch 2.0 to trunk
- removed some unused constants from constants.php
- removed some unused css rules
- removed unused code

git-svn-id: http://piwigo.org/svn/trunk@2824 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-04 01:47:48 +00:00
grum
ae4e04da07 use of a boolean value for the "qsearch" $block->data variable
(see topic #98370)

git-svn-id: http://piwigo.org/svn/trunk@2813 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-27 21:45:02 +00:00
grum
e9e57ab5c8 menu item "quicksearch" will be displayed only if a $block->data is set (like
other menu items)


git-svn-id: http://piwigo.org/svn/trunk@2810 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-26 19:10:18 +00:00
vdigital
632e77e27e Merging revision 2802
Advices [19] $conf['subcatify'] replaced by $conf['tags_default_display_mode']

Translation is needed for German, Spanish, Italian...
Please reorder after translation.




git-svn-id: http://piwigo.org/svn/trunk@2803 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-24 19:00:36 +00:00
rvelices
f7aea6eb4c merge r2789 from branch 2.0:
- some german language changes
- added option for smarty $conf['template_compile_check'] - default true; if false smarty doesn't check if templates need recompilation resulting in less disk accesses (good when the disk is not local)
- load_language doesnt check first for en_uk.utf-8 directory ...

git-svn-id: http://piwigo.org/svn/trunk@2790 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-22 01:36:11 +00:00
plegall
463c101a28 merge -c2785 from branch 2.0 to trunk
bug 897 fixed: controls added in pwg.images.add to have clear error messages
if permission is denied or any error occur during file write.


git-svn-id: http://piwigo.org/svn/trunk@2786 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-20 21:06:21 +00:00
vdigital
a6be0e500b Merging revisions 2773-2776
- Default template and Piwigo domain ...
- No metadata synchronization icon on a remote picture (Synchro failure)
- Jump to category icon is removed on user forbidden categories (previously check_restrictions was leading administrators to the access denied page).


git-svn-id: http://piwigo.org/svn/trunk@2777 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-19 15:47:34 +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
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
ebc3c2e2f7 merge 2755 and 2756 from branch 2.0 to trunk
- 2755 fix vulnerability http://www.milw0rm.com/exploits/6755
- 2756 security paranoia: protect session/remember me cookies from XSS attacks (works only if php>=5.2 and with IE/FF maybe others)


git-svn-id: http://piwigo.org/svn/trunk@2757 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-16 00:38:26 +00:00
patdenice
eb667c7711 - change mysql_escape_string function (deprecated) by mysql_real_escape_string.
- Correction on install.tpl (link color).

git-svn-id: http://piwigo.org/svn/trunk@2752 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-15 20:56:23 +00:00
patdenice
682220bded - Install process now looks like goto/roma.
- Move install.tpl to goto template.
- add charset utf8 to fatal error function.
- Check php version on install and upgrade, and die if < 5. 

git-svn-id: http://piwigo.org/svn/trunk@2747 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-15 17:50:12 +00:00
plegall
273fd6f186 version management: trunk codename changes to Colibri, see topic:13884.
git-svn-id: http://piwigo.org/svn/trunk@2725 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-12 18:47:46 +00:00
patdenice
a06bada6e8 - Remove known_template function.
- Replace it by a modifier function: get_extent.

git-svn-id: http://piwigo.org/svn/trunk@2716 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-11 17:21:52 +00:00
patdenice
4fbe0ef666 - Add known_template function (maybe we can change function name).
- Template extensions are working with menubar blocks templates.

git-svn-id: http://piwigo.org/svn/trunk@2712 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-11 12:55:43 +00:00
rvelices
0e5f5a74b3 - replace a preg_match with simple comparison (faster)
- try to get rid of some JS strict warnings in FF (hope it's fixed)
- template.class.php is included from functions.inc.php instead of common,upgrade,install (maybe later I will try to see the perf impact of compacting/compiling functions.inc.php together with the included files from itself)

git-svn-id: http://piwigo.org/svn/trunk@2700 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-10 13:11:31 +00:00
rvelices
11df0cb502 - removed unused var from template
- removed 2 unused rules from public content.css
- index.php improvement (as in picture) - the log is done after sending first output to client

git-svn-id: http://piwigo.org/svn/trunk@2699 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-09 23:14:43 +00:00
plegall
3eecf04629 feature 889 added: pwg.images.exist check the existence of a photo in the
database based on its md5sum. (avoid failing on pwg.images.add).


git-svn-id: http://piwigo.org/svn/trunk@2683 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-07 22:01:14 +00:00
plegall
a7f507dc68 bug 888 fixed: pwg.images.add updates the associated categories so that a
category doesn't remain without representant while containing photos.


git-svn-id: http://piwigo.org/svn/trunk@2672 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-05 22:30:35 +00:00
plegall
b53cddbf6a feature 885 added: pwg.images.add web API method now supports additional
high resolution format.


git-svn-id: http://piwigo.org/svn/trunk@2670 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-05 21:22:57 +00:00
rub
1d7f99d90f Use directly $lang_info on tpl files.
git-svn-id: http://piwigo.org/svn/trunk@2651 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-04 09:50:02 +00:00
patdenice
e53eee8f16 - Plugins manager now use PEM API.
- WARNING! Need to change PEM_URL constant and utf8 encoding when PEM will be updated.
- Bug in roma/themeconf.inc.php: accordion menu wasn't selected in plugins_new et plugins_update tabs.

git-svn-id: http://piwigo.org/svn/trunk@2647 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-03 23:16:49 +00:00
plegall
54cf9362f5 bug 880 fixed: pwg.categories.add invalidate the user cache so that the new
category is added to the user category tree.


git-svn-id: http://piwigo.org/svn/trunk@2644 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-03 20:38:12 +00:00
patdenice
3d1b35b8c9 - Add set_extents function in template class.
- 752: add trigger (for flipflip).

git-svn-id: http://piwigo.org/svn/trunk@2643 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-03 09:55:14 +00:00
rvelices
73eb979635 - the optim option conf['compiled_template_cache_language'] works better
git-svn-id: http://piwigo.org/svn/trunk@2636 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-02 00:30:34 +00:00
plegall
600e2d87ec feature 874 added: new Web API method pwg.tags.add.
git-svn-id: http://piwigo.org/svn/trunk@2634 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-01 21:08:51 +00:00
rub
e9d7622d55 Purpose of datepicker with jQuery.
I will open a french topic on forum to debate of implementation and possibles changes.

git-svn-id: http://piwigo.org/svn/trunk@2632 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-01 20:39:06 +00:00
rub
389edad288 Fix bad content of NBM mail.
Missing a file.

Sorry, multiple dev on work...

git-svn-id: http://piwigo.org/svn/trunk@2629 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-30 22:14:19 +00:00
rvelices
11d699f4b3 - {known_script} and {html_head} work from {include file...}
git-svn-id: http://piwigo.org/svn/trunk@2627 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-30 01:26:17 +00:00
patdenice
3ede19df23 Bug 871: guest is not saved in history table
git-svn-id: http://piwigo.org/svn/trunk@2620 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-28 15:12:43 +00:00
rvelices
da7b79b47b - the author in RSS feed can be configured in config_default.inc.php
git-svn-id: http://piwigo.org/svn/trunk@2595 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-26 01:43:41 +00:00
plegall
d04fd1d44e feature 868 added: pwg.images.add checks if the same file has not alread
been uploaded.


git-svn-id: http://piwigo.org/svn/trunk@2592 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-25 23:01:35 +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
rvelices
c15f6faced - some checks for admins that are advisers (no write access)
- send the charset in http header for web services
- tag name becomes an xml attribute instead of content for tags.getList and related tags in images.getInfo (more logical and coherent with tags.getAdminList)

git-svn-id: http://piwigo.org/svn/trunk@2585 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-25 00:30:42 +00:00
plegall
5adad7565c new: WebService method pwg.tags.getAdminList was added. The difference with
pwg.tags.getList is that this new method doesn't take permissions into
account, and so is available only for administrator connected users.


git-svn-id: http://piwigo.org/svn/trunk@2584 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-24 21:30:33 +00:00
plegall
6df515a54f new: WebService method pwg.categories.add so that pLoader can create a
virtual category.


git-svn-id: http://piwigo.org/svn/trunk@2583 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-24 20:25:39 +00:00
rub
e139a3472c Remove not used upload.class.php
git-svn-id: http://piwigo.org/svn/trunk@2580 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-24 06:07:26 +00:00
rvelices
dda9f5db66 - removed #debug css rule (why would we need that in default-layout?)
- order by rank is not available in calendar/chronology mode
- small non-functional change in functions_search.inc.php (handy for plugin)
- unused variables/smaller code/unused params in func call

git-svn-id: http://piwigo.org/svn/trunk@2572 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-23 01:04:41 +00:00
plegall
aa41a468e5 improvement: WebService method pwg.images.add can set fill #images table
columns. rank is directly related to a category and several categories can
be linked at once. Basic technical metadata {filesize, width, height} are
automaticaly filled.


git-svn-id: http://piwigo.org/svn/trunk@2569 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-22 21:47:03 +00:00
plegall
0283203cce new: webservice method pwg.categories.getAdminList was added so that pLoader
can see the list of categories as you can see in the administration
interface : not filtered by individual permissions.


git-svn-id: http://piwigo.org/svn/trunk@2563 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-21 20:42:17 +00:00
plegall
d55107e3e3 improvement: instead of sending the images_max_rank of each category in
pwg.categories.getList so that you can correctly set the rank in
pwg.images.add, the rank is calculated automatically in pwg.images.add so
that the image is added at the end of the category.


git-svn-id: http://piwigo.org/svn/trunk@2553 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-19 22:59:41 +00:00
plegall
c502ebd43a improvement: webservice methode pwg.categories.getList returns the
images_max_rank for each category, based on #image_category.rank content. So
that a remote client can correctly add photos with webservice method
pwg.images.add.


git-svn-id: http://piwigo.org/svn/trunk@2548 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-17 21:42:50 +00:00
plegall
72cc0df65a bug 861 fixed: only $conf['check_upgrade_feed'] is required to check for
development upgrades, not PHPWG_IN_UPGRADE constant any longer.


git-svn-id: http://piwigo.org/svn/trunk@2544 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-17 20:51:51 +00:00
rvelices
cc12d64051 - fix status header (web services + IE6 min display)
- sql optims in feed /notification
- dont send cookie for 10 years from admin/history.php

git-svn-id: http://piwigo.org/svn/trunk@2543 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-17 01:48:31 +00:00
rvelices
159fbc8377 - upgrade smarty to latest release 2.6.20
git-svn-id: http://piwigo.org/svn/trunk@2538 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-16 10:17:20 +00:00
nikrou
eef8aa8838 $_SERVER["HTTP_ACCEPT_LANGUAGE"] could be empty so test it.
git-svn-id: http://piwigo.org/svn/trunk@2537 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-14 19:40:18 +00:00
nikrou
9474d5cc67 real static param
git-svn-id: http://piwigo.org/svn/trunk@2536 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-14 19:40:12 +00:00
vdigital
fecb04f2ec Wigo becomes "goto".
Admin tpl files are moved.

git-svn-id: http://piwigo.org/svn/trunk@2530 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-14 07:16:15 +00:00
vdigital
2bad5e96fb Change config to wigo/roma
git-svn-id: http://piwigo.org/svn/trunk@2527 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-14 00:34:59 +00:00
rvelices
4d86bb2234 - images.file categories.permalink old_permalinks.permalink - become binary
- session security improvement: now the sessions are valid only for originating ip addr (with mask 255.255.0.0 to allow users behind load balancing proxies) -> stealing the session cookie is almost a non issue (with the exception of the 65536 machines in range)
- metadata sync from the sync button does not overwrite valid data with empty metadata
- other small fixes/enhancements:
 - added event get_category_image_orders
 - fix display issue with redirect.tpl (h1/h2 within h1)
 - fix known_script smarty function registration
 - query search form not submitted if q is empty
 - better admin css rules
 - some other minor changes (ws_core, rest_handler, functions_search...)

git-svn-id: http://piwigo.org/svn/trunk@2521 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-12 02:17:35 +00:00
plegall
272113c417 feature added: ability to set rank from webservice upload.
git-svn-id: http://piwigo.org/svn/trunk@2520 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-11 22:19:04 +00:00
plegall
d39db9aaaf feature 169 added: ability to manually sort images inside a category. A
dedicated screen let the administrator sort the images (pur HTML, no
JavaScript yet). The "rank" sort order is available only for a category
without flat mode. New database column image_category.rank.


git-svn-id: http://piwigo.org/svn/trunk@2517 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-11 21:40:00 +00:00
rvelices
fdffe42bdc remove ws access table/partners functionality
git-svn-id: http://piwigo.org/svn/trunk@2516 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-11 01:20:25 +00:00
rvelices
6ddb20d6f0 - fix undefined template vars U_LOST_PASSWORD (menubar), F_ACTION (extend_for_templates) and F_C13Y_ACTION (check_integrity)
- normalized some template variable names between category thumbnails and thumbnails (take advantage of full template change with smarty and do it now)

git-svn-id: http://piwigo.org/svn/trunk@2515 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-10 01:16:13 +00:00
rvelices
9aec2fb5e7 - fix typing error in index.tpl
- added template smarty function known_script (e.g.{known_script id="x" src"y.js"}) - useful to avoid double inclusion of a script such as prototype,jquery,... when a template and plugin need it independently (see the use in admin.tpl for example)
- removed unused themeconf.template_dir 

git-svn-id: http://piwigo.org/svn/trunk@2513 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-09 09:53:31 +00:00
plegall
fceb26e231 bug fixed: it seems that the upload file.jpg had -rw------- permissions
which is not enough if the http server user is different from the file owner
(which is the case when suphp is running). The permissions are set to
-rw-r--r--.


git-svn-id: http://piwigo.org/svn/trunk@2511 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-08 21:14:33 +00:00
nikrou
fae1a63124 fix too strict regex for email
git-svn-id: http://piwigo.org/svn/trunk@2507 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-07 11:05:15 +00:00
nikrou
49d878b326 mispellin variable
git-svn-id: http://piwigo.org/svn/trunk@2505 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-06 12:47:32 +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
116f1bc4fb improvement: ws method pwg.images.add checks the dumped files against the
expected md5 sum.

bug fixed: ws method pwg.images.add invalidate the user cache so that
category date_last and category nb_images (and related data)


git-svn-id: http://piwigo.org/svn/trunk@2501 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-04 22:45:27 +00:00
plegall
57dd0ffcb6 bug fixed : call set_status_header for HTTP response when webservice
PwgError is called, so that http response code and related message are part
of the structure response and not only in a serialized content (see how
tools/piwigo_remote.pl gets the response)


git-svn-id: http://piwigo.org/svn/trunk@2499 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-04 21:37:19 +00:00
rvelices
efa7411875 - bug 854: better checks of directory creations ( local_data_dir, templates_c, tmp etc...)
git-svn-id: http://piwigo.org/svn/trunk@2497 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-04 01:28:34 +00:00
rvelices
4002f708e1 - remove hello_world plugin (not working anymore)
- web service method images.add works only for admins now
- fix template-common js web service calls did not have the parameters url encoded
- improve admin user_list - submitting the form with no user selected triggers a javascript alert (had fun with jquery selectors)


git-svn-id: http://piwigo.org/svn/trunk@2496 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-04 00:57:55 +00:00
rvelices
3a67845aaf - removed and moved (from common to admin) some CSS rules
- upgraded jQuery and accordion to latest version (and reorganised a bit their location)

git-svn-id: http://piwigo.org/svn/trunk@2489 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-08-28 01:26:26 +00:00
rvelices
abb2f22b2e - based on test_menu by grum (thanks to you) - integration of dynamic menu bar to pwg
- the menubar is composed now of dynamic blocks that can be ordered/hidden
- plugins can add their own blocks 


git-svn-id: http://piwigo.org/svn/trunk@2488 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-08-28 00:32:39 +00:00
rvelices
726529c49b merge r2483 from branch 1.7
- security fix : when conf['question_mark_in_urls']=true , $_SERVER['PATH_INFO'] was not sanitized against sql injection
- mysql errors are now dumped using trigger_error instead of echo and die -> allow admins to see later on if someone tries funny stuff

git-svn-id: http://piwigo.org/svn/trunk@2484 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-08-23 01:18:13 +00:00
rvelices
0b32dd4c0b - further reduce css rules and remove unused ones
- added a smarty prefilter so that html output is nicely indented now ...

git-svn-id: http://piwigo.org/svn/trunk@2481 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-08-22 00:45:03 +00:00
rvelices
5a6298548b - local.lang is loaded without fallback on default language or PHPWG_DEFAULT_LANGUAGE (needed to change the signature of load_language which became a little too big)
- move a function from functions.inc.php to functions_picture.inc.php (included only when necessary)
- removed some css (not as much as I wanted)

git-svn-id: http://piwigo.org/svn/trunk@2479 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-08-20 00:35:22 +00:00
rvelices
dcbaefafdf - ws can include php file before invoking web call method
- remove "Pierrick ..." from some languages
- tags - small change to avoid increasing number of urls
- added a missing closedir
- remove some unnecessary class names and inexisting rel attributes

git-svn-id: http://piwigo.org/svn/trunk@2478 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-08-19 23:58:35 +00:00
rvelices
06df392005 - optim dont include a php file if not required
- eng lang small change
- remove link to unexisting admin css

git-svn-id: http://piwigo.org/svn/trunk@2476 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-08-16 01:32:37 +00:00
rvelices
5d40738463 git-svn-id: http://piwigo.org/svn/trunk@2471 68402e56-0260-453c-a942-63ccdbb3a9ee 2008-08-11 11:25:07 +00:00
grum
d4a7be644b updating files for the Menu class (test_menu)
+ fixes "Links" translation bug 

updating files for the AMenuManager plugin
 + enhance links template

updating common classes grum_plugins_classes-2
(needed for the AMenuManager plugin)
 + clearing the code

updating the calendar_base.class.php
the 'get_nav_bar_from_items' method was returning a hard coded html string
now replaced by a template file (calendar_nav.tpl)


git-svn-id: http://piwigo.org/svn/trunk@2469 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-08-09 21:27:58 +00:00
vdigital
5059eddb71 Feature:837 "Extend for templates" could have dedicated .css files by a simple technical {html_head} inclusion.
git-svn-id: http://piwigo.org/svn/trunk@2464 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-07-31 06:58:44 +00:00
plegall
45960b4631 feature 839, first step : early proof of concept, no error handling. A
remote client can add a photo in a category thanks to the web API. A new
"upload" directory is created (write access required on the base
directory). Uploaded photo have path such as
upload/<year>/<month>/<day>/<datetime>-random.jpg. The thumbnail must come
with the "web sized" photo. The photo has no storage_category_id.

Bugs still need to be fixed and a discussion must occur before next steps.


git-svn-id: http://piwigo.org/svn/trunk@2463 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-07-30 21:53:00 +00:00
vdigital
4dcec5fb8a Feature:837 "Extend for templates" could have dedicated .css files.
git-svn-id: http://piwigo.org/svn/trunk@2462 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-07-30 19:24:55 +00:00
rvelices
35c2aeca68 - remove functions_group.inc.php (empty for some years; avoid unnecessary include_file)
- thumbnails-fix-ie5-ie6.css merged into fix-ie5-ie6.css (avoid 2 IE6 css file requests)
- removed unused css

git-svn-id: http://piwigo.org/svn/trunk@2456 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-07-24 01:30:12 +00:00
rvelices
cde423fc86 - normalize behaviour of query search versus std search (now both return items already sorted and permission checked); also more optimized sql queries (in some cases)
git-svn-id: http://piwigo.org/svn/trunk@2451 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-07-23 00:56:22 +00:00
rvelices
4322abb39f - add #user_cache.cache_update_time - useful for plugins or the filter when it is not possible/desirable to cache/calculate data specific to the user when pwg core does it; note that this opens the possibility to implement a data cache (file/shared mem/ etc...) for every user (for very large databases)
git-svn-id: http://piwigo.org/svn/trunk@2448 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-07-22 10:32:25 +00:00
rvelices
9c96b905ff - image rating on picture page done through ajax (tested safari/ie 6&7/ff)
git-svn-id: http://piwigo.org/svn/trunk@2435 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-07-15 01:29:23 +00:00
vdigital
df29ffbde7 Feature template-extension based on 2006 chrisaga's idea.
chrisaga wrote: "If you want to make some template customization without building a brand new
template, you should use ..."

git-svn-id: http://piwigo.org/svn/trunk@2434 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-07-14 21:42:40 +00:00
patdenice
b7709eae0d Merge from branch-1_7 (r2432).
Add triggers for category name (render_category_name).
Add  strip_tags for ALT attribute on category thumbnail.

git-svn-id: http://piwigo.org/svn/trunk@2433 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-07-12 14:57:24 +00:00
rvelices
2c08827ea0 - bug 600: Page not found after a strong rating revise (and extended to most cases when the image is not in the requested section)
git-svn-id: http://piwigo.org/svn/trunk@2430 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-07-12 00:33:12 +00:00
rvelices
e2ee204c12 - add to caddie on picture page done through ajax
git-svn-id: http://piwigo.org/svn/trunk@2429 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-07-12 00:30:27 +00:00