aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php (follow)
Commit message (Collapse)AuthorAgeFilesLines
* plugins: first prototype versionrvelices2006-10-261-0/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@1578 68402e56-0260-453c-a942-63ccdbb3a9ee
* - put back config['session_length'] disappeared in r1493 but has always beenrvelices2006-10-201-23/+11
| | | | | | | | | | | | | used in the code (generates mysql errors on session garbage collector) - fix auto_login (die mysql when session timed out, but user has remember) - when a user reconnects from identification.php, the remember cookie was not deleted - fix all redirect warnings/errors (many changes - mainly in common.inc.php and user.inc.php) - reduced $conf['remember_me_length'] to 60 days, because now at each auto login the 60 days countdown restarts git-svn-id: http://piwigo.org/svn/trunk@1568 68402e56-0260-453c-a942-63ccdbb3a9ee
* put back the redirect function as it was in branch 1.6 (still not working ↵rvelices2006-10-191-19/+32
| | | | | | perfectly with the auto_login) git-svn-id: http://piwigo.org/svn/trunk@1567 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 564: logs in the history table each user login rvelices2006-10-191-14/+37
| | | | | | | feature 562: possibility to log page visits for any combination of administrators/users/guests git-svn-id: http://piwigo.org/svn/trunk@1565 68402e56-0260-453c-a942-63ccdbb3a9ee
* refresh_time must be 0 by defaultnikrou2006-07-281-2/+3
| | | | | | | fix line too long git-svn-id: http://piwigo.org/svn/trunk@1510 68402e56-0260-453c-a942-63ccdbb3a9ee
* Fixed missing $lang and extra code not needednikrou2006-07-281-4/+2
| | | | git-svn-id: http://piwigo.org/svn/trunk@1509 68402e56-0260-453c-a942-63ccdbb3a9ee
* Feature 492: first stepnikrou2006-07-271-18/+25
| | | | | | | | Simple redirect.tpl in template-common Simplification of function redirect() git-svn-id: http://piwigo.org/svn/trunk@1508 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 471 fixed: quote in tagsnikrou2006-07-211-0/+34
| | | | git-svn-id: http://piwigo.org/svn/trunk@1487 68402e56-0260-453c-a942-63ccdbb3a9ee
* fix : test if themeconf variable exist to avoid a "PHP Notice" in the logchrisaga2006-06-241-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@1400 68402e56-0260-453c-a942-63ccdbb3a9ee
* issue 426 step 1 reverted:nikrou2006-06-221-2/+2
| | | | | | | | svn merge -r1466:1465 . svn merge -r1463:1462 . git-svn-id: http://piwigo.org/svn/trunk@1376 68402e56-0260-453c-a942-63ccdbb3a9ee
* Issue ID 0000407: accents are not allowed in mail headersrub2006-06-181-1/+2
| | | | | | | | Fix: comment for str_translate_to_ascii7bits fucntion must be split into two lines git-svn-id: http://piwigo.org/svn/trunk@1364 68402e56-0260-453c-a942-63ccdbb3a9ee
* Issue 426: first step; separation of admin and public into two templatesnikrou2006-06-181-2/+2
| | | | | | | Need to simplify and delete files not needed git-svn-id: http://piwigo.org/svn/trunk@1363 68402e56-0260-453c-a942-63ccdbb3a9ee
* Issue ID 0000407: accents are not allowed in mail headersrub2006-06-171-0/+17
| | | | git-svn-id: http://piwigo.org/svn/trunk@1361 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 331 fixed: html generated contains the code in header.tpl twice nikrou2006-05-031-0/+7
| | | | | | | | when we use the function redirect svn merge -r1296:1297 from branch 1.6 into trunk git-svn-id: http://piwigo.org/svn/trunk@1298 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 358 fixed : Accent are not correctly displayed in category listingchrisaga2006-04-291-11/+1
| | | | | | | | | 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 -r1281:1283 from branch 1.6 to trunk (bug 228 fixed one more time, andplegall2006-04-271-0/+32
| | | | | | | other little things) git-svn-id: http://piwigo.org/svn/trunk@1284 68402e56-0260-453c-a942-63ccdbb3a9ee
* partial merge -r1173:1174 from branch-1_6 to trunk: new configurationplegall2006-04-201-1/+11
| | | | | | | | | | | | | | | parameter die_on_sql_error (upgrade.php and install/upgrade_*.php not concerned on BSF) partial merge -r1208:1209 from branch-1_6 to trunk (only bug fix on incorrect insertion of complex upgrade identifiers) deletions: upgrade.php and all install/upgrade_*.php because these script are never up to date on BSF. Anyway, they are only required on a stable branch. git-svn-id: http://piwigo.org/svn/trunk@1221 68402e56-0260-453c-a942-63ccdbb3a9ee
* Issue ID 330:rub2006-04-141-71/+0
| | | | | | | | o Remove "background treatment" o Add button "Continue treatment" git-svn-id: http://piwigo.org/svn/trunk@1177 68402e56-0260-453c-a942-63ccdbb3a9ee
* Issue ID 330:rub2006-04-131-4/+5
| | | | | | | | o Remove Apache functions o Show redirect message on 2 lines git-svn-id: http://piwigo.org/svn/trunk@1160 68402e56-0260-453c-a942-63ccdbb3a9ee
* Issue ID 330:rub2006-04-121-3/+85
| | | | | | | | | o Change NBM configuration in order to avoid lose treatment action when occurred timeout o Add news redirect/repost functions git-svn-id: http://piwigo.org/svn/trunk@1156 68402e56-0260-453c-a942-63ccdbb3a9ee
* improvement: urls for tags can contain now only the tag or the id and tagrvelices2006-04-061-3/+3
| | | | | | | | | | | | | | | | | 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/+31
| | | | | | | | 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-192/+2
| | | | | | | | | | | | | 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
* moved category.php to index.phprvelices2006-03-281-307/+2
| | | | | | split url functions from functions.inc.php to functions_url.inc.php git-svn-id: http://piwigo.org/svn/trunk@1109 68402e56-0260-453c-a942-63ccdbb3a9ee
* -improvement : function l10n renamed raw_l10n, new function l10n uses ↵chrisaga2006-03-251-1/+11
| | | | | | | | raw_l10n and returns a string with all html entities transcoded. We should use l10n everywere instead of $lang['...'] git-svn-id: http://piwigo.org/svn/trunk@1102 68402e56-0260-453c-a942-63ccdbb3a9ee
* small correction from previous commitrvelices2006-03-231-3/+4
| | | | git-svn-id: http://piwigo.org/svn/trunk@1095 68402e56-0260-453c-a942-63ccdbb3a9ee
* URL rewrite: 3 options in the config file define behaviour (question mark rvelices2006-03-231-26/+64
| | | | | | | | | | | removal, file name for picture and .php extension removal) fix: added unsigned for column in install sql - for the sake of uniformization change: add_url_param is now add_url_params and takes an array as parameter instead of a string git-svn-id: http://piwigo.org/svn/trunk@1094 68402e56-0260-453c-a942-63ccdbb3a9ee
* URL rewriting: capable of fully working with urls without ?rvelices2006-03-221-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | 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-10/+45
| | | | | | 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
* URL rewrite for chronology: uses $page['chronology'] and rvelices2006-03-171-60/+78
| | | | | | | $page['chronology_date']. $page['chronology'] is an array with 'field', 'style' and 'view' keys. This is step 1. git-svn-id: http://piwigo.org/svn/trunk@1086 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug fixed: create_navigation_bar take into account clean URL if requested.plegall2006-03-161-1/+1
| | | | | | | | | | | | | | | | | | 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-4/+225
| | | | | | | | | | | | | | | | | | | | | | | 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
* Step 1 improvement issue 0000301:rub2006-03-081-1/+1
| | | | | | | | | | | o Change status of table #_user_infos o Don't send password to webmaster, guest, generic Next Step: o Functions Check of status o Restricted Access for user generic git-svn-id: http://piwigo.org/svn/trunk@1070 68402e56-0260-453c-a942-63ccdbb3a9ee
* request 290: replace function get_themes name to avoid redeclaration fromplegall2006-02-201-8/+6
| | | | | | | Wordpress in jillij template. git-svn-id: http://piwigo.org/svn/trunk@1048 68402e56-0260-453c-a942-63ccdbb3a9ee
* not include .svn directory in the candidates (get_dirs function) for new themesnikrou2006-02-121-1/+2
| | | | git-svn-id: http://piwigo.org/svn/trunk@1035 68402e56-0260-453c-a942-63ccdbb3a9ee
* remake Remote Site/Synchro - bug on commentable + use l10n instead of get_langrvelices2006-02-111-17/+5
| | | | git-svn-id: http://piwigo.org/svn/trunk@1033 68402e56-0260-453c-a942-63ccdbb3a9ee
* - remake of Remote sites and Synchronize: rvelices2006-02-081-0/+14
| | | | | | | | | | | | | | | - synchronization for remote and local sites are done by the same code - remote sites can update metadata now (not before) - bug 279 - fixes bug 82: has_high column - improve feature 280: user sort by filename - fix path to template mimetypes icons - bug 284: session cookie lifetime, deletion on logout and corrected issue when db upgrades were missing git-svn-id: http://piwigo.org/svn/trunk@1029 68402e56-0260-453c-a942-63ccdbb3a9ee
* improvement: upgrades id retrieving in include/common.inc.php andplegall2006-02-061-1/+28
| | | | | | | | | | | | upgrade_feed.php are now made by dedicated function get_available_upgrade_ids. bug fixed: after an installation, you had to play all available upgrades, which was wrong. install.php inserts informations related to all available upgrades at installation time. Thus avoiding automatic upgrades. git-svn-id: http://piwigo.org/svn/trunk@1027 68402e56-0260-453c-a942-63ccdbb3a9ee
* Applying coding style guidelines to r1018 and r1019.plegall2006-02-011-0/+19
| | | | | | | | | | | | | | | | New function get_webmaster_mail_address used in include/page_tail.php and include/functions_mail.inc.php. Nothing else than functions in include/functions*, init_conf_mail() was useless in include/functions_mail.inc.php because $conf_mail is only used in function pwg_mail. bug fixed: files include/functions_mail.inc.php and include/functions_notification.inc.php had been commited in DOS format! Unix file format is the only file format authorized. git-svn-id: http://piwigo.org/svn/trunk@1021 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 280: Allow visitors/users to choose image ordering inside a categoryrvelices2006-02-011-0/+9
| | | | | | | | | | | improvement 82: Viewing pictures from remote galleries does not check anymore for the high pictures (existence flag added to create_listing_file and db) correction: link element in picture is in the head instead of body (w3c spec) correction: in profile.php the current template was not selected by default git-svn-id: http://piwigo.org/svn/trunk@1020 68402e56-0260-453c-a942-63ccdbb3a9ee
* Search engine redesign, second part :plegall2006-01-271-12/+20
| | | | | | | | | | | | | | | improvement: in category.php, an icon opening a popup display the list of search rules. modification: function get_search_array is responsible of search rules retrieving from database. This function is called from get_sql_search_clause and from search_rules.php modification: ability to search multiple authors. Warning: this version of search tool can't search author names including any blank space. git-svn-id: http://piwigo.org/svn/trunk@1015 68402e56-0260-453c-a942-63ccdbb3a9ee
* merge branch 1.5 r1010:1011 into BSF:nikrou2006-01-211-5/+6
| | | | | | - bug 268 fixed: display debug content correctly git-svn-id: http://piwigo.org/svn/trunk@1012 68402e56-0260-453c-a942-63ccdbb3a9ee
* Search engine redesign, first part :plegall2006-01-201-2/+184
| | | | | | | | | | | | | | | | | | | | | - new table #search to store search rules associated to a search id. - search rules are not passed through GET anymore, the search array build in search.php is serialized in #search table, so no need to rebuild it in function include/functions_category.inc.php::category_initialize - search array build code is improved (efficiency and layout) in search.php - SQL related to search is build in a dedicated function include/functions::get_sql_search_clause - direct search author:<...>, date_avalaible:<...>, date_creation:<...>, keywords:<...> from picture.php are not available anymore. They will come back later, with improvement (new design). Same for date_*:<> in calendar calendar category. git-svn-id: http://piwigo.org/svn/trunk@1008 68402e56-0260-453c-a942-63ccdbb3a9ee
* improve template : split theme from template itselfchrisaga2005-12-031-4/+31
| | | | | | | 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
* * new: history details by month,dayvolcom2005-10-171-0/+3
| | | | git-svn-id: http://piwigo.org/svn/trunk@894 68402e56-0260-453c-a942-63ccdbb3a9ee
* - bug fixed: HTML error on nested UL in categories menu.plegall2005-09-251-2/+5
| | | | | | | | | | - bug 161 fixed: guest_id not taken into account for history table insert. - bug 164 fixed: category inserted in history table becomes too long if HTML tags are kept. git-svn-id: http://piwigo.org/svn/trunk@876 68402e56-0260-453c-a942-63ccdbb3a9ee
* - bug 107 fixed: crash when logging visit on a category containing "'"plegall2005-09-181-4/+4
| | | | | | | | | character. Correction reported from branch 1.4 - bug fixed: in admin/stats, incorrect SQL queries gave no result. git-svn-id: http://piwigo.org/svn/trunk@868 68402e56-0260-453c-a942-63ccdbb3a9ee
* - improvement: long localized messages are in HTML files instead of $langplegall2005-09-141-22/+1
| | | | | | | | | | | | | | | | | | | | array. This is the case of admin/help and about pages. - deletion: of unused functions (ts_to_mysqldt, is_image, TN_exists, check_date_format, date_convert, get_category_directories, get_used_metadata_list, array_remove, pwg_write_debug, get_group_restrictions, get_all_group_restrictions, is_group_allowed, style_select, deprecated_getAttribute). - new: many new contextual help pages to replace descriptions previously included in pages. - modification: reorganisation of language files. Deletion of unused language keys, alphabetical sort. No faq.lang.php anymore (replaced by help.html). Only done for en_UK.iso-8859-1. git-svn-id: http://piwigo.org/svn/trunk@862 68402e56-0260-453c-a942-63ccdbb3a9ee
* - 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