Version Description
(07/25/2013) = * Fixes for php notices in scrict mode * Alternative for check url, if curl is not installed
Download this release
Release Info
| Developer | Bueltge |
| Plugin | |
| Version | 1.8.11 |
| Comparing to | |
| See all releases | |
Code changes from version 1.8.10 to 1.8.11
- inc/key-check.php +13 -0
- inc/wp-maintenance-mode-settings.php +1 -1
- readme.txt +16 -24
- wp-maintenance-mode.php +8 -5
inc/key-check.php
CHANGED
|
@@ -40,6 +40,19 @@
|
|
| 40 |
if ( ! filter_var( $url, FILTER_VALIDATE_URL ) )
|
| 41 |
return FALSE;
|
| 42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
$handle = curl_init( urldecode( $url ) );
|
| 44 |
curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT, 0.5 );
|
| 45 |
curl_setopt( $handle, CURLOPT_TIMEOUT, 1 );
|
| 40 |
if ( ! filter_var( $url, FILTER_VALIDATE_URL ) )
|
| 41 |
return FALSE;
|
| 42 |
|
| 43 |
+
if ( ! function_exists( 'curl_init' ) && function_exists( 'get_headers' ) ) {
|
| 44 |
+
|
| 45 |
+
$headers = get_headers( $url, 1 );
|
| 46 |
+
if ( $headers[0] == 'HTTP/1.1 200 OK' )
|
| 47 |
+
return TRUE;
|
| 48 |
+
else
|
| 49 |
+
return FALSE;
|
| 50 |
+
|
| 51 |
+
} else if ( function_exists( 'curl_init' ) && ! function_exists( 'get_headers' ) ) {
|
| 52 |
+
|
| 53 |
+
return FALSE;
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
$handle = curl_init( urldecode( $url ) );
|
| 57 |
curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT, 0.5 );
|
| 58 |
curl_setopt( $handle, CURLOPT_TIMEOUT, 1 );
|
inc/wp-maintenance-mode-settings.php
CHANGED
|
@@ -75,7 +75,7 @@ class WPMaintenanceMode_Settings {
|
|
| 75 |
* @param $wm_context Object (all, active, inactive)
|
| 76 |
* @return void
|
| 77 |
*/
|
| 78 |
-
public function add_config_form( $wm_pluginfile, $wm_plugindata, $wm_context ) {
|
| 79 |
global $wp_roles;
|
| 80 |
|
| 81 |
//if ( 0 < count($_POST['checked']) )
|
| 75 |
* @param $wm_context Object (all, active, inactive)
|
| 76 |
* @return void
|
| 77 |
*/
|
| 78 |
+
public static function add_config_form( $wm_pluginfile, $wm_plugindata, $wm_context ) {
|
| 79 |
global $wp_roles;
|
| 80 |
|
| 81 |
//if ( 0 < count($_POST['checked']) )
|
readme.txt
CHANGED
|
@@ -1,14 +1,14 @@
|
|
| 1 |
=== WP Maintenance Mode ===
|
| 2 |
-
Contributors:
|
| 3 |
Plugin Name: WP Maintenance Mode
|
| 4 |
-
Plugin URI:
|
| 5 |
-
Author:
|
| 6 |
-
Author URI: http://
|
| 7 |
-
Donate link:
|
| 8 |
Tags: maintenance, mode, admin, administration, unavailable, coming soon, multisite
|
| 9 |
Requires at least: 3.0
|
| 10 |
-
Tested up to: 3.
|
| 11 |
-
Stable tag: 1.8.
|
| 12 |
|
| 13 |
Adds a splash page to your site that lets visitors know your site is down for maintenance. Full access to the back- & front-end is optional.
|
| 14 |
|
|
@@ -57,11 +57,7 @@ More hooks for other data, if the settings possibilities is not enough.
|
|
| 57 |
1. PHP 5
|
| 58 |
|
| 59 |
= Bugs, technical hints or contribute =
|
| 60 |
-
Please give us feedback, contribute and file technical bugs on [GitHub Repo](https://github.com/
|
| 61 |
-
|
| 62 |
-
**Made by [Inpsyde](http://inpsyde.com) · We love WordPress**
|
| 63 |
-
|
| 64 |
-
Have a look at the premium plugins in our [market](http://marketpress.com).
|
| 65 |
|
| 66 |
= Work with MySQLDumper =
|
| 67 |
This option is designed for users, who backups their database with "MySQLDumper".
|
|
@@ -108,9 +104,6 @@ Please visit [Automatisches Backup der WordPress-Datenbank](http://www.beedy.de/
|
|
| 108 |
= Cache Plugin Support =
|
| 109 |
The plugin flush the cache on activate the maintenance mode form the plugins W3 Total Cache and WP Super Cache
|
| 110 |
|
| 111 |
-
= Interested in WordPress tips and tricks =
|
| 112 |
-
You may also be interested in WordPress tips and tricks at [WP Engineer](http://wpengineer.com/) or for german people [bueltge.de](http://bueltge.de/)
|
| 113 |
-
|
| 114 |
== Installation ==
|
| 115 |
1. Unpack the download-package
|
| 116 |
1. Upload all files to the `/wp-content/plugins/` directory, include folders
|
|
@@ -119,8 +112,6 @@ You may also be interested in WordPress tips and tricks at [WP Engineer](http://
|
|
| 119 |
1. Activate under the settings and your blog is in maintenance mode
|
| 120 |
1. Please check the **Exclude** option in settings for parts of your install; maybe an custom login-adress etc.
|
| 121 |
|
| 122 |
-
See on [the official website](http://bueltge.de/wp-wartungsmodus-plugin/101/ "WP Maintenance Mode").
|
| 123 |
-
|
| 124 |
== Screenshots ==
|
| 125 |
1. Aktiv Maintenance-Mode with Theme "The Truck" and german language
|
| 126 |
1. Settings on plugin-page
|
|
@@ -137,12 +128,6 @@ See on [the official website](http://bueltge.de/wp-wartungsmodus-plugin/101/ "WP
|
|
| 137 |
1. Aktiv Maintenance-Mode with Theme "Chemistry"
|
| 138 |
|
| 139 |
== Frequently Asked Questions ==
|
| 140 |
-
= Where can I get more information? =
|
| 141 |
-
Please visit [the official website](http://bueltge.de/wp-wartungsmodus-plugin/101/ "WP Maintenance Mode") for the latest information on this plugin.
|
| 142 |
-
|
| 143 |
-
= I love this plugin! How can I show the developer how much I appreciate his work? =
|
| 144 |
-
Please visit [the official website](http://bueltge.de/wp-wartungsmodus-plugin/101/ "WP Maintenance Mode") and let him know your care or see the [wishlist](http://bueltge.de/wunschliste/ "Wishlist") of the author.
|
| 145 |
-
|
| 146 |
= Frequently Asked Questions for MySQLDumper =
|
| 147 |
Please visit [the official website](http://www.mysqldumper.de/) for general informations about MySQLDumper.
|
| 148 |
|
|
@@ -233,6 +218,13 @@ Please visit [Automatisches Backup der WordPress-Datenbank](http://www.beedy.de/
|
|
| 233 |
* Thanks to Michal Nusko for czech translation
|
| 234 |
|
| 235 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 236 |
= 1.8.10 (07/18/2013) =
|
| 237 |
* Add check for urls, Performance topics
|
| 238 |
* Change default setting of 'Support Link' to false
|
|
@@ -286,7 +278,7 @@ Please visit [Automatisches Backup der WordPress-Datenbank](http://www.beedy.de/
|
|
| 286 |
|
| 287 |
= 1.8.3 =
|
| 288 |
* Fix for the forgotten update of JS-files; slow SVN :(
|
| 289 |
-
* Minor Fixes
|
| 290 |
|
| 291 |
= 1.8.2 =
|
| 292 |
* Add different access for Frontend and Backend
|
| 1 |
=== WP Maintenance Mode ===
|
| 2 |
+
Contributors: designmodo
|
| 3 |
Plugin Name: WP Maintenance Mode
|
| 4 |
+
Plugin URI:
|
| 5 |
+
Author: designmodo.com
|
| 6 |
+
Author URI: http://designmodo.com/
|
| 7 |
+
Donate link:
|
| 8 |
Tags: maintenance, mode, admin, administration, unavailable, coming soon, multisite
|
| 9 |
Requires at least: 3.0
|
| 10 |
+
Tested up to: 3.9.1
|
| 11 |
+
Stable tag: 1.8.11
|
| 12 |
|
| 13 |
Adds a splash page to your site that lets visitors know your site is down for maintenance. Full access to the back- & front-end is optional.
|
| 14 |
|
| 57 |
1. PHP 5
|
| 58 |
|
| 59 |
= Bugs, technical hints or contribute =
|
| 60 |
+
Please give us feedback, contribute and file technical bugs on [GitHub Repo](https://github.com/Designmodocom/WP-Maintenance-Mode).
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
|
| 62 |
= Work with MySQLDumper =
|
| 63 |
This option is designed for users, who backups their database with "MySQLDumper".
|
| 104 |
= Cache Plugin Support =
|
| 105 |
The plugin flush the cache on activate the maintenance mode form the plugins W3 Total Cache and WP Super Cache
|
| 106 |
|
|
|
|
|
|
|
|
|
|
| 107 |
== Installation ==
|
| 108 |
1. Unpack the download-package
|
| 109 |
1. Upload all files to the `/wp-content/plugins/` directory, include folders
|
| 112 |
1. Activate under the settings and your blog is in maintenance mode
|
| 113 |
1. Please check the **Exclude** option in settings for parts of your install; maybe an custom login-adress etc.
|
| 114 |
|
|
|
|
|
|
|
| 115 |
== Screenshots ==
|
| 116 |
1. Aktiv Maintenance-Mode with Theme "The Truck" and german language
|
| 117 |
1. Settings on plugin-page
|
| 128 |
1. Aktiv Maintenance-Mode with Theme "Chemistry"
|
| 129 |
|
| 130 |
== Frequently Asked Questions ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
= Frequently Asked Questions for MySQLDumper =
|
| 132 |
Please visit [the official website](http://www.mysqldumper.de/) for general informations about MySQLDumper.
|
| 133 |
|
| 218 |
* Thanks to Michal Nusko for czech translation
|
| 219 |
|
| 220 |
== Changelog ==
|
| 221 |
+
= 07/07/2014 =
|
| 222 |
+
* Switch to new owner, contributor
|
| 223 |
+
|
| 224 |
+
= 1.8.11 (07/25/2013) =
|
| 225 |
+
* Fixes for php notices in scrict mode
|
| 226 |
+
* Alternative for check url, if curl is not installed
|
| 227 |
+
|
| 228 |
= 1.8.10 (07/18/2013) =
|
| 229 |
* Add check for urls, Performance topics
|
| 230 |
* Change default setting of 'Support Link' to false
|
| 278 |
|
| 279 |
= 1.8.3 =
|
| 280 |
* Fix for the forgotten update of JS-files; slow SVN :(
|
| 281 |
+
* Minor Fixes
|
| 282 |
|
| 283 |
= 1.8.2 =
|
| 284 |
* Add different access for Frontend and Backend
|
wp-maintenance-mode.php
CHANGED
|
@@ -8,8 +8,8 @@
|
|
| 8 |
* Author: Frank Bültge
|
| 9 |
* Author URI: http://bueltge.de/
|
| 10 |
* Donate URI: http://bueltge.de/wunschliste/
|
| 11 |
-
* Version: 1.8.
|
| 12 |
-
* Last change: 07/
|
| 13 |
* License: GPLv3
|
| 14 |
*
|
| 15 |
*
|
|
@@ -832,11 +832,14 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
| 832 |
) {
|
| 833 |
$rolestatus = 'norights';
|
| 834 |
|
|
|
|
|
|
|
|
|
|
| 835 |
nocache_headers();
|
| 836 |
ob_start();
|
| 837 |
-
|
| 838 |
-
|
| 839 |
-
|
| 840 |
// Allow alternative splash page
|
| 841 |
if ( file_exists( WP_CONTENT_DIR . '/wp-maintenance-mode.php' ) )
|
| 842 |
include( WP_CONTENT_DIR . '/wp-maintenance-mode.php' );
|
| 8 |
* Author: Frank Bültge
|
| 9 |
* Author URI: http://bueltge.de/
|
| 10 |
* Donate URI: http://bueltge.de/wunschliste/
|
| 11 |
+
* Version: 1.8.11
|
| 12 |
+
* Last change: 07/25/2013
|
| 13 |
* License: GPLv3
|
| 14 |
*
|
| 15 |
*
|
| 832 |
) {
|
| 833 |
$rolestatus = 'norights';
|
| 834 |
|
| 835 |
+
// helpful for header problems
|
| 836 |
+
// @see: http://www.arclab.com/products/webformbuilder/php-warning-cannot-modify-header-information-headers-already-sent.html
|
| 837 |
+
|
| 838 |
nocache_headers();
|
| 839 |
ob_start();
|
| 840 |
+
header( "Content-type: text/html; charset=$charset" );
|
| 841 |
+
header( "$protocol $status_code Service Unavailable", TRUE, $status_code );
|
| 842 |
+
header( "Retry-After: $backtime" );
|
| 843 |
// Allow alternative splash page
|
| 844 |
if ( file_exists( WP_CONTENT_DIR . '/wp-maintenance-mode.php' ) )
|
| 845 |
include( WP_CONTENT_DIR . '/wp-maintenance-mode.php' );
|
