Commit graph

233 commits

Author SHA1 Message Date
nikrou
267c1c63a2 Bug 1755 : Needs single quotes in queries official plugins
git-svn-id: http://piwigo.org/svn/trunk@6654 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-07-03 12:20:38 +00:00
rvelices
7125711f59 merge r6414 from branch 2.1
favorite image icon is not taken from php but left to the theme

git-svn-id: http://piwigo.org/svn/trunk@6615 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-06-28 19:45:21 +00:00
nikrou
5561730d35 Bug 1743 fixed : comment form is not visible because of boolean management
git-svn-id: http://piwigo.org/svn/trunk@6591 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-06-23 18:34:45 +00:00
plegall
8a1f11a294 merge r6460 from branch 2.1 to trunk
feture 1712 : backmerge r6454, useless feature. It can be done another way
without changing core code.


git-svn-id: http://piwigo.org/svn/trunk@6461 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-06-03 19:01:36 +00:00
plegall
a79d547f05 merge r6454 from branch 2.1 to trunk
feature 1712: ability to add a CSS class on body 


git-svn-id: http://piwigo.org/svn/trunk@6455 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-06-03 12:49:31 +00:00
plegall
10dac9de37 bug 1637: make the privacy level the same everywher, use "who can see this photo?"
instead of "minimum privacy level".

git-svn-id: http://piwigo.org/svn/trunk@6025 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-30 22:38:17 +00:00
plegall
80067101ca bug 1565 fixed: ability to validate a user comment from the picture page
(copy/past typo fixed)

git-svn-id: http://piwigo.org/svn/trunk@5653 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-04 22:46:56 +00:00
laurent.duretz
a37f1fbae1 Issue 1521 : picture.tpl updated to avoid double home link, picture.php updated because tpl update, functions_html.inc.php updated to work with question_mark_in_urls = false
git-svn-id: http://piwigo.org/svn/trunk@5451 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-29 17:05:38 +00:00
patdenice
6c31dd4326 Feature 1533: Bug corrected on favorite option and navigation bar.
git-svn-id: http://piwigo.org/svn/trunk@5305 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-24 00:54:39 +00:00
patdenice
151920ed09 Feature 1533: Allow activation or deactivation of download icon.
Add display configuration for picture properties.

git-svn-id: http://piwigo.org/svn/trunk@5304 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-24 00:39:34 +00:00
patdenice
c4fd9f9141 Feature 1533: Change "General" by "Options" in Configuration menu.
Change "Default Display" tab by "Guest Settings" tab.
Add display tab in Configuration/Option menu.

Allow to activate/deactivate a lot of display features:

On main page:
# Display only recently posted images
# Sort order
# Display all elements in all sub-categories
# Display a calendar by posted date
# Display a calendar by creation date
# Slideshow

On photo page:
# Show file metadata
# slideshow
# Add this image to your favorites
# Navigation Bar
# Navigation Thumbnails

git-svn-id: http://piwigo.org/svn/trunk@5293 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-23 21:19:55 +00:00
plegall
86ad1d5b49 increase copyright year to 2010
git-svn-id: http://piwigo.org/svn/trunk@5196 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-19 22:37:10 +00:00
plegall
c695136e4d bug 1328: backport the pwg_token on trunk
bug 1329: backport the check_input_parameter on trunk

feature 1026: add pwg_token feature for edit/delete comment. Heavy refactoring
on this feature to make the code simpler and easier to maintain (I hope).

git-svn-id: http://piwigo.org/svn/trunk@5195 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-19 22:25:39 +00:00
rvelices
2d7a399f7e - fix php warning followed by mysql query fatal error
- don't include a file unless necessary

git-svn-id: http://piwigo.org/svn/trunk@5127 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-13 05:59:14 +00:00
nikrou
2e890e9597 Feature 1451 : localization with gettext
Use php-gettext (developpement version rev43, because of php5.3) as fallback
Use native language (english) instead of key for translation
Keep directory en_UK for english customization
Need some refactoring for plurals

Todo : managing plugins in the same way

git-svn-id: http://piwigo.org/svn/trunk@5021 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-02 14:54:22 +00:00
nikrou
924dd262ec Feature 1244 resolved
Replace all mysql functions in core code by ones independant of database engine

Fix small php code synxtax : hash must be accessed with [ ] and not { }.

