Version Description
- Removed unwanted settings.
Download this release
Release Info
Developer | dnesscarkey |
Plugin | WP Armour – Honeypot Anti Spam |
Version | 1.1 |
Comparing to | |
See all releases |
Code changes from version 1.0 to 1.1
- honeypot.php +1 -1
- includes/hp_functions.php +1 -1
- includes/views/hp_settings.php +0 -70
- readme.txt +4 -1
honeypot.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: HoneyPot
|
|
4 |
Plugin URI: http://wordpress.org/plugins/honeypot/
|
5 |
Description: Add Honey Pot spam protection.
|
6 |
Author: Dinesh Karki
|
7 |
-
Version: 1.
|
8 |
Author URI: https://dineshkarki.com.np
|
9 |
*/
|
10 |
|
4 |
Plugin URI: http://wordpress.org/plugins/honeypot/
|
5 |
Description: Add Honey Pot spam protection.
|
6 |
Author: Dinesh Karki
|
7 |
+
Version: 1.1
|
8 |
Author URI: https://dineshkarki.com.np
|
9 |
*/
|
10 |
|
includes/hp_functions.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
function hp_load_scripts(){
|
3 |
echo '<script>var honeypot_hidden_field = "'.$GLOBALS['honeypot_hidden_field'].'";</script>';
|
4 |
-
wp_enqueue_script( 'hpscript', plugins_url( '/js/hp.js', __FILE__ ), array ( 'jquery' ), 1.
|
5 |
}
|
6 |
|
7 |
function hp_plugin_menu(){
|
1 |
<?php
|
2 |
function hp_load_scripts(){
|
3 |
echo '<script>var honeypot_hidden_field = "'.$GLOBALS['honeypot_hidden_field'].'";</script>';
|
4 |
+
wp_enqueue_script( 'hpscript', plugins_url( '/js/hp.js', __FILE__ ), array ( 'jquery' ), 1.1, true);
|
5 |
}
|
6 |
|
7 |
function hp_plugin_menu(){
|
includes/views/hp_settings.php
CHANGED
@@ -30,75 +30,5 @@
|
|
30 |
</tr>
|
31 |
</form>
|
32 |
|
33 |
-
</tbody>
|
34 |
-
</table><br/>
|
35 |
-
|
36 |
-
|
37 |
-
<table class="wp-list-table widefat">
|
38 |
-
<thead>
|
39 |
-
<tr>
|
40 |
-
<th colspan="2"><strong>HoneyPot Extended Settings</strong></th>
|
41 |
-
</tr>
|
42 |
-
</thead>
|
43 |
-
<tbody>
|
44 |
-
<tr>
|
45 |
-
<td colspan="2"><strong>HoneyPot Extended Settings that work once Honey Extended is active. Not needed for spam prevention to work. But very helpfull additionals tools and good to have.</strong></td>
|
46 |
-
</tr>
|
47 |
-
<form method="post" action="">
|
48 |
-
|
49 |
-
<tr>
|
50 |
-
<td width="250">Enable Stats</td>
|
51 |
-
<td>
|
52 |
-
<?php $honeypot_enable_stats = get_option('honeypot_enable_stats'); ?>
|
53 |
-
<select name="honeypot_enable_stats">
|
54 |
-
<option value="yes" <?php echo $honeypot_enable_stats == 'yes'?'selected="selected"':''; ?>>Yes</option>
|
55 |
-
<option value="no" <?php echo $honeypot_enable_stats == 'no'?'selected="selected"':''; ?>>No</option>
|
56 |
-
</select>
|
57 |
-
</td>
|
58 |
-
</tr>
|
59 |
-
|
60 |
-
<tr>
|
61 |
-
<td>Log Spammer IP</td>
|
62 |
-
<td>
|
63 |
-
<?php $honeypot_log_spammer_ip = get_option('honeypot_log_spammer_ip'); ?>
|
64 |
-
<select name="honeypot_log_spammer_ip">
|
65 |
-
<option value="no" <?php echo $honeypot_log_spammer_ip == 'no'?'selected="selected"':''; ?>>No</option>
|
66 |
-
<option value="yes" <?php echo $honeypot_log_spammer_ip == 'yes'?'selected="selected"':''; ?>>Yes</option>
|
67 |
-
</select>
|
68 |
-
</td>
|
69 |
-
|
70 |
-
</tr>
|
71 |
-
|
72 |
-
<tr>
|
73 |
-
<td>Log Spam Submission</td>
|
74 |
-
<td>
|
75 |
-
<?php $honeypot_log_spam_data = get_option('honeypot_log_spam_data'); ?>
|
76 |
-
<select name="honeypot_log_spam_data">
|
77 |
-
<option value="no" <?php echo $honeypot_log_spam_data == 'no'?'selected="selected"':''; ?>>No</option>
|
78 |
-
<option value="yes" <?php echo $honeypot_log_spam_data == 'yes'?'selected="selected"':''; ?>>Yes</option>
|
79 |
-
</select>
|
80 |
-
<br/><em><strong>Want to know what Spammer tried to post ? Enable this.</strong></em>
|
81 |
-
</td>
|
82 |
-
</tr>
|
83 |
-
|
84 |
-
<tr>
|
85 |
-
<td>Auto Block IP after </td>
|
86 |
-
<td>
|
87 |
-
<?php $honeypot_auto_block_ip = get_option('honeypot_auto_block_ip'); ?>
|
88 |
-
<select name="honeypot_auto_block_ip">
|
89 |
-
<option value="no" <?php echo $honeypot_auto_block_ip == 'no'?'selected="selected"':''; ?>>Don't Block</option>
|
90 |
-
<option value="2" <?php echo $honeypot_auto_block_ip == '2'?'selected="selected"':''; ?>>After 2 Spam Submissions</option>
|
91 |
-
<option value="5" <?php echo $honeypot_auto_block_ip == '5'?'selected="selected"':''; ?>>After 5 Spam Submissions</option>
|
92 |
-
<option value="10" <?php echo $honeypot_auto_block_ip == '10'?'selected="selected"':''; ?>>After 10 Spam Submissions</option>
|
93 |
-
</select><br/>
|
94 |
-
<em><strong>Blocking IP will make site inaccessible for that user. Must enable Log Spammer IP to work.</strong></em>
|
95 |
-
</td>
|
96 |
-
</tr>
|
97 |
-
|
98 |
-
<tr>
|
99 |
-
<td colspan="2"><input type="submit" name="submit-hp-general-settings" class="button-primary" value="Save Extended Settings" /></td>
|
100 |
-
</tr>
|
101 |
-
</form>
|
102 |
-
|
103 |
</tbody>
|
104 |
</table><br/>
|
30 |
</tr>
|
31 |
</form>
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
</tbody>
|
34 |
</table><br/>
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: dnesscarkey
|
|
3 |
Tags: anti-spam, block spam, gravity forms, bbpress, contact form 7,
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 5.4.2
|
6 |
-
Stable tag: 1.
|
7 |
License: GPLv2 or later
|
8 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -39,5 +39,8 @@ Ya, Please write to us and we will add support to it.
|
|
39 |
|
40 |
== Changelog ==
|
41 |
|
|
|
|
|
|
|
42 |
= = 1.0 =
|
43 |
* First Release
|
3 |
Tags: anti-spam, block spam, gravity forms, bbpress, contact form 7,
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 5.4.2
|
6 |
+
Stable tag: 1.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
39 |
|
40 |
== Changelog ==
|
41 |
|
42 |
+
= = 1.1 =
|
43 |
+
* Removed unwanted settings.
|
44 |
+
|
45 |
= = 1.0 =
|
46 |
* First Release
|