Changeset 29047 for extensions/rv_akismet
- Timestamp:
- Jul 16, 2014, 6:58:29 AM (10 years ago)
- Location:
- extensions/rv_akismet
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rv_akismet/check.inc.php
r26859 r29047 27 27 default: 28 28 $url = duplicate_picture_url( array('image_id'=>$comment['image_id']) ); 29 } 29 } 30 30 unset_make_full_url(); 31 31 … … 33 33 'author' => $comment['author'], 34 34 'body' => $comment['content'], 35 'comment_author_url' => $comment['website_url'],35 'comment_author_url' => @$comment['website_url'], 36 36 'comment_author_email' => $comment['email'], 37 37 'permalink' => $url, … … 40 40 /*if (isset($_POST['url']) && strlen($_POST['url'])) 41 41 $aki_comm['comment_author_url'] = $_POST['url'];*/ 42 43 if (!isset($_SESSION['csi'])) 44 { 45 $_POST['cr'][] = 'csi'; 46 } 42 47 43 48 $akismet = new Akismet(get_absolute_root_url(), $conf['akismet_api_key'], $aki_comm); … … 51 56 if ('reject'==$action && !is_a_guest() && isset($_SESSION['csi']) && (!isset($_POST['url']) || strlen($_POST['url'])==0)) 52 57 $action='moderate'; 53 if ('reject'!=$action) set_status_header(403);54 58 $counters[0]++; 55 59 $_POST['cr'][] = 'aki'; 60 if ('reject'!=$action) 61 set_status_header(403); 56 62 } 57 63 else … … 60 66 if (!isset($_SESSION['csi']) /*&& isset($_POST['url']) && strlen($_POST['url']) */) 61 67 { 62 $action = 'moderate'; 63 $_POST['cr'][] = 'csi'; 68 $action = $conf['akismet_spam_action']; 64 69 } 65 70 } -
extensions/rv_akismet/main.inc.php
r27748 r29047 1 1 <?php /* 2 2 Plugin Name: RV Akismet 3 Version: 2.6. b3 Version: 2.6.c 4 4 Description: Uses Akismet online service to check comments agains spam 5 5 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=192
Note: See TracChangeset
for help on using the changeset viewer.