Commit graph

566 commits

Author SHA1 Message Date
plegall
6409647e1c - new feature : lock temporary your gallery for maintenance
- $user keys for guest user are initialized with default values of $conf


git-svn-id: http://piwigo.org/svn/trunk@653 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-12-20 23:54:59 +00:00
plegall
82cb16095c - for searching in sub-categories, use the existing get_subcat_ids function
- bug fixed : category total elements count for best rated when
  $user['forbidden_categories'] is not empty


git-svn-id: http://piwigo.org/svn/trunk@652 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-12-20 22:25:05 +00:00
plegall
7543485ba8 - restricted access mode deleted : set all your categories as private
instead


git-svn-id: http://piwigo.org/svn/trunk@651 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-12-20 22:03:04 +00:00
plegall
c19f01d77c - replacement of PREFIX_TABLE constant in delete_user function
- 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
2004-12-20 19:26:43 +00:00
gweltas
1d46ea86e9 - Minor update of language file
- Configuration / Default dispaly : maximum height & width


git-svn-id: http://piwigo.org/svn/trunk@649 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-12-20 14:52:30 +00:00
plegall
5a8ecfbfb1 - in picture.php, $user['maxwidth'] and $user['maxheight'] can be unset if
NULL in database

- new table user_forbidden {user_id,need_update,forbidden_categories} and
  deletion of field users.forbidden_categories

- new function calculate_permissions to update table user_forbidden when
  needed

- simplification of include/user.inc.php

- in footer of each page, use "-" instead of "::" to separate page
  information


git-svn-id: http://piwigo.org/svn/trunk@648 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-12-20 12:30:36 +00:00
plegall
f0e9cd804a - bug fixed : in admin/cat_list, next_rank cant' be calculted and query to
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
2004-12-18 22:05:30 +00:00
gweltas
775e9ee74c - French translation for many new entries
- minor template update for cat_modify


git-svn-id: http://piwigo.org/svn/trunk@646 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-12-16 14:49:47 +00:00
plegall
9ec6ad0c8a - bug fixed : in the categories menu, we may have to close more than one
level at the same time


git-svn-id: http://piwigo.org/svn/trunk@645 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-12-13 23:53:45 +00:00
plegall
a517b211dd - reformat create_navigation_bar function
git-svn-id: http://piwigo.org/svn/trunk@644 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-12-13 22:59:25 +00:00
plegall
bd2fde5c8c - refresh paginated navigation bar : displays First and Last, displays
Previous and Next even if non applicable (but no link), displays only page
  umbers around the current page (if a category contains hundreds of
  elements, no more long list of pages)


git-svn-id: http://piwigo.org/svn/trunk@643 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-12-13 22:54:44 +00:00
plegall
391fac78a8 - in admin menu, status option for categories is not "permissions" but
"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
2004-12-12 21:06:39 +00:00
plegall
9037726f5a - change the category levels separator to a "superior to" to be the same as
in picture.php

- add a link on each category level as in picture.php


git-svn-id: http://piwigo.org/svn/trunk@641 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-12-06 23:49:58 +00:00
plegall
6cc0255b0d - possibility to set an element as representant of its categories
git-svn-id: http://piwigo.org/svn/trunk@640 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-12-06 22:28:32 +00:00
plegall
2201f60d0b - bug fixed : when a picture is linked to more than 1 category, it was shown
monre than once in picture.php for special categories like most visited,
  search, etc...


git-svn-id: http://piwigo.org/svn/trunk@639 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-12-06 21:49:32 +00:00
plegall
1ab32cccb7 - ordering function moved from admin/update to admin/include/function
- remote_site uses ordering and update_global_rank


git-svn-id: http://piwigo.org/svn/trunk@638 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-12-05 22:47:46 +00:00
plegall
484a431a7e if all links between a category and elements have disappeared, no line is
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
2004-12-05 22:02:36 +00:00
plegall
964f977401 bug fix on typo
git-svn-id: http://piwigo.org/svn/trunk@636 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-12-05 21:35:04 +00:00
plegall
9064686d99 - on picture.php, related categories under the element are displayed in
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
2004-12-05 21:28:40 +00:00
plegall
e4ce82fc27 - search modified : possible to partially fill the date, allwords are
separated from more specific search, separation of HTML (in template) and
  PHP code)


git-svn-id: http://piwigo.org/svn/trunk@634 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-12-05 11:47:40 +00:00
plegall
b3336f57d5 - shows the element representing a non empty category in cat_modify
- 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
2004-12-04 17:42:07 +00:00
plegall
a383f3148c - change "->" in a beautiful arrow :-) for categories level in admin
- 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
2004-12-04 12:10:17 +00:00
gweltas
6fa03e0cca - User control panel update (user side)
- User control panel update (admin side)
- Add of registration link on the main page
- Minor bug correction for group management


git-svn-id: http://piwigo.org/svn/trunk@631 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-12-03 16:30:12 +00:00
gweltas
b35dc19ab6 Update of the user preferences panel.
Deletion of some PREFIX_TABLE occurences


