Version Description
- Add different access for Frontend and Backend
- Add Rewrite after Login for Frontend Access
- Different small changes
- Test for WP 3.5
Download this release
Release Info
Developer | Bueltge |
Plugin | ![]() |
Version | 1.8.2 |
Comparing to | |
See all releases |
Code changes from version 1.8.1 to 1.8.2
- inc/wp-maintenance-mode-settings.php +64 -23
- index.php +11 -0
- js/wp-maintenance-mode.js +22 -18
- languages/wp-maintenance-mode-de_DE.mo +0 -0
- languages/wp-maintenance-mode-de_DE.po +111 -69
- languages/wp-maintenance-mode-xx_XX.pot +111 -69
- readme.txt +9 -3
- site.php +2 -2
- wp-maintenance-mode.php +72 -26
inc/wp-maintenance-mode-settings.php
CHANGED
@@ -151,10 +151,10 @@ class WPMaintenanceMode_Settings {
|
|
151 |
</tr>
|
152 |
<tr valign="top">
|
153 |
<th scope="row" class="alternate">
|
154 |
-
<label for="wm_config-styleurl"><?php _e( 'Own Style URL
|
155 |
</th>
|
156 |
<td class="alternate">
|
157 |
-
<input size="30" type="text" id="wm_config-styleurl" name="wm_config-styleurl" value="<?php if ( isset($value['styleurl']) ) echo $value['styleurl']; ?>" /> <small><?php _e( 'URL to the css-file', FB_WM_TEXTDOMAIN ); ?></small>
|
158 |
<br />
|
159 |
<small><?php _e( '<strong>Coution:</strong> Please don´t copy the stylesheet in your plugin folder, it will be deleted on the next automatical update of the plugin!', FB_WM_TEXTDOMAIN ); ?></small>
|
160 |
</td>
|
@@ -237,35 +237,76 @@ class WPMaintenanceMode_Settings {
|
|
237 |
</tr>
|
238 |
<tr valign="top">
|
239 |
<th scope="row" class="alternate">
|
240 |
-
<label for="wm_config-role"><?php _e( 'Role:', FB_WM_TEXTDOMAIN ); ?></label>
|
241 |
</th>
|
242 |
<td class="alternate">
|
243 |
<select name="wm_config-role" id="wm_config-role">
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
264 |
</select>
|
265 |
<small><?php _e( 'Allowed userrole to see the frontend of this blog.', FB_WM_TEXTDOMAIN ); ?>
|
266 |
<?php if ( is_multisite() ) { _e( 'Super Admin has always access.', FB_WM_TEXTDOMAIN ); } ?></small>
|
267 |
</td>
|
268 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
269 |
</table>
|
270 |
<br />
|
271 |
<div class="plugin-update-tr">
|
151 |
</tr>
|
152 |
<tr valign="top">
|
153 |
<th scope="row" class="alternate">
|
154 |
+
<label for="wm_config-styleurl"><?php _e( 'Own Style URL:', FB_WM_TEXTDOMAIN ); ?></label>
|
155 |
</th>
|
156 |
<td class="alternate">
|
157 |
+
<input size="30" type="text" id="wm_config-styleurl" name="wm_config-styleurl" value="<?php if ( isset($value['styleurl']) ) echo $value['styleurl']; ?>" /> <small><?php _e( 'URL to the css-file (incl. http://)', FB_WM_TEXTDOMAIN ); ?></small>
|
158 |
<br />
|
159 |
<small><?php _e( '<strong>Coution:</strong> Please don´t copy the stylesheet in your plugin folder, it will be deleted on the next automatical update of the plugin!', FB_WM_TEXTDOMAIN ); ?></small>
|
160 |
</td>
|
237 |
</tr>
|
238 |
<tr valign="top">
|
239 |
<th scope="row" class="alternate">
|
240 |
+
<label for="wm_config-role"><?php _e( 'Role Backend:', FB_WM_TEXTDOMAIN ); ?></label>
|
241 |
</th>
|
242 |
<td class="alternate">
|
243 |
<select name="wm_config-role" id="wm_config-role">
|
244 |
+
<?php
|
245 |
+
// fallback
|
246 |
+
if ( ! isset($value['role'][0]) )
|
247 |
+
$value['role'][0] = NULL;
|
248 |
+
|
249 |
+
foreach ( $wp_roles->roles as $role => $name ) {
|
250 |
+
if ( function_exists('translate_user_role') )
|
251 |
+
$role_name = translate_user_role( $name['name'] );
|
252 |
+
elseif ( function_exists('before_last_bar') )
|
253 |
+
$role_name = before_last_bar( $name['name'], 'User role' );
|
254 |
+
else
|
255 |
+
$role_name = strrpos( $name['name'], '|' );
|
256 |
+
|
257 |
+
if ($value['role'][0] !== $role)
|
258 |
+
$selected = '';
|
259 |
+
else
|
260 |
+
$selected = ' selected="selected"';
|
261 |
+
echo '<option value="' . $role . '"' . $selected . '>' . $role_name . ' (' . $role . ')' . ' </option>';
|
262 |
+
}
|
263 |
+
?>
|
264 |
+
</select>
|
265 |
+
<small><?php _e( 'Allowed userrole to access the backend of this blog.', FB_WM_TEXTDOMAIN ); ?>
|
266 |
+
<?php if ( is_multisite() ) { _e( 'Super Admin has always access.', FB_WM_TEXTDOMAIN ); } ?></small>
|
267 |
+
</td>
|
268 |
+
</tr>
|
269 |
+
<tr valign="top">
|
270 |
+
<th scope="row" class="alternate">
|
271 |
+
<label for="wm_config-role_frontend"><?php _e( 'Role Frontend:', FB_WM_TEXTDOMAIN ); ?></label>
|
272 |
+
</th>
|
273 |
+
<td class="alternate">
|
274 |
+
<select name="wm_config-role_frontend" id="wm_config-role_frontend">
|
275 |
+
<?php
|
276 |
+
// fallback
|
277 |
+
if ( ! isset($value['role_frontend'][0]) )
|
278 |
+
$value['role_frontend'][0] = NULL;
|
279 |
+
|
280 |
+
foreach ( $wp_roles->roles as $role_frontend => $name ) {
|
281 |
+
if ( function_exists('translate_user_role') )
|
282 |
+
$role_name = translate_user_role( $name['name'] );
|
283 |
+
elseif ( function_exists('before_last_bar') )
|
284 |
+
$role_name = before_last_bar( $name['name'], 'User role' );
|
285 |
+
else
|
286 |
+
$role_name = strrpos( $name['name'], '|' );
|
287 |
+
|
288 |
+
if ($value['role_frontend'][0] !== $role_frontend)
|
289 |
+
$selected = '';
|
290 |
+
else
|
291 |
+
$selected = ' selected="selected"';
|
292 |
+
echo '<option value="' . $role_frontend . '"' . $selected . '>' . $role_name . ' (' . $role_frontend . ')' . ' </option>';
|
293 |
+
}
|
294 |
+
?>
|
295 |
</select>
|
296 |
<small><?php _e( 'Allowed userrole to see the frontend of this blog.', FB_WM_TEXTDOMAIN ); ?>
|
297 |
<?php if ( is_multisite() ) { _e( 'Super Admin has always access.', FB_WM_TEXTDOMAIN ); } ?></small>
|
298 |
</td>
|
299 |
</tr>
|
300 |
+
<tr valign="top">
|
301 |
+
<th scope="row" class="alternate">
|
302 |
+
<label for="wm_config-rewrite"><?php _e( 'Rewrite:', FB_WM_TEXTDOMAIN ); ?></label>
|
303 |
+
</th>
|
304 |
+
<td class="alternate">
|
305 |
+
<input class="large-text" size="30" type="text" id="wm_config-rewrite" name="wm_config-rewrite" value="<?php if ( isset($value['rewrite']) ) echo $value['rewrite']; ?>" />
|
306 |
+
<br />
|
307 |
+
<small><?php _e( 'If you want that after the login the destination address is not standard to the dashboard, then defining a URL. (incl. http://)', FB_WM_TEXTDOMAIN ); ?></small>
|
308 |
+
</td>
|
309 |
+
</tr>
|
310 |
</table>
|
311 |
<br />
|
312 |
<div class="plugin-update-tr">
|
index.php
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
require_once('../../../wp-load.php');
|
3 |
+
|
4 |
+
if( !current_user_can('unfiltered_html') )
|
5 |
+
wp_die( __('Cheatin’ uh?') );
|
6 |
+
|
7 |
+
$WPMaintenanceMode = new WPMaintenanceMode();
|
8 |
+
$WPMaintenanceMode->on_active();
|
9 |
+
|
10 |
+
include 'site.php';
|
11 |
+
?>
|
js/wp-maintenance-mode.js
CHANGED
@@ -22,24 +22,26 @@ jQuery(document).ready( function($){
|
|
22 |
|
23 |
function wm_config_update() {
|
24 |
|
25 |
-
time_Val
|
26 |
-
link_Val
|
27 |
-
admin_link_Val
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
|
|
|
|
43 |
url = '/wp-admin/admin-ajax.php';
|
44 |
$.post( ajaxurl , {
|
45 |
"action" : "wm_config-update",
|
@@ -47,6 +49,7 @@ jQuery(document).ready( function($){
|
|
47 |
"wm_config-unit" : unit_Val,
|
48 |
"wm_config-link" : link_Val,
|
49 |
"wm_config-admin_link" : admin_link_Val,
|
|
|
50 |
"wm_config-theme" : theme_Val,
|
51 |
"wm_config-styleurl" : styleurl_Val,
|
52 |
"wm_config-index" : index_Val,
|
@@ -56,6 +59,7 @@ jQuery(document).ready( function($){
|
|
56 |
"wm_config-text" : text_Val,
|
57 |
"wm_config-exclude" : exclude_Val,
|
58 |
"wm_config-role" : role_Val,
|
|
|
59 |
"wm_config-radio" : radio_Val,
|
60 |
"wm_config-date" : date_Val,
|
61 |
"wm_config-cd-day" : cd_day_Val,
|
22 |
|
23 |
function wm_config_update() {
|
24 |
|
25 |
+
time_Val = $('#wm_config-time').val();
|
26 |
+
link_Val = $('#wm_config-link').val();
|
27 |
+
admin_link_Val = $('#wm_config-admin_link').val();
|
28 |
+
rewrite_Val = $('#wm_config-rewrite').val();
|
29 |
+
unit_Val = $('#wm_config-unit').val();
|
30 |
+
theme_Val = $('#wm_config-theme').val();
|
31 |
+
styleurl_Val = $('#wm_config-styleurl').val();
|
32 |
+
index_Val = $('#wm_config-index').val();
|
33 |
+
title_Val = $('#wm_config-title').val();
|
34 |
+
header_Val = $('#wm_config-header').val();
|
35 |
+
heading_Val = $('#wm_config-heading').val();
|
36 |
+
text_Val = $('#wm_config-text').val();
|
37 |
+
exclude_Val = $('#wm_config-exclude').val();
|
38 |
+
role_Val = $('#wm_config-role').val();
|
39 |
+
role_frontend_Val = $('#wm_config-role_frontend').val();
|
40 |
+
radio_Val = $('#wm_config-radio').val();
|
41 |
+
date_Val = $('#wm_config-date').val();
|
42 |
+
cd_day_Val = $('#wm_config-cd-day').val();
|
43 |
+
cd_month_Val = $('#wm_config-cd-month').val();
|
44 |
+
cd_year_Val = $('#wm_config-cd-year').val();
|
45 |
url = '/wp-admin/admin-ajax.php';
|
46 |
$.post( ajaxurl , {
|
47 |
"action" : "wm_config-update",
|
49 |
"wm_config-unit" : unit_Val,
|
50 |
"wm_config-link" : link_Val,
|
51 |
"wm_config-admin_link" : admin_link_Val,
|
52 |
+
"wm_config-rewrite" : rewrite_Val,
|
53 |
"wm_config-theme" : theme_Val,
|
54 |
"wm_config-styleurl" : styleurl_Val,
|
55 |
"wm_config-index" : index_Val,
|
59 |
"wm_config-text" : text_Val,
|
60 |
"wm_config-exclude" : exclude_Val,
|
61 |
"wm_config-role" : role_Val,
|
62 |
+
"wm_config-role_frontend" : role_frontend_Val,
|
63 |
"wm_config-radio" : radio_Val,
|
64 |
"wm_config-date" : date_Val,
|
65 |
"wm_config-cd-day" : cd_day_Val,
|
languages/wp-maintenance-mode-de_DE.mo
CHANGED
Binary file
|
languages/wp-maintenance-mode-de_DE.po
CHANGED
@@ -2,24 +2,24 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: \n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2012-
|
6 |
"PO-Revision-Date: \n"
|
7 |
"Last-Translator: Frank Bueltge <frank@bueltge.de>\n"
|
8 |
"Language-Team: \n"
|
9 |
-
"Language: \n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
14 |
-
"X-Poedit-SourceCharset:
|
15 |
-
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;
|
16 |
-
"
|
|
|
17 |
"X-Textdomain-Support: yes\n"
|
|
|
18 |
"X-Poedit-SearchPath-0: .\n"
|
19 |
|
20 |
# @ wp-maintenance-mode
|
21 |
-
#: site.php:15
|
22 |
-
#: site.php:57
|
23 |
msgid "Maintenance Mode"
|
24 |
msgstr "Wartungsmodus"
|
25 |
|
@@ -39,110 +39,102 @@ msgid "Admin-Login"
|
|
39 |
msgstr "Admin-Login"
|
40 |
|
41 |
# @ default
|
42 |
-
#:
|
43 |
-
msgid "Cheatin’ uh?"
|
44 |
-
msgstr "Mogeln’ was?"
|
45 |
-
|
46 |
-
# @ default
|
47 |
-
#: wp-maintenance-mode.php:208
|
48 |
-
#: wp-maintenance-mode.php:218
|
49 |
msgid "Settings"
|
50 |
msgstr "Einstellungen"
|
51 |
|
52 |
# @ wp-maintenance-mode
|
53 |
-
#: wp-maintenance-mode.php:
|
54 |
msgid "Maintenance mode"
|
55 |
msgstr "Wartungsmodus"
|
56 |
|
57 |
-
#: wp-maintenance-mode.php:
|
58 |
#, php-format
|
59 |
-
msgid "
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
|
62 |
# @ wp-maintenance-mode
|
63 |
-
#: wp-maintenance-mode.php:
|
64 |
-
#: wp-maintenance-mode.php:329
|
65 |
msgid "Updated"
|
66 |
msgstr "Gespeichert"
|
67 |
|
68 |
# @ wp-maintenance-mode
|
69 |
-
#: wp-maintenance-mode.php:
|
70 |
msgid "seconds"
|
71 |
msgstr "Sekunden"
|
72 |
|
73 |
# @ wp-maintenance-mode
|
74 |
-
#: wp-maintenance-mode.php:
|
75 |
msgid "minutes"
|
76 |
msgstr "Minuten"
|
77 |
|
78 |
# @ wp-maintenance-mode
|
79 |
-
#: wp-maintenance-mode.php:
|
80 |
msgid "hours"
|
81 |
msgstr "Stunden"
|
82 |
|
83 |
# @ wp-maintenance-mode
|
84 |
-
#: wp-maintenance-mode.php:
|
85 |
msgid "days"
|
86 |
msgstr "Tagen"
|
87 |
|
88 |
# @ wp-maintenance-mode
|
89 |
-
#: wp-maintenance-mode.php:
|
90 |
msgid "weeks"
|
91 |
msgstr "Wochen"
|
92 |
|
93 |
# @ wp-maintenance-mode
|
94 |
-
#: wp-maintenance-mode.php:
|
95 |
msgid "months"
|
96 |
msgstr "Monate"
|
97 |
|
98 |
# @ wp-maintenance-mode
|
99 |
-
#: wp-maintenance-mode.php:
|
100 |
msgid "years"
|
101 |
msgstr "Jahren"
|
102 |
|
103 |
-
#: wp-maintenance-mode.php:
|
104 |
msgid " & WP Super Cache flushed."
|
105 |
msgstr " & WP Super Cache aktualisiert."
|
106 |
|
107 |
-
#: wp-maintenance-mode.php:
|
108 |
msgid " & W3 Total Cache for pages flushed."
|
109 |
msgstr " & W3 Total Cache für Seiten aktualisiert."
|
110 |
|
111 |
# @ wp-maintenance-mode
|
112 |
-
#: wp-maintenance-mode.php:
|
113 |
-
#: wp-maintenance-mode.php:807
|
114 |
msgid "Caution: Maintenance mode is <strong>active</strong>!"
|
115 |
msgstr "Achtung: Wartungsmodus ist <strong>aktiv</strong>!"
|
116 |
|
117 |
# @ wp-maintenance-mode
|
118 |
-
#: wp-maintenance-mode.php:
|
119 |
-
#: wp-maintenance-mode.php:533
|
120 |
msgid "Deactivate or change Settings"
|
121 |
msgstr "Deaktivieren oder Einstellungen ändern "
|
122 |
|
123 |
# @ wp-maintenance-mode
|
124 |
-
#: wp-maintenance-mode.php:
|
125 |
msgid "Plugin by:"
|
126 |
msgstr "Plugin von:"
|
127 |
|
128 |
# @ wp-maintenance-mode
|
129 |
-
#: wp-maintenance-mode.php:
|
130 |
-
#: wp-maintenance-mode.php:
|
131 |
-
#: wp-maintenance-mode.php:
|
132 |
-
#: wp-maintenance-mode.php:
|
133 |
-
#: wp-maintenance-mode.php:
|
134 |
-
#: wp-maintenance-mode.php:
|
135 |
-
#: wp-maintenance-mode.php:618
|
136 |
-
#: wp-maintenance-mode.php:620
|
137 |
-
#: wp-maintenance-mode.php:622
|
138 |
-
#: wp-maintenance-mode.php:624
|
139 |
-
#: wp-maintenance-mode.php:626
|
140 |
msgid "Design by:"
|
141 |
msgstr "Design von:"
|
142 |
|
143 |
# @ wp-maintenance-mode
|
144 |
#: inc/wp-maintenance-mode-settings.php:37
|
145 |
-
#: inc/wp-maintenance-mode-settings.php:
|
146 |
#, php-format
|
147 |
msgid "Plugin %s settings <strong>updated</strong>."
|
148 |
msgstr "Plugin %s Einstellungen <strong>gespeichert</strong>."
|
@@ -205,8 +197,12 @@ msgstr "Datum:"
|
|
205 |
|
206 |
# @ wp-maintenance-mode
|
207 |
#: inc/wp-maintenance-mode-settings.php:77
|
208 |
-
msgid "
|
209 |
-
|
|
|
|
|
|
|
|
|
210 |
|
211 |
# @ wp-maintenance-mode
|
212 |
#: inc/wp-maintenance-mode-settings.php:82
|
@@ -260,8 +256,12 @@ msgstr "Link:"
|
|
260 |
|
261 |
# @ wp-maintenance-mode
|
262 |
#: inc/wp-maintenance-mode-settings.php:114
|
263 |
-
msgid "
|
264 |
-
|
|
|
|
|
|
|
|
|
265 |
|
266 |
# @ wp-maintenance-mode
|
267 |
#: inc/wp-maintenance-mode-settings.php:119
|
@@ -344,18 +344,23 @@ msgstr "Chemielabor"
|
|
344 |
|
345 |
# @ wp-maintenance-mode
|
346 |
#: inc/wp-maintenance-mode-settings.php:154
|
347 |
-
msgid "Own Style URL
|
348 |
-
msgstr "
|
349 |
|
350 |
# @ wp-maintenance-mode
|
351 |
#: inc/wp-maintenance-mode-settings.php:157
|
352 |
-
msgid "URL to the css-file"
|
353 |
-
msgstr "URL zur css-Datei"
|
354 |
|
355 |
# @ wp-maintenance-mode
|
356 |
#: inc/wp-maintenance-mode-settings.php:159
|
357 |
-
msgid "
|
358 |
-
|
|
|
|
|
|
|
|
|
|
|
359 |
|
360 |
# @ wp-maintenance-mode
|
361 |
#: inc/wp-maintenance-mode-settings.php:164
|
@@ -368,8 +373,14 @@ msgid "noindex, nofollow:"
|
|
368 |
msgstr "noindex, nofollow:"
|
369 |
|
370 |
#: inc/wp-maintenance-mode-settings.php:180
|
371 |
-
msgid "
|
372 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
373 |
|
374 |
# @ wp-maintenance-mode
|
375 |
#: inc/wp-maintenance-mode-settings.php:185
|
@@ -401,8 +412,14 @@ msgstr "Text:"
|
|
401 |
# @ wp-maintenance-mode
|
402 |
#: inc/wp-maintenance-mode-settings.php:214
|
403 |
#, php-format
|
404 |
-
msgid "
|
405 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
406 |
|
407 |
# @ wp-maintenance-mode
|
408 |
#: inc/wp-maintenance-mode-settings.php:219
|
@@ -411,26 +428,51 @@ msgstr "Ausnahmen:"
|
|
411 |
|
412 |
# @ wp-maintenance-mode
|
413 |
#: inc/wp-maintenance-mode-settings.php:235
|
414 |
-
msgid "
|
415 |
-
|
|
|
|
|
|
|
|
|
|
|
416 |
|
417 |
-
# @ wp-maintenance-mode
|
418 |
#: inc/wp-maintenance-mode-settings.php:240
|
419 |
-
msgid "Role:"
|
420 |
-
msgstr "Rolle:"
|
421 |
|
422 |
# @ wp-maintenance-mode
|
423 |
#: inc/wp-maintenance-mode-settings.php:265
|
424 |
-
msgid "Allowed userrole to
|
425 |
-
msgstr "Erlaubte User-Rolle für das Sehen des
|
426 |
|
427 |
# @ wp-maintenance-mode
|
428 |
#: inc/wp-maintenance-mode-settings.php:266
|
|
|
429 |
msgid "Super Admin has always access."
|
430 |
msgstr "Super Admin hat immer Zugang."
|
431 |
|
|
|
|
|
|
|
|
|
432 |
# @ wp-maintenance-mode
|
433 |
-
#: inc/wp-maintenance-mode-settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
434 |
msgid "Save"
|
435 |
msgstr "Speichern"
|
436 |
-
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: \n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2012-11-13 16:38+0100\n"
|
6 |
"PO-Revision-Date: \n"
|
7 |
"Last-Translator: Frank Bueltge <frank@bueltge.de>\n"
|
8 |
"Language-Team: \n"
|
|
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
14 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
|
15 |
+
"_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
|
16 |
+
"X-Poedit-Basepath: c:\\xampp\\htdocs\\wp-plugins\\wp-maintenance-mode\\\n"
|
17 |
"X-Textdomain-Support: yes\n"
|
18 |
+
"X-Generator: Poedit 1.5.4\n"
|
19 |
"X-Poedit-SearchPath-0: .\n"
|
20 |
|
21 |
# @ wp-maintenance-mode
|
22 |
+
#: site.php:15 site.php:57
|
|
|
23 |
msgid "Maintenance Mode"
|
24 |
msgstr "Wartungsmodus"
|
25 |
|
39 |
msgstr "Admin-Login"
|
40 |
|
41 |
# @ default
|
42 |
+
#: wp-maintenance-mode.php:209 wp-maintenance-mode.php:219
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
msgid "Settings"
|
44 |
msgstr "Einstellungen"
|
45 |
|
46 |
# @ wp-maintenance-mode
|
47 |
+
#: wp-maintenance-mode.php:236
|
48 |
msgid "Maintenance mode"
|
49 |
msgstr "Wartungsmodus"
|
50 |
|
51 |
+
#: wp-maintenance-mode.php:237
|
52 |
#, php-format
|
53 |
+
msgid ""
|
54 |
+
"<p>Sorry for the inconvenience.<br />Our website is currently undergoing "
|
55 |
+
"scheduled maintenance.<br /><strong>Please try back in %1$s %2$s</"
|
56 |
+
"strong><br />Thank you for your understanding.</p>"
|
57 |
+
msgstr ""
|
58 |
+
"<p>Es tut uns leid..<br />Auf unserer Site werden aktuelle Wartungsarbeiten "
|
59 |
+
"durchgeführt.<br /><strong>Bitte besuche uns in %1$s %2$s</strong> wieder."
|
60 |
+
"<br />Vielen Dank für das Verständnis.</p>"
|
61 |
|
62 |
# @ wp-maintenance-mode
|
63 |
+
#: wp-maintenance-mode.php:277 wp-maintenance-mode.php:339
|
|
|
64 |
msgid "Updated"
|
65 |
msgstr "Gespeichert"
|
66 |
|
67 |
# @ wp-maintenance-mode
|
68 |
+
#: wp-maintenance-mode.php:477
|
69 |
msgid "seconds"
|
70 |
msgstr "Sekunden"
|
71 |
|
72 |
# @ wp-maintenance-mode
|
73 |
+
#: wp-maintenance-mode.php:481
|
74 |
msgid "minutes"
|
75 |
msgstr "Minuten"
|
76 |
|
77 |
# @ wp-maintenance-mode
|
78 |
+
#: wp-maintenance-mode.php:485
|
79 |
msgid "hours"
|
80 |
msgstr "Stunden"
|
81 |
|
82 |
# @ wp-maintenance-mode
|
83 |
+
#: wp-maintenance-mode.php:489
|
84 |
msgid "days"
|
85 |
msgstr "Tagen"
|
86 |
|
87 |
# @ wp-maintenance-mode
|
88 |
+
#: wp-maintenance-mode.php:493
|
89 |
msgid "weeks"
|
90 |
msgstr "Wochen"
|
91 |
|
92 |
# @ wp-maintenance-mode
|
93 |
+
#: wp-maintenance-mode.php:497
|
94 |
msgid "months"
|
95 |
msgstr "Monate"
|
96 |
|
97 |
# @ wp-maintenance-mode
|
98 |
+
#: wp-maintenance-mode.php:501
|
99 |
msgid "years"
|
100 |
msgstr "Jahren"
|
101 |
|
102 |
+
#: wp-maintenance-mode.php:565
|
103 |
msgid " & WP Super Cache flushed."
|
104 |
msgstr " & WP Super Cache aktualisiert."
|
105 |
|
106 |
+
#: wp-maintenance-mode.php:572
|
107 |
msgid " & W3 Total Cache for pages flushed."
|
108 |
msgstr " & W3 Total Cache für Seiten aktualisiert."
|
109 |
|
110 |
# @ wp-maintenance-mode
|
111 |
+
#: wp-maintenance-mode.php:575 wp-maintenance-mode.php:853
|
|
|
112 |
msgid "Caution: Maintenance mode is <strong>active</strong>!"
|
113 |
msgstr "Achtung: Wartungsmodus ist <strong>aktiv</strong>!"
|
114 |
|
115 |
# @ wp-maintenance-mode
|
116 |
+
#: wp-maintenance-mode.php:577 wp-maintenance-mode.php:581
|
|
|
117 |
msgid "Deactivate or change Settings"
|
118 |
msgstr "Deaktivieren oder Einstellungen ändern "
|
119 |
|
120 |
# @ wp-maintenance-mode
|
121 |
+
#: wp-maintenance-mode.php:651
|
122 |
msgid "Plugin by:"
|
123 |
msgstr "Plugin von:"
|
124 |
|
125 |
# @ wp-maintenance-mode
|
126 |
+
#: wp-maintenance-mode.php:653 wp-maintenance-mode.php:655
|
127 |
+
#: wp-maintenance-mode.php:657 wp-maintenance-mode.php:659
|
128 |
+
#: wp-maintenance-mode.php:661 wp-maintenance-mode.php:663
|
129 |
+
#: wp-maintenance-mode.php:665 wp-maintenance-mode.php:667
|
130 |
+
#: wp-maintenance-mode.php:669 wp-maintenance-mode.php:671
|
131 |
+
#: wp-maintenance-mode.php:673
|
|
|
|
|
|
|
|
|
|
|
132 |
msgid "Design by:"
|
133 |
msgstr "Design von:"
|
134 |
|
135 |
# @ wp-maintenance-mode
|
136 |
#: inc/wp-maintenance-mode-settings.php:37
|
137 |
+
#: inc/wp-maintenance-mode-settings.php:313
|
138 |
#, php-format
|
139 |
msgid "Plugin %s settings <strong>updated</strong>."
|
140 |
msgstr "Plugin %s Einstellungen <strong>gespeichert</strong>."
|
197 |
|
198 |
# @ wp-maintenance-mode
|
199 |
#: inc/wp-maintenance-mode-settings.php:77
|
200 |
+
msgid ""
|
201 |
+
"Activate countdown for using this. Use value and unit or use the countdown "
|
202 |
+
"and set the date."
|
203 |
+
msgstr ""
|
204 |
+
"Aktiviere den Countdown um ihn zu nutzen. Vergebe Wert und Einheit oder "
|
205 |
+
"wähle ein Datum für den Countdown."
|
206 |
|
207 |
# @ wp-maintenance-mode
|
208 |
#: inc/wp-maintenance-mode-settings.php:82
|
256 |
|
257 |
# @ wp-maintenance-mode
|
258 |
#: inc/wp-maintenance-mode-settings.php:114
|
259 |
+
msgid ""
|
260 |
+
"Please leave a link to the plugin- and design-author on your maintenance "
|
261 |
+
"mode site."
|
262 |
+
msgstr ""
|
263 |
+
"Bitte hinterlasse einen Link zum Plugin- und Design-Autor auf deiner "
|
264 |
+
"Wartungsmodus-Seite."
|
265 |
|
266 |
# @ wp-maintenance-mode
|
267 |
#: inc/wp-maintenance-mode-settings.php:119
|
344 |
|
345 |
# @ wp-maintenance-mode
|
346 |
#: inc/wp-maintenance-mode-settings.php:154
|
347 |
+
msgid "Own Style URL:"
|
348 |
+
msgstr "Eigenes Design:"
|
349 |
|
350 |
# @ wp-maintenance-mode
|
351 |
#: inc/wp-maintenance-mode-settings.php:157
|
352 |
+
msgid "URL to the css-file (incl. http://)"
|
353 |
+
msgstr "URL zur css-Datei (inkl. http://)"
|
354 |
|
355 |
# @ wp-maintenance-mode
|
356 |
#: inc/wp-maintenance-mode-settings.php:159
|
357 |
+
msgid ""
|
358 |
+
"<strong>Coution:</strong> Please don´t copy the stylesheet in your "
|
359 |
+
"plugin folder, it will be deleted on the next automatical update of the "
|
360 |
+
"plugin!"
|
361 |
+
msgstr ""
|
362 |
+
"<strong>Hinweis:</strong> Bitte speichere das Sytelsheet nicht im Plugin-"
|
363 |
+
"Ordner, der Ordner wird beim automatischen Update ersetzt!"
|
364 |
|
365 |
# @ wp-maintenance-mode
|
366 |
#: inc/wp-maintenance-mode-settings.php:164
|
373 |
msgstr "noindex, nofollow:"
|
374 |
|
375 |
#: inc/wp-maintenance-mode-settings.php:180
|
376 |
+
msgid ""
|
377 |
+
"The robots meta tag lets you utilize a granular, page-specific approach to "
|
378 |
+
"controlling how an individual page should be indexed and served to users in "
|
379 |
+
"search results. Set TRUE for noindex, nofollow; set FALSE for index, follow."
|
380 |
+
msgstr ""
|
381 |
+
"Der robots meta Tag gibt die Möglichkeit die Indizierung der Site durch "
|
382 |
+
"Suchmaschinen zu steuern. Wähle den Wert, der auf Wartungsseite genutzt "
|
383 |
+
"werden soll. Setze Ja für nonidex, nofollow; setze Nein für index, follow."
|
384 |
|
385 |
# @ wp-maintenance-mode
|
386 |
#: inc/wp-maintenance-mode-settings.php:185
|
412 |
# @ wp-maintenance-mode
|
413 |
#: inc/wp-maintenance-mode-settings.php:214
|
414 |
#, php-format
|
415 |
+
msgid ""
|
416 |
+
"Use the first <em>%1$s</em> for the time value or countdown and second <em>"
|
417 |
+
"%2$s</em> for the unit of the time or countdown-value; HTML and Shortcodes "
|
418 |
+
"are possible"
|
419 |
+
msgstr ""
|
420 |
+
"Nutze das erste %1$s für den Zeitwert oder den Countdown und das zweite %2$s "
|
421 |
+
"für die Einheit der Zeit oder die Ausgabe des Zeitwert, HTML und Shortcodes "
|
422 |
+
"sind möglich"
|
423 |
|
424 |
# @ wp-maintenance-mode
|
425 |
#: inc/wp-maintenance-mode-settings.php:219
|
428 |
|
429 |
# @ wp-maintenance-mode
|
430 |
#: inc/wp-maintenance-mode-settings.php:235
|
431 |
+
msgid ""
|
432 |
+
"Exclude feed, pages, posts, archives or IPs from the maintenance mode. Add "
|
433 |
+
"the Slug of page or post as a comma-separated list.<br />Example:"
|
434 |
+
msgstr ""
|
435 |
+
"Die Ausnahme des Wartungsmodus ist möglich für Inhalte aller Art, auch der "
|
436 |
+
"Feed. Füge den Titelform (Slug) hinzu, als Komma-Separierte Liste.<br /"
|
437 |
+
">Beispiel:"
|
438 |
|
|
|
439 |
#: inc/wp-maintenance-mode-settings.php:240
|
440 |
+
msgid "Role Backend:"
|
441 |
+
msgstr "Rolle Backend:"
|
442 |
|
443 |
# @ wp-maintenance-mode
|
444 |
#: inc/wp-maintenance-mode-settings.php:265
|
445 |
+
msgid "Allowed userrole to access the backend of this blog."
|
446 |
+
msgstr "Erlaubte User-Rolle für das Sehen des Backend von diesem Blog."
|
447 |
|
448 |
# @ wp-maintenance-mode
|
449 |
#: inc/wp-maintenance-mode-settings.php:266
|
450 |
+
#: inc/wp-maintenance-mode-settings.php:297
|
451 |
msgid "Super Admin has always access."
|
452 |
msgstr "Super Admin hat immer Zugang."
|
453 |
|
454 |
+
#: inc/wp-maintenance-mode-settings.php:271
|
455 |
+
msgid "Role Frontend:"
|
456 |
+
msgstr "Rolle Frontend:"
|
457 |
+
|
458 |
# @ wp-maintenance-mode
|
459 |
+
#: inc/wp-maintenance-mode-settings.php:296
|
460 |
+
msgid "Allowed userrole to see the frontend of this blog."
|
461 |
+
msgstr "Erlaubte User-Rolle für das Sehen des Frontend von diesem Blog."
|
462 |
+
|
463 |
+
#: inc/wp-maintenance-mode-settings.php:302
|
464 |
+
msgid "Rewrite:"
|
465 |
+
msgstr "Weiterleitung:"
|
466 |
+
|
467 |
+
#: inc/wp-maintenance-mode-settings.php:307
|
468 |
+
msgid ""
|
469 |
+
"If you want that after the login the destination address is not standard to "
|
470 |
+
"the dashboard, then defining a URL. (incl. http://)"
|
471 |
+
msgstr ""
|
472 |
+
"Wenn du nach dem Login eine Weiterleitung verändert zum Standard, dem "
|
473 |
+
"Dashboard, wünschst, dann definiere eine URL. (inkl. http://)"
|
474 |
+
|
475 |
+
# @ wp-maintenance-mode
|
476 |
+
#: inc/wp-maintenance-mode-settings.php:316
|
477 |
msgid "Save"
|
478 |
msgstr "Speichern"
|
|
languages/wp-maintenance-mode-xx_XX.pot
CHANGED
@@ -2,24 +2,24 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: \n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2012-
|
6 |
"PO-Revision-Date: \n"
|
7 |
"Last-Translator: Frank Bueltge <frank@bueltge.de>\n"
|
8 |
"Language-Team: \n"
|
9 |
-
"Language: \n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
14 |
-
"X-Poedit-SourceCharset:
|
15 |
-
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;
|
16 |
-
"
|
|
|
17 |
"X-Textdomain-Support: yes\n"
|
|
|
18 |
"X-Poedit-SearchPath-0: .\n"
|
19 |
|
20 |
# @ wp-maintenance-mode
|
21 |
-
#: site.php:15
|
22 |
-
#: site.php:57
|
23 |
msgid "Maintenance Mode"
|
24 |
msgstr "Wartungsmodus"
|
25 |
|
@@ -39,110 +39,102 @@ msgid "Admin-Login"
|
|
39 |
msgstr "Admin-Login"
|
40 |
|
41 |
# @ default
|
42 |
-
#:
|
43 |
-
msgid "Cheatin’ uh?"
|
44 |
-
msgstr "Mogeln’ was?"
|
45 |
-
|
46 |
-
# @ default
|
47 |
-
#: wp-maintenance-mode.php:208
|
48 |
-
#: wp-maintenance-mode.php:218
|
49 |
msgid "Settings"
|
50 |
msgstr "Einstellungen"
|
51 |
|
52 |
# @ wp-maintenance-mode
|
53 |
-
#: wp-maintenance-mode.php:
|
54 |
msgid "Maintenance mode"
|
55 |
msgstr "Wartungsmodus"
|
56 |
|
57 |
-
#: wp-maintenance-mode.php:
|
58 |
#, php-format
|
59 |
-
msgid "
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
|
62 |
# @ wp-maintenance-mode
|
63 |
-
#: wp-maintenance-mode.php:
|
64 |
-
#: wp-maintenance-mode.php:329
|
65 |
msgid "Updated"
|
66 |
msgstr "Gespeichert"
|
67 |
|
68 |
# @ wp-maintenance-mode
|
69 |
-
#: wp-maintenance-mode.php:
|
70 |
msgid "seconds"
|
71 |
msgstr "Sekunden"
|
72 |
|
73 |
# @ wp-maintenance-mode
|
74 |
-
#: wp-maintenance-mode.php:
|
75 |
msgid "minutes"
|
76 |
msgstr "Minuten"
|
77 |
|
78 |
# @ wp-maintenance-mode
|
79 |
-
#: wp-maintenance-mode.php:
|
80 |
msgid "hours"
|
81 |
msgstr "Stunden"
|
82 |
|
83 |
# @ wp-maintenance-mode
|
84 |
-
#: wp-maintenance-mode.php:
|
85 |
msgid "days"
|
86 |
msgstr "Tagen"
|
87 |
|
88 |
# @ wp-maintenance-mode
|
89 |
-
#: wp-maintenance-mode.php:
|
90 |
msgid "weeks"
|
91 |
msgstr "Wochen"
|
92 |
|
93 |
# @ wp-maintenance-mode
|
94 |
-
#: wp-maintenance-mode.php:
|
95 |
msgid "months"
|
96 |
msgstr "Monate"
|
97 |
|
98 |
# @ wp-maintenance-mode
|
99 |
-
#: wp-maintenance-mode.php:
|
100 |
msgid "years"
|
101 |
msgstr "Jahren"
|
102 |
|
103 |
-
#: wp-maintenance-mode.php:
|
104 |
msgid " & WP Super Cache flushed."
|
105 |
msgstr " & WP Super Cache aktualisiert."
|
106 |
|
107 |
-
#: wp-maintenance-mode.php:
|
108 |
msgid " & W3 Total Cache for pages flushed."
|
109 |
msgstr " & W3 Total Cache für Seiten aktualisiert."
|
110 |
|
111 |
# @ wp-maintenance-mode
|
112 |
-
#: wp-maintenance-mode.php:
|
113 |
-
#: wp-maintenance-mode.php:807
|
114 |
msgid "Caution: Maintenance mode is <strong>active</strong>!"
|
115 |
msgstr "Achtung: Wartungsmodus ist <strong>aktiv</strong>!"
|
116 |
|
117 |
# @ wp-maintenance-mode
|
118 |
-
#: wp-maintenance-mode.php:
|
119 |
-
#: wp-maintenance-mode.php:533
|
120 |
msgid "Deactivate or change Settings"
|
121 |
msgstr "Deaktivieren oder Einstellungen ändern "
|
122 |
|
123 |
# @ wp-maintenance-mode
|
124 |
-
#: wp-maintenance-mode.php:
|
125 |
msgid "Plugin by:"
|
126 |
msgstr "Plugin von:"
|
127 |
|
128 |
# @ wp-maintenance-mode
|
129 |
-
#: wp-maintenance-mode.php:
|
130 |
-
#: wp-maintenance-mode.php:
|
131 |
-
#: wp-maintenance-mode.php:
|
132 |
-
#: wp-maintenance-mode.php:
|
133 |
-
#: wp-maintenance-mode.php:
|
134 |
-
#: wp-maintenance-mode.php:
|
135 |
-
#: wp-maintenance-mode.php:618
|
136 |
-
#: wp-maintenance-mode.php:620
|
137 |
-
#: wp-maintenance-mode.php:622
|
138 |
-
#: wp-maintenance-mode.php:624
|
139 |
-
#: wp-maintenance-mode.php:626
|
140 |
msgid "Design by:"
|
141 |
msgstr "Design von:"
|
142 |
|
143 |
# @ wp-maintenance-mode
|
144 |
#: inc/wp-maintenance-mode-settings.php:37
|
145 |
-
#: inc/wp-maintenance-mode-settings.php:
|
146 |
#, php-format
|
147 |
msgid "Plugin %s settings <strong>updated</strong>."
|
148 |
msgstr "Plugin %s Einstellungen <strong>gespeichert</strong>."
|
@@ -205,8 +197,12 @@ msgstr "Datum:"
|
|
205 |
|
206 |
# @ wp-maintenance-mode
|
207 |
#: inc/wp-maintenance-mode-settings.php:77
|
208 |
-
msgid "
|
209 |
-
|
|
|
|
|
|
|
|
|
210 |
|
211 |
# @ wp-maintenance-mode
|
212 |
#: inc/wp-maintenance-mode-settings.php:82
|
@@ -260,8 +256,12 @@ msgstr "Link:"
|
|
260 |
|
261 |
# @ wp-maintenance-mode
|
262 |
#: inc/wp-maintenance-mode-settings.php:114
|
263 |
-
msgid "
|
264 |
-
|
|
|
|
|
|
|
|
|
265 |
|
266 |
# @ wp-maintenance-mode
|
267 |
#: inc/wp-maintenance-mode-settings.php:119
|
@@ -344,18 +344,23 @@ msgstr "Chemielabor"
|
|
344 |
|
345 |
# @ wp-maintenance-mode
|
346 |
#: inc/wp-maintenance-mode-settings.php:154
|
347 |
-
msgid "Own Style URL
|
348 |
-
msgstr "
|
349 |
|
350 |
# @ wp-maintenance-mode
|
351 |
#: inc/wp-maintenance-mode-settings.php:157
|
352 |
-
msgid "URL to the css-file"
|
353 |
-
msgstr "URL zur css-Datei"
|
354 |
|
355 |
# @ wp-maintenance-mode
|
356 |
#: inc/wp-maintenance-mode-settings.php:159
|
357 |
-
msgid "
|
358 |
-
|
|
|
|
|
|
|
|
|
|
|
359 |
|
360 |
# @ wp-maintenance-mode
|
361 |
#: inc/wp-maintenance-mode-settings.php:164
|
@@ -368,8 +373,14 @@ msgid "noindex, nofollow:"
|
|
368 |
msgstr "noindex, nofollow:"
|
369 |
|
370 |
#: inc/wp-maintenance-mode-settings.php:180
|
371 |
-
msgid "
|
372 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
373 |
|
374 |
# @ wp-maintenance-mode
|
375 |
#: inc/wp-maintenance-mode-settings.php:185
|
@@ -401,8 +412,14 @@ msgstr "Text:"
|
|
401 |
# @ wp-maintenance-mode
|
402 |
#: inc/wp-maintenance-mode-settings.php:214
|
403 |
#, php-format
|
404 |
-
msgid "
|
405 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
406 |
|
407 |
# @ wp-maintenance-mode
|
408 |
#: inc/wp-maintenance-mode-settings.php:219
|
@@ -411,26 +428,51 @@ msgstr "Ausnahmen:"
|
|
411 |
|
412 |
# @ wp-maintenance-mode
|
413 |
#: inc/wp-maintenance-mode-settings.php:235
|
414 |
-
msgid "
|
415 |
-
|
|
|
|
|
|
|
|
|
|
|
416 |
|
417 |
-
# @ wp-maintenance-mode
|
418 |
#: inc/wp-maintenance-mode-settings.php:240
|
419 |
-
msgid "Role:"
|
420 |
-
msgstr "Rolle:"
|
421 |
|
422 |
# @ wp-maintenance-mode
|
423 |
#: inc/wp-maintenance-mode-settings.php:265
|
424 |
-
msgid "Allowed userrole to
|
425 |
-
msgstr "Erlaubte User-Rolle für das Sehen des
|
426 |
|
427 |
# @ wp-maintenance-mode
|
428 |
#: inc/wp-maintenance-mode-settings.php:266
|
|
|
429 |
msgid "Super Admin has always access."
|
430 |
msgstr "Super Admin hat immer Zugang."
|
431 |
|
|
|
|
|
|
|
|
|
432 |
# @ wp-maintenance-mode
|
433 |
-
#: inc/wp-maintenance-mode-settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
434 |
msgid "Save"
|
435 |
msgstr "Speichern"
|
436 |
-
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: \n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2012-11-13 16:38+0100\n"
|
6 |
"PO-Revision-Date: \n"
|
7 |
"Last-Translator: Frank Bueltge <frank@bueltge.de>\n"
|
8 |
"Language-Team: \n"
|
|
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
14 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
|
15 |
+
"_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
|
16 |
+
"X-Poedit-Basepath: c:\\xampp\\htdocs\\wp-plugins\\wp-maintenance-mode\\\n"
|
17 |
"X-Textdomain-Support: yes\n"
|
18 |
+
"X-Generator: Poedit 1.5.4\n"
|
19 |
"X-Poedit-SearchPath-0: .\n"
|
20 |
|
21 |
# @ wp-maintenance-mode
|
22 |
+
#: site.php:15 site.php:57
|
|
|
23 |
msgid "Maintenance Mode"
|
24 |
msgstr "Wartungsmodus"
|
25 |
|
39 |
msgstr "Admin-Login"
|
40 |
|
41 |
# @ default
|
42 |
+
#: wp-maintenance-mode.php:209 wp-maintenance-mode.php:219
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
msgid "Settings"
|
44 |
msgstr "Einstellungen"
|
45 |
|
46 |
# @ wp-maintenance-mode
|
47 |
+
#: wp-maintenance-mode.php:236
|
48 |
msgid "Maintenance mode"
|
49 |
msgstr "Wartungsmodus"
|
50 |
|
51 |
+
#: wp-maintenance-mode.php:237
|
52 |
#, php-format
|
53 |
+
msgid ""
|
54 |
+
"<p>Sorry for the inconvenience.<br />Our website is currently undergoing "
|
55 |
+
"scheduled maintenance.<br /><strong>Please try back in %1$s %2$s</"
|
56 |
+
"strong><br />Thank you for your understanding.</p>"
|
57 |
+
msgstr ""
|
58 |
+
"<p>Es tut uns leid..<br />Auf unserer Site werden aktuelle Wartungsarbeiten "
|
59 |
+
"durchgeführt.<br /><strong>Bitte besuche uns in %1$s %2$s</strong> wieder."
|
60 |
+
"<br />Vielen Dank für das Verständnis.</p>"
|
61 |
|
62 |
# @ wp-maintenance-mode
|
63 |
+
#: wp-maintenance-mode.php:277 wp-maintenance-mode.php:339
|
|
|
64 |
msgid "Updated"
|
65 |
msgstr "Gespeichert"
|
66 |
|
67 |
# @ wp-maintenance-mode
|
68 |
+
#: wp-maintenance-mode.php:477
|
69 |
msgid "seconds"
|
70 |
msgstr "Sekunden"
|
71 |
|
72 |
# @ wp-maintenance-mode
|
73 |
+
#: wp-maintenance-mode.php:481
|
74 |
msgid "minutes"
|
75 |
msgstr "Minuten"
|
76 |
|
77 |
# @ wp-maintenance-mode
|
78 |
+
#: wp-maintenance-mode.php:485
|
79 |
msgid "hours"
|
80 |
msgstr "Stunden"
|
81 |
|
82 |
# @ wp-maintenance-mode
|
83 |
+
#: wp-maintenance-mode.php:489
|
84 |
msgid "days"
|
85 |
msgstr "Tagen"
|
86 |
|
87 |
# @ wp-maintenance-mode
|
88 |
+
#: wp-maintenance-mode.php:493
|
89 |
msgid "weeks"
|
90 |
msgstr "Wochen"
|
91 |
|
92 |
# @ wp-maintenance-mode
|
93 |
+
#: wp-maintenance-mode.php:497
|
94 |
msgid "months"
|
95 |
msgstr "Monate"
|
96 |
|
97 |
# @ wp-maintenance-mode
|
98 |
+
#: wp-maintenance-mode.php:501
|
99 |
msgid "years"
|
100 |
msgstr "Jahren"
|
101 |
|
102 |
+
#: wp-maintenance-mode.php:565
|
103 |
msgid " & WP Super Cache flushed."
|
104 |
msgstr " & WP Super Cache aktualisiert."
|
105 |
|
106 |
+
#: wp-maintenance-mode.php:572
|
107 |
msgid " & W3 Total Cache for pages flushed."
|
108 |
msgstr " & W3 Total Cache für Seiten aktualisiert."
|
109 |
|
110 |
# @ wp-maintenance-mode
|
111 |
+
#: wp-maintenance-mode.php:575 wp-maintenance-mode.php:853
|
|
|
112 |
msgid "Caution: Maintenance mode is <strong>active</strong>!"
|
113 |
msgstr "Achtung: Wartungsmodus ist <strong>aktiv</strong>!"
|
114 |
|
115 |
# @ wp-maintenance-mode
|
116 |
+
#: wp-maintenance-mode.php:577 wp-maintenance-mode.php:581
|
|
|
117 |
msgid "Deactivate or change Settings"
|
118 |
msgstr "Deaktivieren oder Einstellungen ändern "
|
119 |
|
120 |
# @ wp-maintenance-mode
|
121 |
+
#: wp-maintenance-mode.php:651
|
122 |
msgid "Plugin by:"
|
123 |
msgstr "Plugin von:"
|
124 |
|
125 |
# @ wp-maintenance-mode
|
126 |
+
#: wp-maintenance-mode.php:653 wp-maintenance-mode.php:655
|
127 |
+
#: wp-maintenance-mode.php:657 wp-maintenance-mode.php:659
|
128 |
+
#: wp-maintenance-mode.php:661 wp-maintenance-mode.php:663
|
129 |
+
#: wp-maintenance-mode.php:665 wp-maintenance-mode.php:667
|
130 |
+
#: wp-maintenance-mode.php:669 wp-maintenance-mode.php:671
|
131 |
+
#: wp-maintenance-mode.php:673
|
|
|
|
|
|
|
|
|
|
|
132 |
msgid "Design by:"
|
133 |
msgstr "Design von:"
|
134 |
|
135 |
# @ wp-maintenance-mode
|
136 |
#: inc/wp-maintenance-mode-settings.php:37
|
137 |
+
#: inc/wp-maintenance-mode-settings.php:313
|
138 |
#, php-format
|
139 |
msgid "Plugin %s settings <strong>updated</strong>."
|
140 |
msgstr "Plugin %s Einstellungen <strong>gespeichert</strong>."
|
197 |
|
198 |
# @ wp-maintenance-mode
|
199 |
#: inc/wp-maintenance-mode-settings.php:77
|
200 |
+
msgid ""
|
201 |
+
"Activate countdown for using this. Use value and unit or use the countdown "
|
202 |
+
"and set the date."
|
203 |
+
msgstr ""
|
204 |
+
"Aktiviere den Countdown um ihn zu nutzen. Vergebe Wert und Einheit oder "
|
205 |
+
"wähle ein Datum für den Countdown."
|
206 |
|
207 |
# @ wp-maintenance-mode
|
208 |
#: inc/wp-maintenance-mode-settings.php:82
|
256 |
|
257 |
# @ wp-maintenance-mode
|
258 |
#: inc/wp-maintenance-mode-settings.php:114
|
259 |
+
msgid ""
|
260 |
+
"Please leave a link to the plugin- and design-author on your maintenance "
|
261 |
+
"mode site."
|
262 |
+
msgstr ""
|
263 |
+
"Bitte hinterlasse einen Link zum Plugin- und Design-Autor auf deiner "
|
264 |
+
"Wartungsmodus-Seite."
|
265 |
|
266 |
# @ wp-maintenance-mode
|
267 |
#: inc/wp-maintenance-mode-settings.php:119
|
344 |
|
345 |
# @ wp-maintenance-mode
|
346 |
#: inc/wp-maintenance-mode-settings.php:154
|
347 |
+
msgid "Own Style URL:"
|
348 |
+
msgstr "Eigenes Design:"
|
349 |
|
350 |
# @ wp-maintenance-mode
|
351 |
#: inc/wp-maintenance-mode-settings.php:157
|
352 |
+
msgid "URL to the css-file (incl. http://)"
|
353 |
+
msgstr "URL zur css-Datei (inkl. http://)"
|
354 |
|
355 |
# @ wp-maintenance-mode
|
356 |
#: inc/wp-maintenance-mode-settings.php:159
|
357 |
+
msgid ""
|
358 |
+
"<strong>Coution:</strong> Please don´t copy the stylesheet in your "
|
359 |
+
"plugin folder, it will be deleted on the next automatical update of the "
|
360 |
+
"plugin!"
|
361 |
+
msgstr ""
|
362 |
+
"<strong>Hinweis:</strong> Bitte speichere das Sytelsheet nicht im Plugin-"
|
363 |
+
"Ordner, der Ordner wird beim automatischen Update ersetzt!"
|
364 |
|
365 |
# @ wp-maintenance-mode
|
366 |
#: inc/wp-maintenance-mode-settings.php:164
|
373 |
msgstr "noindex, nofollow:"
|
374 |
|
375 |
#: inc/wp-maintenance-mode-settings.php:180
|
376 |
+
msgid ""
|
377 |
+
"The robots meta tag lets you utilize a granular, page-specific approach to "
|
378 |
+
"controlling how an individual page should be indexed and served to users in "
|
379 |
+
"search results. Set TRUE for noindex, nofollow; set FALSE for index, follow."
|
380 |
+
msgstr ""
|
381 |
+
"Der robots meta Tag gibt die Möglichkeit die Indizierung der Site durch "
|
382 |
+
"Suchmaschinen zu steuern. Wähle den Wert, der auf Wartungsseite genutzt "
|
383 |
+
"werden soll. Setze Ja für nonidex, nofollow; setze Nein für index, follow."
|
384 |
|
385 |
# @ wp-maintenance-mode
|
386 |
#: inc/wp-maintenance-mode-settings.php:185
|
412 |
# @ wp-maintenance-mode
|
413 |
#: inc/wp-maintenance-mode-settings.php:214
|
414 |
#, php-format
|
415 |
+
msgid ""
|
416 |
+
"Use the first <em>%1$s</em> for the time value or countdown and second <em>"
|
417 |
+
"%2$s</em> for the unit of the time or countdown-value; HTML and Shortcodes "
|
418 |
+
"are possible"
|
419 |
+
msgstr ""
|
420 |
+
"Nutze das erste %1$s für den Zeitwert oder den Countdown und das zweite %2$s "
|
421 |
+
"für die Einheit der Zeit oder die Ausgabe des Zeitwert, HTML und Shortcodes "
|
422 |
+
"sind möglich"
|
423 |
|
424 |
# @ wp-maintenance-mode
|
425 |
#: inc/wp-maintenance-mode-settings.php:219
|
428 |
|
429 |
# @ wp-maintenance-mode
|
430 |
#: inc/wp-maintenance-mode-settings.php:235
|
431 |
+
msgid ""
|
432 |
+
"Exclude feed, pages, posts, archives or IPs from the maintenance mode. Add "
|
433 |
+
"the Slug of page or post as a comma-separated list.<br />Example:"
|
434 |
+
msgstr ""
|
435 |
+
"Die Ausnahme des Wartungsmodus ist möglich für Inhalte aller Art, auch der "
|
436 |
+
"Feed. Füge den Titelform (Slug) hinzu, als Komma-Separierte Liste.<br /"
|
437 |
+
">Beispiel:"
|
438 |
|
|
|
439 |
#: inc/wp-maintenance-mode-settings.php:240
|
440 |
+
msgid "Role Backend:"
|
441 |
+
msgstr "Rolle Backend:"
|
442 |
|
443 |
# @ wp-maintenance-mode
|
444 |
#: inc/wp-maintenance-mode-settings.php:265
|
445 |
+
msgid "Allowed userrole to access the backend of this blog."
|
446 |
+
msgstr "Erlaubte User-Rolle für das Sehen des Backend von diesem Blog."
|
447 |
|
448 |
# @ wp-maintenance-mode
|
449 |
#: inc/wp-maintenance-mode-settings.php:266
|
450 |
+
#: inc/wp-maintenance-mode-settings.php:297
|
451 |
msgid "Super Admin has always access."
|
452 |
msgstr "Super Admin hat immer Zugang."
|
453 |
|
454 |
+
#: inc/wp-maintenance-mode-settings.php:271
|
455 |
+
msgid "Role Frontend:"
|
456 |
+
msgstr "Rolle Frontend:"
|
457 |
+
|
458 |
# @ wp-maintenance-mode
|
459 |
+
#: inc/wp-maintenance-mode-settings.php:296
|
460 |
+
msgid "Allowed userrole to see the frontend of this blog."
|
461 |
+
msgstr "Erlaubte User-Rolle für das Sehen des Frontend von diesem Blog."
|
462 |
+
|
463 |
+
#: inc/wp-maintenance-mode-settings.php:302
|
464 |
+
msgid "Rewrite:"
|
465 |
+
msgstr "Weiterleitung:"
|
466 |
+
|
467 |
+
#: inc/wp-maintenance-mode-settings.php:307
|
468 |
+
msgid ""
|
469 |
+
"If you want that after the login the destination address is not standard to "
|
470 |
+
"the dashboard, then defining a URL. (incl. http://)"
|
471 |
+
msgstr ""
|
472 |
+
"Wenn du nach dem Login eine Weiterleitung verändert zum Standard, dem "
|
473 |
+
"Dashboard, wünschst, dann definiere eine URL. (inkl. http://)"
|
474 |
+
|
475 |
+
# @ wp-maintenance-mode
|
476 |
+
#: inc/wp-maintenance-mode-settings.php:316
|
477 |
msgid "Save"
|
478 |
msgstr "Speichern"
|
|
readme.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
=== WP Maintenance Mode ===
|
2 |
-
Contributors: Bueltge
|
3 |
Plugin Name: WP Maintenance Mode
|
4 |
Plugin URI: http://bueltge.de/wp-wartungsmodus-plugin/101/
|
5 |
Author: Frank Bültge
|
@@ -7,8 +7,8 @@ Author URI: http://bueltge.de/
|
|
7 |
Donate link: http://bueltge.de/wunschliste/
|
8 |
Tags: maintenance, mode, admin, administration, unavailable, coming soon, multisite
|
9 |
Requires at least: 2.6
|
10 |
-
Tested up to: 3.5-
|
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 |
|
@@ -242,6 +242,12 @@ Please visit [Automatisches Backup der WordPress-Datenbank](http://www.beedy.de/
|
|
242 |
|
243 |
|
244 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
245 |
= 1.8.1 =
|
246 |
* Add option for value of robots meta tag
|
247 |
* Add option for optional admin login
|
1 |
=== WP Maintenance Mode ===
|
2 |
+
Contributors: Bueltge, inpsyde
|
3 |
Plugin Name: WP Maintenance Mode
|
4 |
Plugin URI: http://bueltge.de/wp-wartungsmodus-plugin/101/
|
5 |
Author: Frank Bültge
|
7 |
Donate link: http://bueltge.de/wunschliste/
|
8 |
Tags: maintenance, mode, admin, administration, unavailable, coming soon, multisite
|
9 |
Requires at least: 2.6
|
10 |
+
Tested up to: 3.5-beta3
|
11 |
+
Stable tag: 1.8.2
|
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 |
|
242 |
|
243 |
|
244 |
== Changelog ==
|
245 |
+
= 1.8.2 =
|
246 |
+
* Add different access for Frontend and Backend
|
247 |
+
* Add Rewrite after Login for Frontend Access
|
248 |
+
* Different small changes
|
249 |
+
* Test for WP 3.5
|
250 |
+
|
251 |
= 1.8.1 =
|
252 |
* Add option for value of robots meta tag
|
253 |
* Add option for optional admin login
|
site.php
CHANGED
@@ -85,9 +85,9 @@ if ( !isset($value) ) {
|
|
85 |
$locale = substr($locale, 0, 2);
|
86 |
?>
|
87 |
<script type="text/javascript" src="<?php bloginfo('url') ?>/wp-includes/js/jquery/jquery.js"></script>
|
88 |
-
<script type="text/javascript" src="<?php echo WPMaintenanceMode::get_plugins_url( 'js/jquery.countdown.pack.js', __FILE__ ); ?>"></script>
|
89 |
<?php if ( @file_exists( FB_WM_BASE . '/js/jquery.countdown-' . $locale . '.js') ) { ?>
|
90 |
-
<script type="text/javascript" src="<?php echo WPMaintenanceMode::get_plugins_url( 'js/jquery.countdown-' . $locale . '.js', __FILE__ ); ?>"></script>
|
91 |
<?php } ?>
|
92 |
<script type="text/javascript">
|
93 |
jQuery(document).ready( function($){
|
85 |
$locale = substr($locale, 0, 2);
|
86 |
?>
|
87 |
<script type="text/javascript" src="<?php bloginfo('url') ?>/wp-includes/js/jquery/jquery.js"></script>
|
88 |
+
<script type="text/javascript" src="<?php echo WPMaintenanceMode::get_plugins_url( 'js/jquery.countdown.pack.js', basename(dirname(__FILE__ ))); ?>"></script>
|
89 |
<?php if ( @file_exists( FB_WM_BASE . '/js/jquery.countdown-' . $locale . '.js') ) { ?>
|
90 |
+
<script type="text/javascript" src="<?php echo WPMaintenanceMode::get_plugins_url( 'js/jquery.countdown-' . $locale . '.js', basename(dirname(__FILE__ )) ); ?>"></script>
|
91 |
<?php } ?>
|
92 |
<script type="text/javascript">
|
93 |
jQuery(document).ready( function($){
|
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:
|
13 |
* Licence: GPLv3
|
14 |
*
|
15 |
*
|
@@ -66,6 +66,7 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
66 |
//add_action( 'load-plugins.php', array(&$this, 'add_scripts') );
|
67 |
add_action( 'init', array( $this, 'on_init'), 1 );
|
68 |
add_action( 'admin_init', array( $this, 'admin_init') );
|
|
|
69 |
|
70 |
add_action( 'wp_ajax_wm_config-update', array( $this, 'save_config' ) );
|
71 |
add_action( 'wp_ajax_wm_config-active', array( $this, 'save_active' ) );
|
@@ -293,6 +294,13 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
293 |
$this->data['link'] = (int) $_POST['wm_config-link'];
|
294 |
if ( isset($_POST['wm_config-admin_link']) )
|
295 |
$this->data['admin_link'] = (int) $_POST['wm_config-admin_link'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
296 |
if ( isset($_POST['wm_config-theme']) )
|
297 |
$this->data['theme'] = (int) $_POST['wm_config-theme'];
|
298 |
if ( isset($_POST['wm_config-styleurl']) ) {
|
@@ -316,6 +324,8 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
316 |
$this->data['exclude'] = preg_split("/[\s,]+/", $this->esc_attr( $_POST['wm_config-exclude'] ) );
|
317 |
if ( isset($_POST['wm_config-role']) )
|
318 |
$this->data['role'] = preg_split("/[\s,]+/", $this->esc_attr( $_POST['wm_config-role'] ) );
|
|
|
|
|
319 |
if ( isset($_POST['wm_config-radio']) )
|
320 |
$this->data['radio'] = (int) $_POST['wm_config-radio'];
|
321 |
if ( isset($_POST['wm_config-date']) )
|
@@ -352,6 +362,36 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
352 |
}
|
353 |
}
|
354 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
355 |
|
356 |
function check_exclude() {
|
357 |
|
@@ -377,6 +417,7 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
377 |
|
378 |
|
379 |
function check_role() {
|
|
|
380 |
if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) )
|
381 |
$value = get_site_option( FB_WM_TEXTDOMAIN );
|
382 |
else
|
@@ -385,28 +426,33 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
385 |
if ( is_super_admin() )
|
386 |
return TRUE;
|
387 |
|
388 |
-
if ( !isset( $value['role'][0] ) || ( '' != $value['role'][0] ) )
|
389 |
$role = 'manage_options';
|
390 |
|
|
|
|
|
|
|
|
|
|
|
391 |
$defaultroles = array('administrator', 'editor', 'author', 'contributor', 'subscriber');
|
392 |
|
393 |
-
if ( isset($
|
394 |
-
if ( 'administrator' == $
|
395 |
$role = 'manage_options';
|
396 |
|
397 |
-
elseif ( 'editor' == $
|
398 |
$role = 'manage_categories';
|
399 |
|
400 |
-
elseif ( 'author' == $
|
401 |
$role = 'publish_posts';
|
402 |
|
403 |
-
elseif ( 'contributor' == $
|
404 |
$role = 'edit_posts';
|
405 |
|
406 |
-
elseif ( 'subscriber' == $
|
407 |
$role = 'read';
|
408 |
|
409 |
-
elseif ( !in_array( $
|
410 |
$role = 'manage_options';
|
411 |
} else {
|
412 |
$role = 'manage_options';
|
@@ -414,6 +460,8 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
414 |
|
415 |
if ( current_user_can( $role ) )
|
416 |
return TRUE;
|
|
|
|
|
417 |
|
418 |
return FALSE;
|
419 |
}
|
@@ -501,25 +549,25 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
501 |
require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
|
502 |
}
|
503 |
|
504 |
-
if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) )
|
505 |
$value = get_site_option( FB_WM_TEXTDOMAIN );
|
506 |
-
else
|
507 |
-
$value = get_option( FB_WM_TEXTDOMAIN );
|
508 |
-
|
509 |
-
if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) )
|
510 |
$settings_link = network_admin_url() . 'plugins.php#wm-pluginconflink';
|
511 |
-
else
|
|
|
512 |
$settings_link = admin_url() . 'plugins.php#wm-pluginconflink';
|
|
|
513 |
|
514 |
$scmsg = '';
|
515 |
// Super Cache Plugin; clear cache on activation of maintance mode
|
516 |
if ( function_exists( 'wp_cache_clear_cache' ) ) {
|
|
|
517 |
wp_cache_clear_cache();
|
518 |
$scmsg .= __( ' & WP Super Cache flushed.', FB_WM_TEXTDOMAIN );
|
519 |
}
|
520 |
|
521 |
// W3 Total Cache Support
|
522 |
if ( function_exists( 'w3tc_pgcache_flush' ) ) {
|
|
|
523 |
w3tc_pgcache_flush();
|
524 |
$scmsg .= __( ' & W3 Total Cache for pages flushed.', FB_WM_TEXTDOMAIN );
|
525 |
}
|
@@ -555,7 +603,6 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
555 |
$backtime = $value['time'] * $unitvalues['multiplier'];
|
556 |
else
|
557 |
$backtime = NULL;
|
558 |
-
|
559 |
if ( ( ! $this->check_role() )
|
560 |
&& ! strstr($_SERVER['PHP_SELF'], 'wp-login.php' )
|
561 |
&& ! strstr($_SERVER['PHP_SELF'], 'async-upload.php')
|
@@ -745,23 +792,22 @@ if ( ! class_exists('WPMaintenanceMode') ) {
|
|
745 |
$value = get_option( FB_WM_TEXTDOMAIN );
|
746 |
$echo = NULL;
|
747 |
// default for unit
|
748 |
-
if ( !isset($value['unit']) )
|
749 |
$value['unit'] = NULL;
|
750 |
|
751 |
$unitvalues = $this->case_unit($value['unit']);
|
752 |
$td = $this->check_datetime();
|
753 |
|
754 |
if ( isset($value['radio']) && 1 === $value['radio'] && 0 !== $td[2] ) {
|
755 |
-
$
|
756 |
-
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
$echo = wp_sprintf( stripslashes_deep( $value['text']), '<br /><span id="countdown"></span>', $echodate );
|
761 |
} elseif ( isset($value['text']) ) {
|
762 |
-
if (!isset($value['time']) || 0 == $value['time'] )
|
763 |
$value['time'] = FALSE;
|
764 |
-
if (!isset($unitvalues['unit']) )
|
765 |
$unitvalues['unit'] = FALSE;
|
766 |
$echo = wp_sprintf( stripslashes_deep( $value['text'] ), $value['time'], $unitvalues['unit'] );
|
767 |
}
|
8 |
* Author: Frank Bültge
|
9 |
* Author URI: http://bueltge.de/
|
10 |
* Donate URI: http://bueltge.de/wunschliste/
|
11 |
+
* Version: 1.8.2
|
12 |
+
* Last change: 11/13/2012
|
13 |
* Licence: GPLv3
|
14 |
*
|
15 |
*
|
66 |
//add_action( 'load-plugins.php', array(&$this, 'add_scripts') );
|
67 |
add_action( 'init', array( $this, 'on_init'), 1 );
|
68 |
add_action( 'admin_init', array( $this, 'admin_init') );
|
69 |
+
add_action( 'admin_menu', array( $this, 'redirect' ) );
|
70 |
|
71 |
add_action( 'wp_ajax_wm_config-update', array( $this, 'save_config' ) );
|
72 |
add_action( 'wp_ajax_wm_config-active', array( $this, 'save_active' ) );
|
294 |
$this->data['link'] = (int) $_POST['wm_config-link'];
|
295 |
if ( isset($_POST['wm_config-admin_link']) )
|
296 |
$this->data['admin_link'] = (int) $_POST['wm_config-admin_link'];
|
297 |
+
if ( isset($_POST['wm_config-rewrite']) ) {
|
298 |
+
if ( function_exists('esc_url') ) {
|
299 |
+
$this->data['rewrite'] = esc_url( $_POST['wm_config-rewrite'] );
|
300 |
+
} else {
|
301 |
+
$this->data['rewrite'] = clean_url( $_POST['wm_config-rewrite'] );
|
302 |
+
}
|
303 |
+
}
|
304 |
if ( isset($_POST['wm_config-theme']) )
|
305 |
$this->data['theme'] = (int) $_POST['wm_config-theme'];
|
306 |
if ( isset($_POST['wm_config-styleurl']) ) {
|
324 |
$this->data['exclude'] = preg_split("/[\s,]+/", $this->esc_attr( $_POST['wm_config-exclude'] ) );
|
325 |
if ( isset($_POST['wm_config-role']) )
|
326 |
$this->data['role'] = preg_split("/[\s,]+/", $this->esc_attr( $_POST['wm_config-role'] ) );
|
327 |
+
if ( isset($_POST['wm_config-role_frontend']) )
|
328 |
+
$this->data['role_frontend'] = preg_split("/[\s,]+/", $this->esc_attr( $_POST['wm_config-role_frontend'] ) );
|
329 |
if ( isset($_POST['wm_config-radio']) )
|
330 |
$this->data['radio'] = (int) $_POST['wm_config-radio'];
|
331 |
if ( isset($_POST['wm_config-date']) )
|
362 |
}
|
363 |
}
|
364 |
|
365 |
+
/**
|
366 |
+
* Rewrite for Frontend Login
|
367 |
+
*
|
368 |
+
* @return void
|
369 |
+
*/
|
370 |
+
function redirect() {
|
371 |
+
|
372 |
+
if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) )
|
373 |
+
$value = get_site_option( FB_WM_TEXTDOMAIN );
|
374 |
+
else
|
375 |
+
$value = get_option( FB_WM_TEXTDOMAIN );
|
376 |
+
|
377 |
+
// if the redirect active
|
378 |
+
if ( ! isset($value['rewrite']) )
|
379 |
+
return NULL;
|
380 |
+
|
381 |
+
// check, is the maintenance mode active
|
382 |
+
if ( 0 === $value['active'] )
|
383 |
+
return NULL;
|
384 |
+
|
385 |
+
// check, Access to backend
|
386 |
+
if ( current_user_can( $value['role'][0] ) )
|
387 |
+
return NULL;
|
388 |
+
|
389 |
+
// redirect for wp-admin
|
390 |
+
// only Dashboard: #wp-admin/?(index.php)?$#
|
391 |
+
if ( preg_match( '#wp-admin/#', $_SERVER['REQUEST_URI'] ) )
|
392 |
+
wp_redirect( $value['rewrite'] );
|
393 |
+
}
|
394 |
+
|
395 |
|
396 |
function check_exclude() {
|
397 |
|
417 |
|
418 |
|
419 |
function check_role() {
|
420 |
+
|
421 |
if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) )
|
422 |
$value = get_site_option( FB_WM_TEXTDOMAIN );
|
423 |
else
|
426 |
if ( is_super_admin() )
|
427 |
return TRUE;
|
428 |
|
429 |
+
if ( ! isset( $value['role'][0] ) || ( '' != $value['role'][0] ) )
|
430 |
$role = 'manage_options';
|
431 |
|
432 |
+
if ( is_admin() )
|
433 |
+
$current = $value['role'][0];
|
434 |
+
else
|
435 |
+
$current = $value['role_frontend'][0];
|
436 |
+
|
437 |
$defaultroles = array('administrator', 'editor', 'author', 'contributor', 'subscriber');
|
438 |
|
439 |
+
if ( isset( $current ) ) {
|
440 |
+
if ( 'administrator' == $current )
|
441 |
$role = 'manage_options';
|
442 |
|
443 |
+
elseif ( 'editor' == $current )
|
444 |
$role = 'manage_categories';
|
445 |
|
446 |
+
elseif ( 'author' == $current )
|
447 |
$role = 'publish_posts';
|
448 |
|
449 |
+
elseif ( 'contributor' == $current )
|
450 |
$role = 'edit_posts';
|
451 |
|
452 |
+
elseif ( 'subscriber' == $current )
|
453 |
$role = 'read';
|
454 |
|
455 |
+
elseif ( ! in_array( $current, $defaultroles ) )
|
456 |
$role = 'manage_options';
|
457 |
} else {
|
458 |
$role = 'manage_options';
|
460 |
|
461 |
if ( current_user_can( $role ) )
|
462 |
return TRUE;
|
463 |
+
else if ( current_user_can( $value['role_frontend'][0] ) )
|
464 |
+
return TRUE;
|
465 |
|
466 |
return FALSE;
|
467 |
}
|
549 |
require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
|
550 |
}
|
551 |
|
552 |
+
if ( is_multisite() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) ) {
|
553 |
$value = get_site_option( FB_WM_TEXTDOMAIN );
|
|
|
|
|
|
|
|
|
554 |
$settings_link = network_admin_url() . 'plugins.php#wm-pluginconflink';
|
555 |
+
} else {
|
556 |
+
$value = get_option( FB_WM_TEXTDOMAIN );
|
557 |
$settings_link = admin_url() . 'plugins.php#wm-pluginconflink';
|
558 |
+
}
|
559 |
|
560 |
$scmsg = '';
|
561 |
// Super Cache Plugin; clear cache on activation of maintance mode
|
562 |
if ( function_exists( 'wp_cache_clear_cache' ) ) {
|
563 |
+
ob_end_clean();
|
564 |
wp_cache_clear_cache();
|
565 |
$scmsg .= __( ' & WP Super Cache flushed.', FB_WM_TEXTDOMAIN );
|
566 |
}
|
567 |
|
568 |
// W3 Total Cache Support
|
569 |
if ( function_exists( 'w3tc_pgcache_flush' ) ) {
|
570 |
+
ob_end_clean();
|
571 |
w3tc_pgcache_flush();
|
572 |
$scmsg .= __( ' & W3 Total Cache for pages flushed.', FB_WM_TEXTDOMAIN );
|
573 |
}
|
603 |
$backtime = $value['time'] * $unitvalues['multiplier'];
|
604 |
else
|
605 |
$backtime = NULL;
|
|
|
606 |
if ( ( ! $this->check_role() )
|
607 |
&& ! strstr($_SERVER['PHP_SELF'], 'wp-login.php' )
|
608 |
&& ! strstr($_SERVER['PHP_SELF'], 'async-upload.php')
|
792 |
$value = get_option( FB_WM_TEXTDOMAIN );
|
793 |
$echo = NULL;
|
794 |
// default for unit
|
795 |
+
if ( ! isset($value['unit']) )
|
796 |
$value['unit'] = NULL;
|
797 |
|
798 |
$unitvalues = $this->case_unit($value['unit']);
|
799 |
$td = $this->check_datetime();
|
800 |
|
801 |
if ( isset($value['radio']) && 1 === $value['radio'] && 0 !== $td[2] ) {
|
802 |
+
$echo = wp_sprintf(
|
803 |
+
stripslashes_deep( $value['text']),
|
804 |
+
'<br /><span id="countdown"></span>',
|
805 |
+
date_i18n( get_option('date_format'), strtotime( $td[0][0] ) )
|
806 |
+
);
|
|
|
807 |
} elseif ( isset($value['text']) ) {
|
808 |
+
if ( ! isset($value['time']) || 0 == $value['time'] )
|
809 |
$value['time'] = FALSE;
|
810 |
+
if ( ! isset($unitvalues['unit']) )
|
811 |
$unitvalues['unit'] = FALSE;
|
812 |
$echo = wp_sprintf( stripslashes_deep( $value['text'] ), $value['time'], $unitvalues['unit'] );
|
813 |
}
|