Commit graph

53 commits

Author SHA1 Message Date
plegall
844506eccf - bug 224 fixed: if no categories to synchronize (no directory in
"galleries" directory), crash on information retrieval from pictures
  uploaded by users.


git-svn-id: http://piwigo.org/svn/branches/branch-1_5@966 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-12-03 22:02:01 +00:00
plegall
953dada953 - bug fixed: during file tree synchronization, warning on finding the next
rank of category which has no sub-categories yet.


git-svn-id: http://piwigo.org/svn/trunk@913 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-10-23 21:43:26 +00:00
plegall
7eae759590 - modification : less configuration parameters in administration
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
2005-09-03 16:36:05 +00:00
plegall
9bafdff171 - new feature : RSS notification feed. Feed generator is an external tool
(FeedCreator class v1.7.2). New file feed.php

- new database field : comments.validation_date (datetime). This field is
  required for notification feed.

- new database field : users.feed_id (varchar(50)). users.feed_id is an
  alias of users.id but is much more complicated to find (50 characters,
  figures or letters, case sensitive) : the purpose is to keep it secret (as
  far as possible).

- new database field : users.last_feed_check (datetime)

- new database field : users.registration_date (datetime)

- bug fixed : no need to add the (unavailable) session id to install.php in
  the installation form.

- modified database field : images.date_available become more precise (date
  to datetime). This precision is needed for notification feed.

- new index : comments_i1 (validation_date). Might be useful for feed
  queries.

- new index : comments_i2 (image_id). Useful each time you want to have
  informations about an element and its associated comments.

