Commit graph

331 commits

Author SHA1 Message Date
rub
12df580f50 [NBM] Step 6: Undo svn:1114 (Lost functionalities)
Re-adapt idea of svn:1114 and optimize treatment:
  o check/uncheck all completely done by Javascript
  o add function get_user_notifications
  o reduce queries for not detailed content mail



git-svn-id: http://piwigo.org/svn/trunk@1115 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-03-30 22:49:49 +00:00
rvelices
27cc75cade NBM: check/uncheck all completely done by Javascript
NBM: add function make_index_absolute_url

NBM: add function get_user_notifications and simplified code

git-svn-id: http://piwigo.org/svn/trunk@1114 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-03-30 02:08:53 +00:00
rub
a2dd39df73 [NBM] Step 5: Change notification queries in order to try to optimize treatment duration.
git-svn-id: http://piwigo.org/svn/trunk@1112 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-03-28 22:33:29 +00:00
rub
39c2bfb3b1 Improvement issue 0000319:
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
2006-03-28 21:05:12 +00:00
rvelices
7690f9bb8b fix: php 5 errors and warnings
improve: put back update remote site from local listing.xml functionality
(allow_url_fopen is false on several ISPs)

git-svn-id: http://piwigo.org/svn/trunk@1107 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-03-28 01:26:37 +00:00
rub
51a4de797c improvement issue 0000127&0000301:
o Fix Missing Adviser tests
  o Improve pwg_high , set to is_the_guest default value for enabled_high


git-svn-id: http://piwigo.org/svn/trunk@1106 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-03-27 21:19:31 +00:00
rub
d63d25a61d [NBM] Step 4: Screen NBM is available
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
2006-03-26 22:06:20 +00:00
rvelices
5c7d655005 URL rewrite: 3 options in the config file define behaviour (question mark
removal, file name for picture and .php extension removal)

fix: added unsigned for column in install sql - for the sake of uniformization

change: add_url_param is now add_url_params and takes an array as parameter 
instead of a string

git-svn-id: http://piwigo.org/svn/trunk@1094 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-03-23 01:49:04 +00:00
rvelices
0971ce48d2 URL rewriting: capable of fully working with urls without ?
URL rewriting: works with image file instead of image id (change
make_picture_url to generate urls with file name instead of image id)

URL rewriting: completely works with category/best_rated and
picture/best_rated/534 (change 'category.php?' to 'category' in make_index_url
and 'picture.php?' to 'picture' in make_picture_url to see it)

fix: picture category display in upper bar

fix: function rate_picture variables and use of the new user type

fix: caddie icon appears now on category page

