aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_html.inc.php (follow)
Commit message (Collapse)AuthorAgeFilesLines
* merge -r2069 from branch-1_7 to trunkrvelices2007-07-191-3/+9
| | | | | | added 2 events: get_categories_menu_sql_where and get_html_menu_category in order to allow personalisation of the category menu git-svn-id: http://piwigo.org/svn/trunk@2070 68402e56-0260-453c-a942-63ccdbb3a9ee
* merge r2052 from branch-1_7 to trunkrvelices2007-07-071-2/+14
| | | | | | - fix set_status_header for fastCGI installations that are strict in terms of http protocol (1.0 or 1.1) git-svn-id: http://piwigo.org/svn/trunk@2053 68402e56-0260-453c-a942-63ccdbb3a9ee
* Resolved issue 0000697: with generic user a author name is necessary to ↵rub2007-06-051-1/+1
| | | | | | | | | 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
* Add DateTime on administration introduction page (Useful to help user on the ↵rub2007-03-091-10/+11
| | | | | | | | | | forum, ...) Move history configuration in a other tab. Use translation on picture hint (Kb). Show hint oh the menu text (not only on counter) git-svn-id: http://piwigo.org/svn/trunk@1884 68402e56-0260-453c-a942-63ccdbb3a9ee
* 0000662: Recent elements don't use sometimes time and not truncated datetimerub2007-03-071-2/+9
| | | | | | | & Standardize system date used git-svn-id: http://piwigo.org/svn/trunk@1876 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 657: permalinks for categoriesrvelices2007-02-281-11/+7
| | | | git-svn-id: http://piwigo.org/svn/trunk@1866 68402e56-0260-453c-a942-63ccdbb3a9ee
* - refactoring page['category'] before 1.7 releaservelices2007-02-271-33/+26
| | | | | | | | | 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
* Improvement for PWG installation:rub2007-02-251-19/+1
| | | | | | | | o Installation is now with new colors o On selected language, page are reload in order to display page with selected language git-svn-id: http://piwigo.org/svn/trunk@1855 68402e56-0260-453c-a942-63ccdbb3a9ee
* Plugins:rvelices2007-02-231-0/+17
| | | | | | | | | | | | | | | | | - display author and and author url (if present) on plugin admin page - uniformized versions/authors... for all plugins in svn - security fix (html escape name, version, uri, author... to avoid javascript injection which could automatically simulate click on Install) - added confirmation for install/uninstall plugins Web services: - web service explorer now caches method details in order to avoid unnecessary web calls - web service explorer can now send parameters as arrays - web service explorer uses now prototype.js version 1.5 - small improvements - added and use function bad_request (sends http status code 400) git-svn-id: http://piwigo.org/svn/trunk@1852 68402e56-0260-453c-a942-63ccdbb3a9ee
* o Proposition: improved display of 'x images in y sub-categories' or 'x ↵rub2007-02-221-1/+2
| | | | | | | | images in this category' for cases when categories contain both images and sub-categories o Good idea of this new way for way conf['guest_access'], but I kept last implementation for access methods (Could be useful on future development) git-svn-id: http://piwigo.org/svn/trunk@1851 68402e56-0260-453c-a942-63ccdbb3a9ee
* - without subcatify, category thumbnail alt text is 'x images in y ↵rvelices2007-02-201-7/+6
| | | | | | | | | sub-categories' - improved display of 'x images in y sub-categories' or 'x images in this category' for cases when categories contain both images and sub-categories - small lang improvement (plural 'Images within the' instead 'Image within the') git-svn-id: http://piwigo.org/svn/trunk@1840 68402e56-0260-453c-a942-63ccdbb3a9ee
* 0000645: HTML Conformity (Temporary fixed)vdigital2007-02-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Description 1- tags.php/tags.tpl Need to be fixed more... see FIXME in tags.tpl when no tags are available. 2- search.php => Remove class="bouton" : Done 0000648: CSS Conformity (1) (Partly fixed) Description clear/theme.css + dark/theme 54 #content UL.thumbnails SPAN.wrap2:hover Propriété érronée : background-color AntiqueWhite n'est pas une valeur de color : AntiqueWhite 60 #content UL.thumbnailCategories DIV.thumbnailCategory:hover Propriété érronée : background-color AntiqueWhite n'est pas une valeur de color : AntiqueWhite 66 #content UL.thumbnailCategories DIV.thumbnailCategory:hover A Propriété érronée : background-color AntiqueWhite n'est pas une valeur de color : AntiqueWhite wipi/theme.css et p0w0 274 .2nmore En CSS1, il était possible d'avoir un nom de classe commençant par un chiffre (".55xx") sauf s'il s'agissait d'une dimension (".55cm"). En CSS2, de tels noms sont analysés comme étant des dimensions inconnues, pour permettre l'ajout de nouvelles unités).To make ".2nmore" a valid class, CSS2 requires the first digit to be escaped (".\32nmore") w0p0 247 Le pseudo-élément ::after ne peut apparaitre dans le contexte css2 247 #content H2 Propriété érronée : content leader(dotted) n'est pas une valeur de content : leader(dotted) git-svn-id: http://piwigo.org/svn/trunk@1830 68402e56-0260-453c-a942-63ccdbb3a9ee
* tags returned by get_all_tags, get_available_tags contain id key instead of ↵rvelices2007-02-141-2/+2
| | | | | | | | tag_id (as expected by make_index_url, as $page['tags'] was and as the database model is) git-svn-id: http://piwigo.org/svn/trunk@1815 68402e56-0260-453c-a942-63ccdbb3a9ee
* - correct php warnings (section_init and mass_inserts)rvelices2007-02-081-8/+4
| | | | | | | | | - flat category view url is now 'flat' instead of 'flat_cat' (it is nicer and shorter) - small html validation (double class attribute) - removed unnecessary class="" - changed 2 times hard coded index.php?recent_pics with make_index_url(...) git-svn-id: http://piwigo.org/svn/trunk@1789 68402e56-0260-453c-a942-63ccdbb3a9ee
* Issue 0000614: Display hits under thumbnails like comments countervdigital2007-01-301-0/+13
| | | | | | | - Comments are not plurial < 2 - hits and comments have specific classes for css control git-svn-id: http://piwigo.org/svn/trunk@1769 68402e56-0260-453c-a942-63ccdbb3a9ee
* Undo r1677 functions_html.inc.php, because links are wrong.rub2007-01-231-4/+3
| | | | | | | | | I wanted to add flat_cat on categories url, but I will keep same comportment of the calendar. Some improvements when updating #_config table git-svn-id: http://piwigo.org/svn/trunk@1748 68402e56-0260-453c-a942-63ccdbb3a9ee
* - revert feature 564: log the login of each user; but add the possibility to bervelices2007-01-231-0/+1
| | | | | | | | | | | | done by a plugin - create a "standard" way to define PHP functions that we use but might not be available in the current php version - when a comment is rejected (spam, anti-flood etc), put the content back to the browser in case there is a real user behind it - now a comment can be entered only if the page was retrieved between 2 seconds ago and 1 hour ago git-svn-id: http://piwigo.org/svn/trunk@1744 68402e56-0260-453c-a942-63ccdbb3a9ee
* Feature Issue ID 0000601: Filter all public pages with only recent elementsrub2006-12-211-2/+3
| | | | | | | | | | | | | | | | | | | | | 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
* - feature 599: option to forbid user registrationrvelices2006-12-131-0/+17
| | | | | | | - 1 language cleanup - added page_forbidden function (sends 403) git-svn-id: http://piwigo.org/svn/trunk@1652 68402e56-0260-453c-a942-63ccdbb3a9ee
* Feature Issue ID 0000602: Redirect must be done by html or httprub2006-12-111-2/+2
| | | | | | | | | | | Redirect it's only done by the html method but must be done too with http method. Creation of two functions redirect_http and redirect_html. Function redirect calls one or other functions follow $conf or parameters. $conf value are true on BSF, in order to check modifications. Must be set to false on RC. git-svn-id: http://piwigo.org/svn/trunk@1649 68402e56-0260-453c-a942-63ccdbb3a9ee
* - new function set_status_header (set http status code)rvelices2006-12-081-6/+26
| | | | | | - correction on recent/recent_by_child icons git-svn-id: http://piwigo.org/svn/trunk@1643 68402e56-0260-453c-a942-63ccdbb3a9ee
* - remove #user_cache_categories.is_child_date_lastrvelices2006-12-071-27/+36
| | | | | | | | - optimize code in get_icon - correct css font-wigth:italic to font-style:italic - aditionnal check on $conf['authorize_remembering'] before allowing auto_login git-svn-id: http://piwigo.org/svn/trunk@1641 68402e56-0260-453c-a942-63ccdbb3a9ee
* Resolved Issue ID 0000299:rub2006-12-011-17/+30
| | | | | | | | | | | o Add (new) icon of parent category with children categories including new images o Improved display text for images count o Improved (a little) mass_* functions More explications on the forum. You must call directly upgrade_feep.php (http://127.0.0.1/BSF/upgrade_feed.php for example) git-svn-id: http://piwigo.org/svn/trunk@1624 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 479: when more than 3 tags selected, be able to remove one tag rvelices2006-11-141-0/+48
| | | | | | from the multiple tags git-svn-id: http://piwigo.org/svn/trunk@1606 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 571: getimagesize error (missing PHPWG_ROOT_PATH)rvelices2006-10-311-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@1586 68402e56-0260-453c-a942-63ccdbb3a9ee
* comments.php: cleanup url (t=1 in the url for an unknown reason) and image rvelices2006-10-171-1/+2
| | | | | | urls work now with all url styles git-svn-id: http://piwigo.org/svn/trunk@1563 68402e56-0260-453c-a942-63ccdbb3a9ee
* merge -r1308:1309 from branch 1.6 to trunk (bug 367 fixed)plegall2006-05-151-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@1310 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 358 fixed : Accent are not correctly displayed in category listingchrisaga2006-04-291-2/+2
| | | | | | | | | Removed calls to htmlentities() improvement : charset added in HTTP header so browser's automatic encoding works even if httpd is not netto latin1 revert to original l10n() : use of htmlentities() didn't solve bug in IE tooltips git-svn-id: http://piwigo.org/svn/trunk@1290 68402e56-0260-453c-a942-63ccdbb3a9ee
* merge -r1287 from branch-1_6 to trunkrvelices2006-04-281-0/+18
| | | | | | | 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
* merge branch 1.6 r1274:1275 into trunk (useless code)chrisaga2006-04-261-1/+0
| | | | git-svn-id: http://piwigo.org/svn/trunk@1276 68402e56-0260-453c-a942-63ccdbb3a9ee
* - merge branch 1.6 r1270:1271 into trunk (bug 351)chrisaga2006-04-251-1/+2
| | | | git-svn-id: http://piwigo.org/svn/trunk@1272 68402e56-0260-453c-a942-63ccdbb3a9ee
* - improve : add some htmlentities() to clean category names and descripion. ↵chrisaga2006-04-221-3/+3
| | | | | | Still more to do. git-svn-id: http://piwigo.org/svn/trunk@1259 68402e56-0260-453c-a942-63ccdbb3a9ee
* - HTML validation : get_html_tag_selection() must never return an empty list ↵chrisaga2006-04-181-0/+4
| | | | | | (<ul></ul>) git-svn-id: http://piwigo.org/svn/trunk@1201 68402e56-0260-453c-a942-63ccdbb3a9ee
* improvement: urls for tags can contain now only the tag or the id and tagrvelices2006-04-061-5/+24
| | | | | | | | | | | | | | | | | improvement: urls for category can be now id and category names (instead of only id) improvement: added 2 indexes (#image_tag.tag_id and #tags.url_name) improvement: identification, register, search pages automatically set focus on first form input improvement: focus, nofocus css class now valid for all forms fix: category comment is tag stripped in category_subcats.inc.php (otherwise issues with html/scripts inside category comment) git-svn-id: http://piwigo.org/svn/trunk@1131 68402e56-0260-453c-a942-63ccdbb3a9ee
* improvement: tags replace keywords. Better data model, lessplegall2006-04-021-2/+51
| | | | | | | | 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
* fix: image_order cookie path fixed for url rewritingrvelices2006-03-301-2/+28
| | | | | | | | | | | | | improve: add function access_denied called when check_status or check_restrictions fail fix: french language correction fix: remove php warnings in clean_iptc_value split search functions into include/functions_search.inc.php git-svn-id: http://piwigo.org/svn/trunk@1113 68402e56-0260-453c-a942-63ccdbb3a9ee
* URL rewriting: capable of fully working with urls without ?rvelices2006-03-221-6/+19
| | | | | | | | | | | | | | | | | | | | | | | | 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
* URL rewriting: fix some old links, calendar simplification and prepare code rvelices2006-03-211-25/+25
| | | | | | 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
* bug fixed: create_navigation_bar take into account clean URL if requested.plegall2006-03-161-40/+46
| | | | | | | | | | | | | | | | | | 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
* new: cleaner URL. Instead of category.php?cat=search&search=123&start=42,plegall2006-03-151-7/+9
| | | | | | | | | | | | | | | | | | | | | | | 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
* merge -r1038:1039 from branches/branch-1_5 into trunk (bug 269 fixed)plegall2006-02-131-6/+28
| | | | | | | | 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
* improvement: $page['where'] string replaced by $page['items'].plegall2006-02-121-2/+4
| | | | | | | | | | | | | | | | | | | | | | | $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
* feature 77: standard navigation link - finalizedrvelices2006-02-101-24/+33
| | | | | | | | | 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
* merge branch 1.5 into trunk r1001:1002: bug 259 fixednikrou2006-02-091-7/+11
| | | | git-svn-id: http://piwigo.org/svn/trunk@1030 68402e56-0260-453c-a942-63ccdbb3a9ee
* improvement: got rid of num= _GET param in category.php (use only start=) sorvelices2006-01-271-4/+13
| | | | | | | | | | | | | | | | | 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
* Improve security of sessions: nikrou2006-01-151-10/+10
| | | | | | | - 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
* - merge -r974:975 from branch 1.5 (PHP warning bug fixed)plegall2005-12-091-0/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@976 68402e56-0260-453c-a942-63ccdbb3a9ee
* improve template : split theme from template itselfchrisaga2005-12-031-2/+1
| | | | | | | 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
* - report bug 206 correction and some template improvement from branch 1.5chrisaga2005-11-191-2/+2
| | | | | | | - feature 195 : add an "Admin" link under "Home" in the menu bar of the admin page git-svn-id: http://piwigo.org/svn/trunk@948 68402e56-0260-453c-a942-63ccdbb3a9ee
* - merge -r939:940 from branch-1_5 (bug fixed in HTML for category menu tree)plegall2005-11-181-15/+8
| | | | git-svn-id: http://piwigo.org/svn/trunk@941 68402e56-0260-453c-a942-63ccdbb3a9ee