aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php (unfollow)
Commit message (Collapse)AuthorFilesLines
2008-09-04- bug 854: better checks of directory creations ( local_data_dir, ↵rvelices1-14/+54
templates_c, tmp etc...) git-svn-id: http://piwigo.org/svn/trunk@2497 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-08-23merge r2483 from branch 1.7rvelices1-13/+20
- security fix : when conf['question_mark_in_urls']=true , $_SERVER['PATH_INFO'] was not sanitized against sql injection - mysql errors are now dumped using trigger_error instead of echo and die -> allow admins to see later on if someone tries funny stuff git-svn-id: http://piwigo.org/svn/trunk@2484 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-08-20- local.lang is loaded without fallback on default language or ↵rvelices1-71/+25
PHPWG_DEFAULT_LANGUAGE (needed to change the signature of load_language which became a little too big) - move a function from functions.inc.php to functions_picture.inc.php (included only when necessary) - removed some css (not as much as I wanted) git-svn-id: http://piwigo.org/svn/trunk@2479 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-07-24- remove functions_group.inc.php (empty for some years; avoid unnecessary ↵rvelices1-1/+0
include_file) - thumbnails-fix-ie5-ie6.css merged into fix-ie5-ie6.css (avoid 2 IE6 css file requests) - removed unused css git-svn-id: http://piwigo.org/svn/trunk@2456 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-05-14Change some PhpWebGallery to Piwigo.rub1-3/+3
Not all PhpWebGallery has been translated! git-svn-id: http://piwigo.org/svn/trunk@2339 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-05-06- remove some unnecessary db columns (#history_summary.id, #history.year, ↵rvelices1-8/+0
month, day and hour) git-svn-id: http://piwigo.org/svn/trunk@2333 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-04-26New: jQuery and Accordion Admin menusvdigital1-0/+2
git-svn-id: http://piwigo.org/svn/trunk@2313 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-04-25- minor sql query optimizationsrvelices1-19/+6
git-svn-id: http://piwigo.org/svn/trunk@2308 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-04-05Bug fixed: as rvelices notified me by email, my header replacement script wasplegall1-24/+0
bugged (r2297 was repeating new and old header). By the way, I've also removed the replacement keywords. We were using them because it was a common usage with CVS but it is advised not to use them with Subversion. Personnaly, it is a problem when I search differences between 2 Piwigo installations outside Subversion. git-svn-id: http://piwigo.org/svn/trunk@2299 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-04-04Modification: new header on PHP files, PhpWebGallery renamed Piwigo.plegall1-0/+21
git-svn-id: http://piwigo.org/svn/trunk@2297 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-03-08- upload.tpl goes smartyrvelices1-1/+1
- start some language cleanup and a small attempt to standardize a bit ... - debug_language now calls trigger_error instead of echo when missing language key git-svn-id: http://piwigo.org/svn/trunk@2265 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-03-05- remove unused functions get_month_list and get_day_listrvelices1-72/+0
git-svn-id: http://piwigo.org/svn/trunk@2252 68402e56-0260-453c-a942-63ccdbb3a9ee
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