Commit graph

781 commits

Author SHA1 Message Date
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
rvelices
f328dd14bb feature 251: Rating For Anonymous users
fix: page['items'] for favorites category and remove old use of $has_next, 
$has_prev in picture.php (slideshow and favorites section)

optimization: one less sql query in picture.php when there are no comments

display of the refresh url in redirect.tpl (useful when debugging with 
browser meta redirects disabled)


git-svn-id: http://piwigo.org/svn/trunk@1041 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-02-14 01:14:31 +00:00
plegall
3411ec84f6 merge -r1038:1039 from branches/branch-1_5 into trunk (bug 269 fixed)
improvement: use a cache on get_icon function since it's often used with the
same argument on a page generation.


git-svn-id: http://piwigo.org/svn/trunk@1040 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-02-13 22:15:56 +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
plegall
dac7decfb5 improvement: $page['where'] string replaced by $page['items'].
$page['where'] was an SQL clause used to retrieve pictures in #images
table. $page['items'] is the list of picture ids of the current section.

improvement: function initialize_category replaced by dedicated included PHP
script include/section_init.inc.php. Code was refactored to improve
readibility and maintenability. $page['navigation_bar'] is now build in
category.php instead of initialize_category function. Function check_cat_id
was also replaced by a piece of code in the new file. The file to include to
display thumbnails from category.php is now set in section_init.inc.php
instead of calculated in category.php.

bug fix: the test for rel="up" link for standard HTML navigation links in
category menu was not working with non numeric categories, such as
"favorites".

improvement: function check_login_authorization removed because useless but
in profile.php.


git-svn-id: http://piwigo.org/svn/trunk@1036 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-02-12 21:52:16 +00:00
nikrou
2dc2eb8630 not include .svn directory in the candidates (get_dirs function) for new themes
git-svn-id: http://piwigo.org/svn/trunk@1035 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-02-12 16:05:49 +00:00
nikrou
db93405255 The session garbage collector should not be called when a session is closed
git-svn-id: http://piwigo.org/svn/trunk@1034 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-02-12 14:08:57 +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
nikrou
512740968f small modification: we can now store any information in sessions
(cf topic:5667)

git-svn-id: http://piwigo.org/svn/trunk@1032 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-02-11 13:23:54 +00:00
rvelices
da21a99873 feature 77: standard navigation link - finalized
3 small fixes: simplified code (unnecessary $page['tab_expand']),
urls in comments (at end of line nl2br issue+regex+html 4 validated) and 
$page['where'] correction for most_visited


git-svn-id: http://piwigo.org/svn/trunk@1031 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-02-10 02:10:41 +00:00
nikrou
c8e9793412 merge branch 1.5 into trunk r1001:1002: bug 259 fixed
git-svn-id: http://piwigo.org/svn/trunk@1030 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-02-09 20:38:07 +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
plegall
3d0c5236e1 improvement: upgrades id retrieving in include/common.inc.php and
upgrade_feed.php are now made by dedicated function
get_available_upgrade_ids.

bug fixed: after an installation, you had to play all available upgrades,
which was wrong. install.php inserts informations related to all available
upgrades at installation time. Thus avoiding automatic upgrades.


git-svn-id: http://piwigo.org/svn/trunk@1027 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-02-06 21:52:16 +00:00
nikrou
701350ff05 Languages corrections: bug 225, 237, 248, 257, 258 fixed
git-svn-id: http://piwigo.org/svn/trunk@1025 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-02-04 21:54:16 +00:00
nikrou
f72468a9cd html error: title_send_mail should be encoded
git-svn-id: http://piwigo.org/svn/trunk@1024 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-02-04 20:55:22 +00:00
nikrou
dd8d571761 fixed problem of cookie session path
fixed problem of undefined variable conf in upgrade_feed.php
fixed problem of undefined index is_the_guest of tab variable user

git-svn-id: http://piwigo.org/svn/trunk@1023 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-02-03 16:19:56 +00:00
rvelices
ea572da688 - feature 280: code simplification
git-svn-id: http://piwigo.org/svn/trunk@1022 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-02-01 22:56:17 +00:00
plegall
864acc9f95 Applying coding style guidelines to r1018 and r1019.
New function get_webmaster_mail_address used in include/page_tail.php and
include/functions_mail.inc.php.

Nothing else than functions in include/functions*, init_conf_mail() was
useless in include/functions_mail.inc.php because $conf_mail is only used in
function pwg_mail.

bug fixed: files include/functions_mail.inc.php and
include/functions_notification.inc.php had been commited in DOS format! Unix
file format is the only file format authorized.


git-svn-id: http://piwigo.org/svn/trunk@1021 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-02-01 22:07:26 +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
rub
ac5fd23412 [NBM] Step 1: Create new include files with current notification/mail fonctions (with improvement)
git-svn-id: http://piwigo.org/svn/trunk@1019 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-01-31 23:42:42 +00:00
rub
81bdfbf7b4 [NBM] Step 1: Create new include files with current notification/mail fonctions (with improvement)
git-svn-id: http://piwigo.org/svn/trunk@1018 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-01-31 23:38:48 +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
plegall
61668e4cf7 Search engine redesign, second part :
improvement: in category.php, an icon opening a popup display the list of
search rules.

modification: function get_search_array is responsible of search rules
retrieving from database. This function is called from get_sql_search_clause
and from search_rules.php

modification: ability to search multiple authors. Warning: this version of
search tool can't search author names including any blank space.


git-svn-id: http://piwigo.org/svn/trunk@1015 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-01-27 22:40:51 +00:00
rvelices
a8fd5ee6cf improvement: got rid of num= _GET param in category.php (use only start=) so
that links to category for search engines are the same as in category 
pagination

