Changeset 18945 for extensions
- Timestamp:
- Nov 6, 2012, 7:58:42 AM (12 years ago)
- Location:
- extensions/rv_akismet
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rv_akismet/check.inc.php
r16004 r18945 18 18 'author' => $comment['author'], 19 19 'body' => $comment['content'], 20 'comment_author_url' => $comment['website_url'], 21 'comment_author_email' => $comment['email'], 20 22 'permalink' => $url, 21 23 'referrer' => isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '', 22 24 ); 23 if (isset($_POST['url']) && strlen($_POST['url']))24 $aki_comm['comment_author_url'] = $_POST['url']; 25 /*if (isset($_POST['url']) && strlen($_POST['url'])) 26 $aki_comm['comment_author_url'] = $_POST['url'];*/ 25 27 26 28 $akismet = new Akismet(get_absolute_root_url(), $conf['akismet_api_key'], $aki_comm); … … 41 43 { 42 44 $_POST['cr'][] = 'aki-ok'; 43 if (!isset($_SESSION['csi']) && isset($_POST['url']) && strlen($_POST['url']))45 if (!isset($_SESSION['csi']) /*&& isset($_POST['url']) && strlen($_POST['url']) */) 44 46 { 45 $action = ' reject';46 $_POST['cr'][] = 'csi url';47 $action = 'moderate'; 48 $_POST['cr'][] = 'csi'; 47 49 } 48 50 } -
extensions/rv_akismet/main.inc.php
r16004 r18945 1 1 <?php /* 2 2 Plugin Name: RV Akismet 3 Version: 2. 4.b3 Version: 2.5.a 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 … … 16 16 17 17 add_event_handler('get_admin_plugin_menu_links', 'akismet_plugin_admin_menu' ); 18 add_event_handler('init', 'akismet_init' );19 20 18 21 19 function akismet_plugin_admin_menu($menu) … … 28 26 } 29 27 $admin_url = get_admin_plugin_menu_link(dirname(__FILE__).'/admin.php'); 30 array_push($menu, 31 array( 28 $menu[] = array( 32 29 'NAME' => 'Akismet', 33 30 'URL' => $admin_url 34 ) 35 ); 31 ); 36 32 return $menu; 37 33 } … … 44 40 return $action; 45 41 } 42 43 /*add_event_handler('init', 'akismet_init' ); 46 44 47 45 function akismet_init() … … 60 58 } 61 59 return $source; 62 } 60 }*/ 63 61 64 62 function akismet_page_tail()
Note: See TracChangeset
for help on using the changeset viewer.