aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php (unfollow)
Commit message (Collapse)AuthorFilesLines
2008-02-27little correctionsrub1-1/+1
Merge branch-1_7 2219:2220 into BSF git-svn-id: http://piwigo.org/svn/trunk@2221 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-02-27Resolved issue 0000807: New slideshow featuresrub1-1/+3
git-svn-id: http://piwigo.org/svn/trunk@2218 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-10-11- changed htmlentities to htmlspecialchars in comments.php (utf-8 issue)rvelices1-17/+18
- web service explorer in utf-8 - removed warning in function load_language - feature: show_queries also shows number of selected rows or number of affected rows git-svn-id: http://piwigo.org/svn/trunk@2134 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-10-09- RSS feed is PWG charsetrvelices1-1/+4
- iptc are now converted from iso-8859-1 or utf-8 (automatic detection) to pwg charset - remove function get_language_filepath - load_language also checks for the default language git-svn-id: http://piwigo.org/svn/trunk@2132 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-10-09- PWG_CHARSET, DB_CHARSET and DB_COLLATE... utf-8 readyrvelices1-15/+194
git-svn-id: http://piwigo.org/svn/trunk@2127 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-10-08- some code refactoring before upgrade to utf (only cosmetic at this point...)rvelices1-3/+42
git-svn-id: http://piwigo.org/svn/trunk@2126 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-10-05- function str2url is compatible with utf-8rvelices1-68/+155
- removed some old code (useless) git-svn-id: http://piwigo.org/svn/trunk@2123 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-10-05- remove str_translate_to_ascii7bits and lang_table_translate_ascii7bitsrvelices1-18/+0
git-svn-id: http://piwigo.org/svn/trunk@2122 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-09-12merge -r2088 from branch-1_7 to trunkrvelices1-6/+7
- urls used in http redirections must not be html escaped (eg. should use & instead of &) git-svn-id: http://piwigo.org/svn/trunk@2089 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-09-11Resolved 0000744: pwg_log: image_type is always nullrub1-1/+1
Merge branch-1_7 2048:2050 into BSF git-svn-id: http://piwigo.org/svn/trunk@2086 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-07-24Resolved 0000726: script_basename returns bad resultrub1-26/+25
With specific server configuration, script_basename returns bad result. git-svn-id: http://piwigo.org/svn/trunk@2071 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-06-05Resolved issue 0000697: with generic user a author name is necessary to ↵rub1-1/+1
comment picture. + Change way to determinate if user is a guest (use functions like is_admin) git-svn-id: http://piwigo.org/svn/trunk@2029 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-05-25Improvement of picture url built rub1-1/+2
git-svn-id: http://piwigo.org/svn/trunk@2026 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-05-01Issue 0000684: History [Search] - Add a thumbnail displayrub1-0/+1
o Display choice can be selected o Display choice is saved on on cookie o Small improvement picture link (hoverbox on all the link, alt&title on classic mode) o New cookie functions and use Enhance computing method of script_basename function. http://forum.phpwebgallery.net/viewtopic.php?pid=58258#p58258 Merge BSF 1988:1989 into branch-1_7 git-svn-id: http://piwigo.org/svn/trunk@1992 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-04-29Issue 0000529:rub1-2/+16
Enhance computing method of script_basename function. http://forum.phpwebgallery.net/viewtopic.php?pid=58258#p58258 git-svn-id: http://piwigo.org/svn/trunk@1989 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-03-28Issue 578rub1-1/+1
User guest must be real user Step 1: guest is a real user On next commit, I finish installation and use of guest of user list and group git-svn-id: http://piwigo.org/svn/trunk@1926 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-03-15Add new translation functions.inc.phprub1-1/+64
Translate subject of information mail. Notification mails are sent on the default language. No mail is sent to the author witch are not done actions git-svn-id: http://piwigo.org/svn/trunk@1908 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-03-09Add DateTime on administration introduction page (Useful to help user on the ↵rub1-1/+1
forum, ...) Move history configuration in a other tab. Use translation on picture hint (Kb). Show hint oh the menu text (not only on counter) git-svn-id: http://piwigo.org/svn/trunk@1884 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-03-08- plugin administration: small fix during activation phaservelices1-4/+10
- plugins: added 3 actions in category_cats.inc.php and 1 event that allow a plugin to decide if insertion to #history occurs - added a warning in section_init if script_basename() is not index or picture (I think we'll have issues on some servers with this function) - web service methods categories.getImages, tags.getImages and images.search return now the image comment git-svn-id: http://piwigo.org/svn/trunk@1880 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-03-04Remove "TODO" on picture display showed on the caddie...rub1-0/+20
git-svn-id: http://piwigo.org/svn/trunk@1868 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-02-28feature 657: permalinks for categoriesrvelices1-0/+20
git-svn-id: http://piwigo.org/svn/trunk@1866 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-02-27Missing one change flat_hint to mode_flat_hintrub1-6/+8
Review a little l10n_dec git-svn-id: http://piwigo.org/svn/trunk@1864 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-02-27Bug: English plural rule is slightly different from French (0 is plural, not ↵vdigital1-0/+5
in French) git-svn-id: http://piwigo.org/svn/trunk@1862 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-02-27- refactoring page['category'] before 1.7 releaservelices1-2/+1
page['category'] is not an id anymore, but an associative array of category info all of page['cat_xxx'] or page['uppercats'] merged into one simplifies calls to make_index_url give plugins a clean start for page variables for version 1.7 git-svn-id: http://piwigo.org/svn/trunk@1861 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-02-21- added check in redirect to see if headers have been sent before doing a ↵rvelices1-1/+4
redirect_http - old category.php uses redirect_http whenever possible - replaced some old {L_xxx} in picture.tpl git-svn-id: http://piwigo.org/svn/trunk@1846 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-02-20New: non picture files are now logged in history when downloaded. Theplegall1-3/+3
history filter was redesigned: #history.is_high replaced by #history.image_type = high. The filter is simpler. git-svn-id: http://piwigo.org/svn/trunk@1844 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-02-14New: history logs high quality access via action.php. A new columnplegall1-1/+3
#history.is_high was added. Filter was added on administration history detail view. Modification: function get_sql_condition_FandF was slightly refactored for presentation improvement. git-svn-id: http://piwigo.org/svn/trunk@1817 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-01-29bug 623: Char "+" is not supported in gallery URL (the function url_is_remotervelices1-1/+2
should not check if the url is actually valid but only if it starts with http://) git-svn-id: http://piwigo.org/svn/trunk@1766 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-01-27Web Service Merge functions_webserv.inc.php into ws_functions.inc.phpvdigital1-1/+0
(Next steps: - Revise ws_checker - Restrict Method need to be more generic maybe - Delete functions_webserv.inc.php - ...) git-svn-id: http://piwigo.org/svn/trunk@1758 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-01-23Undo r1677 functions_html.inc.php, because links are wrong.rub1-5/+6
I wanted to add flat_cat on categories url, but I will keep same comportment of the calendar. Some improvements when updating #_config table git-svn-id: http://piwigo.org/svn/trunk@1748 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-01-16Modification: new data model for history, more compact, more efficient. Aplegall1-41/+127
summary table is used as cache for history stats display. New: a Perl script fill_history.pl was added to simulate a high load on history table (making the efficiency of the new data model obvious). Modification: function prepend_append_array_items moved from include/functions_search.inc.php to include/functions_search.inc.php since this function is used in new file admin/history.php Modification: admin/images/*_stats.img.php replaced by a simpler and more generic admin/images/stats.img.php unique file. New: a history detail search page was added. Currently, only start and end dates can be modified, it's just a beginning. git-svn-id: http://piwigo.org/svn/trunk@1727 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-01-15There are no filter enabled if filter configuration is empty (no icon, no ↵rub1-0/+28
functions, ...) New system for the filter page configuration View mode flat_recent_cat becomes flat_cat (recent period is removed because global filter is sufficient) Recent period of global filter must be defined "after" start parameter (default value is $user['recent_period']). git-svn-id: http://piwigo.org/svn/trunk@1722 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-01-11- bug 471: apostrophe lors de l'ajout d'un tag (different behavior depending onrvelices1-34/+0
magic_quotes_gpc) - metadata synchronization correction: iptc keywords were MySql escaped 2 times when synchronizing from site manager, but only once when synchronizing one image git-svn-id: http://piwigo.org/svn/trunk@1717 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-01-08Feature Issue ID 0000496: Integrate MOD add_index on PWG with plugin.lang.phprub1-0/+1
Add some plugin triggers: o for help o for language o for site manager o for advanced features Allow to launch directly plugin page (without section key) Add add_index plugin, available on site manager and advanced features Configuration page and best help must be coming soon. git-svn-id: http://piwigo.org/svn/trunk@1699 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-01-02Issue ID 0000529 Re-Fixed.rub1-11/+4
Problem with "Options +MultiViews" .htaccess configuration. Merge branch-1_6 1688:1689 into BSF git-svn-id: http://piwigo.org/svn/trunk@1690 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-12-31Issue ID 0000529 Fixed.rub1-0/+36
Problem with $_SERVER['SCRIPT_FILENAME'] on IIS server Merge branch-1_6 1685:1686 into BSF git-svn-id: http://piwigo.org/svn/trunk@1687 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-12-25Feature Issue ID 0000527: Language localization - local.lang.php can be ↵vdigital1-0/+1
added to each language directory. Authorize your own translation to be keep over migrations. git-svn-id: http://piwigo.org/svn/trunk@1679 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-12-16Externalization of common functions of web service.vdigital1-0/+1
git-svn-id: http://piwigo.org/svn/trunk@1670 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-12-11Feature Issue ID 0000602: Redirect must be done by html or httprub1-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
2006-12-06Proposition of translations about:rub1-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
2006-12-03Fixed Issue ID 0000494: Stats do not currently include Uploadsrub1-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
2006-11-15completely replaced get_thumbnail_src it get_thumbnail_url rvelices1-11/+0
or get_thumbnail_path git-svn-id: http://piwigo.org/svn/trunk@1609 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-11-07- deprecated get_thumbnail_src (still there for compatibility). use rather rvelices1-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
2006-11-01fix: get_filename_wo_extension (check for ===false) and template make_filenamervelices1-1/+2
improvement: can retrieve template output outside the template git-svn-id: http://piwigo.org/svn/trunk@1589 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-10-26plugins: first prototype versionrvelices1-0/+1
git-svn-id: http://piwigo.org/svn/trunk@1578 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-10-20- put back config['session_length'] disappeared in r1493 but has always beenrvelices1-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
2006-10-19put back the redirect function as it was in branch 1.6 (still not working ↵rvelices1-19/+32
perfectly with the auto_login) git-svn-id: http://piwigo.org/svn/trunk@1567 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-10-19feature 564: logs in the history table each user login rvelices1-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
2006-07-28refresh_time must be 0 by defaultnikrou1-2/+3
fix line too long git-svn-id: http://piwigo.org/svn/trunk@1510 68402e56-0260-453c-a942-63ccdbb3a9ee
2006-07-28Fixed missing $lang and extra code not needednikrou1-4/+2
git-svn-id: http://piwigo.org/svn/trunk@1509 68402e56-0260-453c-a942-63ccdbb3a9ee