WP Maintenance Mode - Version 1.3

Version Description

Download this release

Release Info

Developer Bueltge
Plugin Icon 128x128 WP Maintenance Mode
Version 1.3
Comparing to
See all releases

Version 1.3

Files changed (4) hide show
  1. !wartungsmodus.php +43 -0
  2. readme.txt +31 -0
  3. screenshot-1.png +0 -0
  4. site.php +96 -0
!wartungsmodus.php ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: !Wartungsmodus
4
+ Version: 1.3
5
+ Plugin URI: http://bueltge.de/wp-wartungsmodus-plugin/101/
6
+ Description: Adds a maintenance-page to your blog that lets visitors know your blog is down for maintenancetime. User with rights for theme-options get full access to the blog including the frontend.
7
+ Author: Frank B&uuml;ltge
8
+ Author URI: http://bueltge.de/
9
+ */
10
+
11
+ /**
12
+ ------------------------------------------------------------------------------------
13
+ ACKNOWLEDGEMENTS
14
+ ------------------------------------------------------------------------------------
15
+ Basisscript von Angsuman Chakraborty - http://blog.taragana.com/
16
+ ------------------------------------------------------------------------------------
17
+ */
18
+
19
+ // Zeit, die in der Mitteilung als Wartungszeit genannt wird
20
+ $backtime = 60; // In Minuten
21
+
22
+ global $wp_version;
23
+
24
+ if ( version_compare($wp_version, '2.1', '<') ) {
25
+ require (ABSPATH . WPINC . '/pluggable-functions.php'); // < WP 2.1
26
+ } else {
27
+ require (ABSPATH . WPINC . '/pluggable.php'); // >= WP 2.1
28
+ }
29
+
30
+ if ( !strstr($_SERVER['PHP_SELF'], 'feed/')
31
+ && !strstr($_SERVER['PHP_SELF'], 'wp-admin/')
32
+ && !strstr($_SERVER['PHP_SELF'], 'wp-login.php')
33
+ && !current_user_can('switch_themes') )
34
+ {
35
+ include("site.php");
36
+ exit();
37
+ } else if ( strstr($_SERVER['PHP_SELF'], 'feed/') || strstr($_SERVER['PHP_SELF'], 'trackback/') ) {
38
+ $backtime = $backtime * 60;
39
+ header("HTTP/1.0 503 Service Unavailable");
40
+ header("Retry-After: $backtime");
41
+ exit();
42
+ }
43
+ ?>
readme.txt ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === !Wartungsmodus ===
2
+ Contributors: Bueltge
3
+ Donate link: http://bueltge.de/wunschliste/
4
+ Tags: maintenance, mode, admin, administration, unavailable
5
+ Requires at least: 1.5
6
+
7
+ Adds a maintenance-page to your blog that lets visitors know your blog is down for maintenancetime. User with rights for theme-options get full access to the blog including the frontend.
8
+
9
+ == Description ==
10
+ Adds a maintenance-page to your blog that lets visitors know your blog is down for maintenancetime. User with rights for theme-options get full access to the blog including the frontend.
11
+ This plugin write non options in the database! Aktivate the plugin and your blog is in maintenance-mode.
12
+
13
+ Please visit [the official website](http://bueltge.de/wp-wartungsmodus-plugin/101/ "Wartungsmodus") for further details and the latest information on this plugin.
14
+
15
+ == Installation ==
16
+ 1. Unpack the download-package
17
+ 1. Upload all files to the `/wp-content/plugins/` directory, without folder
18
+ 1. Activate the plugin through the 'Plugins' menu in WordPress when you work on your blog.
19
+
20
+ See on [the official website](http://bueltge.de/wp-wartungsmodus-plugin/101/ "Wartungsmodus").
21
+
22
+ == Screenshots ==
23
+ 1. Aktiv Maintenance-Mode
24
+
25
+ == Frequently Asked Questions ==
26
+
27
+ = Where can I get more information? =
28
+ Please visit [the official website](http://bueltge.de/wp-wartungsmodus-plugin/101/ "Wartungsmodus") for the latest information on this plugin.
29
+
30
+ = I love this plugin! How can I show the developer how much I appreciate his work? =
31
+ Please visit [the official website](http://bueltge.de/wp-wartungsmodus-plugin/101/ "Wartungsmodus") and let him know your care or see the [wishlist](http://bueltge.de/wunschliste/ "Wishlist") of the author.
screenshot-1.png ADDED
Binary file
site.php ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de" id="wartungsmodus" >
4
+
5
+ <head profile="http://gmpg.org/xfn/11">
6
+ <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
7
+ <meta name="author-Plugin" content="WP-!wartungsmodus: Frank Bueltge, http://bueltge.de" />
8
+ <meta name="description" content="<?php bloginfo('description'); ?>" />
9
+
10
+ <title><?php bloginfo('name'); ?> - !wartungsmodus</title>
11
+
12
+ <style type="text/css">
13
+ <!--
14
+ * {
15
+ margin: 0;
16
+ padding: 0;
17
+ }
18
+
19
+ body {
20
+ background: #fff;
21
+ font-family: Georgia, Arial, Helvetica, Sans Serif;
22
+ font-size: 65.5%;
23
+ }
24
+
25
+ a {
26
+ color: #08658F;
27
+ }
28
+
29
+ a:hover {
30
+ color: #0092BF;
31
+ }
32
+
33
+ h2 a {
34
+ text-decoration: none;
35
+ }
36
+
37
+ #header {
38
+ color: #333;
39
+
40
+ padding: 1.5em;
41
+ text-align: center;
42
+ font-size: 1.2em;
43
+ border-bottom: 1px dotted #0092BF
44
+ }
45
+
46
+ #content {
47
+ font-size: 150%;
48
+ width:80%;
49
+ margin:0 auto;
50
+ padding: 8% 0
51
+ }
52
+
53
+ #content p {
54
+ font-size: 1em;
55
+ padding: .8em 0
56
+ }
57
+
58
+ h1, h2 {
59
+ color: #08658F;
60
+ }
61
+
62
+ h1 {
63
+ font-size: 300%;
64
+ padding: .5em 0;
65
+ }
66
+
67
+ #footer {
68
+ position: absolute;
69
+ bottom: 2em;
70
+ right: 2em
71
+ }
72
+ -->
73
+ </style>
74
+
75
+ </head>
76
+
77
+ <body>
78
+
79
+ <div id="header">
80
+ <h2><a href="<?php bloginfo('home'); ?>"><?php bloginfo('name'); ?></a></h2>
81
+ </div>
82
+
83
+ <div id="content">
84
+ <h1>Wartungsmodus</h1>
85
+ <a href="<?php bloginfo('home'); ?>"><?php bloginfo('name'); ?></a>
86
+ <p>Entschuldigung, wir sind nicht erreichbar. Derzeit werden Wartungsarbeiten durchgef&uuml;hrt.<br />
87
+ Bitte besuchen Sie uns <strong>in <?php echo $backtime.''; ?> min wieder</strong>.</p>
88
+ <p>Vielen Dank f&uuml;r Ihr Verst&auml;ndnis.</p>
89
+ </div>
90
+
91
+ <div id="footer">
92
+ <a href="<?php bloginfo('wpurl'); ?>/wp-admin/">Admin-Login</a>
93
+ </div>
94
+
95
+ </body>
96
+ </html>