Contact Form & SMTP Plugin for WordPress by PirateForms - Version 1.0.18

Version Description

Download this release

Release Info

Developer codeinwp
Plugin Icon 128x128 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

Files changed (4) hide show
  1. CHANGELOG.md +10 -5
  2. img/preview.png +0 -0
  3. pirate-forms.php +7 -2
  4. readme.txt +2 -2
CHANGELOG.md CHANGED
@@ -1,4 +1,14 @@
1
 
 
 
 
2
- Fixed php strict standards error
3
- Update tags
4
- Tested up to WordPress 4.6
 
 
 
5
- Development
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.17
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
- $contact_ip = array_pop(explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']));
 
 
 
 
 
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 form 7,Attachment, cnotact, conact, contact, contact button, contact form, contact form plugin, contact me, contacts, contacts form plugin, contatc, copy, email submit form, email subscription, feedback, feedback form, form, insert the shortcode, message form, post feedback, request, send, send copy, send messages, shortcode, text, web-page feedback,smtp,recaptcha,admin, advanced form, best contact form plugin, contact, contact button, contact form, contact form builder, Contact Form Builder with recaptcha, contact form plugin, contact forms, contact forms plugin, contact manager, contact us, contact us form, contacts form plugin, custom form, feedback, feedback form, feedback forms, form, forms, forms plugin, post feedback, web form, web forms, wordpress contact form
4
  Requires at least: 3.0
5
- Tested up to: 4.5.2
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