Commit graph

245 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
2d0f0f03ba - since categories.site_id can be NULL (for virtual categories), virtual
categories could not be displayed because of a join query with sites table

- get_cat_info function refactored

- new function get_subcat_ids based on regular expression query


git-svn-id: http://piwigo.org/svn/trunk@603 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-15 21:42:08 +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
plegall
234b746352 - IPTC mapping done in include/config.inc.php
- file extensions in $conf['file_ext'] are case sensitive (contrary to what
  was said)

- a user (choubs) told me that the correct mapping for image name was 2#005
  (OBJECTNAME) and not 2#085 (BYTITLE)


git-svn-id: http://piwigo.org/svn/trunk@601 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-10 22:34:54 +00:00
plegall
e2d5742a75 Before 1970, Microsoft Windows can't mktime. format_date changed was changed
to avoid mktime unless year is after 1970 or PHP_OS is not Windows


git-svn-id: http://piwigo.org/svn/trunk@599 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-09 23:11:36 +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
fb53abe3bd - DEFAULT_LANGUAGE constant moved to $conf['default_language']
- DEBUG constant divided into $conf['show_queries'] and $conf['show_gt']
  (display generation time at the bottom of each page)


git-svn-id: http://piwigo.org/svn/trunk@592 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-05 21:36:35 +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
98b65edb83 - refactoring of comments.php
- creation of function get_thumbnail_src used everywhere a thumbnail must be
  displayed

- creation of function parse_comment_content (used in comments.php and
  picture.php)

- concerning undefined index on arrays retrieved in database, instead of
  testing possibly unset values, use of @ operator (smarter...)

- add pre tag in default.css stylesheet for debugging purpose (need to have
  left aligned text)


git-svn-id: http://piwigo.org/svn/trunk@579 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-10-23 17:56:46 +00:00
z0rglub
60ac6f180e use of PHPWG_ROOT_PATH constant instead of './'
git-svn-id: http://piwigo.org/svn/trunk@578 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-10-23 12:38:57 +00:00
z0rglub
c65d35db19 refactoring : rewrite of get_cat_display_name function header
git-svn-id: http://piwigo.org/svn/trunk@572 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-10-23 09:00:26 +00:00
z0rglub
9be5df4afe admin/infos_image:$page['nb_image_page'] is replaced by
$conf['info_nb_elements_page'] : number of item to display on
admin/infos_images.php page


git-svn-id: http://piwigo.org/svn/trunk@571 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-10-23 08:59:46 +00:00
z0rglub
d5a2cf5e23 code refactoring for function get_cat_display_name
git-svn-id: http://piwigo.org/svn/trunk@569 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-10-21 21:17:46 +00:00
z0rglub
3e09d2579f - refactoring
- add or modified parameters comments


git-svn-id: http://piwigo.org/svn/trunk@567 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-10-11 22:35:48 +00:00
z0rglub
b70963317a I don't want to see mysql.inc.php anymore when updating...
git-svn-id: http://piwigo.org/svn/trunk@561 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-10-08 22:24:14 +00:00
z0rglub
11699a5546 - checkbox for "remember me" are only shown if authorized
- simplification : each session is created with a cookie and if
  PhpWebGallery can't read the cookie, it uses the URI id and it will be
  used in the add_session_id function.