git-svn-id: http://piwigo.org/svn/trunk@4325 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-20 14:17:04 +00:00
nikrou
1040cae210 Feature 1241 resolved. replace mysql_fetch_array by mysql_fetch_assoc for small php code improvements
git-svn-id: http://piwigo.org/svn/trunk@4265 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-15 12:26:09 +00:00
nikrou
9245227e70 Feature 1026 : Modify / delete comments for users
+ update config table content
 + minor modification of Sylvia theme
 + need refactoring

git-svn-id: http://piwigo.org/svn/trunk@3445 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-06-23 13:44:58 +00:00
nikrou
1e8ae9e88b feature 1028 : Allow admin to validate comment from picture page
git-svn-id: http://piwigo.org/svn/trunk@3409 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-06-10 20:11:28 +00:00
rvelices
54902df0a4 small code refactor - group together some code that should be together
git-svn-id: http://piwigo.org/svn/trunk@3167 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-03 01:39:48 +00:00
rvelices
e8dac75c40 - removed second parameter $type from function format_date
git-svn-id: http://piwigo.org/svn/trunk@3122 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-04 02:41:03 +00:00
plegall
1b711ad236 Administration: happy new year 2009, all PHP headers updated.
git-svn-id: http://piwigo.org/svn/trunk@3049 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-04 23:28:36 +00:00
rvelices
e9c0f98e14 merge r 2758 from branch 2.0 to trunk
git-svn-id: http://piwigo.org/svn/trunk@2759 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-16 00:53:15 +00:00
rvelices
dda9f5db66 - removed #debug css rule (why would we need that in default-layout?)
- order by rank is not available in calendar/chronology mode
- small non-functional change in functions_search.inc.php (handy for plugin)
- unused variables/smaller code/unused params in func call

git-svn-id: http://piwigo.org/svn/trunk@2572 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-23 01:04:41 +00:00
vdigital
bff424f8d9 Extend_for_templates include slideshow.tpl overides.
menubar.tpl is no longer supported by Extend_for_templates.
Titling_categories.tpl was in error (Wrong recent icon var)

git-svn-id: http://piwigo.org/svn/trunk@2549 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-18 21:26:33 +00:00
rvelices
4d86bb2234 - images.file categories.permalink old_permalinks.permalink - become binary
- session security improvement: now the sessions are valid only for originating ip addr (with mask 255.255.0.0 to allow users behind load balancing proxies) -> stealing the session cookie is almost a non issue (with the exception of the 65536 machines in range)
- metadata sync from the sync button does not overwrite valid data with empty metadata
- other small fixes/enhancements:
 - added event get_category_image_orders
 - fix display issue with redirect.tpl (h1/h2 within h1)
 - fix known_script smarty function registration
 - query search form not submitted if q is empty
 - better admin css rules
 - some other minor changes (ws_core, rest_handler, functions_search...)

git-svn-id: http://piwigo.org/svn/trunk@2521 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-12 02:17:35 +00:00
rvelices
9aec2fb5e7 - fix typing error in index.tpl
- added template smarty function known_script (e.g.{known_script id="x" src"y.js"}) - useful to avoid double inclusion of a script such as prototype,jquery,... when a template and plugin need it independently (see the use in admin.tpl for example)
- removed unused themeconf.template_dir 

git-svn-id: http://piwigo.org/svn/trunk@2513 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-09 09:53:31 +00:00
rvelices
26474d349f - fix issue when picture_url_style = file (sql query like)
- sql call SET NAMES "xxx" (if required) in upgrade.php, upgrade_feed.php and after 65-database.php

git-svn-id: http://piwigo.org/svn/trunk@2512 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-09 01:16:32 +00:00
rvelices
b62eb188a2 - remove admin :hover css rule (bouncing thumbnails in caddie FF)
- move some code from notification.php to notification.tpl
- remove some unused variables from picture.php
- make random.php work even if top_number is a lot (some issues solved with url length)

git-svn-id: http://piwigo.org/svn/trunk@2446 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-07-22 01:29:38 +00:00
rvelices
2c08827ea0 - bug 600: Page not found after a strong rating revise (and extended to most cases when the image is not in the requested section)
git-svn-id: http://piwigo.org/svn/trunk@2430 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-07-12 00:33:12 +00:00
rvelices
644f8ee621 - first use of web services as Ajax: change the privacy level directly from the picture page
git-svn-id: http://piwigo.org/svn/trunk@2413 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-07-02 01:11:26 +00:00
mathiasm
8d64d10732 Bug 817 (metadata display persistency) fixed for Butterfly
git-svn-id: http://piwigo.org/svn/trunk@2407 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-06-28 13:59:26 +00:00
rvelices
40a882c3cf just some optimizations (especially for large dbs)
- replace some REGEXP with LIKE in sql
- optimized queries for the combination of large data sets with picture_url_style file

