aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bug on Windows for date 1970-01-01 : Windows refuses to work with 1970-01-01plegall2004-11-241-1/+3
| | | | | | | 00:00:00, "he" thinks it's prior to midnight... Let's force midday ! git-svn-id: http://piwigo.org/svn/trunk@618 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug corrected for multipages view on list special categoryplegall2004-11-241-0/+2
| | | | git-svn-id: http://piwigo.org/svn/trunk@617 68402e56-0260-453c-a942-63ccdbb3a9ee
* changing name of key from none to history_i1plegall2004-11-241-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@616 68402e56-0260-453c-a942-63ccdbb3a9ee
* Drop of PRIMARY Key on history table.gweltas2004-11-241-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@615 68402e56-0260-453c-a942-63ccdbb3a9ee
* - global categories' options : instead of N horizontal tabs on a singleplegall2004-11-2316-472/+346
| | | | | | | | | | | | | | | | | | | | | | | | | | | page, N options in the left menu (but the same backend) - categories.global_rank : new calculated field. It gives a global rank of the category among all others (updated during ordering) - category.php page : menu is generated faster thanks to categories.global_rank, recursivity becomes useless :-) - new function to display select box with a set of categories : display_select_cat_wrapper - cat_options : instead of using 1 multiselect for true/false items, using 1 multiselect for true, and another one for false. The form provides buttons with arrows to switch categories from one multiselect to another - deletion of obsolete function display_categories (working with the old template system) - deletion of obsolete functions get_user_plain_structure, create_user_structure, get_user_subcat_ids, update_structure, count_images : useless thanks to global_rank git-svn-id: http://piwigo.org/svn/trunk@614 68402e56-0260-453c-a942-63ccdbb3a9ee
* dirname function doesn't leave last "/" character, we add itplegall2004-11-211-4/+4
| | | | git-svn-id: http://piwigo.org/svn/trunk@613 68402e56-0260-453c-a942-63ccdbb3a9ee
* optimization : instead of reading each $conf['calendar_datefield'] forplegall2004-11-213-19/+21
| | | | | | | | | matching YEAR() and MONTH(), use of SQL statement BETWEEN ... AND ... on the date field + new index image_i5 on date_creation (default date field for calendar) git-svn-id: http://piwigo.org/svn/trunk@612 68402e56-0260-453c-a942-63ccdbb3a9ee
* takes not only the first keyword in IPTC field 2#025plegall2004-11-201-7/+28
| | | | git-svn-id: http://piwigo.org/svn/trunk@611 68402e56-0260-453c-a942-63ccdbb3a9ee
* - optimization : representative picture becomes mandatory for a non emptyplegall2004-11-207-153/+169
| | | | | | | | | | | | | | | | | | | | | | | | category. So, at each insertion in images table for a category, a new representative element is elected (by rand). This must be improved by not reelcting a random picture admin set an element as representative manually. - optimization : recent cats page only needs 2 queries instead of 3*N (N categories to display). The bad point is that it shows representative element of recent cat and not a random element among recently added. - optimization : empty cats page only needs 1 query per non empty sub category instead of... a lot. For each sub category, PhpWebGallery shows the representative element of a category chosen randomly in sub cats. Thus, get_non_empty_subcat_ids and get_first_non_empty_cat_id becomes obsolete. - new function get_cat_display_name_cache to show category names with a caching for all gallery categories names. This function, to the contrary of get_cat_display_name shows names in the correct order... git-svn-id: http://piwigo.org/svn/trunk@610 68402e56-0260-453c-a942-63ccdbb3a9ee
* New CSS usage.gweltas2004-11-181-4/+4
| | | | git-svn-id: http://piwigo.org/svn/trunk@609 68402e56-0260-453c-a942-63ccdbb3a9ee
* Categories management icon updategweltas2004-11-187-3/+24
| | | | git-svn-id: http://piwigo.org/svn/trunk@608 68402e56-0260-453c-a942-63ccdbb3a9ee
* Unification of "Return to main page" entry in the language files.gweltas2004-11-1813-47/+52
| | | | git-svn-id: http://piwigo.org/svn/trunk@607 68402e56-0260-453c-a942-63ccdbb3a9ee
* - images.path column added to reduce database accessplegall2004-11-1615-170/+103
| | | | | | | | | | - function mass_inserts moved from admin/remote_sites.php to admin/include/function.php - function mass_inserts used in admin/update.php git-svn-id: http://piwigo.org/svn/trunk@606 68402e56-0260-453c-a942-63ccdbb3a9ee
* category random replaced by a more generic category : list. You give a listplegall2004-11-155-23/+94
| | | | | | | | | | | | | of element identifiers and it creates a page virtual temporary category. random.php generates a randomized list of element id visible to the user (according to permissions) and redirects to category.php. Major problem : elements order is in id ascending order, I don't know how to change order when having id1,id2,id3 and id2,id3,id1 (the display order is the same) git-svn-id: http://piwigo.org/svn/trunk@605 68402e56-0260-453c-a942-63ccdbb3a9ee
* - admin/cat_options page really added this time : manage options for theplegall2004-11-153-0/+400
| | | | | | | whole categories tree : uploadable, commentable, status and visible git-svn-id: http://piwigo.org/svn/trunk@604 68402e56-0260-453c-a942-63ccdbb3a9ee
* - since categories.site_id can be NULL (for virtual categories), virtualplegall2004-11-151-24/+63
| | | | | | | | | | | categories could not be displayed because of a join query with sites table - get_cat_info function refactored - new function get_subcat_ids based on regular expression query git-svn-id: http://piwigo.org/svn/trunk@603 68402e56-0260-453c-a942-63ccdbb3a9ee
* - admin/cat_options page added : manage options for the whole categoriesplegall2004-11-1319-63/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tree (uploadable, commentable). status and visible will be soon added - admin.php : $conf_link var to avoid lines longer than 79 characters - config.upload_available configuration parameter disappear : it's simpler to manage with cat_options - config.show_comments idem : new column categories.commentable, each categories can be commentable or not - categories.site_id becomes a nullable column : a virtual category does belong to no site - function display_select_categories has a new argument : $CSS_classes array to optionnaly assign a CSS class to each category in the select field - added informations in include/config.inc.php for setting default value of : - categories.visible - categories.status - categories.uploadable - categories.commentable - 2 new indexes images_i3(average_rate) and images_i4(hit) : optimizes best rated and most visited categories git-svn-id: http://piwigo.org/svn/trunk@602 68402e56-0260-453c-a942-63ccdbb3a9ee
* - IPTC mapping done in include/config.inc.phpplegall2004-11-101-1/+12
| | | | | | | | | | | - file extensions in $conf['file_ext'] are case sensitive (contrary to what was said) - a user (choubs) told me that the correct mapping for image name was 2#005 (OBJECTNAME) and not 2#085 (BYTITLE) git-svn-id: http://piwigo.org/svn/trunk@601 68402e56-0260-453c-a942-63ccdbb3a9ee
* IPTC mapping done in include/config.inc.phpplegall2004-11-101-7/+3
| | | | git-svn-id: http://piwigo.org/svn/trunk@600 68402e56-0260-453c-a942-63ccdbb3a9ee
* Before 1970, Microsoft Windows can't mktime. format_date changed was changedplegall2004-11-091-20/+33
| | | | | | | to avoid mktime unless year is after 1970 or PHP_OS is not Windows git-svn-id: http://piwigo.org/svn/trunk@599 68402e56-0260-453c-a942-63ccdbb3a9ee
* when picture size exceeds user maximum display size, the link was on theplegall2004-11-091-1/+1
| | | | | | | same page : now it shows the file in the browser git-svn-id: http://piwigo.org/svn/trunk@598 68402e56-0260-453c-a942-63ccdbb3a9ee
* verifies whether the file has a picture extension before trying getimagesize ↵plegall2004-11-091-1/+2
| | | | | | function git-svn-id: http://piwigo.org/svn/trunk@597 68402e56-0260-453c-a942-63ccdbb3a9ee
* add GPL license in COPYING file to comply with... GPLz0rglub2004-11-061-0/+340
| | | | git-svn-id: http://piwigo.org/svn/trunk@596 68402e56-0260-453c-a942-63ccdbb3a9ee
* README files moved to doc/READMEz0rglub2004-11-062-0/+76
| | | | git-svn-id: http://piwigo.org/svn/trunk@595 68402e56-0260-453c-a942-63ccdbb3a9ee
* README files moved to doc directoryz0rglub2004-11-062-76/+0
| | | | git-svn-id: http://piwigo.org/svn/trunk@594 68402e56-0260-453c-a942-63ccdbb3a9ee
* update headers to comply with GPLz0rglub2004-11-0668-274/+273
| | | | git-svn-id: http://piwigo.org/svn/trunk@593 68402e56-0260-453c-a942-63ccdbb3a9ee
* - DEFAULT_LANGUAGE constant moved to $conf['default_language']z0rglub2004-11-055-9/+16
| | | | | | | | - DEBUG constant divided into $conf['show_queries'] and $conf['show_gt'] (display generation time at the bottom of each page) git-svn-id: http://piwigo.org/svn/trunk@592 68402e56-0260-453c-a942-63ccdbb3a9ee
* in queries table names use the constant and not hard coded table namez0rglub2004-11-041-15/+21
| | | | git-svn-id: http://piwigo.org/svn/trunk@591 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug correction : if no category found, no element to search in get_filelistz0rglub2004-11-021-0/+5
| | | | git-svn-id: http://piwigo.org/svn/trunk@590 68402e56-0260-453c-a942-63ccdbb3a9ee
* - synchronization interface redesigned : a form lets user choose option ofz0rglub2004-11-0113-213/+232
| | | | | | | | | | dirs/files/metadata sync on all categories or a defined one (including subcategories) - database sync is only available through update.php git-svn-id: http://piwigo.org/svn/trunk@589 68402e56-0260-453c-a942-63ccdbb3a9ee
* - differentiation of links "up to thumbnails" and "home"z0rglub2004-10-303-9/+14
| | | | git-svn-id: http://piwigo.org/svn/trunk@588 68402e56-0260-453c-a942-63ccdbb3a9ee
* - function mysql_query replaced by pwg_query : the same with debuggingz0rglub2004-10-3040-289/+299
| | | | | | | | | features - by default, DEBUG is set to 0 (off) git-svn-id: http://piwigo.org/svn/trunk@587 68402e56-0260-453c-a942-63ccdbb3a9ee
* pwg_representative and pwg_high directories are reserved directories forz0rglub2004-10-251-2/+6
| | | | | | | PhpWebGallery git-svn-id: http://piwigo.org/svn/trunk@586 68402e56-0260-453c-a942-63ccdbb3a9ee
* - bug 56 : wrong error message for exceeding filesize picturez0rglub2004-10-251-3/+3
| | | | | | | - bug 40 : case issue for uploaded pictures git-svn-id: http://piwigo.org/svn/trunk@585 68402e56-0260-453c-a942-63ccdbb3a9ee
* - new column : metadata synchronizationz0rglub2004-10-241-3/+23
| | | | | | | | - picture for each category is segmented in src, alt and title -> no HTML code in cat_list.php git-svn-id: http://piwigo.org/svn/trunk@584 68402e56-0260-453c-a942-63ccdbb3a9ee
* added messages for category metadata update, virtual category add/deletionz0rglub2004-10-241-1/+5
| | | | git-svn-id: http://piwigo.org/svn/trunk@583 68402e56-0260-453c-a942-63ccdbb3a9ee
* - bug correction : only local categories can be metadata synchronizedz0rglub2004-10-241-4/+12
| | | | git-svn-id: http://piwigo.org/svn/trunk@582 68402e56-0260-453c-a942-63ccdbb3a9ee
* - debug code deletionz0rglub2004-10-241-2/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@581 68402e56-0260-453c-a942-63ccdbb3a9ee
* - complete refactoringz0rglub2004-10-241-168/+305
| | | | | | | - possibility to update metadata for a category git-svn-id: http://piwigo.org/svn/trunk@580 68402e56-0260-453c-a942-63ccdbb3a9ee
* - refactoring of comments.phpz0rglub2004-10-2312-391/+321
| | | | | | | | | | | | | | | | | - creation of function get_thumbnail_src used everywhere a thumbnail must be displayed - creation of function parse_comment_content (used in comments.php and picture.php) - concerning undefined index on arrays retrieved in database, instead of testing possibly unset values, use of @ operator (smarter...) - add pre tag in default.css stylesheet for debugging purpose (need to have left aligned text) git-svn-id: http://piwigo.org/svn/trunk@579 68402e56-0260-453c-a942-63ccdbb3a9ee
* use of PHPWG_ROOT_PATH constant instead of './'z0rglub2004-10-231-1/+2
| | | | git-svn-id: http://piwigo.org/svn/trunk@578 68402e56-0260-453c-a942-63ccdbb3a9ee
* can display thumbnail for non picture elementsz0rglub2004-10-232-12/+37
| | | | git-svn-id: http://piwigo.org/svn/trunk@577 68402e56-0260-453c-a942-63ccdbb3a9ee
* search links in picture informations : author, date_available, date_creationz0rglub2004-10-231-10/+36
| | | | git-svn-id: http://piwigo.org/svn/trunk@576 68402e56-0260-453c-a942-63ccdbb3a9ee
* - refactoringz0rglub2004-10-231-104/+133
| | | | | | | - PHP Warnings correction git-svn-id: http://piwigo.org/svn/trunk@575 68402e56-0260-453c-a942-63ccdbb3a9ee
* HTML small bug : ">" must be represented as ">" when not used in tagz0rglub2004-10-231-1/+1
| | | | | | | delimiters git-svn-id: http://piwigo.org/svn/trunk@574 68402e56-0260-453c-a942-63ccdbb3a9ee
* there was a bug in the mysql structure script generator : when a column wasz0rglub2004-10-231-91/+91
| | | | | | | nullable the script said the opposite git-svn-id: http://piwigo.org/svn/trunk@573 68402e56-0260-453c-a942-63ccdbb3a9ee
* refactoring : rewrite of get_cat_display_name function headerz0rglub2004-10-231-6/+14
| | | | git-svn-id: http://piwigo.org/svn/trunk@572 68402e56-0260-453c-a942-63ccdbb3a9ee
* admin/infos_image:$page['nb_image_page'] is replaced byz0rglub2004-10-231-0/+4
| | | | | | | | $conf['info_nb_elements_page'] : number of item to display on admin/infos_images.php page git-svn-id: http://piwigo.org/svn/trunk@571 68402e56-0260-453c-a942-63ccdbb3a9ee
* - code refactoringz0rglub2004-10-231-143/+177
| | | | | | | - PHP warnings corrections git-svn-id: http://piwigo.org/svn/trunk@570 68402e56-0260-453c-a942-63ccdbb3a9ee
* code refactoring for function get_cat_display_namez0rglub2004-10-211-14/+32
| | | | git-svn-id: http://piwigo.org/svn/trunk@569 68402e56-0260-453c-a942-63ccdbb3a9ee