aboutsummaryrefslogtreecommitdiffstats
path: root/include/common.inc.php (follow)
Commit message (Collapse)AuthorAgeFilesLines
* set_magic_quote_runtime and get_magic_quote_gpc are depreciated and can ↵patdenice2009-10-091-2/+2
| | | | | | | | | produce notices from PHP 5.3. Add a @ to avoid this notices. This functions need to be removed with PHP 6 git-svn-id: http://piwigo.org/svn/branches/2.0@4005 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 968 fixed: charset is set in HTTP header.plegall2009-05-061-2/+2
| | | | | | | improvement: in the "this gallery is locked" message, the link to the "sign in" page is on the whole sentence, not only on the final dot. git-svn-id: http://piwigo.org/svn/branches/2.0@3276 68402e56-0260-453c-a942-63ccdbb3a9ee
* new: it.piwigo.org/forum is online, PHPWG_DOMAIN updated inside Piwigo.plegall2009-03-171-1/+4
| | | | git-svn-id: http://piwigo.org/svn/branches/2.0@3210 68402e56-0260-453c-a942-63ccdbb3a9ee
* merge r3203 from trunk to branch 2.0.patdenice2009-03-161-0/+1
| | | | | | | | Move template class inclusion to common.inc.php. Add forum link in upgrade page. Install and upgrade try to configure PHP5. git-svn-id: http://piwigo.org/svn/branches/2.0@3204 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 926 fixed: change links to piwigo.org so that they go to existing URLs.plegall2009-03-131-0/+9
| | | | | | | new: if the current language is french, the links go to fr.piwigo.org insted. git-svn-id: http://piwigo.org/svn/branches/2.0@3196 68402e56-0260-453c-a942-63ccdbb3a9ee
* merge r3136 from trunkrvelices2009-02-131-23/+5
| | | | | | | | - moved check upgrade feed code to admin/include/functions_upgrade.php - 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/branches/2.0@3137 68402e56-0260-453c-a942-63ccdbb3a9ee
* merge r 3126 from trunkrvelices2009-02-051-1/+4
| | | | | | | | - embellish_url compacts now .. - some trigger improvements (render_category_description) - improved perf of duplicate_xxx_url ( rewrote func params_for_duplication and remove some vars from $page ) git-svn-id: http://piwigo.org/svn/branches/2.0@3127 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/branches/2.0@3046 68402e56-0260-453c-a942-63ccdbb3a9ee
* - ini_set usage is sometimes prohibited.vdigital2008-12-281-2/+2
| | | | git-svn-id: http://piwigo.org/svn/branches/2.0@3023 68402e56-0260-453c-a942-63ccdbb3a9ee
* Add a new config value 'show_php_error' to allow debugging of RC to be easier.grum2008-11-101-0/+7
| | | | | | See topic #99192 on the forum. git-svn-id: http://piwigo.org/svn/branches/2.0@2858 68402e56-0260-453c-a942-63ccdbb3a9ee
* - removed some unused constants from constants.phprvelices2008-11-041-9/+3
| | | | | | | - removed some unused css rules - removed unused code git-svn-id: http://piwigo.org/svn/branches/2.0@2823 68402e56-0260-453c-a942-63ccdbb3a9ee
* - mysql potential injection paranoia + code compaction in common.inc.phprvelices2008-10-171-52/+9
| | | | git-svn-id: http://piwigo.org/svn/branches/2.0@2765 68402e56-0260-453c-a942-63ccdbb3a9ee
* - replace a preg_match with simple comparison (faster)rvelices2008-10-101-1/+0
| | | | | | | - try to get rid of some JS strict warnings in FF (hope it's fixed) - template.class.php is included from functions.inc.php instead of common,upgrade,install (maybe later I will try to see the perf impact of compacting/compiling functions.inc.php together with the included files from itself) git-svn-id: http://piwigo.org/svn/trunk@2700 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 861 fixed: only $conf['check_upgrade_feed'] is required to check forplegall2008-09-171-3/+1
| | | | | | | development upgrades, not PHPWG_IN_UPGRADE constant any longer. git-svn-id: http://piwigo.org/svn/trunk@2544 68402e56-0260-453c-a942-63ccdbb3a9ee
* - fix status header (web services + IE6 min display)rvelices2008-09-171-0/+1
| | | | | | | - sql optims in feed /notification - dont send cookie for 10 years from admin/history.php git-svn-id: http://piwigo.org/svn/trunk@2543 68402e56-0260-453c-a942-63ccdbb3a9ee
* - better management of fatal errors (instead of die or trigger_error rather ↵rvelices2008-09-051-6/+4
| | | | | | use fatal_error ...) git-svn-id: http://piwigo.org/svn/trunk@2502 68402e56-0260-453c-a942-63ccdbb3a9ee
* - based on test_menu by grum (thanks to you) - integration of dynamic menu ↵rvelices2008-08-281-0/+1
| | | | | | | | | | bar to pwg - the menubar is composed now of dynamic blocks that can be ordered/hidden - plugins can add their own blocks git-svn-id: http://piwigo.org/svn/trunk@2488 68402e56-0260-453c-a942-63ccdbb3a9ee
* merge r2483 from branch 1.7rvelices2008-08-231-4/+6
| | | | | | | - 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
* - local.lang is loaded without fallback on default language or ↵rvelices2008-08-201-1/+1
| | | | | | | | | 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
* - optim dont include a php file if not requiredrvelices2008-08-161-3/+2
| | | | | | | - eng lang small change - remove link to unexisting admin css git-svn-id: http://piwigo.org/svn/trunk@2476 68402e56-0260-453c-a942-63ccdbb3a9ee
* - first use of web services as Ajax: change the privacy level directly from ↵rvelices2008-07-021-1/+1
| | | | | | the picture page git-svn-id: http://piwigo.org/svn/trunk@2413 68402e56-0260-453c-a942-63ccdbb3a9ee
* Fix on Admin theme (No update thru Multi-View Plugin).vdigital2008-06-231-5/+7
| | | | git-svn-id: http://piwigo.org/svn/trunk@2394 68402e56-0260-453c-a942-63ccdbb3a9ee
* Admin isolation: Copy of admin templates in admin folder.vdigital2008-06-221-1/+2
| | | | | | | | (Before previous admin templates removal). Some of css simplification (in admin only currently. git-svn-id: http://piwigo.org/svn/trunk@2390 68402e56-0260-453c-a942-63ccdbb3a9ee
* Bug fixed: as rvelices notified me by email, my header replacement script wasplegall2008-04-051-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
* Modification: new header on PHP files, PhpWebGallery renamed Piwigo.plegall2008-04-041-0/+21
| | | | git-svn-id: http://piwigo.org/svn/trunk@2297 68402e56-0260-453c-a942-63ccdbb3a9ee
* - remove compatibility with old template ...rvelices2008-03-231-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@2290 68402e56-0260-453c-a942-63ccdbb3a9ee
* header.tpl goes smartrvelices2008-03-021-6/+2
| | | | git-svn-id: http://piwigo.org/svn/trunk@2240 68402e56-0260-453c-a942-63ccdbb3a9ee
* - added compatibility function file_put_contentsrvelices2008-02-271-0/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@2215 68402e56-0260-453c-a942-63ccdbb3a9ee
* Resolved issue 0000712: PWG-ERROR-VERSION on remote synchronizationrub2008-02-161-1/+2
| | | | | | | Merge branch-1_7 2211:2212 into BSF git-svn-id: http://piwigo.org/svn/trunk@2213 68402e56-0260-453c-a942-63ccdbb3a9ee
* Replace old use of $lang by l10n function.rub2008-01-301-4/+4
| | | | git-svn-id: http://piwigo.org/svn/trunk@2201 68402e56-0260-453c-a942-63ccdbb3a9ee
* - PWG_CHARSET, DB_CHARSET and DB_COLLATE... utf-8 readyrvelices2007-10-091-0/+17
| | | | git-svn-id: http://piwigo.org/svn/trunk@2127 68402e56-0260-453c-a942-63ccdbb3a9ee
* - some code refactoring before upgrade to utf (only cosmetic at this point...)rvelices2007-10-081-3/+3
| | | | git-svn-id: http://piwigo.org/svn/trunk@2126 68402e56-0260-453c-a942-63ccdbb3a9ee
* - render_category_description and render_category_literal_description events ↵rvelices2007-10-021-2/+4
| | | | | | refactoring git-svn-id: http://piwigo.org/svn/trunk@2117 68402e56-0260-453c-a942-63ccdbb3a9ee
* Change initialization of $filter in order to prevent of problem with some ↵rub2007-09-291-2/+1
| | | | | | systems git-svn-id: http://piwigo.org/svn/trunk@2111 68402e56-0260-453c-a942-63ccdbb3a9ee
* Resolved issue 0000717: guest must be guestrub2007-07-071-0/+7
| | | | git-svn-id: http://piwigo.org/svn/trunk@2055 68402e56-0260-453c-a942-63ccdbb3a9ee
* - when gallery is locked, the status header is set to 503 (Service unavailable)rvelices2007-06-271-0/+2
| | | | | | - small improvement in admin template (text near checkboxes goes inside <label> element) git-svn-id: http://piwigo.org/svn/trunk@2046 68402e56-0260-453c-a942-63ccdbb3a9ee
* Resolved issue 0000708: Error on synchronizationrub2007-06-211-1/+15
| | | | | | | | Resolved issue 0000709: Error with $conf['default_admin_layout'] git-svn-id: http://piwigo.org/svn/trunk@2038 68402e56-0260-453c-a942-63ccdbb3a9ee
* Resolved issue 0000702: Code Injection with picture commentrub2007-06-071-0/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@2030 68402e56-0260-453c-a942-63ccdbb3a9ee
* Resolved issue 0000697: with generic user a author name is necessary to ↵rub2007-06-051-2/+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
* Updates:vdigital2007-03-131-1/+1
| | | | | | | | - Copyrights 2003-2007 - help - Some HTML comform requests git-svn-id: http://piwigo.org/svn/trunk@1903 68402e56-0260-453c-a942-63ccdbb3a9ee
* - change the way conf['guest_access'] is handled so that web services work ↵rvelices2007-02-221-13/+0
| | | | | | correctly (and also nbm.php and feed.php) git-svn-id: http://piwigo.org/svn/trunk@1850 68402e56-0260-453c-a942-63ccdbb3a9ee
* - user comments are not saved in the database with htmlspecialchars anymorervelices2007-02-221-0/+1
| | | | | | | - web service: added the possibility to enter a user comment using the service... - new comment functions from picture_comment.inc.php git-svn-id: http://piwigo.org/svn/trunk@1849 68402e56-0260-453c-a942-63ccdbb3a9ee
* - plugins with own independent scripts work now (cookie_path and url root arervelices2007-01-241-9/+3
| | | | | | | | | correct) - prepare a bit some url functions so that later we can fully embed pwg in scripts located outside pwg - remove some unnecessary language strings git-svn-id: http://piwigo.org/svn/trunk@1750 68402e56-0260-453c-a942-63ccdbb3a9ee
* - revert feature 564: log the login of each user; but add the possibility to bervelices2007-01-231-0/+11
| | | | | | | | | | | | done by a plugin - create a "standard" way to define PHP functions that we use but might not be available in the current php version - when a comment is rejected (spam, anti-flood etc), put the content back to the browser in case there is a real user behind it - now a comment can be entered only if the page was retrieved between 2 seconds ago and 1 hour ago git-svn-id: http://piwigo.org/svn/trunk@1744 68402e56-0260-453c-a942-63ccdbb3a9ee
* There are no filter enabled if filter configuration is empty (no icon, no ↵rub2007-01-151-1/+7
| | | | | | | | | | | | | 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
* Feature Issue ID 0000496: Integrate MOD add_index on PWG with plugin.lang.phprub2007-01-081-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
* Issue ID 0000529 Re-Fixed.rub2007-01-021-2/+1
| | | | | | | | $_SERVER["SCRIPT_FILENAME"] not treated (only $_SERVER['SCRIPT_FILENAME'] was treated) Merge branch-1_6 1690:1691 into BSF git-svn-id: http://piwigo.org/svn/trunk@1692 68402e56-0260-453c-a942-63ccdbb3a9ee
* Issue ID 0000529 Re-Fixed.rub2007-01-021-3/+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
* Issue ID 0000529 Fixed.rub2006-12-311-1/+1
| | | | | | | | 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
* Feature Issue ID 0000527: Language localization - local.lang.php can be ↵vdigital2006-12-251-1/+2
| | | | | | 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