aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Happy new year 2011plegall2011-01-181-2/+2
| | | | | | | Change "Piwigo - a PHP based picture gallery" into "Piwigo - a PHP based photo gallery" git-svn-id: http://piwigo.org/svn/trunk@8728 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 2112 added: ability to set an additional local directoryplegall2011-01-171-1/+1
| | | | | | | $conf['local_dir_site'] in local/config/multisite.inc.php git-svn-id: http://piwigo.org/svn/trunk@8722 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 2102 : rename item/image/picture to photorvelices2011-01-141-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@8665 68402e56-0260-453c-a942-63ccdbb3a9ee
* - faster trigger_event/trigger_action (it was overly complicated)rvelices2010-12-231-9/+7
| | | | | | | - added a new param to get_thumbnail_url event - get_thumbnail_location is called only if the thumbnail does not exist git-svn-id: http://piwigo.org/svn/trunk@8263 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 1915: add protection on user registration against robots rvelices2010-10-301-15/+27
| | | | git-svn-id: http://piwigo.org/svn/trunk@7495 68402e56-0260-453c-a942-63ccdbb3a9ee
* remove_accents function improvement: shorter + faster code (less func calls)rvelices2010-09-161-94/+93
| | | | git-svn-id: http://piwigo.org/svn/trunk@6947 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 1852: html redirections fail on admin pages rvelices2010-09-161-0/+4
| | | | git-svn-id: http://piwigo.org/svn/trunk@6944 68402e56-0260-453c-a942-63ccdbb3a9ee
* - removed function get_extra_fields and its usage (unnecessary + perf issue ↵rvelices2010-07-061-17/+1
| | | | | | | | | | | when retrieving many image ids in a section) - 2 fixes recent feed.php commit * month names were decalated by one * strptime function is not implemented under Windows in php - added somme missing $ROOT_URL in templates git-svn-id: http://piwigo.org/svn/trunk@6668 68402e56-0260-453c-a942-63ccdbb3a9ee
* merge r6384 from branch 2.1 to trunkplegall2010-05-271-0/+4
| | | | | | | | bug 1704 fixed: windows needs a specific directory separator when creating recursive directory. git-svn-id: http://piwigo.org/svn/trunk@6385 68402e56-0260-453c-a942-63ccdbb3a9ee
* fix bug 1663 : wrong decoding of non Ascii iptc/exif (charset issue)rvelices2010-05-251-15/+18
| | | | git-svn-id: http://piwigo.org/svn/trunk@6355 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 1063 fixed: avoid error when adding a tag in chinese or russian characters.plegall2010-05-031-0/+7
| | | | | | | | | | | | | In any language where the str2url would return an empty string. The behavior doesn't change for european characters. rvelices warned me about the many issues we might encounter with copy/paste of the URL and required url_encode/url_decode BUT after many tests (Linux with Firefox 3.0/Google Chrome 5, MacOS 10.6 with Firefox/Safari, WindowsXP with IE6/Firefox) I've found 0 problem, even with the most error prone mode $conf['tag_url_style'] = 'tag' git-svn-id: http://piwigo.org/svn/trunk@6060 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 1637: make the privacy level the same everywher, use "who can see this ↵plegall2010-04-301-0/+42
| | | | | | | | photo?" instead of "minimum privacy level". git-svn-id: http://piwigo.org/svn/trunk@6025 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 1630: upgrade to Piwigo 2.1 :-)plegall2010-04-281-3/+14
| | | | | | bug 1604: only activate core themes not all themes. git-svn-id: http://piwigo.org/svn/trunk@5982 68402e56-0260-453c-a942-63ccdbb3a9ee
* Fix some issues with database connections.nikrou2010-04-101-3/+3
| | | | | | | install_db_connect() function must return database resource link insert into set syntax is mysql specific git-svn-id: http://piwigo.org/svn/trunk@5781 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 1502: Wrong path corrected (to check themeconf.inc.php existence)patdenice2010-03-281-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@5419 68402e56-0260-453c-a942-63ccdbb3a9ee
* Feature 1535: Add language manager.patdenice2010-03-251-16/+10
| | | | git-svn-id: http://piwigo.org/svn/trunk@5357 68402e56-0260-453c-a942-63ccdbb3a9ee
* - fix cat_modifyrvelices2010-03-251-13/+7
| | | | | | | | | * missing token in url * double icon display - simplified func check_pwg_token git-svn-id: http://piwigo.org/svn/trunk@5335 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 1502: bug corrected on guest setting page.patdenice2010-03-241-1/+6
| | | | | | | Remove $conf['default_theme'] from config file (useless). Check if theme is still installed in pwg_get_themes. git-svn-id: http://piwigo.org/svn/trunk@5306 68402e56-0260-453c-a942-63ccdbb3a9ee
* [trunk] merge bug:1523 / Compatibility with PHP 5.3ddtddt2010-03-211-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@5211 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 1522: Move local css local files and local language files to local ↵patdenice2010-03-201-2/+6
| | | | | | | | directory. Add $conf['template_force_compile'] to help developpers. git-svn-id: http://piwigo.org/svn/trunk@5208 68402e56-0260-453c-a942-63ccdbb3a9ee
* - added a js confirmation before deletign a themervelices2010-03-201-66/+18
| | | | | | | - fix link to css - simplified language loading (a couple of years ago during utf8 migration I left the possibility to have languages defined in another charsets - this is useless) git-svn-id: http://piwigo.org/svn/trunk@5200 68402e56-0260-453c-a942-63ccdbb3a9ee
* increase copyright year to 2010plegall2010-03-191-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@5196 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 1328: backport the pwg_token on trunkplegall2010-03-191-0/+82
| | | | | | | | | bug 1329: backport the check_input_parameter on trunk feature 1026: add pwg_token feature for edit/delete comment. Heavy refactoring on this feature to make the code simpler and easier to maintain (I hope). git-svn-id: http://piwigo.org/svn/trunk@5195 68402e56-0260-453c-a942-63ccdbb3a9ee
* Revert gettext stuff.nikrou2010-03-171-43/+14
| | | | | | | | | | Keep english values for language keys translation. Provide a script to use english values for key in language files. Todo : provide a script (to help transition) to keep using original keys in language files for translators. git-svn-id: http://piwigo.org/svn/trunk@5156 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 1514: new screen to manage installed themes; activate, deactivate,plegall2010-03-171-8/+11
| | | | | | | | | | | | delete, set as default. plugins.class.php was merged back to a state it doesn't manage themes at all. themes.class.php was created instead, from a duplication of plugins.class.php and strongly modified then. feature 1507: the display of available themes is now much more "graphic". git-svn-id: http://piwigo.org/svn/trunk@5153 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 1505: when there is no photo yet in the gallery, displays a big andplegall2010-03-141-0/+18
| | | | | | obvious message, guiding to the Administration>Images>Add page. git-svn-id: http://piwigo.org/svn/trunk@5138 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 1502: based on Dotclear model, P@t has reorganized the way Piwigoplegall2010-03-131-13/+9
| | | | | | | manages template/theme in a simpler "theme only level" architecture. It supports multiple level inheritance. git-svn-id: http://piwigo.org/svn/trunk@5123 68402e56-0260-453c-a942-63ccdbb3a9ee
* New trigger on get_pwg_themesvdigital2010-03-101-0/+2
| | | | git-svn-id: http://piwigo.org/svn/trunk@5102 68402e56-0260-453c-a942-63ccdbb3a9ee
* Fix: failed to open dir on default templatevdigital2010-03-101-5/+7
| | | | git-svn-id: http://piwigo.org/svn/trunk@5100 68402e56-0260-453c-a942-63ccdbb3a9ee
* Feature 1451 : localization with gettextnikrou2010-03-021-21/+51
| | | | | | | | | | | Use php-gettext (developpement version rev43, because of php5.3) as fallback Use native language (english) instead of key for translation Keep directory en_UK for english customization Need some refactoring for plurals Todo : managing plugins in the same way git-svn-id: http://piwigo.org/svn/trunk@5021 68402e56-0260-453c-a942-63ccdbb3a9ee
* merge r4965 from branch 2.0 to trunkplegall2010-02-261-0/+5
| | | | | | | | | | | bug 1047 fixed: avoid warnings when the creation date is 0000-00-00 (which happens when date_creation comes from corrupted EXIF) bug 859 fixed: at display time only. Piwigo still inserts wrong date in the database, to be fixed later. git-svn-id: http://piwigo.org/svn/trunk@4966 68402e56-0260-453c-a942-63ccdbb3a9ee
* Feature 1255 :nikrou2009-11-291-1/+1
| | | | | | | misspelled function parenthesis missing git-svn-id: http://piwigo.org/svn/trunk@4388 68402e56-0260-453c-a942-63ccdbb3a9ee
* Feature_1255:nikrou2009-11-291-0/+12
| | | | | | | - bug fix : function pwg_db_get_recent_period_expression - add extra fields for select based on "order by" git-svn-id: http://piwigo.org/svn/trunk@4387 68402e56-0260-453c-a942-63ccdbb3a9ee
* Feature 1255: modification in sql queriesnikrou2009-11-251-66/+3
| | | | | | | | | - manage random function - manage regex syntax - manage quote (single instead of double) - manage interval git-svn-id: http://piwigo.org/svn/trunk@4367 68402e56-0260-453c-a942-63ccdbb3a9ee
* Feature 1244 resolvednikrou2009-11-201-94/+8
| | | | | | | | Replace all mysql functions in core code by ones independant of database engine Fix small php code synxtax : hash must be accessed with [ ] and not { }. git-svn-id: http://piwigo.org/svn/trunk@4325 68402e56-0260-453c-a942-63ccdbb3a9ee
* Feature 1241 resolved. replace mysql_fetch_array by mysql_fetch_assoc for ↵nikrou2009-11-151-6/+6
| | | | | | small php code improvements git-svn-id: http://piwigo.org/svn/trunk@4265 68402e56-0260-453c-a942-63ccdbb3a9ee
* Fix for feature 1000: cannot access $conf array (use global)nikrou2009-08-181-0/+2
| | | | git-svn-id: http://piwigo.org/svn/trunk@3750 68402e56-0260-453c-a942-63ccdbb3a9ee
* New feature : configuration option for thumbnail directorynikrou2009-08-021-2/+2
| | | | git-svn-id: http://piwigo.org/svn/trunk@3720 68402e56-0260-453c-a942-63ccdbb3a9ee
* Move template class inclusion to common.inc.php.patdenice2009-03-161-1/+0
| | | | | | | Add forum link in upgrade page. Install and upgrade try to configure PHP5. git-svn-id: http://piwigo.org/svn/trunk@3203 68402e56-0260-453c-a942-63ccdbb3a9ee
* Move get_icon function.patdenice2009-03-111-0/+43
| | | | git-svn-id: http://piwigo.org/svn/trunk@3188 68402e56-0260-453c-a942-63ccdbb3a9ee
* Code simplification of commit 3172patdenice2009-03-061-26/+12
| | | | git-svn-id: http://piwigo.org/svn/trunk@3173 68402e56-0260-453c-a942-63ccdbb3a9ee
* Create navigation_bar.tpl file.patdenice2009-03-051-0/+69
| | | | | | Move create_navigation_bar function from functions_html.inc.php to functions.inc.php. git-svn-id: http://piwigo.org/svn/trunk@3172 68402e56-0260-453c-a942-63ccdbb3a9ee
* Last (I hope) paranoic optims ...rvelices2009-02-141-12/+22
| | | | | | | | | - move get_uysername and get_groupname from public to admin/functions.inc.php - optim in index.php - tags.tpl does not need smarty modifier included - move func get_comment_post_key from functions_comment to functions (avoid extra inclusion every time on picture page) git-svn-id: http://piwigo.org/svn/trunk@3145 68402e56-0260-453c-a942-63ccdbb3a9ee
* - moved check upgrade feed code to admin/include/functions_upgrade.phprvelices2009-02-131-64/+14
| | | | | | | - refactored some code (shorter and somehow faster - but nothing revolutionary) - decrease lost space in permalinks.tpl and hard coded column width (was illisible) git-svn-id: http://piwigo.org/svn/trunk@3136 68402e56-0260-453c-a942-63ccdbb3a9ee
* - removed second parameter $type from function format_datervelices2009-02-041-5/+4
| | | | git-svn-id: http://piwigo.org/svn/trunk@3122 68402e56-0260-453c-a942-63ccdbb3a9ee
* - fix use $page['nb_image_page'] instead of $user... when creating the nav ↵rvelices2009-01-311-37/+17
| | | | | | | | bar (same as category_default) - rewrote function format_date without regular expressions (faster); parameter date type is not used anymore (but I left it there for now) git-svn-id: http://piwigo.org/svn/trunk@3117 68402e56-0260-453c-a942-63ccdbb3a9ee
* Administration: happy new year 2009, all PHP headers updated. plegall2009-01-041-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@3049 68402e56-0260-453c-a942-63ccdbb3a9ee
* merge r2916 from branch 2.0 to trunkplegall2008-12-021-0/+14
| | | | | | | | bug 904 fixed: an index.htm is created in directories created by pwg.images.add web API method, only directories that contains pictures. git-svn-id: http://piwigo.org/svn/trunk@2917 68402e56-0260-453c-a942-63ccdbb3a9ee
* Resolved issue 0000900: format_date function doesn't work when time is ↵rub2008-11-091-0/+8
| | | | | | | | omitted with 'mysql_datetime' type Continue correction of grum git-svn-id: http://piwigo.org/svn/trunk@2856 68402e56-0260-453c-a942-63ccdbb3a9ee
* merge r2789 from branch 2.0:rvelices2008-10-221-7/+10
| | | | | | | | - some german language changes - added option for smarty $conf['template_compile_check'] - default true; if false smarty doesn't check if templates need recompilation resulting in less disk accesses (good when the disk is not local) - load_language doesnt check first for en_uk.utf-8 directory ... git-svn-id: http://piwigo.org/svn/trunk@2790 68402e56-0260-453c-a942-63ccdbb3a9ee