aboutsummaryrefslogtreecommitdiffstats
path: root/include/common.inc.php (unfollow)
Commit message (Collapse)AuthorFilesLines
2010-05-09add nl.piwigo.org as domain name if current language is nl_NLplegall1-1/+1
fix typos on language names in install.php correct list of available newsletters git-svn-id: http://piwigo.org/svn/trunk@6152 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-08bug 1652 fixed: json_encode function is required for admin.php?fckb_tags=1plegall1-0/+1
(used in the new tags widget) git-svn-id: http://piwigo.org/svn/trunk@6126 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-18Bug 1617 fixed : help page is displayed in current theme in public or admin ↵nikrou1-2/+1
pages git-svn-id: http://piwigo.org/svn/trunk@5920 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-31move no_photo_yet feature to a new php file included by common.inc.php only ↵rvelices1-77/+3
if required (avoid parsing this code that will be rarely executed) git-svn-id: http://piwigo.org/svn/trunk@5509 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-22feature 1505: bug fixed, ability to connect with pLoader even if galleryplegall1-0/+1
is empty. git-svn-id: http://piwigo.org/svn/trunk@5251 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-22feature 1505: improvement, ability to browse the empty gallery. The "no photoplegall1-5/+17
yet" feature can be deactivated at session level. git-svn-id: http://piwigo.org/svn/trunk@5241 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-22feature 1505: improvement, when there is no photo yet in the gallery, firstplegall1-5/+36
shows a connection box (and only this), then if the user is an admin shows the "Hello %s, your gallery is empty...". I've also added the ability to deactivate this message. Only an admin can deactivate it. git-svn-id: http://piwigo.org/svn/trunk@5240 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-21Fix typo : parenthesisnikrou1-1/+1
git-svn-id: http://piwigo.org/svn/trunk@5238 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-21Feature 1255 :nikrou1-3/+9
only one function use exceptions to deal with differents possible errors git-svn-id: http://piwigo.org/svn/trunk@5236 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-21[trunk] localisation hu/RU feature:1526 and feature:1527ddtddt1-1/+1
git-svn-id: http://piwigo.org/svn/trunk@5235 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-21feature 1255: add pwg_select_db function.patdenice1-2/+2
git-svn-id: http://piwigo.org/svn/trunk@5230 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-21feature 1522: Move config_local.inc.php to local/config/config.inc.phppatdenice1-1/+1
git-svn-id: http://piwigo.org/svn/trunk@5215 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-21Feature 1522 : move database config file to local directorynikrou1-1/+1
(include/config_database.inc.php becomes local/config/database.inc.php) git-svn-id: http://piwigo.org/svn/trunk@5213 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-20feature 1522: Move local css local files and local language files to local ↵patdenice1-1/+1
directory. Add $conf['template_force_compile'] to help developpers. git-svn-id: http://piwigo.org/svn/trunk@5208 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-19increase copyright year to 2010plegall1-1/+1
git-svn-id: http://piwigo.org/svn/trunk@5196 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-18- removed compatibility with php4 (file_put_contents exists in php5)rvelices1-15/+6
- when synchronizing local files , sort them alphabetically git-svn-id: http://piwigo.org/svn/trunk@5176 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-14feature 1505: when there is no photo yet in the gallery, displays a big andplegall1-0/+35
obvious message, guiding to the Administration>Images>Add page. git-svn-id: http://piwigo.org/svn/trunk@5138 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-13feature 1502: based on Dotclear model, P@t has reorganized the way Piwigoplegall1-6/+2
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
2010-03-02Feature 1451 : localization with gettextnikrou1-4/+4
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
2010-02-15Bug 1426 fixed : admin help popup use gallery theme instead of admin themenikrou1-1/+2
git-svn-id: http://piwigo.org/svn/trunk@4893 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-01[trunk] localisation merge 4758 bug:1416ddtddt1-0/+6
git-svn-id: http://piwigo.org/svn/trunk@4816 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-29Feature_1255 :nikrou1-1/+1
- single quotes in queries - start using $conf['dblayer'] git-svn-id: http://piwigo.org/svn/trunk@4385 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-20Feature 1244 resolvednikrou1-15/+5
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
2009-11-16Feature 928 resolved.nikrou1-3/+3
Replace include/mysql.inc.php by include/config_database.inc.php to be independant of database engine Rename database configurations variables by ones in $conf array. git-svn-id: http://piwigo.org/svn/trunk@4280 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-15[trunk] Merge 4046 new: de.piwigo.org/forum / es.piwigo.org/forum are ↵ddtddt1-0/+6
online, PHPWG_DOMAIN updated inside Piwigo. git-svn-id: http://piwigo.org/svn/trunk@4047 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-09merge r4005 from branch 2.0 to trunkpatdenice1-1/+1
bug 1187: set_magic_quote_runtime and get_magic_quote_gpc are depreciated and can 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/trunk@4006 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-08-17PHP 5.3 compatibility - Deprecated functions were replace as follows :Eric1-1/+1
ereg() -> preg_match() ereg_replace() -> preg_replace() eregi() -> preg_match() with the 'i' modifier eregi_replace() -> preg_replace() with the 'i' modifier set_magic_quotes_runtime() -> No more usefull. Fixed it by adding "@" prefix. git-svn-id: http://piwigo.org/svn/trunk@3747 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-05-06merge r3276 from branch 2.0 to trunkplegall1-2/+2
bug 968 fixed: charset is set in HTTP header. 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/trunk@3277 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-16Move template class inclusion to common.inc.php.patdenice1-0/+1
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
2009-03-13merge r3196 from branch 2.0 to trunkplegall1-0/+9
bug 926 fixed: change links to piwigo.org so that they go to existing URLs. new: if the current language is french, the links go to fr.piwigo.org instead. git-svn-id: http://piwigo.org/svn/trunk@3197 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-13- moved check upgrade feed code to admin/include/functions_upgrade.phprvelices1-23/+5
- 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
2009-02-05- embellish_url compacts now ..rvelices1-1/+4
- 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/trunk@3126 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-04Administration: happy new year 2009, all PHP headers updated. plegall1-1/+1
git-svn-id: http://piwigo.org/svn/trunk@3049 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-28- ini_set usage is sometimes prohibited.vdigital1-2/+2
merge -c3023 from branch 2.0 to trunk git-svn-id: http://piwigo.org/svn/trunk@3024 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-10Add a new config value 'show_php_error' to allow debugging of RC to be easier.grum1-0/+7
See topic #99192 on the forum. git-svn-id: http://piwigo.org/svn/trunk@2859 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-11-04merge -c2823 from branch 2.0 to trunkrvelices1-9/+3
- removed some unused constants from constants.php - removed some unused css rules - removed unused code git-svn-id: http://piwigo.org/svn/trunk@2824 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-18- merge rev 2765,2769 from branch 2.0rvelices1-52/+9
* 2765 mysql potential injection paranoia + code compaction in common.inc.php * 2769 added an image sort order by privacy level (admins only) * 2769 fix an IE6 display issue with quick search on index page git-svn-id: http://piwigo.org/svn/trunk@2770 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-10- replace a preg_match with simple comparison (faster)rvelices1-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
2008-09-17bug 861 fixed: only $conf['check_upgrade_feed'] is required to check forplegall1-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
2008-09-17- fix status header (web services + IE6 min display)rvelices1-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
2008-09-05- better management of fatal errors (instead of die or trigger_error rather ↵rvelices1-6/+4
use fatal_error ...) git-svn-id: http://piwigo.org/svn/trunk@2502 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-08-28- based on test_menu by grum (thanks to you) - integration of dynamic menu ↵rvelices1-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
2008-08-23merge r2483 from branch 1.7rvelices1-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
2008-08-20- local.lang is loaded without fallback on default language or ↵rvelices1-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
2008-08-16- optim dont include a php file if not requiredrvelices1-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
2008-07-02- first use of web services as Ajax: change the privacy level directly from ↵rvelices1-1/+1
the picture page git-svn-id: http://piwigo.org/svn/trunk@2413 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-06-23Fix on Admin theme (No update thru Multi-View Plugin).vdigital1-5/+7
git-svn-id: http://piwigo.org/svn/trunk@2394 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-06-22Admin isolation: Copy of admin templates in admin folder.vdigital1-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
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