- Use fetchRemote function in plugins manager and in latest version checking.
- Add german translations for upgrade.lang.php.
- Remove empty line at the end of pclzip.lib.php.
- Change display of deactivated plugins after upgrade.
git-svn-id: http://piwigo.org/svn/trunk@2880 68402e56-0260-453c-a942-63ccdbb3a9ee
- Inserting upgrade line in mysql.inc.php still work.
- Convert espagnol upgrade file to utf8.
- Minor changes in upgrade processus.
- Remove all comments in pclzip.lib.php.
git-svn-id: http://piwigo.org/svn/trunk@2836 68402e56-0260-453c-a942-63ccdbb3a9ee
- 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
pwg.images.add, ie without storage_category_id. pLoader uses this method and
photos cannot be removed in any other way.
git-svn-id: http://piwigo.org/svn/trunk@2678 68402e56-0260-453c-a942-63ccdbb3a9ee
2 - Plugin can force accordion to be stable by adding &plgmenu in their plugin url
git-svn-id: http://piwigo.org/svn/trunk@2662 68402e56-0260-453c-a942-63ccdbb3a9ee
- 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
- Change all plugins version to 2.0.
- LocalFiles Editor can now edit and create template extension.
- Editarea (for LocalFiles Editor) go to version 0.7.2.2 (chrome compatible)
- Editarea activation is now saved in database with AJAX.
git-svn-id: http://piwigo.org/svn/trunk@2588 68402e56-0260-453c-a942-63ccdbb3a9ee
with no storage_category_id, we allow this field to be null in the
administration code.
git-svn-id: http://piwigo.org/svn/trunk@2575 68402e56-0260-453c-a942-63ccdbb3a9ee
- fix functions_metadata.php - could not be included from inside another function
git-svn-id: http://piwigo.org/svn/trunk@2560 68402e56-0260-453c-a942-63ccdbb3a9ee
- 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
- able to sync metadata at the same time as the files/dirs
- by default empty metadata does not overwrite database infos (checkbox can switch to previous behaviour) (bug 132)
- the form is shown again even after a successfull non simulated run
git-svn-id: http://piwigo.org/svn/trunk@2491 68402e56-0260-453c-a942-63ccdbb3a9ee
- 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
- 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
Admin advices plugin can be translated like any other plugins.
Admin advices plugin has been extended with External summary (a technical and non translated part).
Some template cleaning.
git-svn-id: http://piwigo.org/svn/trunk@2472 68402e56-0260-453c-a942-63ccdbb3a9ee
First commit, others will be follow.
Not hesitate to change my translations.
Add upload configuration tabsheet (move and add configuration)
Change and add define for access level
Can show upload link every time
Can restrict access upload.class.php
Can choice category on upload page
Add upload class not use for the moment
Review quickly and temporary style of upload.tpl
git-svn-id: http://piwigo.org/svn/trunk@2325 68402e56-0260-453c-a942-63ccdbb3a9ee
- removed some unused code
- mass_updates function does not need SELECT VERSION()
- rewrote update_uppercats to avoid db update if no change
git-svn-id: http://piwigo.org/svn/trunk@2304 68402e56-0260-453c-a942-63ccdbb3a9ee
bugged (r2297 was repeating new and old header).
By the way, I've also removed the replacement keywords. We were using them
because it was a common usage with CVS but it is advised not to use them with
Subversion. Personnaly, it is a problem when I search differences between 2
Piwigo installations outside Subversion.
git-svn-id: http://piwigo.org/svn/trunk@2299 68402e56-0260-453c-a942-63ccdbb3a9ee
- get rid of user_list warnings
- some code reorganisation in template class + explode modifier
- minor template and language changes in search.tpl and cat_modify.tpl
git-svn-id: http://piwigo.org/svn/trunk@2286 68402e56-0260-453c-a942-63ccdbb3a9ee
- lang correction
- small change in calling check_server_plugins (use by ref param instead of global)
git-svn-id: http://piwigo.org/svn/trunk@2245 68402e56-0260-453c-a942-63ccdbb3a9ee
Migration of c13y template
It's the first step with simple migration, on next step more display action on tpl.
git-svn-id: http://piwigo.org/svn/trunk@2241 68402e56-0260-453c-a942-63ccdbb3a9ee
- complete quick search rewriting
- now we can quote phrases as in google "New York" is not the same as New York
- user comments not searched anymore (faster)
- the big full text query does not use joins anymore (faster)
- related tags not shown on the index page, but now you can see the matching tags and matching categories
git-svn-id: http://piwigo.org/svn/trunk@2135 68402e56-0260-453c-a942-63ccdbb3a9ee
- fix: quick search error if the query term contained " or '
- optimized sql query in sync_users (called every time on admin page) - a lot faster when #user_cache_categories is big
- added function Template->delete_block_vars (opposite of assign_block_vars)
git-svn-id: http://piwigo.org/svn/trunk@2095 68402e56-0260-453c-a942-63ccdbb3a9ee
Replace actual test (exif) by a new dynamic system of check integrity.
Anomalies are listed with automatic correction if it's possible.
It's a proposition of new feature!
git-svn-id: http://piwigo.org/svn/trunk@2065 68402e56-0260-453c-a942-63ccdbb3a9ee
User guest must be real user
Step 1: guest is a real user
On next commit, I finish installation and use of guest of user list and group
git-svn-id: http://piwigo.org/svn/trunk@1926 68402e56-0260-453c-a942-63ccdbb3a9ee
Improve mail send (Undisclosed-recipients, switch language, ...)
Improve send an email to group members (Use Bcc, template, multi-language, ...) (But need more improvements)
git-svn-id: http://piwigo.org/svn/trunk@1904 68402e56-0260-453c-a942-63ccdbb3a9ee
filtered history. #images.high_filesize is filled during metadata
synchronization.
Bug fixed: in getAttribute XML function, when asking "filesize", it was
returning high_filesize. The regex was too simple.
git-svn-id: http://piwigo.org/svn/trunk@1883 68402e56-0260-453c-a942-63ccdbb3a9ee
Step 3: Tabsheet for configuration & history
Change css tabsheet to do like p0w0 for all themes
git-svn-id: http://piwigo.org/svn/trunk@1881 68402e56-0260-453c-a942-63ccdbb3a9ee
Step 2: Regroup categories options into sheet Batch management.
On next commit, use of this new method on history and configuration
git-svn-id: http://piwigo.org/svn/trunk@1878 68402e56-0260-453c-a942-63ccdbb3a9ee
Step 1: Refactoring tabsheet on NBM and introduce generic method to add tabsheet.tpl
On next commit, use of this new method in order to reduce # of link menu.
CSS friend don't hesitate to modify tabsheet css.
git-svn-id: http://piwigo.org/svn/trunk@1874 68402e56-0260-453c-a942-63ccdbb3a9ee
permalinks: added ability to sort the permalink tables in the admin
added new action in category_cats.inc.php
git-svn-id: http://piwigo.org/svn/trunk@1873 68402e56-0260-453c-a942-63ccdbb3a9ee
- display author and and author url (if present) on plugin admin page
- uniformized versions/authors... for all plugins in svn
- security fix (html escape name, version, uri, author... to avoid javascript injection which could automatically simulate click on Install)
- added confirmation for install/uninstall plugins
Web services:
- web service explorer now caches method details in order to avoid unnecessary web calls
- web service explorer can now send parameters as arrays
- web service explorer uses now prototype.js version 1.5
- small improvements
- added and use function bad_request (sends http status code 400)
git-svn-id: http://piwigo.org/svn/trunk@1852 68402e56-0260-453c-a942-63ccdbb3a9ee
#history.is_high was added. Filter was added on administration history
detail view.
Modification: function get_sql_condition_FandF was slightly refactored for
presentation improvement.
git-svn-id: http://piwigo.org/svn/trunk@1817 68402e56-0260-453c-a942-63ccdbb3a9ee
Sent multi-part message in MIME format. (With only one part for the moment).
Improvement pwg_mail function.
git-svn-id: http://piwigo.org/svn/trunk@1809 68402e56-0260-453c-a942-63ccdbb3a9ee
Continue the Radu idea, restrict more use of random list
Issue 0000598: NBM: Add new informations
Add css on mail
Use user template for mail (on next commit, best control)
Comment mass_inserts because don't with MySQL 4.1.9
git-svn-id: http://piwigo.org/svn/trunk@1792 68402e56-0260-453c-a942-63ccdbb3a9ee
- flat category view url is now 'flat' instead of 'flat_cat' (it is nicer and shorter)
- small html validation (double class attribute)
- removed unnecessary class=""
- changed 2 times hard coded index.php?recent_pics with make_index_url(...)
git-svn-id: http://piwigo.org/svn/trunk@1789 68402e56-0260-453c-a942-63ccdbb3a9ee
Notification by mail:
Add new informations about last categories and last images like new feature of RSS notification.
2 parts:
- Possibility to send HTML mail
- Include last categories and last images on HTML format into notification mail
ccs & HTML experts! Please! Check, fix, improve and enhance HTML mail content!
git-svn-id: http://piwigo.org/svn/trunk@1784 68402e56-0260-453c-a942-63ccdbb3a9ee
o bad parser word user on installation
o standardization of the method to open link in new tab/windows
o removed not used constant
o use/add link constants
o use new function pwg_URL
o add missing translation
git-svn-id: http://piwigo.org/svn/trunk@1726 68402e56-0260-453c-a942-63ccdbb3a9ee
Quick solved list:
1 - Wording on EXIF/IPTC Advices
2 - Default language is English
3 - Some Transparency issues under IE
4 - Some Border issues
5 - PWG Menu moved from Advices Box to Intro.
6 - phpwebgallery.net URLs are available thru a new admin function pwg_URL()
7 - PWG Menu URL open in a new target (XHTML strict compliant (JS)).
git-svn-id: http://piwigo.org/svn/trunk@1724 68402e56-0260-453c-a942-63ccdbb3a9ee
- mass_inserts does not requires keys to start at 0
- recent_cats categories are sorted by global_rank (consistency)
- removed warning from page_header.php (when included from redirect)
- added 2 template functions for plugins (get_var and concat_var)
- removed unused code from profile.php
- changed css width for tag selection (search page) from 55em to almost 100%
git-svn-id: http://piwigo.org/svn/trunk@1719 68402e56-0260-453c-a942-63ccdbb3a9ee
magic_quotes_gpc)
- metadata synchronization correction: iptc keywords were MySql escaped 2
times when synchronizing from site manager, but only once when synchronizing
one image
git-svn-id: http://piwigo.org/svn/trunk@1717 68402e56-0260-453c-a942-63ccdbb3a9ee
Add some plugin triggers:
o for help
o for language
o for site manager
o for advanced features
Allow to launch directly plugin page (without section key)
Add add_index plugin, available on site manager and advanced features
Configuration page and best help must be coming soon.
git-svn-id: http://piwigo.org/svn/trunk@1699 68402e56-0260-453c-a942-63ccdbb3a9ee
Convergence of exif configuration between local site and remote site.
Notes added on administration page where configuration is not OK.
git-svn-id: http://piwigo.org/svn/trunk@1682 68402e56-0260-453c-a942-63ccdbb3a9ee
Possibility to send HTML mail
Optimize, fix little bugs and add footer information
NBM: Replace // by / on subscribe/unsubscribe link
git-svn-id: http://piwigo.org/svn/trunk@1645 68402e56-0260-453c-a942-63ccdbb3a9ee
o Add (new) icon of parent category with children categories including new images
o Improved display text for images count
o Improved (a little) mass_* functions
More explications on the forum.
You must call directly upgrade_feep.php (http://127.0.0.1/BSF/upgrade_feed.php for example)
git-svn-id: http://piwigo.org/svn/trunk@1624 68402e56-0260-453c-a942-63ccdbb3a9ee
- new plugin (event_tracer) that demonstrate it and useful to see all calls
to trigger_event
git-svn-id: http://piwigo.org/svn/trunk@1580 68402e56-0260-453c-a942-63ccdbb3a9ee
o format of email
o max_execution_time equal to 0
o -f with only adress mail
o use of standard function get_webmaster_mail_address
2 news $conf parameters.
Merge branch-1_6 r1529:1530 into BSF
git-svn-id: http://piwigo.org/svn/trunk@1531 68402e56-0260-453c-a942-63ccdbb3a9ee
o Rename index.htm into index.php
o Add index.php on all sub-directories
o Use an uniform source code of index.php (like /include/index.php)
(/index.php is of course not changed)
git-svn-id: http://piwigo.org/svn/trunk@1481 68402e56-0260-453c-a942-63ccdbb3a9ee
o Change NBM configuration in order to avoid lose treatment action when occurred timeout
o Add news redirect/repost functions
git-svn-id: http://piwigo.org/svn/trunk@1156 68402e56-0260-453c-a942-63ccdbb3a9ee
modification: "." and ";" are also supported as IPTC keywords separator.
git-svn-id: http://piwigo.org/svn/trunk@1127 68402e56-0260-453c-a942-63ccdbb3a9ee
simple fature. Replaced by static association. Links are not persistent
anymore.
modification removed: #image_category.is_storage replaced by
#images.storage_category_id as in branche 1.5..
git-svn-id: http://piwigo.org/svn/trunk@1121 68402e56-0260-453c-a942-63ccdbb3a9ee
limitations. Each image can be associated to as many tag as needed. Tags can
contain non ASCII characters. Oriented navigation with tags by association.
git-svn-id: http://piwigo.org/svn/trunk@1119 68402e56-0260-453c-a942-63ccdbb3a9ee
o reduce length of check_key
o fix bugs
o send mail on subscribe/unsubscribe
o add and used $conf parameters
o review keyword of languages
o improve selection/check
o can subscribe/unsubscribe with a link include on mail
o fix bug mass_update collate
git-svn-id: http://piwigo.org/svn/trunk@1116 68402e56-0260-453c-a942-63ccdbb3a9ee
Add new item on page administration/maintenance.
This item allow to repair and optimize database
Functionality tested with MySQL 4.1.9.
Please to report problem with previous version of MySql
git-svn-id: http://piwigo.org/svn/trunk@1111 68402e56-0260-453c-a942-63ccdbb3a9ee
o Add news parameters
o Add file functions_notification_by_mail.inc.php in order to use in future, these functions on php file of subscribe/unsubscribe
o Write a little html help file
+ improve mass_update in order to used binary fields (used collate and SHOW COLUMNS FROM)
git-svn-id: http://piwigo.org/svn/trunk@1105 68402e56-0260-453c-a942-63ccdbb3a9ee
you now have category.php?/search/123/start-42. Functions make_index_url and
make_picture_url build these new URLs. Functions duplicate_picture_url and
duplicate_index_url provide shortcuts to URL creation. The current main page
page is still category.php but this can be modified easily in make_index_url
function. In this first version, no backward compatibility. Calendar
definition in URL must be discussed with rvelices.
improvement: picture.php redesigned. First actions like "set as
representative" or "delete a comment" which all lead to a redirection. Then
the page (the big mess) and includes of new sub pages to manage specific
parts of the page (metadata, user comments, rates).
new: with the cleaner URL comes a new terminology. $page['cat'] doesn't
exist anymore. $page['section'] is among 'categories', 'tags' (TODO),
'list', 'most_seen'... And sub parameters are set : $page['category'] if
$page['section'] is "categories". See URL analyse in
include/section_init.inc.php for details.
git-svn-id: http://piwigo.org/svn/trunk@1082 68402e56-0260-453c-a942-63ccdbb3a9ee
o Correction lock categories and is_admin (functions with parameters now)
o Cannot use check_status with upgrade.php and upgrade_feed.php => New function check_upgrade use in upgrade*.php (new functionality for upgrade_feed.php)
o upgrade_feed.php is showed only for administrator user
git-svn-id: http://piwigo.org/svn/trunk@1075 68402e56-0260-453c-a942-63ccdbb3a9ee
o Add and use Functions Check of status
o Restricted Access for user generic
git-svn-id: http://piwigo.org/svn/trunk@1072 68402e56-0260-453c-a942-63ccdbb3a9ee
o Change status of table #_user_infos
o Don't send password to webmaster, guest, generic
Next Step:
o Functions Check of status
o Restricted Access for user generic
git-svn-id: http://piwigo.org/svn/trunk@1070 68402e56-0260-453c-a942-63ccdbb3a9ee
log_user called from identification and register)
bug fix: empty line at the beginning of functions.php disallowed cookies
(and hence logging in)
git-svn-id: http://piwigo.org/svn/trunk@1068 68402e56-0260-453c-a942-63ccdbb3a9ee
feature? Code is complicated and very few people will understand how it
works...
modification: #images.storage_category_id replaced by
#image_category.is_storage
improvement: many code refactoring to improve readibility
improvement: virtual category creation code was moved to a dedicated
function in order to be called from admin/cat_list.php and
admin/cat_modify.php (create a new destination category)
git-svn-id: http://piwigo.org/svn/trunk@1064 68402e56-0260-453c-a942-63ccdbb3a9ee
- synchronization for remote and local sites are done by the same code
- remote sites can update metadata now (not before) - bug 279
- fixes bug 82: has_high column
- improve feature 280: user sort by filename
- fix path to template mimetypes icons
- bug 284: session cookie lifetime, deletion on logout and corrected issue
when db upgrades were missing
git-svn-id: http://piwigo.org/svn/trunk@1029 68402e56-0260-453c-a942-63ccdbb3a9ee
+ Correction delete user (table user_feed missing, table sessions must be removed)
git-svn-id: http://piwigo.org/svn/trunk@1028 68402e56-0260-453c-a942-63ccdbb3a9ee
had to be replaced by the configurable column name. This correction was
made by a full rewrite of filtered users list management. The other bug
(not submited in bugtracker) that needed this rewrite was that when you
choose "all" as target for mass users modification, you expected to apply
modification on filtered users, not all users.
- bug 160 fixed: (part two of the bug) hard coded column name for primary
key in mass_updates function.
- modification: configuration parameter users_page is now located in the
correct file (include/config_default.inc.php instead of
admin/user_list.php)
git-svn-id: http://piwigo.org/svn/trunk@880 68402e56-0260-453c-a942-63ccdbb3a9ee
- bug fixed: uses user configuration fields for filtering in admin/user_list
- bug fixed: don't try to create feeds automatically during sync_users (when
line in user_infos is missing)
- bug fixed: create_user_infos function gives status admin if user id
matches $conf['webmaster_id']
git-svn-id: http://piwigo.org/svn/trunk@865 68402e56-0260-453c-a942-63ccdbb3a9ee
array. This is the case of admin/help and about pages.
- deletion: of unused functions (ts_to_mysqldt, is_image, TN_exists,
check_date_format, date_convert, get_category_directories,
get_used_metadata_list, array_remove, pwg_write_debug,
get_group_restrictions, get_all_group_restrictions, is_group_allowed,
style_select, deprecated_getAttribute).
- new: many new contextual help pages to replace descriptions previously
included in pages.
- modification: reorganisation of language files. Deletion of unused
language keys, alphabetical sort. No faq.lang.php anymore (replaced by
help.html). Only done for en_UK.iso-8859-1.
git-svn-id: http://piwigo.org/svn/trunk@862 68402e56-0260-453c-a942-63ccdbb3a9ee
screen. These parameters are move to include/config_default.inc.php.
- new : ability to add a single picture to caddie from picture.php
- new : contextual help, only a few pages are available.
- new : ability to delete users from admin/user_list
- modification : reorganization of configuration file
- new : configuration parameter use_exif_mapping
- improvement : MOD hidemail added to standard
git-svn-id: http://piwigo.org/svn/trunk@858 68402e56-0260-453c-a942-63ccdbb3a9ee
can avoid fixed frequency notification to concentrate on variable
frequency notification, which is much more interesting. To do this, feeds
have moved to a dedicated table allowing each user (including guest user)
to have more than on feed.
git-svn-id: http://piwigo.org/svn/trunk@833 68402e56-0260-453c-a942-63ccdbb3a9ee
from admin/cat_modify : fieldsets regroup fields. Ability to synchronize
metadata for the displayed item.
- bug 110 fixed : "return to element view from element edition fails
depending on permissions". If a reachable (for the connected admin)
category is available, a "jump to" link is displayed, by default, using
the category given in URL.
- bug fixed : in mass_updates function, the first item of $fields['update']
has not always 0 for id (as in any array).
- modification : get_keywords function understands spaces as separator,
allow less than 3 chars keywords, allow quotes.
- new : ability to allow HTML in picture or category description (false by
default)
git-svn-id: http://piwigo.org/svn/trunk@825 68402e56-0260-453c-a942-63ccdbb3a9ee
categories informations (number of images, date of the last added
element), update images informations (path, average rate), purge obsolete
sessions, purge history.
- new : ability to have random representative for categories. This
configuration parameter is set to false by default.
- new : ability to set an element as representative of a category without
belonging to the category. Thus, administrator can choose representative
even for empty categories.
- improvement : semantically superior design for category edition screen by
regrouping fields in fieldsets. The improved screen contains action
buttons as in category list screen.
- new : ability to move a virtual category (ie change its parent category).
- bug fixed : the sync_users function checks all user children tables
(access, cache, group association).
git-svn-id: http://piwigo.org/svn/trunk@809 68402e56-0260-453c-a942-63ccdbb3a9ee
is divided between users (common properties with any web application) and
user_infos (phpwebgallery specific informations). External table and
fields can be configured.
- modification : profile.php is not reachable through administration anymore
(not useful).
- modification : in profile.php, current password is mandatory only if user
tries to change his password. Username can't be changed.
- deletion : of obsolete functions get_user_restrictions,
update_user_restrictions, get_user_all_restrictions, is_user_allowed,
update_user
- modification : $user['forbidden_categories'] equals at least "-1" so that
category_id NOT IN ($user['forbidden_categories']) can always be used.
- modification : user_forbidden table becomes user_cache so that not only
restriction informations can be stored in this table.
git-svn-id: http://piwigo.org/svn/trunk@808 68402e56-0260-453c-a942-63ccdbb3a9ee
element_set_global and element_set_unit, infos_images (after a long time
of use) become deprecated : the more powerful element_set is used
instead. Consequently, batch management concerns caddie but also "normal
categories".
- refactoring code in admin.php to include the sub-file (clearer)
- caddie : function fill_caddie replaces the code in category.php and can be
used in admin/element_set.php
- caddie : caddie table is added in delete_elements function
git-svn-id: http://piwigo.org/svn/trunk@764 68402e56-0260-453c-a942-63ccdbb3a9ee
- my_error function moved from admin/include/functions.php to
include/functions.inc.php
- because MySQL temporary tables are not always authorized on creation, use
a temporary table name (with the current microsecond) on a non temporary
table (in mass_updates function)
- ability to retrieve distant full directories (usefull in upgrade scripts)
- global variables $count_queries and $queries_time moved into global array
$page
- get_cat_display_name displays category names in correct order : the one
given by uppercats
- function setup_style simplified
- default value for configuration parameter "show_nb_comments" set to false
(less queries by default)
git-svn-id: http://piwigo.org/svn/trunk@672 68402e56-0260-453c-a942-63ccdbb3a9ee
user_forbidden must be updated only if current user is not in
administrative section
- bug fixed : category.php, error on page title when non category selected
- admin/search : bug on variable $PHP_SELF, replaced by $_SERVER['PHP_SELF']
- admin/user_perm : inheritence management. When a category become
authorized, all parent categories become authorized, when a category
become forbidden, all child category become forbidden
- no more recursivity in delete_categories function
- new function get_fs_directories for future new method of synchronization
- new function get_uppercat_ids replacing several pieces of code doing the
same
- new function get_fulldirs used for metadata function get_filelist and
future new method of synchronization
- new function get_fs for future new method of synchronization
- typo correction on lang item "about_message"
- no link to category privacy status management on user permission anymore
(giving the menu item instead)
git-svn-id: http://piwigo.org/svn/trunk@657 68402e56-0260-453c-a942-63ccdbb3a9ee
- deletion of $isadmin variable, replaced by constant IN_ADMIN
- small refactoring
- in include/common.inc.php, deletion of useless part "Obtain and encode
users IP" and corresponding functions encode_ip and decode_ip
- definition of $conf['default_language'] deleted from
include/config.inc.php : it is already present in database table config
- function init_userprefs deleted (useless), all its content moved to
include/user.inc.php
- admin.lang.php and faq.lang.php are loaded only if current user is in
administrative section
git-svn-id: http://piwigo.org/svn/trunk@650 68402e56-0260-453c-a942-63ccdbb3a9ee
count sub-categories per sub-categories became false if no sub-categories
- virtual association come back in admin/infos_images (not only in
admin/picture_modify)
- check_favorites function in admin section becomes check_user_favorites in
public section : favorites are checked when user tries to display his
favorites. Function was optimized.
- in function update_category, wrap of long queries due to many categories
to update at the same time
- typo fixed in description of paginate_pages_around configuration parameter
- bug fixed in new navigation bar : no separation pipe was displayed between
next and last when the page displayed was the last
- sessions.expiration changed of type from int to datetime (a lot easier to
read)
- sessions.ip removed : IP address is no longer used to verify session
- $lang['cat_options'] was missing in en_UK.iso-8859-1
- typo fixed in language/en_UK.iso-8859-1/admin.lang.php on
editcat_lock_info language item
git-svn-id: http://piwigo.org/svn/trunk@647 68402e56-0260-453c-a942-63ccdbb3a9ee
"private or public" choice = different language item
- get_cat_display_name changed : use $conf['level_separator'] to unify
presentation
- default values for category properties commentable, uploadable, status and
visible (set in include/config.inc.php) used for category creation
(admin/update, admin/remote_site, admin/cat_list)
- use mass_inserts in admin/update for inserting new categories
- only one query for counting the number of sub categories in admin/cat_list
git-svn-id: http://piwigo.org/svn/trunk@642 68402e56-0260-453c-a942-63ccdbb3a9ee
returned by the update_category query but the update must be done with
nb_images = 0 and date_last = NULL
git-svn-id: http://piwigo.org/svn/trunk@637 68402e56-0260-453c-a942-63ccdbb3a9ee
global_rank order
- when adding a new virtual category, initializes its global_rank
- bug fixed : in admin/cat_list, false next rank
- in admin/cat_modify, complete directory is calculated only if category is
not virtual
- admin/picture_modify rewritten : graphically nearer to admin/cat_modify,
virtual associations are back
- update_category partially rewritten : take an array of categories in
parameter, becomes optionnaly recursive, use the set_random_representant
function, set a random representant for categories with elements and no
representant
- bug fixed : on a search results screen, elements belonging to more than 1
category were shown more than once
- bug fixed : in admin/cat_modify, changing a value in a textefield and
hitting enter was setting a new random representant
git-svn-id: http://piwigo.org/svn/trunk@635 68402e56-0260-453c-a942-63ccdbb3a9ee
- possibility to set a random representing element for a category
- bug fixed : update_category function could not update nb_images
- bug fixed : mass_updates was inserting in the wrong table
git-svn-id: http://piwigo.org/svn/trunk@633 68402e56-0260-453c-a942-63ccdbb3a9ee
- single category management screen updated : commentable and uploadable
properties added, full directory displayed, status and visibility
properties update uses inheritance, user favorite elements check moved to
somewhere else : would be too long to calculate here for too many users
- new admin functions set_cat_visible and set_cat_status : visibility and
status updates can be done in cat_options and cat_modify
- language : differentiate "locked" (state) and "lock" (action)
git-svn-id: http://piwigo.org/svn/trunk@632 68402e56-0260-453c-a942-63ccdbb3a9ee
account the possiblity to have category tree not in category id ascending
order
- update global_rank when moving categories among the same parent
- new function mass_updates : depending on MySQL version, create a temporary
table, make one big insert and one big update by joining 2 tables (4.0.4
or above) or make 1 update per primary key
- function update_category improved for representative_picture_id check :
only one useful query (equivalent to NOT EXISTS) instead of N (N = number
of categories) queries
git-svn-id: http://piwigo.org/svn/trunk@625 68402e56-0260-453c-a942-63ccdbb3a9ee
page, N options in the left menu (but the same backend)
- categories.global_rank : new calculated field. It gives a global rank of
the category among all others (updated during ordering)
- category.php page : menu is generated faster thanks to
categories.global_rank, recursivity becomes useless :-)
- new function to display select box with a set of categories :
display_select_cat_wrapper
- cat_options : instead of using 1 multiselect for true/false items, using 1
multiselect for true, and another one for false. The form provides buttons
with arrows to switch categories from one multiselect to another
- deletion of obsolete function display_categories (working with the old
template system)
- deletion of obsolete functions get_user_plain_structure,
create_user_structure, get_user_subcat_ids, update_structure, count_images
: useless thanks to global_rank
git-svn-id: http://piwigo.org/svn/trunk@614 68402e56-0260-453c-a942-63ccdbb3a9ee
category. So, at each insertion in images table for a category, a new
representative element is elected (by rand). This must be improved by not
reelcting a random picture admin set an element as representative
manually.
- optimization : recent cats page only needs 2 queries instead of 3*N (N
categories to display). The bad point is that it shows representative
element of recent cat and not a random element among recently added.
- optimization : empty cats page only needs 1 query per non empty sub
category instead of... a lot. For each sub category, PhpWebGallery shows
the representative element of a category chosen randomly in sub
cats. Thus, get_non_empty_subcat_ids and get_first_non_empty_cat_id
becomes obsolete.
- new function get_cat_display_name_cache to show category names with a
caching for all gallery categories names. This function, to the contrary
of get_cat_display_name shows names in the correct order...
git-svn-id: http://piwigo.org/svn/trunk@610 68402e56-0260-453c-a942-63ccdbb3a9ee
- function mass_inserts moved from admin/remote_sites.php to
admin/include/function.php
- function mass_inserts used in admin/update.php
git-svn-id: http://piwigo.org/svn/trunk@606 68402e56-0260-453c-a942-63ccdbb3a9ee
- number of new categories
- number of new elements
- number of deleted categories
- number of deleted elements
- only errors are fully listed
git-svn-id: http://piwigo.org/svn/trunk@498 68402e56-0260-453c-a942-63ccdbb3a9ee
on picture.php page. Metadata read functions were moved from
admin/include/functions_metadata.php to include/functions_metadata.inc.php
git-svn-id: http://piwigo.org/svn/trunk@493 68402e56-0260-453c-a942-63ccdbb3a9ee
element must be deleted
- improvement of function update_category : the function is not recursive
anymore, but still works on all sub-categories thanks to a SQL query on
uppercats database field. Less queries : for updating N categories, only
(1+N) SQL queries compared to (3*N) in the previous revision.
- function my_error added (debug purpose)
git-svn-id: http://piwigo.org/svn/trunk@491 68402e56-0260-453c-a942-63ccdbb3a9ee
- refactoring
- function delete_category and delete_element now runs with an array of ids
in parameters instead of a single id.
git-svn-id: http://piwigo.org/svn/trunk@467 68402e56-0260-453c-a942-63ccdbb3a9ee