Changeset 13799 for extensions/rv_akismet/check.inc.php
- Timestamp:
- Mar 29, 2012, 8:48:09 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rv_akismet/check.inc.php
r7610 r13799 21 21 'referrer' => isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '', 22 22 ); 23 if (isset($_POST['url']) && strlen($_POST['url'])) 24 $aki_comm['comment_author_url'] = $_POST['url']; 23 25 24 26 $akismet = new Akismet(get_absolute_root_url(), $conf['akismet_api_key'], $aki_comm); … … 32 34 if ('reject'!=$action) set_status_header(403); 33 35 $counters[0]++; 36 $_POST['cr'][] = 'aki'; 34 37 } 38 else 39 $_POST['cr'][] = 'aki-ok'; 35 40 $counters[1]++; 36 41 $conf['akismet_counters'] = implode('/', $counters); … … 38 43 pwg_query($query); 39 44 } 40 elseif (is_admin()) 41 var_export( $akismet->getErrors() ); 45 else { 46 $_POST['cr'][] = 'aki-FAIL'; 47 if (is_admin()) 48 var_export( $akismet->getErrors() ); 49 } 42 50 43 51 return $action;
Note: See TracChangeset
for help on using the changeset viewer.