PluginProbe ʕ •ᴥ•ʔ
LightStart – Maintenance Mode, Coming Soon and Landing Page Builder / 1.3
LightStart – Maintenance Mode, Coming Soon and Landing Page Builder v1.3
2.6.22 trunk 1.3 1.5.3 1.6.10 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.8.0 1.8.1 1.8.10 1.8.11 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.2 2.2 2.2.2 2.2.3 2.2.4 2.3.0 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.6.0 2.6.1 2.6.10 2.6.11 2.6.12 2.6.13 2.6.14 2.6.15 2.6.16 2.6.17 2.6.18 2.6.19 2.6.2 2.6.20 2.6.21 2.6.3 2.6.4 2.6.5 2.6.6 2.6.7 2.6.8 2.6.9
wp-maintenance-mode / !wartungsmodus.php
wp-maintenance-mode Last commit date
!wartungsmodus.php 16 years ago readme.txt 16 years ago screenshot-1.png 16 years ago site.php 16 years ago
!wartungsmodus.php
43 lines
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 ?>