- send status code 403 when attempt to enter a user comment, but comments 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
This commit is contained in:
rvelices
2007-10-29 23:39:41 +00:00
parent f33617a5b8
commit 831694b4d1
5 changed files with 14 additions and 25 deletions
+1 -1
View File
@@ -244,7 +244,7 @@ DELETE FROM '.COMMENTS_TABLE.'
}
// incrementation of the number of hits, we do this only if no action
if (trigger_event('allow_increment_element_hit_count', true) )
if (trigger_event('allow_increment_element_hit_count', !isset($_POST['content']) ) )
{
$query = '
UPDATE