git-svn-id: http://piwigo.org/svn/trunk@2327 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-05-03 01:52:08 +00:00
rvelices
10dbfea6f6 - less mysql queries on picture page (under some circumstances)
git-svn-id: http://piwigo.org/svn/trunk@2309 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-04-25 23:38:04 +00:00
plegall
524011bfa6 Bug fixed: as rvelices notified me by email, my header replacement script was
bugged (r2297 was repeating new and old header).

By the way, I've also removed the replacement keywords. We were using them
because it was a common usage with CVS but it is advised not to use them with
Subversion. Personnaly, it is a problem when I search differences between 2
Piwigo installations outside Subversion.


git-svn-id: http://piwigo.org/svn/trunk@2299 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-04-05 14:14:07 +00:00
plegall
3f235497f3 Modification: new header on PHP files, PhpWebGallery renamed Piwigo.
git-svn-id: http://piwigo.org/svn/trunk@2297 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-04-04 22:57:23 +00:00
rvelices
fe23062161 - upload.tpl goes smarty
- start some language cleanup and a small attempt to standardize a bit ...
- debug_language now calls trigger_error instead of echo when missing language key

git-svn-id: http://piwigo.org/svn/trunk@2265 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-03-08 01:38:37 +00:00
rvelices
ba4f23dd83 picture, footer and picture modify template migration
git-svn-id: http://piwigo.org/svn/trunk@2227 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-02-29 01:25:13 +00:00
rub
a95bc3f7da Resolved issue 0000807: New slideshow features
Fix bad <link rel="up"> in the header

git-svn-id: http://piwigo.org/svn/trunk@2224 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-02-28 06:31:40 +00:00
rub
bf4012291a Resolved issue 0000807: New slideshow features
git-svn-id: http://piwigo.org/svn/trunk@2218 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-02-27 20:25:18 +00:00
rvelices
785dfabc00 merge 2203 from branch-1_7 to trunk
- small correction (the prefetch of nezt image was not correct on non image pages generating 404 errors)

git-svn-id: http://piwigo.org/svn/trunk@2204 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-01-31 01:14:25 +00:00
vdigital
5965bd749a New feature: 745: Separate CSS for slideshow
git-svn-id: http://piwigo.org/svn/trunk@2169 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-11-22 23:49:36 +00:00
rvelices
831694b4d1 - send status code 403 when attempt to enter a user comment, but comments are disabled
- don't increase hit count when a comment is posted
- remove the check of user ip agains spamhaus.org when a comment is entered (my conclusion is that is useless)

git-svn-id: http://piwigo.org/svn/trunk@2155 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-10-29 23:39:41 +00:00
rub
5c13d6a8f1 Resolved 0000728: Add description triggers for categories and elements
Add:
  o render_category_description
  o render_category_literal_description
  o render_element_description

Merge branch-1_7 2048:2050 into BSF

git-svn-id: http://piwigo.org/svn/trunk@2079 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-08-25 23:10:12 +00:00
rvelices
182a8f45db - fix help files
- feature 695 added action loc_user_profile_updated in profile.php
- added event allow_increment_element_hit_count in picture.php

git-svn-id: http://piwigo.org/svn/trunk@2048 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-06-30 01:40:19 +00:00
rub
182fb00f8f Resolved issue 0000697: with generic user a author name is necessary to comment picture.
+ Change way to determinate if user is a guest (use functions like is_admin)


git-svn-id: http://piwigo.org/svn/trunk@2029 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-06-05 22:01:15 +00:00
rub
75bfe8b667 Replace some $lang by l10n
git-svn-id: http://piwigo.org/svn/trunk@2014 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-05-15 20:23:09 +00:00
rvelices
81030a7ab4 plugins only:
- fix in category_default.inc.php (action parameters were wrong if show_nb_comments was true)
- refactor actions and events in picture.php in order to give more flexibility to plugins
- added some variables in index.tpl (not used by pwg itself) to allow plugins to add their own content

git-svn-id: http://piwigo.org/svn/trunk@1882 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-03-09 03:37:56 +00:00
rvelices
47512ce6a6 - refactoring page['category'] before 1.7 release
page['category'] is not an id anymore, but an associative array of category info
all of page['cat_xxx'] or page['uppercats'] merged into one
simplifies calls to make_index_url
give plugins a clean start for page variables for version 1.7

git-svn-id: http://piwigo.org/svn/trunk@1861 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-02-27 01:56:16 +00:00
plegall
3b46143435 New: non picture files are now logged in history when downloaded. The
history filter was redesigned: #history.is_high replaced by
#history.image_type = high. The filter is simpler.


