- Timestamp:
- Oct 30, 2007, 12:10:31 AM (17 years ago)
- Location:
- branches/branch-1_7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1_7/include/picture_comment.inc.php
r2031 r2154 56 56 57 57 include_once(PHPWG_ROOT_PATH.'include/functions_comment.inc.php'); 58 58 59 59 $comment_action = insert_user_comment($comm, @$_POST['key'], $infos ); 60 60 … … 66 66 array_push( $infos, $lang['comment_added']); 67 67 break; 68 case 'reject': 68 case 'reject': 69 69 set_status_header(403); 70 70 array_push($infos, l10n('comment_not_added') ); … … 87 87 ); 88 88 } 89 89 elseif ( isset($_POST['content']) ) 90 { 91 set_status_header(403); 92 die('ugly spammer'); 93 } 90 94 91 95 if ($page['show_comments']) … … 137 141 'comments.comment', 138 142 array( 139 'COMMENT_AUTHOR' => trigger_event('render_comment_author', 143 'COMMENT_AUTHOR' => trigger_event('render_comment_author', 140 144 empty($row['author']) 141 145 ? $lang['guest'] -
branches/branch-1_7/picture.php
r2078 r2154 245 245 246 246 // incrementation of the number of hits, we do this only if no action 247 $query = ' 247 if (trigger_event('allow_increment_element_hit_count', !isset($_POST['content']) ) ) 248 { 249 $query = ' 248 250 UPDATE 249 251 '.IMAGES_TABLE.' … … 251 253 WHERE id = '.$page['image_id'].' 252 254 ;'; 253 pwg_query($query); 255 pwg_query($query); 256 } 254 257 255 258 //---------------------------------------------------------- related categories
Note: See TracChangeset
for help on using the changeset viewer.