Changeset 6672
- Timestamp:
- Jul 7, 2010, 7:53:58 AM (14 years ago)
- Location:
- extensions/rv_akismet
- Files:
-
- 14 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rv_akismet/admin.php
r6506 r6672 1 1 <?php 2 2 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 3 4 load_language('plugin.lang', AKIS_PATH); 3 5 4 6 function test_akismet() -
extensions/rv_akismet/admin.tpl
r6506 r6672 1 1 2 <p> This plugin verifies if your comments are spam using the <a href="http://www.akismet.com" target="_blank">akismet online service</a>.</p>2 <p>{'This plugin verifies if your comments are spam using the <a href="http://www.akismet.com" target="_blank">akismet online service'|@translate}</a>.</p> 3 3 4 <p> Akismet has caught <b>{$AKISMET_SPAM_COMMENTS} spam comments</b> out of {$AKISMET_CHECKED_COMMENTS} comments (<a href="{$AKISMET_RESET_STATS_URL}">reset counters</a>).4 <p>{'Akismet has caught'|@translate} <b>{$AKISMET_SPAM_COMMENTS} {'spam comments'|@translate}</b> {'out of'|@translate} {$AKISMET_CHECKED_COMMENTS} {'comments'|@translate} (<a href="{$AKISMET_RESET_STATS_URL}">{'reset counters'|@translate}</a>). 5 5 {if ! empty($AKISMET_API_KEY)} 6 More statistics on <a href="http://{$AKISMET_API_KEY}.web.akismet.com/1.0/user-stats.php?blog={$AKISMET_BLOG_URL|@escape:url}" target="_new">akismet site</a>.6 {'More statistics on'|@translate} <a href="http://{$AKISMET_API_KEY}.web.akismet.com/1.0/user-stats.php?blog={$AKISMET_BLOG_URL|@escape:url}" target="_new">{'akismet site'|@translate}</a>. 7 7 {/if} 8 8 </p> 9 9 <form method="post" class="properties"> 10 10 <fieldset> 11 <legend> Akismet configuration</legend>11 <legend>{'Akismet configuration'|@translate}</legend> 12 12 <ul> 13 13 14 14 <li> 15 15 <label> 16 Akismet API Key:16 {'Akismet API Key:'|@translate} 17 17 <input type="text" size="48" name="akismet_api_key" value="{$AKISMET_API_KEY}" /> 18 18 </label> 19 <br/> Signup for a personal usage key here:<a href="http://akismet.com/personal/" target="_blank">http://akismet.com/personal/</a>.19 <br/>{'Signup for a personal usage key here:'|@translate} <a href="http://akismet.com/personal/" target="_blank">http://akismet.com/personal/</a>. 20 20 </li> 21 21 … … 24 24 <li> 25 25 <label> 26 Action when spam is detected:26 {'Action when spam is detected:'|@translate} 27 27 <select name="akismet_spam_action"> 28 28 {html_options values='moderate,reject'|@explode output='moderate,reject'|@explode selected=$AKISMET_SPAM_ACTION } … … 36 36 </fieldset> 37 37 </form> 38 <p><a href="{$AKISMET_TEST_URL}"> Test your configuration</a>.</p>38 <p><a href="{$AKISMET_TEST_URL}">{'Test your configuration'|@translate}</a>.</p> -
extensions/rv_akismet/main.inc.php
r6506 r6672 7 7 Author URI: http://www.modusoptimus.com 8 8 */ 9 10 define('AKIS_DIR' , basename(dirname(__FILE__))); 11 define('AKIS_PATH' , PHPWG_PLUGINS_PATH . AKIS_DIR . '/'); 9 12 10 13 add_event_handler('user_comment_check', 'akismet_user_comment_check_wrapper', EVENT_HANDLER_PRIORITY_NEUTRAL+10, 2); … … 17 20 if ( empty($conf['akismet_api_key']) and in_array($page['page'], array('intro','plugins_list')) ) 18 21 { 19 $page['errors'][] = 'You need to define the Akismet api key'; 22 load_language('plugin.lang', AKIS_PATH); 23 $page['errors'][] = l10n('You need to define the Akismet api key'); 20 24 } 21 25 $admin_url = get_admin_plugin_menu_link(dirname(__FILE__).'/admin.php');
Note: See TracChangeset
for help on using the changeset viewer.