Changeset 29060
- Timestamp:
- Jul 20, 2014, 11:32:56 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/comments.php
r29008 r29060 168 168 i.path, 169 169 i.representative_ext, 170 validated 170 validated, 171 c.anonymous_id 171 172 FROM '.COMMENTS_TABLE.' AS c 172 173 INNER JOIN '.IMAGES_TABLE.' AS i … … 205 206 'CONTENT' => trigger_change('render_comment_content',$row['content']), 206 207 'IS_PENDING' => ('false' == $row['validated']), 208 'IP' => $row['anonymous_id'], 207 209 ) 208 210 ); -
trunk/admin/themes/default/template/comments.tpl
r25744 r29060 66 66 <div class="comment"> 67 67 <a class="illustration" href="{$comment.U_PICTURE}"><img src="{$comment.TN_SRC}"></a> 68 <p class="commentHeader">{if $comment.IS_PENDING}<span class="pendingFlag">{'Waiting'|@translate}</span> - {/if} <strong>{$comment.AUTHOR}</strong> - <em>{$comment.DATE}</em></p>68 <p class="commentHeader">{if $comment.IS_PENDING}<span class="pendingFlag">{'Waiting'|@translate}</span> - {/if}{if !empty($comment.IP)}{$comment.IP} - {/if}<strong>{$comment.AUTHOR}</strong> - <em>{$comment.DATE}</em></p> 69 69 <blockquote>{$comment.CONTENT}</blockquote> 70 70 </div> -
trunk/include/functions_comment.inc.php
r28893 r29060 174 174 $comm['email'] = $user['email']; 175 175 } 176 else 176 elseif ($conf['comments_email_mandatory']) 177 177 { 178 178 $infos[] = l10n('Email address is missing. Please specify an email address.'); … … 180 180 } 181 181 } 182 else 182 elseif (!email_check_format($comm['email'])) 183 183 { 184 184 $infos[] = l10n('mail address must be like xxx@yyy.eee (example : jack@altern.org)'); … … 192 192 array_pop($ip_components); 193 193 } 194 $ comm['anonymous_id']= implode('.', $ip_components);194 $anonymous_id = implode('.', $ip_components); 195 195 196 196 if ($comment_action!='reject' and $conf['anti-flood_time']>0 and !is_admin()) … … 205 205 { 206 206 $query.= ' 207 AND anonymous_id = "'.$comm['anonymous_id'].'"';207 AND anonymous_id LIKE "'.$anonymous_id.'.%"'; 208 208 } 209 209 $query.= ' … … 232 232 \''.$comm['author'].'\', 233 233 '.$comm['author_id'].', 234 \''.$comm[' anonymous_id'].'\',234 \''.$comm['ip'].'\', 235 235 \''.$comm['content'].'\', 236 236 NOW(),
Note: See TracChangeset
for help on using the changeset viewer.