- version 9.11 of mysqldump outputs database field names and table names
  with backquote "`" (didn't find how to take them off)


git-svn-id: http://piwigo.org/svn/trunk@801 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-07-16 14:29:35 +00:00
plegall
e851f504ac - errors and informations boxes : management centralized in admin.php,
$errors and $infos arrays replaced by $page['errors'] and $page['infos'],
  special management for admin/update.php (more complex management)


git-svn-id: http://piwigo.org/svn/trunk@792 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-06-11 14:10:04 +00:00
plegall
4fedaac43a - bug 96 (informations given by uploaders are lost) correction reported from
branch 1.4


git-svn-id: http://piwigo.org/svn/trunk@791 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-06-11 11:29:32 +00:00
plegall
68970e1e65 - add information after metadata synchronization
git-svn-id: http://piwigo.org/svn/trunk@723 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-01-31 23:22:29 +00:00
plegall
de750e1a8f - no debug output in synchronization process (replaced by HTML comments,
information is still available)

- when showing result of a simulation, also displays the form with values
  given for simulation. Admin can perform another simulation or uncheck the
  simulation option


git-svn-id: http://piwigo.org/svn/trunk@691 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-01-15 10:31:26 +00:00
plegall
6244654872 all headers adapted to new year 2005, happy new year
git-svn-id: http://piwigo.org/svn/trunk@675 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-01-07 23:10:51 +00:00
plegall
ec152770fe - admin/update : bug when trying to synchronize a particular category (it
was deleted...)


git-svn-id: http://piwigo.org/svn/trunk@666 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-12-30 07:59:46 +00:00
plegall
0c1de32d04 - admin/update : deletion of useless lines
- admin/thumbnail : use new process for finding pictures without
  thumbnails. No more recursivity

- admin/thumbnail : only show list of directory containing pictures without
  thumbnails, not the whole directory tree


git-svn-id: http://piwigo.org/svn/trunk@665 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-12-30 00:55:27 +00:00
plegall
4f11be1410 - bugs fixed in filesystem synchronization : if no existing category at
start, need to initialize $next_rank['NULL'], $next_id and
  $next_element_id

- bug fixed : if no queries executed on the page, $count_queries and
  $queries_time are not initialized for page bottom display

- no use of $conf['prefix_thumbnail'] in language information
  (admin.lang.php)


git-svn-id: http://piwigo.org/svn/trunk@660 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-12-28 16:31:58 +00:00
plegall
7ba1574043 - admin/update : filesystem synchronization process completely
rewritten. How to speed up sync ? by avoiding recursivity !

- admin/update : option to display verbose information details

- admin/update : option to simulate only. No database insert, delete or
  update will be made

- bug fixed : in admin/cat_list, if you delete a virtual category, you may
  create a gap in the rank list. This gap will generate errors when trying
  to move a category on this gap. Fixed by calling ordering and
  update_global_rank at category deletion.

- admin/cat_list, only one query to insert a new virtual category (no need
  of a second query to update uppercats and global_rank)

- for a given category, even if empty, the representing element must not be
  the one of a forbidden category for the current user

- generation time optionnaly displayed on the bottom of each page becomes
  more price : number of SQL queries and SQL time added.


git-svn-id: http://piwigo.org/svn/trunk@659 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-12-27 14:30:49 +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
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
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
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
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
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
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
88e4e1e60a - admin/cat_options page added : manage options for the whole categories
tree (uploadable, commentable). status and visible will be soon added

- admin.php : $conf_link var to avoid lines longer than 79 characters

- config.upload_available configuration parameter disappear : it's simpler
  to manage with cat_options

- config.show_comments idem : new column categories.commentable, each
  categories can be commentable or not

- categories.site_id becomes a nullable column : a virtual category does
  belong to no site

- function display_select_categories has a new argument : $CSS_classes array
  to optionnaly assign a CSS class to each category in the select field

- added informations in include/config.inc.php for setting default value of :

  - categories.visible
  - categories.status
  - categories.uploadable
  - categories.commentable

- 2 new indexes images_i3(average_rate) and images_i4(hit) : optimizes best
  rated and most visited categories


git-svn-id: http://piwigo.org/svn/trunk@602 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-13 13:43:53 +00:00
z0rglub
a8b1a03018 update headers to comply with GPL
git-svn-id: http://piwigo.org/svn/trunk@593 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-06 21:12:59 +00:00
z0rglub
b1db5e55ae - synchronization interface redesigned : a form lets user choose option of
dirs/files/metadata sync on all categories or a defined one (including
  subcategories)

- database sync is only available through update.php


git-svn-id: http://piwigo.org/svn/trunk@589 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-01 15:01:28 +00:00
z0rglub
7cd9b65e32 - function mysql_query replaced by pwg_query : the same with debugging
features

- by default, DEBUG is set to 0 (off)


git-svn-id: http://piwigo.org/svn/trunk@587 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-10-30 15:42:29 +00:00
z0rglub
dc20a55d4a - debug code deletion
git-svn-id: http://piwigo.org/svn/trunk@581 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-10-24 18:56:33 +00:00
z0rglub
01d3587006 representative was badly tested using prefix_thumbnail...
git-svn-id: http://piwigo.org/svn/trunk@522 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-09-18 16:04:41 +00:00
gweltas
c6e6f131fa waiting tpl migration
git-svn-id: http://piwigo.org/svn/trunk@520 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-09-11 10:36:03 +00:00
z0rglub
38f7bcd8ac simplier display of update result :
- 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
2004-08-29 11:21:21 +00:00
z0rglub
e63b7ea949 very small refactoring
git-svn-id: http://piwigo.org/svn/trunk@494 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-08-25 21:18:59 +00:00
z0rglub
d4519a348f - add files metadata support : use info for database fields
- distinction between directories synchronization and metadata synchronization


git-svn-id: http://piwigo.org/svn/trunk@486 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-08-21 12:52:43 +00:00
z0rglub
ed5aeef0e8 - non picture files management
- all remote site update functions moved to nex file update_remote.php


git-svn-id: http://piwigo.org/svn/trunk@466 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-08-05 17:33:14 +00:00
z0rglub
5643049f23 table user_category dropped
git-svn-id: http://piwigo.org/svn/trunk@423 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-05-28 21:56:07 +00:00
gweltas
9fd459d051 - Template migration
- Admin Control Panel migration
- Category management


git-svn-id: http://piwigo.org/svn/trunk@394 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-03-26 17:08:09 +00:00
gweltas
4128835db8 - Template migration
- Admin Control Panel migration
- Language migration


git-svn-id: http://piwigo.org/svn/trunk@393 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-03-20 00:52:37 +00:00
z0rglub
6f4e7d6bc0 header global refactoring
git-svn-id: http://piwigo.org/svn/trunk@362 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-02-11 23:20:38 +00:00
z0rglub
e18759d0dd using listing.xml in admin directory
git-svn-id: http://piwigo.org/svn/trunk@358 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-02-11 22:30:19 +00:00
gweltas
bef4b3e3aa Merge of the 1.3.1 release
Creation of an unique include file (common.php)
Creation of an unique define file (include/constants.php)
Modification of the installation procedure


git-svn-id: http://piwigo.org/svn/trunk@345 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-02-02 00:55:18 +00:00
z0rglub
860a39302e Modifications linked to the move of admin.php to the root directory of PhpWebGallery
git-svn-id: http://piwigo.org/svn/trunk@228 68402e56-0260-453c-a942-63ccdbb3a9ee
2003-11-03 21:35:24 +00:00
z0rglub
3eeab79a75 Modifying ./include/isadmin.inc.php in ./admin/include/isadmin.inc.php since admin.php has moved to the PhpWebGallery root directory
git-svn-id: http://piwigo.org/svn/trunk@226 68402e56-0260-453c-a942-63ccdbb3a9ee
2003-11-03 20:59:40 +00:00
z0rglub
718116eb30 Modifying ../template in ./template since admin.php has moved to the PhpWebGallery root directory
git-svn-id: http://piwigo.org/svn/trunk@225 68402e56-0260-453c-a942-63ccdbb3a9ee
2003-11-02 11:18:25 +00:00
z0rglub
1d7758f029 Filename must use the same characters as the directories
git-svn-id: http://piwigo.org/svn/trunk@160 68402e56-0260-453c-a942-63ccdbb3a9ee
2003-09-22 20:45:44 +00:00
z0rglub
e1f207136e If a category with a wrong directory name (accentuated characters) even
exists (from a previous release of PhpWebGallery), a warning message is
displayed but the update goes on


git-svn-id: http://piwigo.org/svn/trunk@147 68402e56-0260-453c-a942-63ccdbb3a9ee
2003-09-20 21:43:39 +00:00
z0rglub
7c16e8f343 If we delete a picture which is logically linked to a category, the
informations about this category are not updated (number of pictures and
date of last picture) -> use of update_category( 'all' )


git-svn-id: http://piwigo.org/svn/trunk@130 68402e56-0260-453c-a942-63ccdbb3a9ee
2003-09-17 20:40:15 +00:00
z0rglub
0245e00a76 Adding the name when inserting a remote category in the database. $name
becomes $dir (even if named "name" in the XML file)


git-svn-id: http://piwigo.org/svn/trunk@126 68402e56-0260-453c-a942-63ccdbb3a9ee
2003-09-16 21:32:30 +00:00
z0rglub
64fd038b76 The execution of the query to insert distant picture had vanished !
git-svn-id: http://piwigo.org/svn/trunk@124 68402e56-0260-453c-a942-63ccdbb3a9ee
2003-09-16 18:53:52 +00:00
z0rglub
2bea069d54 - Bug correction : when adding a new category, the program enters an
infinite loop -> we have to refresh the $page['plain_structure'] for each
  new category added

- Categories.name becomes not nullable, so a default name is given when a
  new category is added

- If a directory doesn't correspond to the regular format [A-Za-z0-9-_.], an
  error message is displayed, and the category not added


git-svn-id: http://piwigo.org/svn/trunk@88 68402e56-0260-453c-a942-63ccdbb3a9ee
2003-09-11 21:54:04 +00:00
z0rglub
0e75a1c6d3 waiting.category_id was replaced by waiting.storage_category_id
git-svn-id: http://piwigo.org/svn/trunk@81 68402e56-0260-453c-a942-63ccdbb3a9ee
2003-09-08 18:04:00 +00:00
z0rglub
044fba0256 Multi categories for the same picture
git-svn-id: http://piwigo.org/svn/trunk@61 68402e56-0260-453c-a942-63ccdbb3a9ee
2003-08-30 15:54:37 +00:00
z0rglub
6cbffaa646 improve the header of each file
git-svn-id: http://piwigo.org/svn/trunk@57 68402e56-0260-453c-a942-63ccdbb3a9ee
2003-08-24 07:40:56 +00:00
z0rglub
b125c3b086 ['template'] as user_template for displaying pictures in the template
git-svn-id: http://piwigo.org/svn/trunk@29 68402e56-0260-453c-a942-63ccdbb3a9ee
2003-07-21 20:51:47 +00:00