Version Description
- Add ipv6 support https://wordpress.org/support/topic/underconstruction-ipv6-support
Download this release
Release Info
Developer | grimmdude |
Plugin | underConstruction |
Version | 1.17 |
Comparing to | |
See all releases |
Code changes from version 1.16 to 1.17
- readme.txt +5 -2
- ucOptions.php +2 -1
- underConstruction.php +2 -2
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: Jeremy Massel
|
3 |
Tags: construction, under construction, private, preview, security, coming soon
|
4 |
Requires at least: 2.7
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag: 1.
|
7 |
|
8 |
Creates a 'Coming Soon' page that will show for all users who are not logged in
|
9 |
|
@@ -41,6 +41,9 @@ I've had a few people ask me this. If you like it, please go to WordPress.org an
|
|
41 |
Sorry, I get a lot of questions. But visit the homepage for this plugin and leave me a comment. They go right to my inbox, and well I might not be able to for a few days, I promise I'll get back to you.
|
42 |
|
43 |
== Changelog ==
|
|
|
|
|
|
|
44 |
= 1.15 =
|
45 |
* Add capability check for options page. Requires publish_pages
|
46 |
|
2 |
Contributors: Jeremy Massel
|
3 |
Tags: construction, under construction, private, preview, security, coming soon
|
4 |
Requires at least: 2.7
|
5 |
+
Tested up to: 4.5
|
6 |
+
Stable tag: 1.17
|
7 |
|
8 |
Creates a 'Coming Soon' page that will show for all users who are not logged in
|
9 |
|
41 |
Sorry, I get a lot of questions. But visit the homepage for this plugin and leave me a comment. They go right to my inbox, and well I might not be able to for a few days, I promise I'll get back to you.
|
42 |
|
43 |
== Changelog ==
|
44 |
+
= 1.17 =
|
45 |
+
* Add ipv6 support https://wordpress.org/support/topic/underconstruction-ipv6-support
|
46 |
+
|
47 |
= 1.15 =
|
48 |
* Add capability check for options page. Requires publish_pages
|
49 |
|
ucOptions.php
CHANGED
@@ -111,7 +111,8 @@ if (isset($_POST['http_status']))
|
|
111 |
if(isset($_POST['ip_address'])){
|
112 |
|
113 |
$ip = $_POST['ip_address'];
|
114 |
-
$ip =
|
|
|
115 |
|
116 |
if($ip != "0.0.0.0"){
|
117 |
$array = get_option('underConstructionIPWhitelist');
|
111 |
if(isset($_POST['ip_address'])){
|
112 |
|
113 |
$ip = $_POST['ip_address'];
|
114 |
+
$ip = inet_ntop(inet_pton($ip));
|
115 |
+
//$ip = long2ip(ip2long($ip));
|
116 |
|
117 |
if($ip != "0.0.0.0"){
|
118 |
$array = get_option('underConstructionIPWhitelist');
|
underConstruction.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Under Construction
|
4 |
Plugin URI: https://wordpress.org/plugins/underconstruction/
|
5 |
Description: Makes it so your site can only be accessed by users who log in. Useful for developing a site on a live server, without the world being able to see it
|
6 |
-
Version: 1.
|
7 |
Author: Noah Kagan
|
8 |
Author URI: http://SumoMe.com/
|
9 |
*/
|
@@ -86,7 +86,7 @@ class underConstruction
|
|
86 |
$array = array();
|
87 |
}
|
88 |
|
89 |
-
if(!in_array($_SERVER['REMOTE_ADDR'], $array)){
|
90 |
|
91 |
//send a 503 if the setting requires it
|
92 |
if (get_option('underConstructionHTTPStatus') == 503)
|
3 |
Plugin Name: Under Construction
|
4 |
Plugin URI: https://wordpress.org/plugins/underconstruction/
|
5 |
Description: Makes it so your site can only be accessed by users who log in. Useful for developing a site on a live server, without the world being able to see it
|
6 |
+
Version: 1.17
|
7 |
Author: Noah Kagan
|
8 |
Author URI: http://SumoMe.com/
|
9 |
*/
|
86 |
$array = array();
|
87 |
}
|
88 |
|
89 |
+
if(!in_array(inet_ntop(inet_pton($_SERVER['REMOTE_ADDR'])), $array)){
|
90 |
|
91 |
//send a 503 if the setting requires it
|
92 |
if (get_option('underConstructionHTTPStatus') == 503)
|