aboutsummaryrefslogtreecommitdiffstats
path: root/include/section_init.inc.php (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-01-04Administration: happy new year 2009, all PHP headers updated.plegall1-1/+1
git-svn-id: http://piwigo.org/svn/branches/2.0@3046 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-18- php optims (small): remove/replace preg_xxx with faster simple string ↵rvelices1-8/+3
functions ... git-svn-id: http://piwigo.org/svn/branches/2.0@2772 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-11feature 169 added: ability to manually sort images inside a category. Aplegall1-5/+29
dedicated screen let the administrator sort the images (pur HTML, no JavaScript yet). The "rank" sort order is available only for a category without flat mode. New database column image_category.rank. git-svn-id: http://piwigo.org/svn/trunk@2517 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-07-23- normalize behaviour of query search versus std search (now both return ↵rvelices1-21/+6
items already sorted and permission checked); also more optimized sql queries (in some cases) git-svn-id: http://piwigo.org/svn/trunk@2451 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-07-12- bug 600: Page not found after a strong rating revise (and extended to most ↵rvelices1-34/+5
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-05- feature 832: Folders with no images sql optimizationrvelices1-4/+13
- recent pics are sorted by date descending, and only then by conf['order_by'] - updated prototype.js to version 1.6 git-svn-id: http://piwigo.org/svn/trunk@2424 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-05-03just some optimizations (especially for large dbs)rvelices1-7/+42
- 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-04-05Bug fixed: as rvelices notified me by email, my header replacement script wasplegall1-24/+0
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-04Modification: new header on PHP files, PhpWebGallery renamed Piwigo.plegall1-0/+21
git-svn-id: http://piwigo.org/svn/trunk@2297 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-04-04- an optimization of a Mysql query for tags (oddly but it's faster)rvelices1-6/+4
- now the dates in the RSS feed are always correct (and in GMT) git-svn-id: http://piwigo.org/svn/trunk@2296 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-01-30Replace old use of $lang by l10n function.rub1-8/+8
git-svn-id: http://piwigo.org/svn/trunk@2201 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-11-29Merge from branch-1_7: 2174patdenice1-1/+2
Add second parameter for render_category_description to differentiate both triggers in category_cats.inc.php and section_init.inc.php. Add render_page_banner trigger. git-svn-id: http://piwigo.org/svn/trunk@2175 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-10-16- quick search optimizations (less queries)rvelices1-0/+4
- added some meta_robots (noindex and nofollow) on popuphelp, search_rules and search seaction (googlebot gets crazy) git-svn-id: http://piwigo.org/svn/trunk@2138 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-10-12- fix plugin menu link broken with xamp (realpath behaves differently)rvelices1-1/+6
- complete quick search rewriting - now we can quote phrases as in google "New York" is not the same as New York - user comments not searched anymore (faster) - the big full text query does not use joins anymore (faster) - related tags not shown on the index page, but now you can see the matching tags and matching categories git-svn-id: http://piwigo.org/svn/trunk@2135 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-10-02- render_category_description and render_category_literal_description events ↵rvelices1-6/+11
refactoring git-svn-id: http://piwigo.org/svn/trunk@2117 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-05-02correct bug on one of my previous commits (flat for picture page)rvelices1-1/+1
git-svn-id: http://piwigo.org/svn/trunk@1996 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-04-27category image order not correctrvelices1-2/+2
git-svn-id: http://piwigo.org/svn/trunk@1983 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-04-26put some code from the huge section_init to 2 functionsrvelices1-205/+9
- parse_section_url does the exact opposite of make_section_in_url - parse_well_known_params_url does the exact opposite of add_well_known_params_in_url section_init is more readable and plugins can have their own views with the same url style this is not a bug correction but I will merge it to branch 1_7 to take advantage for a plugin git-svn-id: http://piwigo.org/svn/trunk@1980 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-04-13merge r1955 from branch-1_7 to trunk:rvelices1-2/+12
flat view small improvements (picture page on root category sorter urls and works in several cases) correction in permalinks admin (error was assignment in if instead of comparison) git-svn-id: http://piwigo.org/svn/trunk@1956 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-04-09merge revisions 1938 and 1949 from branch-1_7 to trunk:rvelices1-1/+1
dark theme correction permalink and category.php redirections are permanent (http code 301) instead of temporary (301) added rel nofollow for the metadata link on picture page changed h2 background color style in dark/mail-css (was not readable when images are not downloaded) git-svn-id: http://piwigo.org/svn/trunk@1950 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-03-08- plugin administration: small fix during activation phaservelices1-0/+3
- plugins: added 3 actions in category_cats.inc.php and 1 event that allow a plugin to decide if insertion to #history occurs - added a warning in section_init if script_basename() is not index or picture (I think we'll have issues on some servers with this function) - web service methods categories.getImages, tags.getImages and images.search return now the image comment git-svn-id: http://piwigo.org/svn/trunk@1880 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-03-070000662: Recent elements don't use sometimes time and not truncated datetimerub1-2/+3
& Standardize system date used git-svn-id: http://piwigo.org/svn/trunk@1876 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-02-28feature 657: permalinks for categoriesrvelices1-5/+68
git-svn-id: http://piwigo.org/svn/trunk@1866 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-02-27- refactoring page['category'] before 1.7 releaservelices1-15/+8
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-23Plugins:rvelices1-31/+8
- 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
2007-02-15- feature 642: display both subcategory thumbnails and element thumbnails (if arvelices1-53/+15
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-14- thumbnails creation for all local sites (not only site id 1)rvelices1-5/+0
- urls for images in notification (rss & mail) is now correct - removed "Recent pictures" from title in when the flat view is in effect - removed unnecessary class="" from comments.tpl - english language correction - removed unused web service files - set rating star button left & right margin to 0 (javascript) - admin menu - put site manager and synchronize together git-svn-id: http://piwigo.org/svn/trunk@1814 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-02-10Replace all flat_cat by flat.rub1-8/+8
git-svn-id: http://piwigo.org/svn/trunk@1800 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-02-08Issue 0000639: Force selected page on index.phprub1-13/+24
Continue the Radu idea, restrict more use of random list Issue 0000598: NBM: Add new informations Add css on mail Use user template for mail (on next commit, best control) Comment mass_inserts because don't with MySQL 4.1.9 git-svn-id: http://piwigo.org/svn/trunk@1792 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-02-08- correct php warnings (section_init and mass_inserts)rvelices1-20/+20
- 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
2007-02-07Issue 0000639: Force selected page on index.phprub1-2/+23
When page index.php is called without defined section, redirect to a page selected by random on a user list. git-svn-id: http://piwigo.org/svn/trunk@1788 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-01-15There are no filter enabled if filter configuration is empty (no icon, no ↵rub1-13/+11
functions, ...) New system for the filter page configuration View mode flat_recent_cat becomes flat_cat (recent period is removed because global filter is sufficient) Recent period of global filter must be defined "after" start parameter (default value is $user['recent_period']). git-svn-id: http://piwigo.org/svn/trunk@1722 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-01-11- better code in filter.inc.php (remove unused code + filter is not resetedrvelices1-34/+15
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-09feature 606: search engine spider restrictions (meta robots)rvelices1-8/+31
git-svn-id: http://piwigo.org/svn/trunk@1703 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-01-08Feature Issue ID 0000601: Filter all public pages with only recent elementsrub1-1/+1
Fix following problem: - if an image appears in several categories (virtual ones) - if you click on that image (the thumbnail) - i have several php warnings/errors and nothing is displayed git-svn-id: http://piwigo.org/svn/trunk@1701 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-01-02Issue ID 0000529 Re-Fixed.rub1-2/+2
Problem with "Options +MultiViews" .htaccess configuration. Merge branch-1_6 1688:1689 into BSF git-svn-id: http://piwigo.org/svn/trunk@1690 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-12-31Issue ID 0000529 Fixed.rub1-2/+2
Problem with $_SERVER['SCRIPT_FILENAME'] on IIS server Merge branch-1_6 1685:1686 into BSF git-svn-id: http://piwigo.org/svn/trunk@1687 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-12-27Fix Feature Issue ID 0000608: crash when asking random images with no images ↵rub1-4/+15
are allowed git-svn-id: http://piwigo.org/svn/trunk@1681 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-12-21Feature Issue ID 0000601: Filter all public pages with only recent elementsrub1-41/+130
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-01- sessions are always started (even for visitors)rvelices1-4/+2
- thumbnail order saved in the session instead of cookie git-svn-id: http://piwigo.org/svn/trunk@1623 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-11-14feature 479: when more than 3 tags selected, be able to remove one tag rvelices1-24/+2
from the multiple tags git-svn-id: http://piwigo.org/svn/trunk@1606 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-11-10git-svn-id: http://piwigo.org/svn/trunk@1604 ↵rvelices1-0/+2
68402e56-0260-453c-a942-63ccdbb3a9ee
2006-11-08- merge category_recent_cats and category_subcats into category_cats (a lot rvelices1-3/+3
of common code,and now representative selection works for recent cats...) - some replacements of get_thumbnail_src with get_thumbnail_url git-svn-id: http://piwigo.org/svn/trunk@1597 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-08-15feature 519: quick search (first version)rvelices1-4/+4
git-svn-id: http://piwigo.org/svn/trunk@1537 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-07-26feature 169: each category can have its own image orderrvelices1-0/+5
git-svn-id: http://piwigo.org/svn/trunk@1500 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-06-19bug 418: navigation bar in picture.php to the root of special categoriesrvelices1-4/+8
git-svn-id: http://piwigo.org/svn/trunk@1373 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-05-09merge -r1305 from branch-1_6 to trunkrvelices1-1/+4
fix: URLs not working with some ISPs that set _SERVER['PATH_INFO'] in a non standard way git-svn-id: http://piwigo.org/svn/trunk@1306 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-04-28merge -r1287 from branch-1_6 to trunkrvelices1-1/+5
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-21merge r1228 from branch-1_6 into trunkrvelices1-1/+1
bug 345: cannot browse categories (Club Internet modified web server provides PATH_INFO even if it is empty) fix 339: also added in create_listing_file.php git-svn-id: http://piwigo.org/svn/trunk@1229 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-04-06improvement: urls for tags can contain now only the tag or the id and tagrvelices1-38/+48
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