Coming soon and Maintenance mode - Version 2.1.4

Version Description

Download this release

Release Info

Developer wpdevart
Plugin Icon 128x128 Coming soon and Maintenance mode
Version 2.1.4
Comparing to
See all releases

Code changes from version 2.1.3 to 2.1.4

Files changed (3) hide show
  1. coming_soon.php +1 -1
  2. includes/front_end.php +7 -7
  3. readme.txt +3 -3
coming_soon.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Coming soon and Maintenance mode WpDevArt
4
  * Plugin URI: http://wpdevart.com/wordpress-coming-soon-plugin
5
  * Description: Coming soon and Maintenance mode plugin is awesome tool to show your users that you are working on your website to make it better. Our coming soon plugin is the best way to create better coming soon page.
6
- * Version: 2.1.3
7
  * Author: maintenance mode GG, wpdevart, big ben keeper
8
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
9
  */
3
  * Plugin Name: Coming soon and Maintenance mode WpDevArt
4
  * Plugin URI: http://wpdevart.com/wordpress-coming-soon-plugin
5
  * Description: Coming soon and Maintenance mode plugin is awesome tool to show your users that you are working on your website to make it better. Our coming soon plugin is the best way to create better coming soon page.
6
+ * Version: 2.1.4
7
  * Author: maintenance mode GG, wpdevart, big ben keeper
8
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
9
  */
includes/front_end.php CHANGED
@@ -118,19 +118,19 @@ class coming_soon_front_end{
118
  }
119
  private function get_real_ip() {
120
  $ipaddress = '';
121
- if ($_SERVER['HTTP_INCAP_CLIENT_IP'])
122
  $ipaddress = $_SERVER['HTTP_INCAP_CLIENT_IP'];
123
- else if($_SERVER['HTTP_CLIENT_IP'])
124
  $ipaddress = $_SERVER['HTTP_CLIENT_IP'];
125
- else if($_SERVER['HTTP_X_FORWARDED_FOR'])
126
  $ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR'];
127
- else if($_SERVER['HTTP_X_FORWARDED'])
128
  $ipaddress = $_SERVER['HTTP_X_FORWARDED'];
129
- else if($_SERVER['HTTP_FORWARDED_FOR'])
130
  $ipaddress = $_SERVER['HTTP_FORWARDED_FOR'];
131
- else if($_SERVER['HTTP_FORWARDED'])
132
  $ipaddress = $_SERVER['HTTP_FORWARDED'];
133
- else if($_SERVER['REMOTE_ADDR'])
134
  $ipaddress = $_SERVER['REMOTE_ADDR'];
135
  else
136
  $ipaddress = 'UNKNOWN';
118
  }
119
  private function get_real_ip() {
120
  $ipaddress = '';
121
+ if (isset($_SERVER['HTTP_INCAP_CLIENT_IP']) && $_SERVER['HTTP_INCAP_CLIENT_IP'])
122
  $ipaddress = $_SERVER['HTTP_INCAP_CLIENT_IP'];
123
+ else if(isset($_SERVER['HTTP_CLIENT_IP']) && $_SERVER['HTTP_CLIENT_IP'])
124
  $ipaddress = $_SERVER['HTTP_CLIENT_IP'];
125
+ else if(isset($_SERVER['HTTP_X_FORWARDED_FOR']) && $_SERVER['HTTP_X_FORWARDED_FOR'])
126
  $ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR'];
127
+ else if(isset($_SERVER['HTTP_X_FORWARDED']) && $_SERVER['HTTP_X_FORWARDED'])
128
  $ipaddress = $_SERVER['HTTP_X_FORWARDED'];
129
+ else if(isset($_SERVER['HTTP_FORWARDED_FOR']) && $_SERVER['HTTP_FORWARDED_FOR'])
130
  $ipaddress = $_SERVER['HTTP_FORWARDED_FOR'];
131
+ else if(isset($_SERVER['HTTP_FORWARDED']) && $_SERVER['HTTP_FORWARDED'])
132
  $ipaddress = $_SERVER['HTTP_FORWARDED'];
133
+ else if(isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'])
134
  $ipaddress = $_SERVER['REMOTE_ADDR'];
135
  else
136
  $ipaddress = 'UNKNOWN';
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Coming soon and Maintenance mode ===
2
  Contributors: maintenance mode GG, wpdevart, big ben keeper
3
  Donate link: http://wpdevart.com/wordpress-coming-soon-plugin/
4
- Tags: widget, Post , plugin, admin, twitter, page, coming soon, coming soon page, construction, landing page, launch, launch page, maintenance, maintenance mode, newsletter, offline, unavailable, under construction, wordpress coming soon, wordpress maintenance mode, wordpress under construction, landing page, underconstruction, squeeze page, countdown, maintenance page, site offline, wordpress maintenance plugin, wordpress maintenance mode. wordpress under constructio, email, gmail, message, notify, preview, subscriber, user, meta, under maintenance, site maintenance, schedule maintenance, admin maintenance, Maintenance Checklist, mode, custom maintenence mode, bing
5
  Requires at least: 3.4.0
6
  Tested up to: 4.2.3
7
- Stable tag: 2.1.3
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -212,7 +212,7 @@ We recommend you to take a look for this useful plugins - [WordPress Poll plugin
212
 
213
  = 2.1.3 =
214
 
215
- * Fixed some issues.
216
 
217
  ==Wordpress Coming soon step by step guide==
218
 
1
  === Coming soon and Maintenance mode ===
2
  Contributors: maintenance mode GG, wpdevart, big ben keeper
3
  Donate link: http://wpdevart.com/wordpress-coming-soon-plugin/
4
+ Tags: widget, Post , plugin, admin, twitter, page, coming soon, coming soon page, construction, landing page, launch, launch page, maintenance, maintenance mode, newsletter, offline, unavailable, under construction, wordpress coming soon, wordpress maintenance mode, wordpress under construction, landing page, underconstruction, squeeze page, countdown, maintenance page, site offline, wordpress maintenance plugin, wordpress maintenance mode. wordpress under constructio, email, gmail, message, notify, preview, subscriber, user, meta, under maintenance, site maintenance, schedule maintenance, admin maintenance, Maintenance Checklist, mode, custom maintenence mode
5
  Requires at least: 3.4.0
6
  Tested up to: 4.2.3
7
+ Stable tag: 2.1.4
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
212
 
213
  = 2.1.3 =
214
 
215
+ * Notices fixed.
216
 
217
  ==Wordpress Coming soon step by step guide==
218