aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_comment.inc.php (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-10-19remove all array_push (50% slower than []) + some changes missing for ↵mistic1001-6/+6
feature:2978 git-svn-id: http://piwigo.org/svn/trunk@25018 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-03-24feature 2836: display the number of comments/tags in the menubar rvelices1-8/+21
git-svn-id: http://piwigo.org/svn/trunk@21817 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-01-01 update Piwigo headers to 2013 (the end of the world didn't occur as ↵plegall1-1/+1
expected on r12922) git-svn-id: http://piwigo.org/svn/trunk@19703 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-11-11feature:2786 Allow to edit website url in user comments + improve "user ↵mistic1001-1/+16
experience" on comment edition git-svn-id: http://piwigo.org/svn/trunk@18995 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-09-23feature 2754: Add "Email" field for user comments + mandatory "Author" mistic1001-6/+35
git-svn-id: http://piwigo.org/svn/trunk@18164 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-08-03feature 2380: add URL for user comment mistic1001-2/+14
git-svn-id: http://piwigo.org/svn/trunk@17351 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-06-24bug 2660: check guest IP on insert_user_comment (same system as rate_picture)mistic1001-1/+18
git-svn-id: http://piwigo.org/svn/trunk@15983 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-03-29fix email on comment requiring validation even if the options is uncheckedrvelices1-2/+5
git-svn-id: http://piwigo.org/svn/trunk@13800 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-01-17update Piwigo headers to 2012, last change before the expected (or not) ↵mistic1001-1/+1
apocalypse git-svn-id: http://piwigo.org/svn/trunk@12922 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-11-11feature 2500: make 'validate_user_comment' and 'delete_user_comment' working ↵mistic1001-5/+23
with array git-svn-id: http://piwigo.org/svn/trunk@12596 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-11-05feature:2495 add triggers for comment validation and deletionmistic1001-0/+4
git-svn-id: http://piwigo.org/svn/trunk@12556 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-06-06bug 2323 : Refactoring update_user_comment() function to use ↵Eric1-10/+8
user_comment_check trigger in a better place. git-svn-id: http://piwigo.org/svn/trunk@11253 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-04-06bug:2152 no special parameter for updated comment validationmistic1001-1/+1
git-svn-id: http://piwigo.org/svn/trunk@10122 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-04-06bug:2152 Comments revalidation when modifiedmistic1001-2/+42
git-svn-id: http://piwigo.org/svn/trunk@10097 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-01-18Happy new year 2011plegall1-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
2010-11-15merge r7783 from branch 2.1 to trunkplegall1-1/+1
bug 2036 fixed: anti flood limitations for user comments should not apply to administrators. git-svn-id: http://piwigo.org/svn/trunk@7784 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-10-30feature 1915: add protection on user registration against robots rvelices1-15/+2
git-svn-id: http://piwigo.org/svn/trunk@7495 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-06-25Bug 1744 fixed : Incorrect use of timezone with SQLitenikrou1-4/+6
Fixed anti-flood system. Need refactoring between each interval functions git-svn-id: http://piwigo.org/svn/trunk@6604 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-06-24Bug 1735 fixed : Comment page is not PostgreSQL compatiblenikrou1-2/+2
Fixed by adding all fields except category_id in group by clause category_id is retrieved later in an another query. Fixed also problem of FROM_UNIXTIME function not POstgreSQL compatible. git-svn-id: http://piwigo.org/svn/trunk@6596 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-06-23Fix bug 1733 : queries must use single quotesnikrou1-4/+4
git-svn-id: http://piwigo.org/svn/trunk@6589 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-06-01- do not remove slashes before calling insert_user_comment (homogeneity with ↵rvelices1-16/+1
update_user_comment and general use of slashes in piwigo) - when using a modifier on a non array variable use @| instead of | (generated code is simpler and faster) git-svn-id: http://piwigo.org/svn/trunk@6437 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-29Bug 1705 fixed : double quotes were not escapednikrou1-1/+1
git-svn-id: http://piwigo.org/svn/trunk@6423 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-08Bug 1581 fixed : missing comment_id for email_admin() functionnikrou1-1/+4
git-svn-id: http://piwigo.org/svn/trunk@5707 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-19bug 1328: backport the pwg_token on trunkplegall1-11/+44
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
2010-03-02Feature 1451 : localization with gettextnikrou1-3/+3
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-15Feature 1255 :nikrou1-1/+1
update pwg_db_insert_id() function. PosgreSQL needs table name to retrieve last insert auto increment id. git-svn-id: http://piwigo.org/svn/trunk@4892 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-20Feature 1244 resolvednikrou1-4/+4
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-18Rollback to preview commitEric1-2/+2
git-svn-id: http://piwigo.org/svn/trunk@4306 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-18Forgotten Comments author name to be escaped and correctly displayedEric1-2/+2
git-svn-id: http://piwigo.org/svn/trunk@4305 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-18Escape all login and username characters in databaseEric1-1/+1
Display correctly usernames (I hope not to have made mistakes) git-svn-id: http://piwigo.org/svn/trunk@4304 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-16- fix php warning from comment_list.tplrvelices1-13/+4
- author name is saved always in #comments (even for registered users) so that - sql queries are simpler on the comments page (one less table in a big join) - when a user is deleted, we can keep the username in the #comments (there might be still a bug that author_id is not updated when a user is deleted) git-svn-id: http://piwigo.org/svn/trunk@3600 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-01- correct mysql error (while updating user comment)rvelices1-1/+2
git-svn-id: http://piwigo.org/svn/trunk@3489 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-01- remove warn on unset variablervelices1-23/+25
- insert_user_comment expects now the comment content to be sql safe (works now exactly as update_user_comment) git-svn-id: http://piwigo.org/svn/trunk@3488 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-06-23Feature 1026 step 2 :nikrou1-17/+25
add author_id column so that guest cannot modify old users comments git-svn-id: http://piwigo.org/svn/trunk@3450 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-06-23Feature 1026 : Modify / delete comments for usersnikrou1-0/+130
+ update config table content + minor modification of Sylvia theme + need refactoring git-svn-id: http://piwigo.org/svn/trunk@3445 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-02-14Last (I hope) paranoic optims ...rvelices1-21/+1
- 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
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-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
2007-11-20Send comment notification only if comment is not validated and $conf is true.rub1-2/+6
git-svn-id: http://piwigo.org/svn/trunk@2166 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-10-29- send status code 403 when attempt to enter a user comment, but comments ↵rvelices1-17/+6
are disabled - don't increase hit count when a comment is posted - remove the check of user ip agains spamhaus.org when a comment is entered (my conclusion is that is useless) git-svn-id: http://piwigo.org/svn/trunk@2155 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-06-05Resolved issue 0000697: with generic user a author name is necessary to ↵rub1-2/+3
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-28Cosmetic: make get_comment_post_key function more readable.plegall1-1/+11
git-svn-id: http://piwigo.org/svn/trunk@2027 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-03-15Add new translation functions.inc.phprub1-16/+15
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-12Add notification when a picture is loaded.rub1-6/+6
Change little translations. Improve mail sent. git-svn-id: http://piwigo.org/svn/trunk@1901 68402e56-0260-453c-a942-63ccdbb3a9ee
2007-02-22- user comments are not saved in the database with htmlspecialchars anymorervelices1-0/+228
- 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