- configuration parameter "auth_method" disappeared (didn't lived much...)

- only one session id size possible. More comments for configuration in
  include/config.inc.php


git-svn-id: http://piwigo.org/svn/trunk@555 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-10-06 22:48:48 +00:00
z0rglub
3c8309a7e6 - deletion of session_time and session_id_size as config parameter
- new feature : "remember me" creates a long time cookie

- possibility to set the default authentication method to URI or cookie

- really technical parameters (session identifier size, session duration)
  are set in the config file and not in database + configuration.php


git-svn-id: http://piwigo.org/svn/trunk@541 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-10-02 23:12:50 +00:00
gweltas
28dcfea993 - Change of the picture page behavior to be able to open the full size image in a new window
- Minor modification for template migration
- Rename of script.js in scripts.js


git-svn-id: http://piwigo.org/svn/trunk@539 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-10-01 22:50:50 +00:00
gweltas
1d4238055a -First draft of history display
git-svn-id: http://piwigo.org/svn/trunk@537 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-09-26 21:24:49 +00:00
gweltas
79a6102edc - Delivery of french translation in order to test i18n
- Deletion of collapsed & expanded gifs (obsoletes)
- Creation of faq language file for further writing of a end user-oriented FAQ


git-svn-id: http://piwigo.org/svn/trunk@532 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-09-23 17:09:06 +00:00
gweltas
4106c2a524 - New template for picture.tpl
- Creation of a menu bar in the picture display


git-svn-id: http://piwigo.org/svn/trunk@531 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-09-23 16:42:11 +00:00
z0rglub
9d0ffba637 - huge refactoring of admin/configuration.php (reminder : tabs in code are
forbidden, only blank spaces are allowed)

- in admin panel, remote site management is in "general" section and not in
  "configuration" section

- when retrieving languages, the array keys must be the language code and
  not its display name (because 2 language codes might have the same display
  name)


git-svn-id: http://piwigo.org/svn/trunk@528 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-09-20 20:08:15 +00:00
z0rglub
094bbe3cee - new version of create_file_listing.php for future 1.4 branch
- new feature : remote site management (generate listing, update, clean,
  delete)

- on category page, no display of filesize if info not available in database


git-svn-id: http://piwigo.org/svn/trunk@526 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-09-18 16:09:47 +00:00
z0rglub
aa392c1fdd init of $xml_content var avoiding PHP warnings
git-svn-id: http://piwigo.org/svn/trunk@525 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-09-18 16:08:24 +00:00
z0rglub
e9cd9b5395 code refactoring
git-svn-id: http://piwigo.org/svn/trunk@524 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-09-18 16:07:40 +00:00
gweltas
eaad1d61d7 Minor bugs correction
git-svn-id: http://piwigo.org/svn/trunk@519 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-09-07 20:10:36 +00:00
z0rglub
47a1e49c1e - corrects bugs due to deletion of configuration parameters default_lang,
default_style (renamed to default_language and default_template),
  session_keyword

- in install.php, corrects bug to deletion of language keys :
  conf_general_webmaster, conf_general_webmaster_info and renaming of
  conf_general_mail


git-svn-id: http://piwigo.org/svn/trunk@518 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-09-07 19:29:42 +00:00
z0rglub
b220e5db42 deletion of $conf['site_url'] and $conf['forum_url'] and all their usage
(thus avoiding the usage of $conf in *.lang.php)


git-svn-id: http://piwigo.org/svn/trunk@516 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-09-05 15:49:54 +00:00
z0rglub
dd38c14639 - bug correction : when coming from picture.php on a picture of category.php
page superior to the first, the right page was displayed (the one
  including the element) but the navigation bar was always saying we were on
  the first page

- distinguish CSS classes span.dateSelected and span.pageNumberSelected


git-svn-id: http://piwigo.org/svn/trunk@514 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-09-04 08:07:33 +00:00
z0rglub
1f71a31084 - in admin/configuration, add new step with "sections" (general, comments,
default, upload, metadata, sessions)

- admin/configuration.php and its template have been higly simplificated by
  making things more generic : for example, for each configuration
  parameter, its name must correspond to the name we find in the config
  table and belongs to a section, in the lang array we find :

  - $lang['conf_<section>_<param>']
  - $lang['conf_<section>_<param>_info']
  - $lang['conf_<section>_<param>_error'] optionnaly

- more described message when connection to database server is impossible

- redefinitions of get_languages and get_templates functions

- deletion of configuration parameters : webmaster, session_keyword

- rename of configuration parameters :

  - default_lang => default_language
  - default_style => default_template


git-svn-id: http://piwigo.org/svn/trunk@512 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-09-03 15:01:05 +00:00
z0rglub
2dbc66da3b - new special category : random pictures
- reorganisation of special categories menu : template is used only for
  template. A special category is presented as the template tells to do so.

- favorites becomes just another special category

- bug correction for best rated category : wrong MySQL query if user has
  forbidden categories (see include/functions_category.inc.php diff)


git-svn-id: http://piwigo.org/svn/trunk@510 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-09-01 21:39:29 +00:00
z0rglub
a8cb550b92 if category is best_rated : displays the average rate of the element before
its name


git-svn-id: http://piwigo.org/svn/trunk@508 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-08-31 21:32:58 +00:00
z0rglub
0e2436f50a add rating feature
git-svn-id: http://piwigo.org/svn/trunk@507 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-08-30 22:00:46 +00:00