aboutsummaryrefslogtreecommitdiffstats
path: root/include (follow)
Commit message (Collapse)AuthorAgeFilesLines
* merge r6312 from branch 2.1 to trunkplegall2010-05-231-14/+18
| | | | | | | | | | | | | | bug 1684 fixed: the test to check availability of the user_infos line was wrong. I had changed the old db_num_rows > 0 because it was not working with SQLite. As suggested by nicolas, let's use a simpler trick "count(1)" in the query itself, this way it should work with any database engine. I've also removed the while (true) (ugly infinite loop, with a condition for exit) that was producing an infinite loop for Piwigo installations with 2.0 database model and 2.1 code (before launching upgrade.php) git-svn-id: http://piwigo.org/svn/trunk@6315 68402e56-0260-453c-a942-63ccdbb3a9ee
* merge r6311 from branch 2.1 to trunkplegall2010-05-231-0/+41
| | | | | | | | | bug 1683 fixed: as soon as an admin modifies the admin>conf>options>guest settings, registration is broken. This is because user_infos.theme/language are emptied (while they should not). I have also added an "automatic repair" piece of code in get_default_user_info function. This piece of code should be removed for 2.2 with the appropriate migration task. git-svn-id: http://piwigo.org/svn/trunk@6314 68402e56-0260-453c-a942-63ccdbb3a9ee
* Fix get_enums function for SQLitenikrou2010-05-092-2/+26
| | | | | | | hard coded enums values for all tables because enum feature doesn't exists for SQLite. git-svn-id: http://piwigo.org/svn/trunk@6153 68402e56-0260-453c-a942-63ccdbb3a9ee
* add nl.piwigo.org as domain name if current language is nl_NLplegall2010-05-091-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
* bug 1652 fixed: json_encode function is required for admin.php?fckb_tags=1plegall2010-05-083-33/+54
| | | | | | (used in the new tags widget) git-svn-id: http://piwigo.org/svn/trunk@6126 68402e56-0260-453c-a942-63ccdbb3a9ee
* Amend bug 1559. standard deviation was not removed in some places.nikrou2010-05-082-2/+0
| | | | | | So, sqlite crashed because std function has been removed. git-svn-id: http://piwigo.org/svn/trunk@6125 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 1649 fixed: search EXIF/IPTC in the high definition photo if there is noplegall2010-05-071-3/+18
| | | | | | EXIF/IPTC in the web sized photo. git-svn-id: http://piwigo.org/svn/trunk@6093 68402e56-0260-453c-a942-63ccdbb3a9ee
* SQLite availabilty must be check by existence of SQLite3 classnikrou2010-05-071-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@6092 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 1648 fixed: add the pwg_db_check_version functions for pdo-sqlite, sqliteplegall2010-05-074-2/+47
| | | | | | | | | | and pgsql, also make the $pwg_db_link global in the install_db_connect function so that it can be used in SQLite functions. bug fixed: with pdo-sqlite, pwg_db_num_rows always returns 0, so when initializing user data, it tries to insert the same row twice. git-svn-id: http://piwigo.org/svn/trunk@6090 68402e56-0260-453c-a942-63ccdbb3a9ee
* remove debug traceplegall2010-05-041-1/+0
| | | | git-svn-id: http://piwigo.org/svn/trunk@6075 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 1501 fixed: with apache_authentication, fall back to REDIRECT_REMOTE_USERplegall2010-05-041-4/+18
| | | | | | if REMOTE_USER is not set. git-svn-id: http://piwigo.org/svn/trunk@6074 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 1639 fixed: the upload form now correctly uses the $conf['upload_dir']plegall2010-05-031-2/+4
| | | | | | | | | | | | | parameter (web API already use it). By default, the $conf['upload_dir'] is no longer dependent to PHPWG_ROOT_PATH because it becomes a real mess when admin/include/uploadify.php (called directly, not from an include) tries to perform an upload. Improvement: make clearer how $conf['upload_dir'] can be set (relative to the Piwigo installation directory + HTTP reachable) git-svn-id: http://piwigo.org/svn/trunk@6052 68402e56-0260-453c-a942-63ccdbb3a9ee
* improvement: use the same code to check upload readiness in admin>photos>addplegall2010-05-031-11/+18
| | | | | | | | | screen and in web API. bug fixed: UploadForm partly takes into account the configurable upload directory (must be propagated everywhere in the UploadForm process) git-svn-id: http://piwigo.org/svn/trunk@6051 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 1635 fixed: new API method pwg.images.checkUpload tells pLoader if Piwigoplegall2010-05-031-0/+48
| | | | | | is ready for upload (currently, it checks write access on the upload directory) git-svn-id: http://piwigo.org/svn/trunk@6049 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 1502: Add $themeconf['load_parent_local_head'] parameterpatdenice2010-04-291-7/+9
| | | | git-svn-id: http://piwigo.org/svn/trunk@6006 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 860 related: don't try to update the configuration during install becauseplegall2010-04-291-1/+3
| | | | | | pwg_query is not available yet. git-svn-id: http://piwigo.org/svn/trunk@5999 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 860 related: if the directory doesn't exist (SVN users) first try toplegall2010-04-291-10/+16
| | | | | | | create it. To avoid useless checks on filesystem (rvelices should appreciate) a configuration variable tells if we have to check or not. git-svn-id: http://piwigo.org/svn/trunk@5998 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 1502: $themeconf['load_css_parent'] apply recursivelypatdenice2010-04-291-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@5993 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 1502: Add $themeconf['load_parent_css'] parameterpatdenice2010-04-291-3/+10
| | | | git-svn-id: http://piwigo.org/svn/trunk@5991 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 1484: prevent XSS vulnerability, encode url.plegall2010-04-291-1/+0
| | | | | | | improvement: no need to transmit the REQUEST_URI from PHP, Smarty already knows it. git-svn-id: http://piwigo.org/svn/trunk@5990 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 1484: after a "quick connect" you are correctly redirect to the same page.plegall2010-04-281-0/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@5986 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 860: display a more readable error when the _data directory is not writableplegall2010-04-282-3/+20
| | | | git-svn-id: http://piwigo.org/svn/trunk@5985 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 1630: upgrade to Piwigo 2.1 :-)plegall2010-04-283-13/+46
| | | | | | bug 1604: only activate core themes not all themes. git-svn-id: http://piwigo.org/svn/trunk@5982 68402e56-0260-453c-a942-63ccdbb3a9ee
* Fix missing argument for pwg_db_changes()nikrou2010-04-201-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@5930 68402e56-0260-453c-a942-63ccdbb3a9ee
* Issue 1521 : correction of separator problemlaurent.duretz2010-04-201-4/+7
| | | | git-svn-id: http://piwigo.org/svn/trunk@5924 68402e56-0260-453c-a942-63ccdbb3a9ee
* Bug 1617 fixed : help page is displayed in current theme in public or admin ↵nikrou2010-04-181-2/+1
| | | | | | pages git-svn-id: http://piwigo.org/svn/trunk@5920 68402e56-0260-453c-a942-63ccdbb3a9ee
* Issue 1521 : correction for admin pageslaurent.duretz2010-04-182-9/+13
| | | | git-svn-id: http://piwigo.org/svn/trunk@5917 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 1606: don't try to check the "no photo yet" feature when displaying anplegall2010-04-151-0/+1
| | | | | | help popup. git-svn-id: http://piwigo.org/svn/trunk@5861 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 1603: encoding charset added at HTTP level for the "no photo yet" specificplegall2010-04-141-0/+1
| | | | | | page. git-svn-id: http://piwigo.org/svn/trunk@5854 68402e56-0260-453c-a942-63ccdbb3a9ee
* User theme was not used for header and footer in NBM.patdenice2010-04-111-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@5796 68402e56-0260-453c-a942-63ccdbb3a9ee
* Bug 1567 fixed : problem with old version of mysqlnikrou2010-04-102-1/+1
| | | | | | | required version is now 5.0.0 move required version to functions database specific file like others engines git-svn-id: http://piwigo.org/svn/trunk@5782 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
* bug 1595grum2010-04-101-0/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@5773 68402e56-0260-453c-a942-63ccdbb3a9ee
* feqture 1583 : show related tags block also when browsing non tag sectionsrvelices2010-04-101-20/+42
| | | | git-svn-id: http://piwigo.org/svn/trunk@5752 68402e56-0260-453c-a942-63ccdbb3a9ee
* Bug 1581 fixed : missing comment_id for email_admin() functionnikrou2010-04-081-1/+4
| | | | git-svn-id: http://piwigo.org/svn/trunk@5707 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 1583: (tag navigation ergonomy) in the page title, always display theplegall2010-04-081-15/+19
| | | | | | "remove tag" icon, whatever the number of tags. git-svn-id: http://piwigo.org/svn/trunk@5706 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 1583: replace add_tag.png icon by a simple "+" character in theplegall2010-04-081-18/+16
| | | | | | | "related tags" block. Only keep one link for each tag in the "related tags" block. git-svn-id: http://piwigo.org/svn/trunk@5703 68402e56-0260-453c-a942-63ccdbb3a9ee
* Fix some issues on NBM: move css rules to mail body if it's possible.patdenice2010-04-071-0/+57
| | | | | | Remove fieldset on available plugins page. git-svn-id: http://piwigo.org/svn/trunk@5695 68402e56-0260-453c-a942-63ccdbb3a9ee
* fixes only:rvelices2010-04-061-1/+1
| | | | | | | | | - some searches returned bad array for page['items'] (resulting in php warnings and sometimes mysql fatal error) still existing in branch 2.0 - mysql fatal error in admin maintenance - php warn in plugins_list.php - fix check on function param in admin/include/functions.php git-svn-id: http://piwigo.org/svn/trunk@5691 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 1580 - remove some hard coded markup (move them to the template)grum2010-04-051-9/+8
| | | | git-svn-id: http://piwigo.org/svn/trunk@5682 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 1579: admins should see all user comments on picture.php, validated or not.plegall2010-04-041-15/+25
| | | | git-svn-id: http://piwigo.org/svn/trunk@5654 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 1534: if you're a guest, if configuration tells you can't add userplegall2010-04-041-3/+11
| | | | | | comments, you won't see the form on the picture page. git-svn-id: http://piwigo.org/svn/trunk@5649 68402e56-0260-453c-a942-63ccdbb3a9ee
* move no_photo_yet feature to a new php file included by common.inc.php only ↵rvelices2010-03-312-77/+106
| | | | | | 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
* Feature 1559 : remove custom function (std) for sqlitenikrou2010-03-312-58/+0
| | | | git-svn-id: http://piwigo.org/svn/trunk@5503 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 1559: remove "standard deviation" in rating.plegall2010-03-311-2/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@5500 68402e56-0260-453c-a942-63ccdbb3a9ee
* Issue 1521 : Adding explanationslaurent.duretz2010-03-301-0/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@5470 68402e56-0260-453c-a942-63ccdbb3a9ee
* Issue 1521 : get_absolute_root_url() missing in section_init.inc.phplaurent.duretz2010-03-301-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@5469 68402e56-0260-453c-a942-63ccdbb3a9ee
* Fix some issues with database engines :nikrou2010-03-291-1/+1
| | | | | | | | - insert into syntax not correct for posgresql or sqlite - add languages table - incorrect function for row count (sqlite) git-svn-id: http://piwigo.org/svn/trunk@5452 68402e56-0260-453c-a942-63ccdbb3a9ee