Changeset 325708
- Timestamp:
- 12/23/2010 05:45:27 PM (15 years ago)
- Location:
- nospampti/trunk
- Files:
-
- 2 edited
-
nospampti.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nospampti/trunk/nospampti.php
r289394 r325708 3 3 Plugin Name: NOSpam PTI 4 4 Plugin URI: http://projetoseti.com.br/ 5 5 6 Description: NOSpamPTI eliminates the span in your comment box for free, idea by Nando Vieira 6 Version: 1.07 Version: 2.0 7 8 Author: Rodrigo Coimbra 8 9 Author URI: http://projetoseti.com.br/ … … 28 29 $count = $wpdb->get_var("select count(*) from $wpdb->comments where comment_post_id = {$post_id} and comment_approved = '1'"); 29 30 $wpdb->query("update $wpdb->posts set comment_count = {$count} where ID = {$post_id}"); 30 wp_die(__(' Desculpe, resposta incorreta.'));31 wp_die(__('Sorry, wrong answer.')); 31 32 } 32 33 } … … 46 47 $hash = md5($challenge); 47 48 48 $question = "Quanto é {$n1} + {$n2}?";49 $question = __("Which the sum of: {$n1} + {$n2}"); 49 50 $field = sprintf('<p><label for="challenge">%s</label> <input type="hidden" name="challenge_hash" value="%s" /> <input type="text" name="challenge" id="challenge" size="2" /></p>', $question, $hash); 50 51 echo $field; -
nospampti/trunk/readme.txt
r289423 r325708 4 4 Tags: comments, spam, free antispam, 5 5 Requires at least: 2.0.2 6 Tested up to: 3. 0.16 Tested up to: 3.1 7 7 Stable tag: 1.0 8 8 … … 43 43 == Changelog == 44 44 45 = 2.0 = 46 * Added internationalization files 47 45 48 = 1.0 = 46 49 * Adjustments in screenshot.
Note: See TracChangeset
for help on using the changeset viewer.