Commit graph

91 commits

Author SHA1 Message Date
plegall
713bc49746 feature #355, apply search by word on tags
we "simulate" a search by tag, but we still perform a "search by words" AND "search by tags", which lead to different result compared to "word on title OR file OR description OR tags"
2016-02-13 18:36:55 +01:00
plegall
c789347c51 happy new year 2016, all headers updated 2016-01-14 12:17:58 +01:00
plegall
bfe4ff3e2f fix #369 : make sure to include the search day
... with forcing time to 00:00:00 on "start" and 23:59:59 on "stop"
2015-11-02 12:23:55 +01:00
plegall
639edaa04b bug 3186: improved security on search.php
git-svn-id: http://piwigo.org/svn/trunk@30864 68402e56-0260-453c-a942-63ccdbb3a9ee
2015-01-08 13:06:27 +00:00
plegall
5d3075835b initialize variable
git-svn-id: http://piwigo.org/svn/trunk@29554 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-09-16 10:54:31 +00:00
plegall
478249d5d0 bug 3136: in author search listbox, do no count photos twice if they are associated to 2 albums
git-svn-id: http://piwigo.org/svn/trunk@29430 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-09-08 09:46:50 +00:00
rvelices
a61307e652 feature 3094: redesign of search form
- fix comments page filter form (css changes affected also that .filter form - simplified also css rules)
- better query for author list (using id for visible_images instead of image_id field)
- don't show author list if there is only one author

git-svn-id: http://piwigo.org/svn/trunk@28744 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-06-19 20:39:12 +00:00
plegall
f894f1208c feature 3094: redesign on search form, use selectize for categories
git-svn-id: http://piwigo.org/svn/trunk@28710 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-06-17 11:17:34 +00:00
plegall
6f8caf22ba feature 3093: search form, ability to select the list of properties on which
the search terms applies.

feature 3094: minor redesign on search form.


git-svn-id: http://piwigo.org/svn/trunk@28709 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-06-17 11:11:44 +00:00
plegall
583af81d3d feature 2563: do not display all tags as checkboxes on search.php. Use jQuery Selectize instead.
git-svn-id: http://piwigo.org/svn/trunk@28708 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-06-16 14:17:53 +00:00
plegall
0511ed2236 feature 3091: search.php (advanced search), display a list of known authors instead of a text field.
git-svn-id: http://piwigo.org/svn/trunk@28707 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-06-16 13:53:16 +00:00
mistic100
4bd32005b5 feature 3010 : replace trigger_action/event by trigger_notify/change
git-svn-id: http://piwigo.org/svn/trunk@28587 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-06-02 07:55:46 +00:00
plegall
7f39d5b695 bug 3020 and bug 3021 fixed: additionnal checks in search inputs
git-svn-id: http://piwigo.org/svn/trunk@26825 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-01-17 12:50:14 +00:00
mistic100
636650309a Update headers to 2014. Happy new year!!
git-svn-id: http://piwigo.org/svn/trunk@26461 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-01-05 00:19:25 +00:00
mistic100
ae707279a1 remove all array_push (50% slower than []) + some changes missing for feature:2978
git-svn-id: http://piwigo.org/svn/trunk@25018 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-19 17:43:04 +00:00
mistic100
2f08283864 feature 2978: remove useless sprintf in the core
git-svn-id: http://piwigo.org/svn/trunk@25005 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-19 11:04:11 +00:00
rvelices
ec50a59f75 replaced page_messages.php with a function to call
git-svn-id: http://piwigo.org/svn/trunk@20609 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-02-07 21:17:08 +00:00
plegall
4bc775e479 update Piwigo headers to 2013 (the end of the world didn't occur as expected on r12922)
git-svn-id: http://piwigo.org/svn/trunk@19703 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-01-01 12:35:02 +00:00
mistic100
5577aa4d76 feature:2747: Add triggers on all main pages "Call to undefined function triggr_action() in search.php on line 33"
git-svn-id: http://piwigo.org/svn/trunk@18749 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-10-25 20:28:14 +00:00
mistic100
cbb971db3f feature 2747: Add triggers on all main pages
git-svn-id: http://piwigo.org/svn/trunk@18063 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-09-20 12:16:45 +00:00
mistic100
8c4a87a0f5 feature:2538 little rework of messages system, now can be used on 'loc_end_index' and 'loc_end_picture'
git-svn-id: http://piwigo.org/svn/trunk@15578 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-06-06 20:29:30 +00:00
mistic100
112d730f3a update Piwigo headers to 2012, last change before the expected (or not) apocalypse
git-svn-id: http://piwigo.org/svn/trunk@12922 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-01-17 22:48:36 +00:00
mistic100
ca230a6f53 feature:2538 Make a unified messages management
use only $page['infos'] and $page['errors'] vars and and necessary template to all main pages

git-svn-id: http://piwigo.org/svn/trunk@12764 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-12-18 21:46:24 +00:00
mistic100
e38092f36c restore HOME links, change parameter name for remove menu on certain page
git-svn-id: http://piwigo.org/svn/trunk@10824 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-05-09 15:04:15 +00:00
mistic100
fdfe41e343 merge spread_menus to the core
git-svn-id: http://piwigo.org/svn/trunk@10812 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-05-07 15:55:10 +00:00
plegall
6db359c622 Happy new year 2011
Change "Piwigo - a PHP based picture gallery" into "Piwigo - a PHP based photo gallery"


git-svn-id: http://piwigo.org/svn/trunk@8728 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-01-18 00:02:52 +00:00
nikrou
ce187863e8 Bug 1730 fixed : search doesn't work when database engine is not mysql
For posgresql and sqlite date must allways use day and month with two diggits.

git-svn-id: http://piwigo.org/svn/trunk@6518 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-06-10 21:07:22 +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
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
c1d6177df9 Feature 1255 :
update pwg_db_insert_id() function.
PosgreSQL needs table name to retrieve last insert auto increment id.

git-svn-id: http://piwigo.org/svn/trunk@4892 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-15 19:49:04 +00:00
plegall
f107f5bf1a merge r4752 from branch 2.0 to trunk
bug 1401 fixed: let's use the mysql_real_escape_string on POST fields (even if
I was not able to reproduce any attack because fields are heavily processed
before any SQL query).


