Version Description
- Fixed an issue identified Charlie Eriksen. Listed as Secunia Advisory SA52881. Fixes a security issue that could possibly result in the plugin being inadvertently deactivated.
- Fixes a typo on the options screen
Download this release
Release Info
| Developer | jkmassel |
| Plugin | |
| Version | 1.09 |
| Comparing to | |
| See all releases | |
Code changes from version 1.08 to 1.09
- ajax-loader.gif +0 -0
- defaultMessage.php +0 -0
- readme.txt +6 -2
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
- screenshot-4.png +0 -0
- ucOptions.php +11 -1
- underConstruction.php +1 -1
- underconstruction.dev.js +0 -0
- underconstruction.min.js +0 -0
ajax-loader.gif
CHANGED
|
File without changes
|
defaultMessage.php
CHANGED
|
File without changes
|
readme.txt
CHANGED
|
@@ -3,8 +3,8 @@ Contributors: Jeremy Massel
|
|
| 3 |
Donate link: http://masseltech.com/donate/
|
| 4 |
Tags: construction, under construction, private, preview, security, coming soon
|
| 5 |
Requires at least: 2.7
|
| 6 |
-
Tested up to: 3.
|
| 7 |
-
Stable tag: 1.
|
| 8 |
|
| 9 |
Creates a 'Coming Soon' page that will show for all users who are not logged in
|
| 10 |
|
|
@@ -43,6 +43,10 @@ Sorry, I get a lot of questions. But visit the homepage for this plugin and leav
|
|
| 43 |
|
| 44 |
== Changelog ==
|
| 45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
= 1.08 =
|
| 47 |
* Fixed an embarrassingly old bug caused by using the old plugin registration API. It would result in a "has_cap is deprecated…" warning. Sorry 'bout that folks.
|
| 48 |
|
| 3 |
Donate link: http://masseltech.com/donate/
|
| 4 |
Tags: construction, under construction, private, preview, security, coming soon
|
| 5 |
Requires at least: 2.7
|
| 6 |
+
Tested up to: 3.5.1
|
| 7 |
+
Stable tag: 1.09
|
| 8 |
|
| 9 |
Creates a 'Coming Soon' page that will show for all users who are not logged in
|
| 10 |
|
| 43 |
|
| 44 |
== Changelog ==
|
| 45 |
|
| 46 |
+
= 1.09 =
|
| 47 |
+
* Fixed an issue identified Charlie Eriksen. Listed as Secunia Advisory SA52881. Fixes a security issue that could possibly result in the plugin being inadvertently deactivated.
|
| 48 |
+
* Fixes a typo on the options screen
|
| 49 |
+
|
| 50 |
= 1.08 =
|
| 51 |
* Fixed an embarrassingly old bug caused by using the old plugin registration API. It would result in a "has_cap is deprecated…" warning. Sorry 'bout that folks.
|
| 52 |
|
screenshot-1.png
CHANGED
|
File without changes
|
screenshot-2.png
CHANGED
|
File without changes
|
screenshot-3.png
CHANGED
|
File without changes
|
screenshot-4.png
CHANGED
|
File without changes
|
ucOptions.php
CHANGED
|
@@ -1,4 +1,11 @@
|
|
| 1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
if (isset($_GET['turnOnUnderConstructionMode']))
|
| 3 |
{
|
| 4 |
update_option('underConstructionActivationStatus', 1);
|
|
@@ -292,7 +299,7 @@ if(isset($_POST['required_role'])){
|
|
| 292 |
title="HTTP503"> <input type="radio" name="display_options"
|
| 293 |
value="1" id="displayOption1"
|
| 294 |
<?php if ($this->displayStatusCodeIs(1)) { echo ' checked="checked"'; } ?>>
|
| 295 |
-
Display the default under construction page
|
| 296 |
</label> <br /> <label title="HTTP503"> <input type="radio"
|
| 297 |
name="display_options" value="2" id="displayOption2"
|
| 298 |
<?php if ($this->displayStatusCodeIs(2)) { echo ' checked="checked"'; } ?>>
|
|
@@ -337,6 +344,9 @@ if(isset($_POST['required_role'])){
|
|
| 337 |
<?php echo '<textarea name="ucHTML" rows="15" cols="75">'.$this->getCustomHTML().'</textarea>'; ?>
|
| 338 |
</div>
|
| 339 |
<p class="submit">
|
|
|
|
|
|
|
|
|
|
| 340 |
<input type="submit" name="Submit" class="button-primary"
|
| 341 |
value="Save Changes" id="submitChangesToUnderConstructionPlugin" />
|
| 342 |
</p>
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
+
if($_SERVER['REQUEST_METHOD'] == "POST"){
|
| 4 |
+
if(!wp_verify_nonce($_POST['save_options_field'], 'save_options')){
|
| 5 |
+
die("Sorry, but this request is invalid");
|
| 6 |
+
}
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
if (isset($_GET['turnOnUnderConstructionMode']))
|
| 10 |
{
|
| 11 |
update_option('underConstructionActivationStatus', 1);
|
| 299 |
title="HTTP503"> <input type="radio" name="display_options"
|
| 300 |
value="1" id="displayOption1"
|
| 301 |
<?php if ($this->displayStatusCodeIs(1)) { echo ' checked="checked"'; } ?>>
|
| 302 |
+
Display the default under construction page, but use custom text
|
| 303 |
</label> <br /> <label title="HTTP503"> <input type="radio"
|
| 304 |
name="display_options" value="2" id="displayOption2"
|
| 305 |
<?php if ($this->displayStatusCodeIs(2)) { echo ' checked="checked"'; } ?>>
|
| 344 |
<?php echo '<textarea name="ucHTML" rows="15" cols="75">'.$this->getCustomHTML().'</textarea>'; ?>
|
| 345 |
</div>
|
| 346 |
<p class="submit">
|
| 347 |
+
<?php wp_nonce_field('save_options','save_options_field'); ?>
|
| 348 |
+
|
| 349 |
+
|
| 350 |
<input type="submit" name="Submit" class="button-primary"
|
| 351 |
value="Save Changes" id="submitChangesToUnderConstructionPlugin" />
|
| 352 |
</p>
|
underConstruction.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
Plugin Name: Under Construction
|
| 4 |
Plugin URI: http://www.masseltech.com/
|
| 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: Jeremy Massel
|
| 8 |
Author URI: http://www.masseltech.com/
|
| 9 |
*/
|
| 3 |
Plugin Name: Under Construction
|
| 4 |
Plugin URI: http://www.masseltech.com/
|
| 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.09
|
| 7 |
Author: Jeremy Massel
|
| 8 |
Author URI: http://www.masseltech.com/
|
| 9 |
*/
|
underconstruction.dev.js
CHANGED
|
File without changes
|
underconstruction.min.js
CHANGED
|
File without changes
|