feature 77: standard navigation link : HTML Link types

improvement: add go to first and last image buttons in picture page

improvement: do not increase image hit in picture.php when rating, adding to 
favorites, caddie, ...

improvement: show number of hits in most_visited (as best_rated shows the rate)


git-svn-id: http://piwigo.org/svn/trunk@1014 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-01-27 01:11:43 +00:00
rvelices
10329e517b bug: new session system does not use db session handler during install.php
bug: put back function generate_key (was also used by new password generation 
and new feed generation)


git-svn-id: http://piwigo.org/svn/trunk@1013 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-01-25 00:47:31 +00:00
nikrou
02f08d3c4f merge branch 1.5 r1010:1011 into BSF:
- bug 268 fixed: display debug content correctly

git-svn-id: http://piwigo.org/svn/trunk@1012 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-01-21 20:38:29 +00:00
nikrou
0b28c9da75 improve sessions: add comments to functions
git-svn-id: http://piwigo.org/svn/trunk@1010 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-01-21 10:56:36 +00:00
plegall
6ab5e21605 Code cleaning (deletion of previously commented code)
git-svn-id: http://piwigo.org/svn/trunk@1009 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-01-20 14:39:31 +00:00
plegall
7b2ff328cb Search engine redesign, first part :
- new table #search to store search rules associated to a search id.

- search rules are not passed through GET anymore, the search array build in
  search.php is serialized in #search table, so no need to rebuild it in
  function include/functions_category.inc.php::category_initialize

- search array build code is improved (efficiency and layout) in search.php

- SQL related to search is build in a dedicated function
  include/functions::get_sql_search_clause

- direct search author:<...>, date_avalaible:<...>, date_creation:<...>,
  keywords:<...> from picture.php are not available anymore. They will come
  back later, with improvement (new design). Same for date_*:<> in calendar
  calendar category.


git-svn-id: http://piwigo.org/svn/trunk@1008 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-01-20 14:34:37 +00:00
nikrou
9410522e9f bug fix 261: improve security of sessions (next to svn:1004):
- improve presentation code style
- add upgrade database file

git-svn-id: http://piwigo.org/svn/trunk@1007 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-01-18 15:16:30 +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
b223bb495d - merge -r998:999 from branches/branch-1_5 into trunk (bug 260 fixed)
git-svn-id: http://piwigo.org/svn/trunk@1000 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-01-07 13:10:44 +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
chrisaga
9a83134d1f fix bug 249: XHTML Validation in install.php
install.tpl is now HTML4.01 strict


git-svn-id: http://piwigo.org/svn/trunk@996 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-12-31 11:04:30 +00:00
chrisaga
29a32a3d94 deletion: of unused code in picture.php
merge -r993:994 from branches/branch-1_5 into trunk (bug 254 fixed).


git-svn-id: http://piwigo.org/svn/trunk@995 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-12-30 21:54:46 +00:00
chrisaga
e2982cdb2c - svn : set svn keywords for action.php
git-svn-id: http://piwigo.org/svn/trunk@986 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-12-19 19:18:48 +00:00
chrisaga
ed42cf8371 - feature 232 : icon tool to download big image in pwg_high if exists
- cosmetic	: adjust big image popup to avoid unwanted scrolbars
		  no toolbar or status-bar in this popup


git-svn-id: http://piwigo.org/svn/trunk@985 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-12-19 18:58:38 +00:00
chrisaga
81476cb593 cosmetic : change page title form {PAGE_TITLE} to {GALLERY_TITLE}:{PAGE_TITLE} in template
git-svn-id: http://piwigo.org/svn/trunk@983 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-12-12 19:30:46 +00:00
chrisaga
6bcef16e42 cosmetic : provide a "favicon" to the browser
git-svn-id: http://piwigo.org/svn/trunk@982 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-12-11 16:57:50 +00:00
chrisaga
ea8b6eddd9 template : fix categoryActions margins and picture page title background
git-svn-id: http://piwigo.org/svn/trunk@981 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-12-10 16:03:53 +00:00
chrisaga
271287c3ad template : {themeconf:icon_dir}/*.png in admin/*.tpl
git-svn-id: http://piwigo.org/svn/trunk@980 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-12-10 15:24:53 +00:00
plegall
4816aafc78 - manual merge -r976:977 from branch 1.5 (background color for comments)
git-svn-id: http://piwigo.org/svn/trunk@978 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-12-09 23:07:29 +00:00
plegall
970f630858 - merge -r974:975 from branch 1.5 (PHP warning bug fixed)
git-svn-id: http://piwigo.org/svn/trunk@976 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-12-09 22:54:51 +00:00
chrisaga
02ae5a7dca add feature 221 : Add a link to "lost password" in quick connect form
plus link to "register" and move quickconnect rules from default-layout.css to menubar.css


git-svn-id: http://piwigo.org/svn/trunk@972 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-12-03 23:40:51 +00:00
plegall
02c3c0d2df - bug 205 fixed: advise to perform maintenance actions at the end of upgrade
process.


git-svn-id: http://piwigo.org/svn/trunk@971 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-12-03 23:24:17 +00:00
chrisaga
b09e798063 bug fix : errors.png and infos.png path was incorrect in default-colors.css
git-svn-id: http://piwigo.org/svn/trunk@970 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-12-03 22:19:52 +00:00
plegall
ae2b7fcbf2 - merge -r967:968 from branches/branch-1_5 into trunk (bug 220 fixed)
git-svn-id: http://piwigo.org/svn/trunk@969 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-12-03 22:16:01 +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