fix: admin element_set sql query was using storage_category_id column
(column has moved to #image_categories)

fix: replaced some old $_GET[xxx] with $page[xxx]

fix: pictures have metadata url (use ? parameter - might change later)

git-svn-id: http://piwigo.org/svn/trunk@1092 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-03-22 01:01:47 +00:00
rub
3609c224c7 [NBM] Step 3: Layout Model
o Rename mailtousers.php on notification_by_mail.php
  o Deactivate temporary function on notification_by_mail.php
  o First design layout, no function activated, it's only a model


git-svn-id: http://piwigo.org/svn/trunk@1091 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-03-21 22:58:59 +00:00
rvelices
e584310d3a URL rewriting: fix some old links, calendar simplification and prepare code
for urls without ? (added functions get_root_url and add_url_param)

git-svn-id: http://piwigo.org/svn/trunk@1090 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-03-21 01:27:21 +00:00
rub
62b589964a Step 8 improvement issue 0000301:
o Add $conf['allow_adviser']


git-svn-id: http://piwigo.org/svn/trunk@1087 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-03-17 17:59:59 +00:00
rub
9b521760af Step 7 improvement issue 0000301:
o can attribute status <= current user
  o define mode adviser 
    => buttons disabled (gray on IE, not on FF)
    => truncated actions
    => display info mode adviser

git-svn-id: http://piwigo.org/svn/trunk@1085 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-03-16 22:58:16 +00:00
plegall
5980db248a bug fixed: create_navigation_bar take into account clean URL if requested.
deletion: argument link_class (HTML class of links) in function
create_navigation_bar was removed, useless since branch 1.5.

bug fixed: rate_items are now a configuration parameter (set in config file)

modification: new functions library functions_rate.inc.php to reduce
picture.php length.

bug fixed: categories were never expanded in the menu since clean URLs.

bug fixed: changing pictures sorting order in main page was always
rederecting to root category.


git-svn-id: http://piwigo.org/svn/trunk@1084 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-03-16 22:34:45 +00:00
plegall
114ae32445 new: cleaner URL. Instead of category.php?cat=search&search=123&start=42,
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
2006-03-15 22:44:35 +00:00
rvelices
1d22950cf6 fix: help button was not working in the site manager
fix: incorrect session deletion in maintenance.php

git-svn-id: http://piwigo.org/svn/trunk@1080 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-03-14 23:52:47 +00:00
rub
77aa54a32b Step 2 improvement issue 0000127:
o Allow to chage high property on user list
  o Set initial value for the 2 default users

+ Correction of permissions.png in user list


git-svn-id: http://piwigo.org/svn/trunk@1079 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-03-14 21:31:31 +00:00
rub
ade00c95c2 Step 4 improvement issue 0000301:
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
2006-03-10 20:17:18 +00:00
rub
6163dccab3 [NBM] Correction of sub-select query (remark about r1070)
git-svn-id: http://piwigo.org/svn/trunk@1074 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-03-09 23:03:57 +00:00
rub
15bb94715f Step 3 improvement issue 0000301:
o Remove file isadmin.inc.php (not used yet)


git-svn-id: http://piwigo.org/svn/trunk@1073 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-03-09 22:48:41 +00:00
rub
31d9ce1604 Step 2 improvement issue 0000301:
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
2006-03-09 22:46:28 +00:00
rvelices
316d89a90b bug 255: parameter values in #config limited to 255 chars (value becomes text)
feature 303: page banner moved from combination of gallery_title, 
gallery_description and template to database (simplifies user customization)


git-svn-id: http://piwigo.org/svn/trunk@1071 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-03-09 01:57:13 +00:00
rub
b263f0c996 Step 1 improvement issue 0000301:
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
2006-03-08 23:14:53 +00:00
rvelices
1e7c9034de bug fix: call to undefined session_create in register.php (added function
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
2006-03-07 01:20:02 +00:00
plegall
53d78c95b0 request 302: order categories alphanumerically
alphanumerically sort of language keys in admin.lang.php


git-svn-id: http://piwigo.org/svn/trunk@1066 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-03-06 23:28:51 +00:00
plegall
8615119a80 bug fixed: table #categories_link was created with an hardcoded prefix
bug fixed: on source/destination links, if an image/category association is
added to a source, destinations must be filled. If an image/category
association is delete from a source, the same association must be deleted in
the destinations.


git-svn-id: http://piwigo.org/svn/trunk@1065 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-03-05 22:44:32 +00:00
plegall
c08fa6f67e new feature: source/destination links between categories. Will we keep this
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
2006-03-04 23:31:46 +00:00
rvelices
3f329df09f fix: replaced UPDATE ... LEFT JOIN for compatibility with MySql 3
git-svn-id: http://piwigo.org/svn/trunk@1060 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-03-01 00:48:29 +00:00
rvelices
97898b3685 calendar improvements: week on weekly list starts on Monday,
ability to show grayed months/weeks/days (without any picture in it),
added icons for created/posted fields
language uniformization

calendar fixes: correct number of pictures in calendar view,
code simplification (I hope so)

git-svn-id: http://piwigo.org/svn/trunk@1059 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-02-28 04:28:06 +00:00
rvelices
4cd5b05d40 remake of Remote sites and synchronize: final integration and old code cleanup
fix: xml getAttribute always decodes html entities and added encodeAttribute
function

git-svn-id: http://piwigo.org/svn/trunk@1058 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-02-28 01:13:16 +00:00
rvelices
3aff4f0bfe fix: remove all php warnings and notices
git-svn-id: http://piwigo.org/svn/trunk@1056 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-02-24 01:16:30 +00:00
rub
2afff7c226 Step 3: Integration of new admin menu with the associated file (No interface, Only Message)
git-svn-id: http://piwigo.org/svn/trunk@1049 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-02-20 23:47:01 +00:00
plegall
16034a592a request 290: replace function get_themes name to avoid redeclaration from
Wordpress in jillij template.


git-svn-id: http://piwigo.org/svn/trunk@1048 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-02-20 22:14:24 +00:00
rvelices
08b6381564 fix: remote site decodes html entities from xml and addslashes
fix: picture displays "image rank/total" images even for non numeric categories

fix: category comment not transformed with nl2br if allow_html_descriptions and
comment already looks like html

git-svn-id: http://piwigo.org/svn/trunk@1046 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-02-17 02:41:57 +00:00
rvelices
d22a07cee3 feature 264: gallery_url, rate and rate_anonymous from config file to database
git-svn-id: http://piwigo.org/svn/trunk@1044 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-02-16 00:45:18 +00:00
rvelices
33485fa91b feature 288: manage rates for administrators
git-svn-id: http://piwigo.org/svn/trunk@1042 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-02-15 02:29:26 +00:00
plegall
1e904aeca4 merge -r1036:1037 from branches/branch-1_5 into trunk (bug 276 fixed)
git-svn-id: http://piwigo.org/svn/trunk@1038 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-02-13 21:44:17 +00:00
rvelices
c2b9863da0 remake Remote Site/Synchro - bug on commentable + use l10n instead of get_lang
git-svn-id: http://piwigo.org/svn/trunk@1033 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-02-11 19:36:09 +00:00
rvelices
0e78db47de - remake of Remote sites and Synchronize:
- 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
2006-02-08 01:17:07 +00:00
rub
687a7ca122 [NBM] Step 2: Add new table user_mail_notification (update, install, constants, delete user
+ 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
2006-02-06 22:59:30 +00:00
rvelices
bb181b04cf feature 280: Allow visitors/users to choose image ordering inside a category
improvement 82: Viewing pictures from remote galleries does not check anymore 
for the high pictures (existence flag added to create_listing_file and db)

correction: link element in picture is in the head instead of body (w3c spec)

correction: in profile.php the current template was not selected by default

git-svn-id: http://piwigo.org/svn/trunk@1020 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-02-01 02:46:26 +00:00
nikrou
a4d50dabf8 - merge branch 1.5 r1015:1016 into trunk (bug 277 fixed)
Caddie text is always in english

git-svn-id: http://piwigo.org/svn/trunk@1017 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-01-28 13:34:07 +00:00
nikrou
9e1fabeaf7 - merge branch 1.5 r1000:1001 into BSF:
not include .svn directory in the candidates directories for update

git-svn-id: http://piwigo.org/svn/trunk@1006 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-01-17 20:40:16 +00:00
nikrou
c3397a2c73 Improve security of sessions:
- use only cookies to store session id on client side
- use default php session system with database handler to store sessions on server side

git-svn-id: http://piwigo.org/svn/trunk@1004 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-01-15 13:45:42 +00:00
nikrou
00157ca52b merge -r960:997 from branches/branch-1_5 into trunk (bug 238 fixed)
git-svn-id: http://piwigo.org/svn/trunk@998 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-01-01 17:19:56 +00:00
plegall
e90d20d2be - merge -r965:966 from branches/branch-1_5 into trunk (bug 224 fixed)
git-svn-id: http://piwigo.org/svn/trunk@967 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-12-03 22:03:58 +00:00
chrisaga
dc3c040399 improve template : split theme from template itself
rest of the job : template (yoga), themes (clear dark), and php to handle them


git-svn-id: http://piwigo.org/svn/trunk@960 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-12-03 17:33:38 +00:00
plegall
c3ed211ac8 - merge branch 1.5 r954:955 into BSF (bug 219 fixed)
git-svn-id: http://piwigo.org/svn/trunk@956 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-11-25 22:47:37 +00:00
plegall
b9970ec34c - bug 198 fixed: associating users to a group was not visible at validation,
the page needed to be reloaded. Added a redirect after updates.


git-svn-id: http://piwigo.org/svn/trunk@931 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-11-12 21:24:10 +00:00
plegall
429a108ff1 - bug 180 fixed: remote_site.tpl doesn't validate.
- translation bug fixed: generate_file_listing.php doesn't exist, it's
  create_listing_file.php !


git-svn-id: http://piwigo.org/svn/trunk@927 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-11-08 21:19:19 +00:00