aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Externalization of common functions of web service.vdigital2006-12-161-0/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@1670 68402e56-0260-453c-a942-63ccdbb3a9ee
* Feature Issue ID 0000602: Redirect must be done by html or httprub2006-12-111-2/+49
| | | | | | | | | | | Redirect it's only done by the html method but must be done too with http method. Creation of two functions redirect_http and redirect_html. Function redirect calls one or other functions follow $conf or parameters. $conf value are true on BSF, in order to check modifications. Must be set to false on RC. git-svn-id: http://piwigo.org/svn/trunk@1649 68402e56-0260-453c-a942-63ccdbb3a9ee
* Proposition of translations about:rub2006-12-061-0/+15
| | | | | | | | | | | A recent picture is a last picture but a last picture is not a recent picture. A recent category is a last category but a last category is not a recent category. So it's a proposition about last is not like recent. Improvement of string including decimal number in order to concord singular and plural. Now, function l10n_dec must be used. git-svn-id: http://piwigo.org/svn/trunk@1637 68402e56-0260-453c-a942-63ccdbb3a9ee
* Fixed Issue ID 0000494: Stats do not currently include Uploadsrub2006-12-031-0/+28
| | | | | | | | | Fixed: Error when thumbnail directory not exists Fixed: Apply current translation norme Fixed: Improvement style sheet (like other PWG sheet) git-svn-id: http://piwigo.org/svn/trunk@1631 68402e56-0260-453c-a942-63ccdbb3a9ee
* completely replaced get_thumbnail_src it get_thumbnail_url rvelices2006-11-151-11/+0
| | | | | | or get_thumbnail_path git-svn-id: http://piwigo.org/svn/trunk@1609 68402e56-0260-453c-a942-63ccdbb3a9ee
* - deprecated get_thumbnail_src (still there for compatibility). use rather rvelices2006-11-071-24/+57
| | | | | | | get_thumbnail_path or get_thumbnail_url (these allow plugins to override) - plugins can hook into index thumbnail display (items only so far) git-svn-id: http://piwigo.org/svn/trunk@1596 68402e56-0260-453c-a942-63ccdbb3a9ee
* fix: get_filename_wo_extension (check for ===false) and template make_filenamervelices2006-11-011-1/+2
| | | | | | improvement: can retrieve template output outside the template git-svn-id: http://piwigo.org/svn/trunk@1589 68402e56-0260-453c-a942-63ccdbb3a9ee
* 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