git-svn-id: http://piwigo.org/svn/trunk@630 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-12-02 15:42:57 +00:00
gweltas
19be28e415 Search form update
git-svn-id: http://piwigo.org/svn/trunk@629 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-12-02 12:45:57 +00:00
plegall
93c3c7d6e3 bug corrected when moving categories at the top level
git-svn-id: http://piwigo.org/svn/trunk@628 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-30 20:45:21 +00:00
plegall
beaef0f1f2 no PHP error if form submitted while no category selected
git-svn-id: http://piwigo.org/svn/trunk@627 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-30 20:36:20 +00:00
plegall
5379225172 favorite category accessible
git-svn-id: http://piwigo.org/svn/trunk@626 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-30 20:32:44 +00:00
plegall
759b1e8839 - update_global_rank new function : far more intelligent update. Take into
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
2004-11-30 20:26:44 +00:00
plegall
514bac91c6 date_metadata_update between simple quotes
git-svn-id: http://piwigo.org/svn/trunk@624 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-30 19:53:33 +00:00
gweltas
2e6ace2df0 New template for group management
French translation for synchronization
Minor update of the css file


git-svn-id: http://piwigo.org/svn/trunk@623 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-26 16:10:17 +00:00
gweltas
8f97f21eb2 Categories option management update.
- Rewrite of the tpl file (no more table in it)
- Deletion of duplicate entry in language files
- French version


git-svn-id: http://piwigo.org/svn/trunk@622 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-25 16:44:41 +00:00
gweltas
2c109654aa New ergonomic form for search queries.
git-svn-id: http://piwigo.org/svn/trunk@621 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-25 14:12:33 +00:00
plegall
a8acded5b0 distinction between categories' admin menus and others (comments for
categories is not the same as users comments)


git-svn-id: http://piwigo.org/svn/trunk@620 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-24 21:57:22 +00:00
plegall
d5d57dc397 report correction on "only first IPTC keyword" retrieved in remote sites
elements listing creator


git-svn-id: http://piwigo.org/svn/trunk@619 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-24 21:43:33 +00:00
plegall
6de8a6f8c1 bug on Windows for date 1970-01-01 : Windows refuses to work with 1970-01-01
00:00:00, "he" thinks it's prior to midnight... Let's force midday !


git-svn-id: http://piwigo.org/svn/trunk@618 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-24 21:38:12 +00:00
plegall
fd9ae1ae8f bug corrected for multipages view on list special category
git-svn-id: http://piwigo.org/svn/trunk@617 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-24 21:27:01 +00:00
plegall
c18457fa32 changing name of key from none to history_i1
git-svn-id: http://piwigo.org/svn/trunk@616 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-24 21:26:21 +00:00
gweltas
bd71857691 Drop of PRIMARY Key on history table.
git-svn-id: http://piwigo.org/svn/trunk@615 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-24 10:49:41 +00:00
plegall
f0fcd1eedc - global categories' options : instead of N horizontal tabs on a single
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
2004-11-23 22:31:24 +00:00
plegall
5197779bba dirname function doesn't leave last "/" character, we add it
git-svn-id: http://piwigo.org/svn/trunk@613 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-21 12:42:55 +00:00
plegall
ec015abc78 optimization : instead of reading each $conf['calendar_datefield'] for
matching YEAR() and MONTH(), use of SQL statement BETWEEN ... AND ... on the
date field + new index image_i5 on date_creation (default date field for
calendar)


git-svn-id: http://piwigo.org/svn/trunk@612 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-21 11:13:48 +00:00
plegall
9f037e7cea takes not only the first keyword in IPTC field 2#025
git-svn-id: http://piwigo.org/svn/trunk@611 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-20 18:07:51 +00:00
plegall
13cd251e63 - optimization : representative picture becomes mandatory for a non empty
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
2004-11-20 17:23:42 +00:00
gweltas
f39c3af29b New CSS usage.
git-svn-id: http://piwigo.org/svn/trunk@609 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-18 16:07:06 +00:00
gweltas
af0b3d5f57 Categories management icon update
git-svn-id: http://piwigo.org/svn/trunk@608 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-18 15:17:33 +00:00
gweltas
f20efb0cfa Unification of "Return to main page" entry in the language files.
git-svn-id: http://piwigo.org/svn/trunk@607 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-18 14:57:00 +00:00
plegall
1bf3753f14 - images.path column added to reduce database access
- 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
2004-11-16 23:38:34 +00:00
plegall
973e0f8806 category random replaced by a more generic category : list. You give a list
of element identifiers and it creates a page virtual temporary
category. random.php generates a randomized list of element id visible to
the user (according to permissions) and redirects to category.php.

Major problem : elements order is in id ascending order, I don't know how to
change order when having id1,id2,id3 and id2,id3,id1 (the display order is
the same)


git-svn-id: http://piwigo.org/svn/trunk@605 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-15 23:13:24 +00:00
plegall
b138e8aa07 - admin/cat_options page really added this time : manage options for the
whole categories tree : uploadable, commentable, status and visible


git-svn-id: http://piwigo.org/svn/trunk@604 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-15 21:42:55 +00:00