aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* - deletion : no mail notification anymore. Feature replaced by RSS feedplegall2005-08-241-42/+0
| | | | | | | | | | | | notification. - improvement : on waiting pictures management. Ability to validate all or reject all in one clic. - regrouped fields in admin/update git-svn-id: http://piwigo.org/svn/trunk@849 68402e56-0260-453c-a942-63ccdbb3a9ee
* - new : external authentication in another users table. Previous users tableplegall2005-08-081-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | is divided between users (common properties with any web application) and user_infos (phpwebgallery specific informations). External table and fields can be configured. - modification : profile.php is not reachable through administration anymore (not useful). - modification : in profile.php, current password is mandatory only if user tries to change his password. Username can't be changed. - deletion : of obsolete functions get_user_restrictions, update_user_restrictions, get_user_all_restrictions, is_user_allowed, update_user - modification : $user['forbidden_categories'] equals at least "-1" so that category_id NOT IN ($user['forbidden_categories']) can always be used. - modification : user_forbidden table becomes user_cache so that not only restriction informations can be stored in this table. git-svn-id: http://piwigo.org/svn/trunk@808 68402e56-0260-453c-a942-63ccdbb3a9ee
* - new function get_name_from_file to centralize the construction ofplegall2005-06-211-0/+25
| | | | | | | | | | | displayed name from the filename - new function l10n which returns the corresponding value from $lang if existing. Else, the key is returned. This means that if a language item is not translated, the key is displayed instead (better than nothing). git-svn-id: http://piwigo.org/svn/trunk@793 68402e56-0260-453c-a942-63ccdbb3a9ee
* - user list updated : ability to filter list on status. Function get_enumsplegall2005-04-301-0/+30
| | | | | | | comes back to retrieve the list of possible status in the database. git-svn-id: http://piwigo.org/svn/trunk@777 68402e56-0260-453c-a942-63ccdbb3a9ee
* - elements batch management : element_set page becomes the frontend toplegall2005-04-161-9/+37
| | | | | | | | | | | | | | | | | element_set_global and element_set_unit, infos_images (after a long time of use) become deprecated : the more powerful element_set is used instead. Consequently, batch management concerns caddie but also "normal categories". - refactoring code in admin.php to include the sub-file (clearer) - caddie : function fill_caddie replaces the code in category.php and can be used in admin/element_set.php - caddie : caddie table is added in delete_elements function git-svn-id: http://piwigo.org/svn/trunk@764 68402e56-0260-453c-a942-63ccdbb3a9ee
* - functions get_day_list and get_month_list moved from search.php toplegall2005-04-111-0/+56
| | | | | | | | | | | | | include/functions.inc.php : these functions are now also used in admin/element_set_global.php - elements batch management improved : ability to set the number of elements to display per line, ability to set {author, name, creation date} fields, ability to add and remove keywords, ability to take selected elements out of caddie git-svn-id: http://piwigo.org/svn/trunk@762 68402e56-0260-453c-a942-63ccdbb3a9ee
* - new feature : caddie. The purpose is batch management, especiallyplegall2005-03-251-0/+21
| | | | | | | | | | | concerning elements to categories associations. This is the very first release, needs many improvements. - new function : array_from_query. Firstly used by "caddie" feature, it may be useful in many cases. git-svn-id: http://piwigo.org/svn/trunk@755 68402e56-0260-453c-a942-63ccdbb3a9ee
* - no use of "realpath" function anymore : this function is too often buggyplegall2005-03-121-1/+1
| | | | | | | | and returns nothing (crash of template system as consequence...). The use of this function was not essential git-svn-id: http://piwigo.org/svn/trunk@749 68402e56-0260-453c-a942-63ccdbb3a9ee
* - bug fixed : errors in notification mails... $conf['webmaster'] asplegall2005-03-121-2/+2
| | | | | | | disappeared and $conf['version'] was replaced by PHPWG_VERSION git-svn-id: http://piwigo.org/svn/trunk@747 68402e56-0260-453c-a942-63ccdbb3a9ee
* - in case of SQL error, stop execution (prevents from errors inplegall2005-02-131-9/+2
| | | | | | | synchronization) git-svn-id: http://piwigo.org/svn/trunk@735 68402e56-0260-453c-a942-63ccdbb3a9ee
* - bug fixed : when a user is the guest user, login saved in history table isplegall2005-02-011-7/+13
| | | | | | | "guest" and not the localized version of guest username git-svn-id: http://piwigo.org/svn/trunk@725 68402e56-0260-453c-a942-63ccdbb3a9ee
* - highlight search results disabled before rewriteplegall2005-01-201-0/+3
| | | | git-svn-id: http://piwigo.org/svn/trunk@717 68402e56-0260-453c-a942-63ccdbb3a9ee
* - deletion of obsolete parameter $conf['max_LOV_categories']plegall2005-01-171-38/+0
| | | | | | | - deletion of obsolete function get_enums git-svn-id: http://piwigo.org/svn/trunk@706 68402e56-0260-453c-a942-63ccdbb3a9ee
* - the day of the week is not displayed when year is prior to 1970plegall2005-01-161-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@698 68402e56-0260-453c-a942-63ccdbb3a9ee
* - use template->parse instead of pparse. (exceptions for install.php andplegall2005-01-131-2/+3
| | | | | | | | | upgrade.php) - bug fixed : queries time and count were not displayed on a redirection git-svn-id: http://piwigo.org/svn/trunk@688 68402e56-0260-453c-a942-63ccdbb3a9ee
* - decrease refresh time to 0 secondsplegall2005-01-111-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@686 68402e56-0260-453c-a942-63ccdbb3a9ee
* all headers adapted to new year 2005, happy new yearplegall2005-01-071-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@675 68402e56-0260-453c-a942-63ccdbb3a9ee
* - upgrade scripts added for releases 1.3.xplegall2005-01-061-7/+36
| | | | | | | | | | | | | | | | | | | | | | | | | - my_error function moved from admin/include/functions.php to include/functions.inc.php - because MySQL temporary tables are not always authorized on creation, use a temporary table name (with the current microsecond) on a non temporary table (in mass_updates function) - ability to retrieve distant full directories (usefull in upgrade scripts) - global variables $count_queries and $queries_time moved into global array $page - get_cat_display_name displays category names in correct order : the one given by uppercats - function setup_style simplified - default value for configuration parameter "show_nb_comments" set to false (less queries by default) git-svn-id: http://piwigo.org/svn/trunk@672 68402e56-0260-453c-a942-63ccdbb3a9ee
* - bug fixed on upload : configuration variable $conf['upload_available'] hasplegall2004-12-301-1/+1
| | | | | | | | | | | | | | disappeared - by default, new categories are not "uploadable" - bug fixed on date displayed from Unix format : trying to find seconds while not provided - bug fixed on admin/waiting template to center submit button git-svn-id: http://piwigo.org/svn/trunk@667 68402e56-0260-453c-a942-63ccdbb3a9ee
* - register process partly rewrittenplegall2004-12-281-1/+26
| | | | git-svn-id: http://piwigo.org/svn/trunk@661 68402e56-0260-453c-a942-63ccdbb3a9ee
* - admin/update : filesystem synchronization process completelyplegall2004-12-271-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | rewritten. How to speed up sync ? by avoiding recursivity ! - admin/update : option to display verbose information details - admin/update : option to simulate only. No database insert, delete or update will be made - bug fixed : in admin/cat_list, if you delete a virtual category, you may create a gap in the rank list. This gap will generate errors when trying to move a category on this gap. Fixed by calling ordering and update_global_rank at category deletion. - admin/cat_list, only one query to insert a new virtual category (no need of a second query to update uppercats and global_rank) - for a given category, even if empty, the representing element must not be the one of a forbidden category for the current user - generation time optionnaly displayed on the bottom of each page becomes more price : number of SQL queries and SQL time added. git-svn-id: http://piwigo.org/svn/trunk@659 68402e56-0260-453c-a942-63ccdbb3a9ee
* 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
* - images.path column added to reduce database accessplegall2004-11-161-25/+10
| | | | | | | | | | - 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
* 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
* update headers to comply with GPLz0rglub2004-11-061-4/+4
| | | | git-svn-id: http://piwigo.org/svn/trunk@593 68402e56-0260-453c-a942-63ccdbb3a9ee
* - DEFAULT_LANGUAGE constant moved to $conf['default_language']z0rglub2004-11-051-1/+3
| | | | | | | | - 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
* - function mysql_query replaced by pwg_query : the same with debuggingz0rglub2004-10-301-18/+22
| | | | | | | | | features - by default, DEBUG is set to 0 (off) git-svn-id: http://piwigo.org/svn/trunk@587 68402e56-0260-453c-a942-63ccdbb3a9ee
* - refactoring of comments.phpz0rglub2004-10-231-0/+48
| | | | | | | | | | | | | | | | | - 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
* -First draft of history displaygweltas2004-09-261-2/+2
| | | | git-svn-id: http://piwigo.org/svn/trunk@537 68402e56-0260-453c-a942-63ccdbb3a9ee
* - huge refactoring of admin/configuration.php (reminder : tabs in code arez0rglub2004-09-201-1/+1
| | | | | | | | | | | | | | forbidden, only blank spaces are allowed) - in admin panel, remote site management is in "general" section and not in "configuration" section - when retrieving languages, the array keys must be the language code and not its display name (because 2 language codes might have the same display name) git-svn-id: http://piwigo.org/svn/trunk@528 68402e56-0260-453c-a942-63ccdbb3a9ee
* Minor bugs correctiongweltas2004-09-071-11/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@519 68402e56-0260-453c-a942-63ccdbb3a9ee
* - in admin/configuration, add new step with "sections" (general, comments,z0rglub2004-09-031-17/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | default, upload, metadata, sessions) - admin/configuration.php and its template have been higly simplificated by making things more generic : for example, for each configuration parameter, its name must correspond to the name we find in the config table and belongs to a section, in the lang array we find : - $lang['conf_<section>_<param>'] - $lang['conf_<section>_<param>_info'] - $lang['conf_<section>_<param>_error'] optionnaly - more described message when connection to database server is impossible - redefinitions of get_languages and get_templates functions - deletion of configuration parameters : webmaster, session_keyword - rename of configuration parameters : - default_lang => default_language - default_style => default_template git-svn-id: http://piwigo.org/svn/trunk@512 68402e56-0260-453c-a942-63ccdbb3a9ee
* add rating featurez0rglub2004-08-301-0/+34
| | | | git-svn-id: http://piwigo.org/svn/trunk@507 68402e56-0260-453c-a942-63ccdbb3a9ee
* - Deletion of obsolete functions in the administrative partgweltas2004-08-251-1/+1
| | | | | | | - Repair of virtual category management git-svn-id: http://piwigo.org/svn/trunk@496 68402e56-0260-453c-a942-63ccdbb3a9ee
* refresh time decreases from 5 seconds to 1z0rglub2004-08-251-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@495 68402e56-0260-453c-a942-63ccdbb3a9ee
* use of functions_html.inc.php instead of htmlfunctions.inc.phpz0rglub2004-08-061-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@477 68402e56-0260-453c-a942-63ccdbb3a9ee
* field comments.date becomes a datetime MySQL field type (instead of int)z0rglub2004-05-201-0/+6
| | | | git-svn-id: http://piwigo.org/svn/trunk@420 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 23 : search case insensitive BUT highlightning case sensitivez0rglub2004-03-311-8/+17
| | | | git-svn-id: http://piwigo.org/svn/trunk@409 68402e56-0260-453c-a942-63ccdbb3a9ee
* redirections modification : use of a HTML refresh page instead of header PHPz0rglub2004-03-311-0/+28
| | | | | | | | function. The purpose is to avoid redirections failure when extra characters are found in included PHP files. git-svn-id: http://piwigo.org/svn/trunk@405 68402e56-0260-453c-a942-63ccdbb3a9ee
* - Template migrationgweltas2004-03-261-6/+7
| | | | | | | | - Admin Control Panel migration - Category management git-svn-id: http://piwigo.org/svn/trunk@394 68402e56-0260-453c-a942-63ccdbb3a9ee
* New default template - User sidegweltas2004-02-261-5/+5
| | | | git-svn-id: http://piwigo.org/svn/trunk@375 68402e56-0260-453c-a942-63ccdbb3a9ee
* Split of langage filesgweltas2004-02-191-57/+5
| | | | git-svn-id: http://piwigo.org/svn/trunk@364 68402e56-0260-453c-a942-63ccdbb3a9ee
* header global refactoringz0rglub2004-02-111-18/+26
| | | | git-svn-id: http://piwigo.org/svn/trunk@362 68402e56-0260-453c-a942-63ccdbb3a9ee
* adding phpdocumentor variables to function get_enumsz0rglub2004-02-111-2/+3
| | | | git-svn-id: http://piwigo.org/svn/trunk@360 68402e56-0260-453c-a942-63ccdbb3a9ee
* Template modificationgweltas2004-02-071-6/+56
| | | | | | | Split of the french language file git-svn-id: http://piwigo.org/svn/trunk@351 68402e56-0260-453c-a942-63ccdbb3a9ee
* Merge of the 1.3.1 releasegweltas2004-02-021-50/+72
| | | | | | | | | Creation of an unique include file (common.php) Creation of an unique define file (include/constants.php) Modification of the installation procedure git-svn-id: http://piwigo.org/svn/trunk@345 68402e56-0260-453c-a942-63ccdbb3a9ee
* Modifyed header to be compliant with PhpDocumentorz0rglub2003-11-081-16/+25
| | | | git-svn-id: http://piwigo.org/svn/trunk@235 68402e56-0260-453c-a942-63ccdbb3a9ee
* define( CONSTANT, 'value' ) becomes define( "CONSTANT", 'value')z0rglub2003-11-031-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@231 68402e56-0260-453c-a942-63ccdbb3a9ee
* Using the same name for variables in ./include/mysql.inc.phpz0rglub2003-09-201-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@141 68402e56-0260-453c-a942-63ccdbb3a9ee
* Using PREFIX_INCLUDE to have strictly relative pathsz0rglub2003-09-151-5/+5
| | | | git-svn-id: http://piwigo.org/svn/trunk@114 68402e56-0260-453c-a942-63ccdbb3a9ee