git-svn-id: http://piwigo.org/svn/trunk@1844 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-02-20 23:40:02 +00:00
rvelices
c3614fd12c web service: added method to query search elements
picture: small correction on my last commit
monthly calendar nice view: always use getimagesize instead of guessing the size
query search: improved results (filename is searched separately) and sometimes less sql queries than before

git-svn-id: http://piwigo.org/svn/trunk@1837 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-02-19 16:25:47 +00:00
rvelices
d9b6ce8e87 - adviser mode: added check on admin profile page and removed 2 read-only TAG_INPUT_ENABLED
- simplified tag code in picture.php
- reduced size of dark/theme.css by combining selectors with identical content

git-svn-id: http://piwigo.org/svn/trunk@1827 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-02-16 03:06:41 +00:00
plegall
bbc2dc2419 Code refactoring.
git-svn-id: http://piwigo.org/svn/trunk@1825 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-02-15 21:20:52 +00:00
rvelices
11714951b3 - feature 642: display both subcategory thumbnails and element thumbnails (if a
category has both) in the index page
- get rid of $page['cat_nb_images'] and $page['thumbnails_include'] (superfluous)
- changed sql queries in section_init.inc.php for better performance with
flat category view
- web service fixes for categories.getList

git-svn-id: http://piwigo.org/svn/trunk@1820 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-02-15 00:10:41 +00:00
rvelices
0333119b79 - added plugin action loc_end_picture
- enhanced the event tracer plugin to show a list of all events and actions trigered by pwg
- small reorganization in picture.php

git-svn-id: http://piwigo.org/svn/trunk@1793 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-02-09 01:41:49 +00:00
plegall
3c8775b252 Feature 638 added: "Fixed navigation bar" extension integration.
git-svn-id: http://piwigo.org/svn/trunk@1787 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-02-07 21:23:33 +00:00
vdigital
e81260cdec Issue 0000622: Optional light slideshow
(Active by default - Switch off by $conf['light_slideshow'] = false)

Order by in admin/comments.php

git-svn-id: http://piwigo.org/svn/trunk@1730 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-01-17 23:08:41 +00:00
plegall
5d9a865fe1 Modification: new data model for history, more compact, more efficient. A
summary table is used as cache for history stats display.

New: a Perl script fill_history.pl was added to simulate a high load on
history table (making the efficiency of the new data model obvious).

Modification: function prepend_append_array_items moved from
include/functions_search.inc.php to include/functions_search.inc.php since
this function is used in new file admin/history.php

