Commit graph

214 commits

Author SHA1 Message Date
plegall
0737f91b19 - use template->parse instead of pparse. (exceptions for install.php and
upgrade.php)

- bug fixed : queries time and count were not displayed on a redirection


git-svn-id: http://piwigo.org/svn/trunk@688 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-01-13 10:18:49 +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
gweltas
22e0536a05 - Group permission delivery
- Reorganisation of common.lang.php


git-svn-id: http://piwigo.org/svn/trunk@671 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-01-06 16:33:04 +00:00
plegall
96f24f3ddc - bug fixed on setting commentable property for a single category (bug in
template and in query generation)

- bug on determining whether an element is commentable or not depending on
  categories it belongs to


git-svn-id: http://piwigo.org/svn/trunk@668 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-12-30 08:36:48 +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
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
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
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
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
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
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
4e55cfe4ca when picture size exceeds user maximum display size, the link was on the
same page : now it shows the file in the browser


git-svn-id: http://piwigo.org/svn/trunk@598 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-11-09 21:59:19 +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
fa9a5cd07b - differentiation of links "up to thumbnails" and "home"
git-svn-id: http://piwigo.org/svn/trunk@588 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-10-30 16:51:01 +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
ab73295294 search links in picture informations : author, date_available, date_creation
git-svn-id: http://piwigo.org/svn/trunk@576 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-10-23 10:31:12 +00:00
z0rglub
e22eb49fec new feature : related categories are displayed under the picture
git-svn-id: http://piwigo.org/svn/trunk@568 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-10-21 21:17:07 +00:00
z0rglub
9b1a330905 replacement of PhpWebGallery folder representative by pwg_representative and
high by pwg_high


git-svn-id: http://piwigo.org/svn/trunk@563 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-10-09 11:30:23 +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
z0rglub
bb8189ea75 add support of a third size picture in "high" sub-directory
git-svn-id: http://piwigo.org/svn/trunk@536 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-09-24 08:37:29 +00:00
z0rglub
1d40fed004 bug correction : if you rate a picture and then launch the slideshow, all
pictures are rated with the same rate


git-svn-id: http://piwigo.org/svn/trunk@535 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-09-24 00:03:07 +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
fb5b21cbde - refactoring
- adaptation of the URL for searching associated keywords to the new search
  URL string


git-svn-id: http://piwigo.org/svn/trunk@511 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-09-01 21:56:24 +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
gweltas
11c2e58053 - Deletion of obsolete functions in the administrative part
- Repair of virtual category management


git-svn-id: http://piwigo.org/svn/trunk@496 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-08-25 22:25:58 +00:00
z0rglub
d8494248fc "show metadata" feature added : you can ask to show metadata (EXIF and IPTC)
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
2004-08-25 21:09:09 +00:00
z0rglub
d1389ee8eb bug correction : in case of metadata (image dimension, filesize) not
registered into database, they couldn't be calculated


git-svn-id: http://piwigo.org/svn/trunk@484 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-08-16 21:42:54 +00:00
z0rglub
1be3f40096 - non picture files management
- refactoring

- test of "is the picture belonging to this category" comes back

- recoding a bit the new system of $picture array with prev, current, next
  (more readable, I couldn't read the old one)

- template vars for previous and next elements are now in the corresponding
  block, not in the global template vars


git-svn-id: http://piwigo.org/svn/trunk@465 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-08-05 17:31:36 +00:00
z0rglub
d119cf3344 - SQL query refactoring
- deletion of "mode" var in URL for searchs


git-svn-id: http://piwigo.org/svn/trunk@454 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-07-26 20:42:48 +00:00
z0rglub
8db124da81 field comments.date becomes a datetime MySQL field type (instead of int)
git-svn-id: http://piwigo.org/svn/trunk@420 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-05-20 21:22:44 +00:00
z0rglub
a0033b8b56 redirections modification : use of a HTML refresh page instead of header PHP
function. The purpose is to avoid redirections failure when extra characters
are found in included PHP files.


git-svn-id: http://piwigo.org/svn/trunk@405 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-03-31 20:43:09 +00:00
z0rglub
d90e90dd4a code refactoring
git-svn-id: http://piwigo.org/svn/trunk@402 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-03-29 22:40:21 +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
gweltas
9e993f2d21 New default template - User side
git-svn-id: http://piwigo.org/svn/trunk@375 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-02-26 18:33:45 +00:00
gweltas
60b84a9db5 Template migration
git-svn-id: http://piwigo.org/svn/trunk@369 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-02-22 02:43:13 +00:00
gweltas
d339037b1e Template migration
git-svn-id: http://piwigo.org/svn/trunk@368 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-02-21 11:02:06 +00:00
gweltas
78df1f97d3 Split of langage files
git-svn-id: http://piwigo.org/svn/trunk@364 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-02-19 00:31:09 +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
gweltas
e712c4aef8 Migration of common.php in the include directory to fit the new coding rules
git-svn-id: http://piwigo.org/svn/trunk@354 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-02-07 19:36:44 +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
36d7eac6d4 Wash filename if it has to be used as page title
git-svn-id: http://piwigo.org/svn/trunk@183 68402e56-0260-453c-a942-63ccdbb3a9ee
2003-10-08 18:10:47 +00:00
z0rglub
1ee0d7153c Support of special syntax to underline, emphasis or italic words in users
comments


git-svn-id: http://piwigo.org/svn/trunk@180 68402e56-0260-453c-a942-63ccdbb3a9ee
2003-10-05 13:43:00 +00:00
z0rglub
5257091c37 Using the real asked slideshow refresh time instead of the hard coded "2"
value


git-svn-id: http://piwigo.org/svn/trunk@118 68402e56-0260-453c-a942-63ccdbb3a9ee
2003-09-15 19:24:18 +00:00
z0rglub
637cdd1e23 Mail notification for admins
git-svn-id: http://piwigo.org/svn/trunk@85 68402e56-0260-453c-a942-63ccdbb3a9ee
2003-09-10 22:24:03 +00:00
z0rglub
122ac485f7 Security improve : you can't display a picture in a category it doesn't
belong to


git-svn-id: http://piwigo.org/svn/trunk@84 68402e56-0260-453c-a942-63ccdbb3a9ee
2003-09-09 18:36:25 +00:00
z0rglub
79e9414c0f - A guest can't take the username of an already existing user
- If a guest post a comment without giving a username, the $lang['guest'] is
  displayed


git-svn-id: http://piwigo.org/svn/trunk@78 68402e56-0260-453c-a942-63ccdbb3a9ee
2003-09-07 21:33:36 +00:00