aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php (follow)
Commit message (Collapse)AuthorAgeFilesLines
* - 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
* Mail notification for adminsz0rglub2003-09-101-0/+48
| | | | git-svn-id: http://piwigo.org/svn/trunk@85 68402e56-0260-453c-a942-63ccdbb3a9ee
* Multi categories for the same picturez0rglub2003-08-301-0/+26
| | | | git-svn-id: http://piwigo.org/svn/trunk@61 68402e56-0260-453c-a942-63ccdbb3a9ee
* improve the header of each filez0rglub2003-08-241-2/+4
| | | | git-svn-id: http://piwigo.org/svn/trunk@57 68402e56-0260-453c-a942-63ccdbb3a9ee
* instead of overriding individual keywords,you can add a keyword to all or ↵z0rglub2003-07-261-4/+1
| | | | | | remove it from all git-svn-id: http://piwigo.org/svn/trunk@39 68402e56-0260-453c-a942-63ccdbb3a9ee
* *** empty log message ***z0rglub2003-07-211-21/+8
| | | | git-svn-id: http://piwigo.org/svn/trunk@26 68402e56-0260-453c-a942-63ccdbb3a9ee
* *** empty log message ***z0rglub2003-07-011-9/+10
| | | | git-svn-id: http://piwigo.org/svn/trunk@21 68402e56-0260-453c-a942-63ccdbb3a9ee