Modification: admin/images/*_stats.img.php replaced by a simpler and more
generic admin/images/stats.img.php unique file.

New: a history detail search page was added. Currently, only start and end
dates can be modified, it's just a beginning.


git-svn-id: http://piwigo.org/svn/trunk@1727 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-01-16 23:39:39 +00:00
rvelices
7397c8d4c2 - better code in filter.inc.php (remove unused code + filter is not reseted
when going to an unfiltered page)
- removed unnecessary filtered pages from config_default (especially admin !!!)
- removed flat recent category icon from irrelevant pages
- mysterious code comment appeared in picture.php

git-svn-id: http://piwigo.org/svn/trunk@1711 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-01-11 05:10:16 +00:00
rvelices
1e7b286faa feature 606: search engine spider restrictions (meta robots)
git-svn-id: http://piwigo.org/svn/trunk@1703 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-01-09 01:30:02 +00:00
rub
4a4f72cbc3 Fix Feature Issue ID 0000585.
Convergence of exif configuration between local site and remote site.

Notes added on administration page where configuration is not OK.


git-svn-id: http://piwigo.org/svn/trunk@1682 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-12-28 00:06:06 +00:00
rub
cab8f98c4a Feature Issue ID 0000601: Filter all public pages with only recent elements
It's a finalized version.
Obsolete code of draft are removed.

You can filter categories and images with recent date period on your screen selection.
In the future, filter could be easy done on other type data (plugin?)

You can flat categories and sub-categories with a recent date period of your choice.

Next, perhaps, a panel to choice recent date for the 2 features.

On draft, there have problem with MySql 5, be careful!

Css problem not resolved:
  - Menu "Categories" is bad centered
  - Icon on dark too on the top


git-svn-id: http://piwigo.org/svn/trunk@1677 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-12-21 21:38:20 +00:00
chrisaga
782a75bb8f improve page header : slightly prettier title and
first implementation of meta tags and rel links (see the wiki specs)
	some code improvements are still need.

git-svn-id: http://piwigo.org/svn/trunk@1627 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-12-02 16:46:15 +00:00
rvelices
b068137ddc - plugins can have full control over the path/url of the element/image/
thumbnail/high (it is possible now to have secure images, on the fly 
watermarking, mod download and media integrator plugins working together in 
any combination and without touching PWG core)

git-svn-id: http://piwigo.org/svn/trunk@1612 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-11-17 04:26:10 +00:00
rvelices
8f52e36a6f - deprecated get_thumbnail_src (still there for compatibility). use rather
get_thumbnail_path or get_thumbnail_url (these allow plugins to override)
- plugins can hook into index thumbnail display (items only so far)

git-svn-id: http://piwigo.org/svn/trunk@1596 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-11-07 03:37:57 +00:00
rvelices
bce8b9f680 plugins last modifications + events are triggered now from picture.php
git-svn-id: http://piwigo.org/svn/trunk@1590 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-11-01 05:54:35 +00:00
nikrou
e7f8b14269 function names are case-insensitive but it's a good idea to call functions
as they appear in their declaration. 
So all functions names that manipulate url like make_index_url() 
are write with lowercase


git-svn-id: http://piwigo.org/svn/trunk@1503 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-07-26 21:00:16 +00:00
rvelices
aaea0a1653 merge -r1287 from branch-1_6 to trunk
bug 349: Nicer display messages instead of "die" when urls cannot be 
solved (also set 404 status code for bots)

git-svn-id: http://piwigo.org/svn/trunk@1288 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-04-28 05:12:25 +00:00
rvelices
0510cfdc5a merge -r1285 in from branch-1_6 to trunk
bug 359: transform rating html A links to FORM because some bots rate 
pictures (even if rel="nofollow" is set)

git-svn-id: http://piwigo.org/svn/trunk@1286 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-04-28 04:38:36 +00:00
rub
9b7af68895 Issue ID 0000346:
o Fix Picture slideshow not working



git-svn-id: http://piwigo.org/svn/trunk@1247 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-04-21 21:09:47 +00:00
rvelices
86a90feddf merge -r1134 from branches/branch-1_6 into trunk
git-svn-id: http://piwigo.org/svn/trunk@1135 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-04-08 19:42:11 +00:00
plegall
969ebbf4f1 improvement: on picture.php, show title calculated in
include/section_init.inc.php instead of nothing.


git-svn-id: http://piwigo.org/svn/trunk@1128 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-04-05 20:55:26 +00:00
plegall
42abf4c576 improvement: tags replace keywords. Better data model, less
limitations. Each image can be associated to as many tag as needed. Tags can
contain non ASCII characters. Oriented navigation with tags by association.


git-svn-id: http://piwigo.org/svn/trunk@1119 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-04-02 22:26:19 +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
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
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
rvelices
97b681f1fa URL rewrite for chronology: uses $page['chronology'] and
$page['chronology_date']. $page['chronology'] is an array with 'field', 
'style' and 'view' keys. This is step 1.

git-svn-id: http://piwigo.org/svn/trunk@1086 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-03-17 04:13:19 +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
rub
7eb6e6ca1f Step 1 improvement issue 0000127:
o Add field enabled_high of table #_user_infos
  o Add $conf['newuser_default_enabled_high']
  o Used field on picture.php



git-svn-id: http://piwigo.org/svn/trunk@1078 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-03-13 23:27:34 +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
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
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
d4646f39d2 calendar: added posted/created chronology
calendar: added a where are we bar (like: created/2005/august)

calendar: possibility to hide the All/Any buttons ($conf['calendar_show_any'])

calendar: possibility to display a single navigation bar instead of 
several navigation bars ($conf['calendar_multi_bar'])

calendar: tried to simplify code and improve readability 
(still requires a review)

git-svn-id: http://piwigo.org/svn/trunk@1057 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-02-24 05:58:48 +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
rvelices
347d2e34b3 fix: permissioning not working (2 bugs)
fix: locked gallery cannot be unlocked (impossible to login)

improvement: nicer display in redirect.tpl

improvement: when a page is not accessible because of permissions (accessed 
through bookmark or email), redirect to identification.php and after 
identification to the initially requested page


git-svn-id: http://piwigo.org/svn/trunk@1052 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-02-23 05:12:32 +00:00
rvelices
34538a62f4 new calendar completely integrated
git-svn-id: http://piwigo.org/svn/trunk@1051 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-02-23 02:30:19 +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
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
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
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
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
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
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
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
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