Changeset 15837 for extensions
- Timestamp:
- Jun 19, 2012, 10:07:06 PM (12 years ago)
- Location:
- extensions/rv_akismet
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rv_akismet/check.inc.php
r13799 r15837 32 32 { 33 33 $action = $conf['akismet_spam_action']; 34 if ('reject'==$action && !is_a_guest() && isset($_SESSION['csi'])) 35 $action='moderate'; 34 36 if ('reject'!=$action) set_status_header(403); 35 37 $counters[0]++; … … 37 39 } 38 40 else 41 { 39 42 $_POST['cr'][] = 'aki-ok'; 43 if (!isset($_SESSION['csi']) && isset($_POST['url']) && strlen($_POST['url']) ) 44 { 45 $action = 'reject'; 46 $_POST['cr'][] = 'csi url'; 47 } 48 } 40 49 $counters[1]++; 41 50 $conf['akismet_counters'] = implode('/', $counters); -
extensions/rv_akismet/main.inc.php
r13799 r15837 42 42 include_once( dirname(__FILE__).'/check.inc.php' ); 43 43 $action = akismet_user_comment_check($action, $comment); 44 if (!isset($_SESSION['csi']) && isset($_POST['url']) && strlen($_POST['url']) )45 {46 $action = 'reject';47 $_POST['cr'][] = 'csi url';48 }49 44 return $action; 50 45 } … … 70 65 { 71 66 global $template, $conf; 72 if (!isset($_SESSION['csi']) && strpos( $_SERVER['HTTP_USER_AGENT'],'bot')===false)67 if (!isset($_SESSION['csi']) && strpos(@$_SERVER['HTTP_USER_AGENT'],'bot')===false) 73 68 { 74 69 $src = get_root_url().'plugins/'.AKIS_DIR.'/csi.php';
Note: See TracChangeset
for help on using the changeset viewer.