Commit graph

869 commits

Author SHA1 Message Date
patdenice
a1e6ae0f15 merge -c2900 from trunk to branch 2.0.
- 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/branches/2.0@2901 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-22 23:34:58 +00:00
patdenice
70e5f51d00 merge -c2884 from trunk to branch 2.0.
- 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/branches/2.0@2885 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-19 15:46:49 +00:00
grum
a3f21b4051 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/branches/2.0@2858 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-10 10:12:20 +00:00
rub
afe30fc962 Resolved issue 0000900: format_date function doesn't work when time is omitted with 'mysql_datetime' type
Continue correction of grum


merge -c2856 from trunk to branch 2.0
The exact copy of commit log in 2856.


git-svn-id: http://piwigo.org/svn/branches/2.0@2857 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-09 21:49:46 +00:00
grum
4ecb7f0e25 Two fields in the database [image table] are in the 'yyyy-mm-dd' format
[date_metadata_update & date_creation] and for these fields the format_date
function is called with a 'mysql_datetime' format value (so, the function is
waiting for 'yyyy-mm-dd hh:mm:ss' date format)
Made a call with the 'us' to resolve the problem

git-svn-id: http://piwigo.org/svn/branches/2.0@2850 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-09 14:26:39 +00:00
plegall
e88cc0f6a5 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/branches/2.0@2848 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-08 20:37:31 +00:00
vdigital
ee8b8bb9cc 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.

git-svn-id: http://piwigo.org/svn/branches/2.0@2840 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-07 18:48:38 +00:00
rvelices
43b7a7e872 - removed some unused constants from constants.php
- removed some unused css rules
- removed unused code

git-svn-id: http://piwigo.org/svn/branches/2.0@2823 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-04 01:46:17 +00:00
grum
059a02f5a7 menu item "quicksearch" will be displayed only if a $block->data is set (like
other menu items)
use of a boolean value for the "qsearch" $block->data variable
(see topic #98370)

git-svn-id: http://piwigo.org/svn/branches/2.0@2814 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-28 21:19:25 +00:00
vdigital
1523ece688 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/branches/2.0@2802 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-24 18:59:02 +00:00
rvelices
1c1a18ccba - 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/branches/2.0@2789 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-22 01:34:45 +00:00
plegall
39eb742c25 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/branches/2.0@2785 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-20 21:04:17 +00:00
vdigital
a007e95096 Delfault template and Piwigo domain ...
git-svn-id: http://piwigo.org/svn/branches/2.0@2774 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-19 15:29:08 +00:00
rvelices
9652b322cb - php optims (small): remove/replace preg_xxx with faster simple string functions ...
git-svn-id: http://piwigo.org/svn/branches/2.0@2772 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-18 01:07:13 +00:00
rvelices
79d51b19c1 - added an image sort order by privacy level (admins only)
- fix an IE6 display issue with quick search on index page

git-svn-id: http://piwigo.org/svn/branches/2.0@2769 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-18 00:43:34 +00:00
rvelices
93313d760c - mysql potential injection paranoia + code compaction in common.inc.php
git-svn-id: http://piwigo.org/svn/branches/2.0@2765 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-17 01:06:00 +00:00
rvelices
f7f8c1688e - 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/branches/2.0@2756 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-16 00:35:30 +00:00
patdenice
3e49cf5f56 Merge from trunk 2752:
- change mysql_escape_string function (deprecated) by mysql_real_escape_string.
- Correction on install.tpl (link color).

git-svn-id: http://piwigo.org/svn/branches/2.0@2753 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-15 20:58:36 +00:00
patdenice
5ce101c193 Merge from trunk 2747:
- 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/branches/2.0@2748 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-15 17:55:18 +00:00
plegall
720d6134bd version management: the Piwigo version changes to 2.0 instead of Butterfly
which was its codename on trunk.


git-svn-id: http://piwigo.org/svn/branches/2.0@2724 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-12 18:46:06 +00:00
plegall
933b820e07 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/branches/2.0@2722 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-11 20:37:54 +00:00
patdenice
9772b96f9a Merge from trunk 2716:
- Remove known_template function.
- Replace it by a modifier function: get_extent.

git-svn-id: http://piwigo.org/svn/branches/2.0@2717 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-11 17:23:10 +00:00
patdenice
f72c8de387 Merge from trunk 2712:
- 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/branches/2.0@2713 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-11 12:57:31 +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