diff options
author | rvelices <rv-github@modusoptimus.com> | 2010-06-01 19:56:07 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2010-06-01 19:56:07 +0000 |
commit | 663c13f39af9e50f59ee907ade4aaf4add0d8d01 (patch) | |
tree | a860fcdbeadefcaec8d3dc2c59215d1751455784 /include/functions_comment.inc.php | |
parent | cf32601902f8034e111196b4462ec30fb2d41577 (diff) |
merge r6437 from trunk to branch 2.1
- do not remove slashes before calling insert_user_comment (homogeneity with 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/branches/2.1@6438 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_comment.inc.php')
-rw-r--r-- | include/functions_comment.inc.php | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/include/functions_comment.inc.php b/include/functions_comment.inc.php index 454895832..2594a210b 100644 --- a/include/functions_comment.inc.php +++ b/include/functions_comment.inc.php @@ -257,21 +257,6 @@ function update_user_comment($comment, $post_key) $comment_action='reject'; } -/* ? this is a MySql Error - author_id is not defined - if ($comment_action!='reject' and $conf['anti-flood_time']>0 ) - { // anti-flood system - $reference_date = time() - $conf['anti-flood_time']; - $query = ' -SELECT id FROM '.COMMENTS_TABLE.' - WHERE date > FROM_UNIXTIME('.$reference_date.') - AND author_id = '.$comm['author_id']; - if ( pwg_db_num_rows( pwg_query( $query ) ) > 0 ) - { - //?? array_push( $infos, l10n('Anti-flood system : please wait for a moment before trying to post another comment') ); - $comment_action='reject'; - } - } -*/ // perform more spam check $comment_action = trigger_event('user_comment_check', |