git-svn-id: http://piwigo.org/svn/trunk@4753 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-26 09:20:10 +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
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
d91d0ac444 - remember me cookie security improvement (the time when the cookie was generated is saved and checked in range [now-remember_me_length; now]
- tags improvements
 * pass to templates all fields in table #tags (handy for plugins such as type tags)
 * fix issue with tag letter when first letter is accentuated (utf-8)
 * tags are sorted on url_name instead of name (accentuated first letter chars are the same as without accent)
 * better use of columns in by letter display mode

git-svn-id: http://piwigo.org/svn/trunk@2409 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-07-01 02:09:21 +00:00
rvelices
7942dccf9b - move #categories.date_last and nb_images to #user_cache_categories
git-svn-id: http://piwigo.org/svn/trunk@2324 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-05-01 01:12:34 +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
c739232049 - migrate many templates to smarty
git-svn-id: http://piwigo.org/svn/trunk@2223 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-02-28 02:41:48 +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
vdigital
6295173652 Updates:
- Copyrights 2003-2007
- help
- Some HTML comform requests

git-svn-id: http://piwigo.org/svn/trunk@1903 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-03-13 22:44:45 +00:00
rvelices
58a359e3c1 - fill #searches.last_seen column
- small correction on my previous commit (functions_tag.inc.php)
- web service tags.getImages correction

git-svn-id: http://piwigo.org/svn/trunk@1816 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-02-14 05:45:20 +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
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
plegall
875a6b15c8 merge -r1312:1313 from branch 1.6 to trunk (bug 373 fixed)
git-svn-id: http://piwigo.org/svn/trunk@1314 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-05-15 22:21:08 +00:00
nikrou
a89ecb6e41 bug fixed: popuhelp (slash)
svn merge -r1248:1249 from branch-1_6 into trunk


git-svn-id: http://piwigo.org/svn/trunk@1250 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-04-21 21:16:37 +00:00
rvelices
bdceff32bc image sort order for tags
very minor code and language simplifications and corrections

git-svn-id: http://piwigo.org/svn/trunk@1125 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-04-05 02:01:36 +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
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