Version Description
Download this release
Release Info
Developer | codeinwp |
Plugin | Contact Form & SMTP Plugin for WordPress by PirateForms |
Version | 1.0.18 |
Comparing to | |
See all releases |
Code changes from version 1.0.17 to 1.0.18
- CHANGELOG.md +10 -5
- img/preview.png +0 -0
- pirate-forms.php +7 -2
- readme.txt +2 -2
CHANGELOG.md
CHANGED
@@ -1,4 +1,14 @@
|
|
1 |
|
|
|
|
|
|
|
2 |
-
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
5 |
-
|
6 |
|
7 |
|
8 |
|
9 |
-
Fixed IP issue when using web server behind a reverse proxy
|
1 |
|
2 |
+
|
3 |
+
|
4 |
+
|
5 |
+
|
6 |
+
|
7 |
+
|
8 |
+
|
9 |
+
|
10 |
+
|
11 |
+
|
12 |
|
13 |
|
14 |
|
|
img/preview.png
DELETED
Binary file
|
pirate-forms.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Free & Simple Contact Form Plugin - PirateForms
|
4 |
Plugin URI: http://themeisle.com/plugins/pirate-forms/
|
5 |
Description: Easily creates a nice looking, simple contact form on your WP site.
|
6 |
-
Version: 1.0.
|
7 |
Author: Themeisle
|
8 |
Author URI: http://themeisle.com
|
9 |
Text Domain: pirate-forms
|
@@ -586,7 +586,12 @@ function pirate_forms_process_contact() {
|
|
586 |
|
587 |
/* for the case of a Web server behind a reverse proxy */
|
588 |
if (array_key_exists('HTTP_X_FORWARDED_FOR', $_SERVER)) {
|
589 |
-
|
|
|
|
|
|
|
|
|
|
|
590 |
}
|
591 |
|
592 |
// If valid and present, create a link to an IP search
|
3 |
Plugin Name: Free & Simple Contact Form Plugin - PirateForms
|
4 |
Plugin URI: http://themeisle.com/plugins/pirate-forms/
|
5 |
Description: Easily creates a nice looking, simple contact form on your WP site.
|
6 |
+
Version: 1.0.18
|
7 |
Author: Themeisle
|
8 |
Author URI: http://themeisle.com
|
9 |
Text Domain: pirate-forms
|
586 |
|
587 |
/* for the case of a Web server behind a reverse proxy */
|
588 |
if (array_key_exists('HTTP_X_FORWARDED_FOR', $_SERVER)) {
|
589 |
+
|
590 |
+
$contact_ip_tmp = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);
|
591 |
+
if( !empty( $contact_ip_tmp ) ) {
|
592 |
+
$contact_ip = array_pop( $contact_ip_tmp );
|
593 |
+
}
|
594 |
+
|
595 |
}
|
596 |
|
597 |
// If valid and present, create a link to an IP search
|
readme.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
=== Simple Contact Form Plugin - PirateForms ===
|
2 |
Contributors: themeisle, codeinwp, rodicaelena, alexandrastan001, gouravwptech, hardeepasrani
|
3 |
-
Tags: contact
|
4 |
Requires at least: 3.0
|
5 |
-
Tested up to: 4.
|
6 |
Stable tag: trunk
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
1 |
=== Simple Contact Form Plugin - PirateForms ===
|
2 |
Contributors: themeisle, codeinwp, rodicaelena, alexandrastan001, gouravwptech, hardeepasrani
|
3 |
+
Tags: contact forms plugin, contact form, contact us, contact us form, contacts form plugin, custom form, subscribe form, feedback form, wordpress contact form
|
4 |
Requires at least: 3.0
|
5 |
+
Tested up to: 4.6
|
6 |
Stable tag: trunk
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|