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
$("#tags-123, #tags-456") than $(".tags") to apply FCKB widget on
the select box.
Use a dedicated function to return the tag list, formatted for FCKB.
git-svn-id: http://piwigo.org/svn/trunk@5189 68402e56-0260-453c-a942-63ccdbb3a9ee
element_set_unit to manage tags.
Note: multiple instances of FCBKcomplete on the same page does not work as
good as a single instance.
git-svn-id: http://piwigo.org/svn/trunk@5188 68402e56-0260-453c-a942-63ccdbb3a9ee
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
bold)
make the fiedset border softer
photos_add 2 screens comply with the fieldset system instead of specific
formField divs.
git-svn-id: http://piwigo.org/svn/trunk@5174 68402e56-0260-453c-a942-63ccdbb3a9ee
menu which section to open on page load.
I've moved the single function in functions_themes.inc.php to function.php to
avoid misunderstanding with theme manager.
Ability to preset the active menu (in the future, a plugin may add its admin
page anywhere in the menu, this features needs other change to be possible)
git-svn-id: http://piwigo.org/svn/trunk@5173 68402e56-0260-453c-a942-63ccdbb3a9ee
Tools, Configuration.
menubar bottom is ugly with the roma theme, it needs a fix.
git-svn-id: http://piwigo.org/svn/trunk@5170 68402e56-0260-453c-a942-63ccdbb3a9ee
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
The theme manager backend for installation is the plugin manager backend,
because they are very close.
thanks to feature:1502, installing a theme and installing a plugin are very
similare operations. The only differences are the installation directory and
the main file to find in the archive.
This is only the very first step, the "add new theme" screen needs many
improvements, to begin with display style.
git-svn-id: http://piwigo.org/svn/trunk@5143 68402e56-0260-453c-a942-63ccdbb3a9ee
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
administration theme. The header includes the gallery title with a link to
gallery, a theme changer, an explicit "visit gallery" link, a logout link.
The footer includes links to piwigo.org (homepage, documentation, forum) and
the contact webmaster link.
Due to new header/footer, I've removed the "Links" section in the menubar.
The new footer sticks to the bottom of the browser window.
I've slightly "rounded" grum tabs to look like the menubar borders.
Graphical illustration (top left and bottom left leaves) were removed to
improve readability. They make things beautiful on gallery side, they
decrease usability on admin side.
Piwigo logo was removed to save space on administration footer. It would be
nice to have a small logo to place bottom left in the footer next to
"Powered by Piwigo".
Links>Administration link was replaced by a big link box just above the
menubar.
The H2 was outside the #content box, nearly invisible on top right corner.
Now it is 1) easy to read 2) inside #content.
feature 1490: ability to switch from goto/roma to goto/clear with a single
click in administration header.
The global organisation of the page is quite heavily changed. The global
layout is:
body#theAdminPage
body#theAdminPage > #the_page
body#theAdminPage > #the_page > #pwgHead
body#theAdminPage > #the_page > #pwgMain
body#theAdminPage > #the_page > #pwgMain > #menubar
body#theAdminPage > #the_page > #pwgMain > #content
body#theAdminPage > #the_page > #footer
git-svn-id: http://piwigo.org/svn/trunk@5098 68402e56-0260-453c-a942-63ccdbb3a9ee
100% done, I just "made it work" on trunk.
pclzip library was updated to version 2.8.2 for memory usage improvement.
git-svn-id: http://piwigo.org/svn/trunk@5089 68402e56-0260-453c-a942-63ccdbb3a9ee
displays a dynamic list of tags with jQuery, with suggestions based on
existing tags and the ability to create new tags on the fly.
The change was applied only on admin/picture_modify.php for test purpose.
Note : FCBKcomplete 2.7 had a bug on "remote tag" click, and the bug was fixed
on 2.7.1. But the suggestions were not working with 2.7.1. So I took the 2.7
and applied the tiny change to make the "remove tag" click work.
git-svn-id: http://piwigo.org/svn/trunk@5067 68402e56-0260-453c-a942-63ccdbb3a9ee
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
bug 1469 fixed: I should have permitted an empty feed in URL in r4742
git-svn-id: http://piwigo.org/svn/trunk@5002 68402e56-0260-453c-a942-63ccdbb3a9ee
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
bug 1452 fixed: check cookies are enabled in web browser and notify user
otherwise that she can't connect.
git-svn-id: http://piwigo.org/svn/trunk@4956 68402e56-0260-453c-a942-63ccdbb3a9ee
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
feature 967: when clicking on the download link (only for high definition
currently), use images.file instead of basename(images.path) as download file
name.
git-svn-id: http://piwigo.org/svn/trunk@4913 68402e56-0260-453c-a942-63ccdbb3a9ee
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
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
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
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
bug 1401 fixed: let's use the mysql_real_escape_string on POST fields (even if
I was not able to reproduce any attack because fields are heavily processed
before any SQL query).
git-svn-id: http://piwigo.org/svn/trunk@4753 68402e56-0260-453c-a942-63ccdbb3a9ee
bug 1396: when a photo was deleted, the code to avoid orphans as category
representative was 1) wrong (because a photo doesn't have to belong to a
category to represent it) 2) at the wrong place.
git-svn-id: http://piwigo.org/svn/trunk@4731 68402e56-0260-453c-a942-63ccdbb3a9ee
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
feature 620: if no exif/iptc found in the "web resized" photo, then we search
into the high definition picture if available. Thanks to Jochen Roth (Polly)
for the patch.
git-svn-id: http://piwigo.org/svn/trunk@4683 68402e56-0260-453c-a942-63ccdbb3a9ee
bug 1380: now correctly synchronizes metadata on a single photo, needs a nicer
fix on trunk.
git-svn-id: http://piwigo.org/svn/trunk@4681 68402e56-0260-453c-a942-63ccdbb3a9ee
feature 1364: subscribe to pl.piwigo.org/announcement when current language is pl_PL
git-svn-id: http://piwigo.org/svn/trunk@4618 68402e56-0260-453c-a942-63ccdbb3a9ee
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
bug 1317 fixed: force the HTTP response charset (ie encoding) to UTF-8.
git-svn-id: http://piwigo.org/svn/trunk@4463 68402e56-0260-453c-a942-63ccdbb3a9ee
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
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
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
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
bug 1301 fixed: it is now possible to move root category 4 into root category
49. Sometimes a single comma makes a huge difference!
git-svn-id: http://piwigo.org/svn/trunk@4401 68402e56-0260-453c-a942-63ccdbb3a9ee
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
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
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
bug 895: r3714 had replaced the "open in a new tab" (introduced in r3381 for
feature:1020)) into a "open in the same", but it is important to keep the
window with newsletter subscription links opened.
git-svn-id: http://piwigo.org/svn/trunk@3768 68402e56-0260-453c-a942-63ccdbb3a9ee
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
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
feature 953: avoid fatal error when delete a photo (added with pwg.images.add
API) and the file doesn't not exist on the filesystem.
git-svn-id: http://piwigo.org/svn/trunk@3657 68402e56-0260-453c-a942-63ccdbb3a9ee
feature 1057 added: let the IT/DE/ES users subscribe to the ID/DE/ES Piwigo
announcement newsletter.
git-svn-id: http://piwigo.org/svn/trunk@3621 68402e56-0260-453c-a942-63ccdbb3a9ee
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
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
feature 1020: simplify the URL to subscribe to Piwigo Announcements
Newsletter.
git-svn-id: http://piwigo.org/svn/trunk@3402 68402e56-0260-453c-a942-63ccdbb3a9ee
bug 1022 fixed: a photo can be associateed to no category (now that a photo
can have NULL as storage_category_id, it's possible to have no associated
category), the admin/picture_modify doesn't break anymore.
git-svn-id: http://piwigo.org/svn/trunk@3390 68402e56-0260-453c-a942-63ccdbb3a9ee
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
bug 998 fixed: add the ability to switch to Croatian. The icon filename was
wrong in language_switch plugin.
git-svn-id: http://piwigo.org/svn/trunk@3290 68402e56-0260-453c-a942-63ccdbb3a9ee
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
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
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
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
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
new: phpwebgallery renamed piwigo
modification: pwg_rel_create.sh only creates the zip file
git-svn-id: http://piwigo.org/svn/trunk@3135 68402e56-0260-453c-a942-63ccdbb3a9ee
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
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
code administration: any text file should have the svn:eol-style property
set to LF.
git-svn-id: http://piwigo.org/svn/trunk@3059 68402e56-0260-453c-a942-63ccdbb3a9ee
Code administration: convert all text files to Unix file format (CR as eol
and not CRLF)
git-svn-id: http://piwigo.org/svn/trunk@3055 68402e56-0260-453c-a942-63ccdbb3a9ee
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
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
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
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
improvement: instead of checking for #history_summary table presence, we
check for #plugins table. Some web hosting provider have removed this table,
causing misleading information to the upgrade script from 1.7.0.
git-svn-id: http://piwigo.org/svn/trunk@2862 68402e56-0260-453c-a942-63ccdbb3a9ee
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
based on forum discussion, a comment is added to explain why c13y_upgrade
plugin is activated at this precise moment.
git-svn-id: http://piwigo.org/svn/trunk@2812 68402e56-0260-453c-a942-63ccdbb3a9ee
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
new: upgrade script from 1.7.0. Instead of previous upgrade scripts, I call
directly the "unit" upgrades from 61 to current. Previous upgrades not in
the database are inserted but not applied (and have an explicit description
saying so).
git-svn-id: http://piwigo.org/svn/trunk@2768 68402e56-0260-453c-a942-63ccdbb3a9ee