WP Maintenance Mode - Version 1.6.10

Version Description

Download this release

Release Info

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

Code changes from version 1.6.9 to 1.6.10

Files changed (140) hide show
  1. WP Maintenance Mode-da_DK.txt +0 -0
  2. css/jquery.countdown.css +0 -0
  3. css/overcast/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  4. css/overcast/images/ui-bg_flat_0_eeeeee_40x100.png +0 -0
  5. css/overcast/images/ui-bg_flat_55_c0402a_40x100.png +0 -0
  6. css/overcast/images/ui-bg_flat_55_eeeeee_40x100.png +0 -0
  7. css/overcast/images/ui-bg_glass_100_f8f8f8_1x400.png +0 -0
  8. css/overcast/images/ui-bg_glass_35_dddddd_1x400.png +0 -0
  9. css/overcast/images/ui-bg_glass_60_eeeeee_1x400.png +0 -0
  10. css/overcast/images/ui-bg_inset-hard_75_999999_1x100.png +0 -0
  11. css/overcast/images/ui-bg_inset-soft_50_c9c9c9_1x100.png +0 -0
  12. css/overcast/images/ui-icons_3383bb_256x240.png +0 -0
  13. css/overcast/images/ui-icons_454545_256x240.png +0 -0
  14. css/overcast/images/ui-icons_70b2e1_256x240.png +0 -0
  15. css/overcast/images/ui-icons_999999_256x240.png +0 -0
  16. css/overcast/images/ui-icons_fbc856_256x240.png +0 -0
  17. css/overcast/jquery-ui-1.7.2.custom.css +0 -0
  18. css/style.css +0 -0
  19. index.php +0 -0
  20. js/de_DE.datetimepicker.js +0 -0
  21. js/jquery.countdown-ar.js +0 -0
  22. js/jquery.countdown-cs.js +0 -0
  23. js/jquery.countdown-da.js +0 -0
  24. js/jquery.countdown-de.js +0 -0
  25. js/jquery.countdown-es.js +0 -0
  26. js/jquery.countdown-fa.js +0 -0
  27. js/jquery.countdown-fi.js +0 -0
  28. js/jquery.countdown-fr.js +0 -0
  29. js/jquery.countdown-gl.js +0 -0
  30. js/jquery.countdown-he.js +0 -0
  31. js/jquery.countdown-hu.js +0 -0
  32. js/jquery.countdown-id.js +0 -0
  33. js/jquery.countdown-it.js +0 -0
  34. js/jquery.countdown-ja.js +0 -0
  35. js/jquery.countdown-ko.js +0 -0
  36. js/jquery.countdown-lt.js +0 -0
  37. js/jquery.countdown-lv.js +0 -0
  38. js/jquery.countdown-my.js +0 -0
  39. js/jquery.countdown-nb.js +0 -0
  40. js/jquery.countdown-nl.js +0 -0
  41. js/jquery.countdown-pl.js +0 -0
  42. js/jquery.countdown-pt-BR.js +0 -0
  43. js/jquery.countdown-ro.js +0 -0
  44. js/jquery.countdown-ru.js +0 -0
  45. js/jquery.countdown-sk.js +0 -0
  46. js/jquery.countdown-sv.js +0 -0
  47. js/jquery.countdown-tr.js +0 -0
  48. js/jquery.countdown-uk.js +0 -0
  49. js/jquery.countdown-zh-CN.js +0 -0
  50. js/jquery.countdown-zh-TW.js +0 -0
  51. js/jquery.countdown.js +0 -0
  52. js/jquery.countdown.min.js +0 -0
  53. js/jquery.countdown.pack.js +0 -0
  54. js/ui.datetimepicker-de.js +0 -0
  55. js/ui.datetimepicker.js +0 -0
  56. languages/wp-maintenance-mode-ar_AR.mo +0 -0
  57. languages/wp-maintenance-mode-ar_AR.po +0 -0
  58. languages/wp-maintenance-mode-be_BY.mo +0 -0
  59. languages/wp-maintenance-mode-be_BY.po +0 -0
  60. languages/wp-maintenance-mode-bn_BD.mo +0 -0
  61. languages/wp-maintenance-mode-bn_BD.po +0 -0
  62. languages/wp-maintenance-mode-da_DK.mo +0 -0
  63. languages/wp-maintenance-mode-da_DK.po +0 -0
  64. languages/wp-maintenance-mode-de_DE.mo +0 -0
  65. languages/wp-maintenance-mode-de_DE.po +0 -0
  66. languages/wp-maintenance-mode-es_ES.mo +0 -0
  67. languages/wp-maintenance-mode-es_ES.po +0 -0
  68. languages/wp-maintenance-mode-fr_FR.mo +0 -0
  69. languages/wp-maintenance-mode-fr_FR.po +0 -0
  70. languages/wp-maintenance-mode-hr.mo +0 -0
  71. languages/wp-maintenance-mode-hr.po +0 -0
  72. languages/wp-maintenance-mode-it_IT.mo +0 -0
  73. languages/wp-maintenance-mode-it_IT.po +0 -0
  74. languages/wp-maintenance-mode-nl_NL.mo +0 -0
  75. languages/wp-maintenance-mode-nl_NL.po +0 -0
  76. languages/wp-maintenance-mode-pl_PL.mo +0 -0
  77. languages/wp-maintenance-mode-pl_PL.po +0 -0
  78. languages/wp-maintenance-mode-ro_RO.mo +0 -0
  79. languages/wp-maintenance-mode-ro_RO.po +0 -0
  80. languages/wp-maintenance-mode-ru_RU.mo +0 -0
  81. languages/wp-maintenance-mode-ru_RU.po +432 -0
  82. languages/wp-maintenance-mode-sq_AL.mo +0 -0
  83. languages/wp-maintenance-mode-sq_AL.po +0 -0
  84. languages/wp-maintenance-mode-tr_TR.mo +0 -0
  85. languages/wp-maintenance-mode-tr_TR.po +0 -0
  86. languages/wp-maintenance-mode-xx_XX.pot +0 -0
  87. license.txt +0 -0
  88. readme.txt +46 -40
  89. screenshot-1.png +0 -0
  90. screenshot-10.png +0 -0
  91. screenshot-11.png +0 -0
  92. screenshot-12.png +0 -0
  93. screenshot-13.png +0 -0
  94. screenshot-2.png +0 -0
  95. screenshot-3.png +0 -0
  96. screenshot-4.png +0 -0
  97. screenshot-5.png +0 -0
  98. screenshot-6.png +0 -0
  99. screenshot-7.png +0 -0
  100. screenshot-8.png +0 -0
  101. screenshot-9.png +0 -0
  102. site.php +85 -85
  103. styles/af.css +0 -0
  104. styles/be.css +0 -0
  105. styles/cm.css +0 -0
  106. styles/dh.css +0 -0
  107. styles/es.css +0 -0
  108. styles/fl.css +0 -0
  109. styles/fv.css +0 -0
  110. styles/images/background.jpg +0 -0
  111. styles/images/bg.gif +0 -0
  112. styles/images/bg.jpg +0 -0
  113. styles/images/box-bg.jpg +0 -0
  114. styles/images/button.png +0 -0
  115. styles/images/do-not-enter.jpg +0 -0
  116. styles/images/es/bg-image.png +0 -0
  117. styles/images/es/bg.jpg +0 -0
  118. styles/images/es/button.png +0 -0
  119. styles/images/es/m-mode.png +0 -0
  120. styles/images/gnome-control_48px.png +0 -0
  121. styles/images/gnome_key_32px.png +0 -0
  122. styles/images/headline-af-de_DE.jpg +0 -0
  123. styles/images/headline-af-en_US.jpg +0 -0
  124. styles/images/headline-de_DE.jpg +0 -0
  125. styles/images/headline-en_US.jpg +0 -0
  126. styles/images/lego-bg.jpg +0 -0
  127. styles/images/lego-content.jpg +0 -0
  128. styles/images/leiste.jpg +0 -0
  129. styles/images/monster.jpg +0 -0
  130. styles/images/wartungsmodus.jpg +0 -0
  131. styles/ks.css +0 -0
  132. styles/ln.css +0 -0
  133. styles/monster.css +0 -0
  134. styles/nicki.css +0 -0
  135. styles/txt.css +0 -0
  136. styles/wartung-de_DE.swf +0 -0
  137. styles/wartung-es_ES.swf +0 -0
  138. styles/wartung.swf +0 -0
  139. uninstall.php +5 -5
  140. wp-maintenance-mode.php +1014 -1001
WP Maintenance Mode-da_DK.txt CHANGED
File without changes
css/jquery.countdown.css CHANGED
File without changes
css/overcast/images/ui-bg_flat_0_aaaaaa_40x100.png CHANGED
File without changes
css/overcast/images/ui-bg_flat_0_eeeeee_40x100.png CHANGED
File without changes
css/overcast/images/ui-bg_flat_55_c0402a_40x100.png CHANGED
File without changes
css/overcast/images/ui-bg_flat_55_eeeeee_40x100.png CHANGED
File without changes
css/overcast/images/ui-bg_glass_100_f8f8f8_1x400.png CHANGED
File without changes
css/overcast/images/ui-bg_glass_35_dddddd_1x400.png CHANGED
File without changes
css/overcast/images/ui-bg_glass_60_eeeeee_1x400.png CHANGED
File without changes
css/overcast/images/ui-bg_inset-hard_75_999999_1x100.png CHANGED
File without changes
css/overcast/images/ui-bg_inset-soft_50_c9c9c9_1x100.png CHANGED
File without changes
css/overcast/images/ui-icons_3383bb_256x240.png CHANGED
File without changes
css/overcast/images/ui-icons_454545_256x240.png CHANGED
File without changes
css/overcast/images/ui-icons_70b2e1_256x240.png CHANGED
File without changes
css/overcast/images/ui-icons_999999_256x240.png CHANGED
File without changes
css/overcast/images/ui-icons_fbc856_256x240.png CHANGED
File without changes
css/overcast/jquery-ui-1.7.2.custom.css CHANGED
File without changes
css/style.css CHANGED
File without changes
index.php CHANGED
File without changes
js/de_DE.datetimepicker.js CHANGED
File without changes
js/jquery.countdown-ar.js CHANGED
File without changes
js/jquery.countdown-cs.js CHANGED
File without changes
js/jquery.countdown-da.js CHANGED
File without changes
js/jquery.countdown-de.js CHANGED
File without changes
js/jquery.countdown-es.js CHANGED
File without changes
js/jquery.countdown-fa.js CHANGED
File without changes
js/jquery.countdown-fi.js CHANGED
File without changes
js/jquery.countdown-fr.js CHANGED
File without changes
js/jquery.countdown-gl.js CHANGED
File without changes
js/jquery.countdown-he.js CHANGED
File without changes
js/jquery.countdown-hu.js CHANGED
File without changes
js/jquery.countdown-id.js CHANGED
File without changes
js/jquery.countdown-it.js CHANGED
File without changes
js/jquery.countdown-ja.js CHANGED
File without changes
js/jquery.countdown-ko.js CHANGED
File without changes
js/jquery.countdown-lt.js CHANGED
File without changes
js/jquery.countdown-lv.js CHANGED
File without changes
js/jquery.countdown-my.js CHANGED
File without changes
js/jquery.countdown-nb.js CHANGED
File without changes
js/jquery.countdown-nl.js CHANGED
File without changes
js/jquery.countdown-pl.js CHANGED
File without changes
js/jquery.countdown-pt-BR.js CHANGED
File without changes
js/jquery.countdown-ro.js CHANGED
File without changes
js/jquery.countdown-ru.js CHANGED
File without changes
js/jquery.countdown-sk.js CHANGED
File without changes
js/jquery.countdown-sv.js CHANGED
File without changes
js/jquery.countdown-tr.js CHANGED
File without changes
js/jquery.countdown-uk.js CHANGED
File without changes
js/jquery.countdown-zh-CN.js CHANGED
File without changes
js/jquery.countdown-zh-TW.js CHANGED
File without changes
js/jquery.countdown.js CHANGED
File without changes
js/jquery.countdown.min.js CHANGED
File without changes
js/jquery.countdown.pack.js CHANGED
File without changes
js/ui.datetimepicker-de.js CHANGED
File without changes
js/ui.datetimepicker.js CHANGED
File without changes
languages/wp-maintenance-mode-ar_AR.mo CHANGED
File without changes
languages/wp-maintenance-mode-ar_AR.po CHANGED
File without changes
languages/wp-maintenance-mode-be_BY.mo CHANGED
File without changes
languages/wp-maintenance-mode-be_BY.po CHANGED
File without changes
languages/wp-maintenance-mode-bn_BD.mo CHANGED
File without changes
languages/wp-maintenance-mode-bn_BD.po CHANGED
File without changes
languages/wp-maintenance-mode-da_DK.mo CHANGED
File without changes
languages/wp-maintenance-mode-da_DK.po CHANGED
File without changes
languages/wp-maintenance-mode-de_DE.mo CHANGED
File without changes
languages/wp-maintenance-mode-de_DE.po CHANGED
File without changes
languages/wp-maintenance-mode-es_ES.mo CHANGED
File without changes
languages/wp-maintenance-mode-es_ES.po CHANGED
File without changes
languages/wp-maintenance-mode-fr_FR.mo CHANGED
File without changes
languages/wp-maintenance-mode-fr_FR.po CHANGED
File without changes
languages/wp-maintenance-mode-hr.mo CHANGED
File without changes
languages/wp-maintenance-mode-hr.po CHANGED
File without changes
languages/wp-maintenance-mode-it_IT.mo CHANGED
File without changes
languages/wp-maintenance-mode-it_IT.po CHANGED
File without changes
languages/wp-maintenance-mode-nl_NL.mo CHANGED
File without changes
languages/wp-maintenance-mode-nl_NL.po CHANGED
File without changes
languages/wp-maintenance-mode-pl_PL.mo CHANGED
File without changes
languages/wp-maintenance-mode-pl_PL.po CHANGED
File without changes
languages/wp-maintenance-mode-ro_RO.mo CHANGED
File without changes
languages/wp-maintenance-mode-ro_RO.po CHANGED
File without changes
languages/wp-maintenance-mode-ru_RU.mo ADDED
Binary file
languages/wp-maintenance-mode-ru_RU.po ADDED
@@ -0,0 +1,432 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2010-01-04 12:57+0100\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Jim Jerginson <portablecomponentsforall@gmail.com>\n"
8
+ "Language-Team: http://www.portablecomponentsforall.com <portablecomponentsforall@gmail.com>\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;_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"
15
+ "X-Poedit-Basepath: d:/xampp/htdocs/wpbeta/wp-content/plugins/wartungsmodus/\n"
16
+ "X-Textdomain-Support: yes\n"
17
+ "X-Poedit-Language: Russian\n"
18
+ "X-Poedit-Country: RUSSIAN FEDERATION\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ # @ wp-maintenance-mode
22
+ #. translators: plugin header field 'Description'
23
+ #: wp-maintenance-mode.php:0
24
+ msgid "The plugin adds a splash page to your blog that lets visitors know your blog is down for maintenance. Logged in users get full access to the blog including the front-end, depends of the settings."
25
+ msgstr "Плагин добавил splash страницу на ваш блог которая дает вам знать ваш блог закрыт на техническое обслуживание. Залогиненые пользователи имеют полный доступ к блогу включая front-end страницу блога,в зависимости от установок."
26
+
27
+ # @ default
28
+ #: wp-maintenance-mode.php:160
29
+ msgid "Settings"
30
+ msgstr "Установки"
31
+
32
+ # @ wp-maintenance-mode
33
+ #: wp-maintenance-mode.php:260
34
+ #: wp-maintenance-mode.php:454
35
+ #, php-format
36
+ msgid "Plugin %s settings <strong>updated</strong>."
37
+ msgstr "Установки %s плагина <strong>обновлено</strong>."
38
+
39
+ # @ wp-maintenance-mode
40
+ #: wp-maintenance-mode.php:263
41
+ #: wp-maintenance-mode.php:276
42
+ #, php-format
43
+ msgid "Plugin %s active status <strong>updated</strong>."
44
+ msgstr "Плагин %s активирован <strong>обновлено</strong>."
45
+
46
+ # @ wp-maintenance-mode
47
+ #: wp-maintenance-mode.php:266
48
+ msgid "Plugin Activate"
49
+ msgstr "Плагин активирован"
50
+
51
+ # @ wp-maintenance-mode
52
+ #: wp-maintenance-mode.php:270
53
+ #: wp-maintenance-mode.php:289
54
+ #: wp-maintenance-mode.php:333
55
+ msgid "False"
56
+ msgstr "Ложь"
57
+
58
+ # @ wp-maintenance-mode
59
+ #: wp-maintenance-mode.php:271
60
+ #: wp-maintenance-mode.php:290
61
+ #: wp-maintenance-mode.php:334
62
+ msgid "True"
63
+ msgstr "Истина"
64
+
65
+ # @ wp-maintenance-mode
66
+ #: wp-maintenance-mode.php:273
67
+ msgid "Update"
68
+ msgstr "Обновить"
69
+
70
+ # @ wp-maintenance-mode
71
+ #: wp-maintenance-mode.php:279
72
+ msgid "Plugin Settings"
73
+ msgstr "Настройки плагина"
74
+
75
+ # @ wp-maintenance-mode
76
+ #: wp-maintenance-mode.php:285
77
+ msgid "Countdown:"
78
+ msgstr "Обратный отсчет:"
79
+
80
+ # @ wp-maintenance-mode
81
+ #: wp-maintenance-mode.php:296
82
+ #: wp-maintenance-mode.php:299
83
+ msgid "Click for datepicker"
84
+ msgstr "Кликните для выбора даты"
85
+
86
+ # @ wp-maintenance-mode
87
+ #: wp-maintenance-mode.php:296
88
+ msgid "Date:"
89
+ msgstr "Дата:"
90
+
91
+ # @ wp-maintenance-mode
92
+ #: wp-maintenance-mode.php:300
93
+ msgid "Activate countdown for using this. Use value and unit or use the countdown and set the date."
94
+ msgstr "Активируйте обратный отсчет для использования этого.Используйте значения и единицы или используйте обратный отсчет и установите дату."
95
+
96
+ # @ wp-maintenance-mode
97
+ #: wp-maintenance-mode.php:305
98
+ msgid "Value:"
99
+ msgstr "Значение:"
100
+
101
+ # @ wp-maintenance-mode
102
+ #: wp-maintenance-mode.php:313
103
+ msgid "Unit:"
104
+ msgstr "Блок:"
105
+
106
+ # @ wp-maintenance-mode
107
+ #: wp-maintenance-mode.php:317
108
+ msgid "second"
109
+ msgstr "второй"
110
+
111
+ # @ wp-maintenance-mode
112
+ #: wp-maintenance-mode.php:318
113
+ msgid "minute"
114
+ msgstr "минута"
115
+
116
+ # @ wp-maintenance-mode
117
+ #: wp-maintenance-mode.php:319
118
+ msgid "hour"
119
+ msgstr "час"
120
+
121
+ # @ wp-maintenance-mode
122
+ #: wp-maintenance-mode.php:320
123
+ msgid "day"
124
+ msgstr "день"
125
+
126
+ # @ wp-maintenance-mode
127
+ #: wp-maintenance-mode.php:321
128
+ msgid "week"
129
+ msgstr "неделя"
130
+
131
+ # @ wp-maintenance-mode
132
+ #: wp-maintenance-mode.php:322
133
+ msgid "month"
134
+ msgstr "месяц"
135
+
136
+ # @ wp-maintenance-mode
137
+ #: wp-maintenance-mode.php:323
138
+ msgid "year"
139
+ msgstr "год"
140
+
141
+ # @ wp-maintenance-mode
142
+ #: wp-maintenance-mode.php:329
143
+ msgid "Link:"
144
+ msgstr "Ссылка:"
145
+
146
+ # @ wp-maintenance-mode
147
+ #: wp-maintenance-mode.php:342
148
+ msgid "Theme:"
149
+ msgstr "Тема:"
150
+
151
+ # @ wp-maintenance-mode
152
+ #: wp-maintenance-mode.php:346
153
+ msgid "Own Style"
154
+ msgstr "Собственный стиль"
155
+
156
+ # @ wp-maintenance-mode
157
+ #: wp-maintenance-mode.php:347
158
+ msgid "Simple Text"
159
+ msgstr "Простой текст"
160
+
161
+ # @ wp-maintenance-mode
162
+ #: wp-maintenance-mode.php:348
163
+ msgid "The Truck"
164
+ msgstr "Грузовик"
165
+
166
+ # @ wp-maintenance-mode
167
+ #: wp-maintenance-mode.php:349
168
+ msgid "The Sun"
169
+ msgstr "Солнце"
170
+
171
+ # @ wp-maintenance-mode
172
+ #: wp-maintenance-mode.php:350
173
+ msgid "The FF Error"
174
+ msgstr "FF Ошибка"
175
+
176
+ # @ wp-maintenance-mode
177
+ #: wp-maintenance-mode.php:351
178
+ msgid "Monster"
179
+ msgstr "Монстр"
180
+
181
+ # @ wp-maintenance-mode
182
+ #: wp-maintenance-mode.php:352
183
+ msgid "Chastely"
184
+ msgstr "Целомудренно"
185
+
186
+ # @ wp-maintenance-mode
187
+ #: wp-maintenance-mode.php:353
188
+ msgid "Only Typo"
189
+ msgstr "Только Typo"
190
+
191
+ # @ wp-maintenance-mode
192
+ #: wp-maintenance-mode.php:354
193
+ msgid "Paint"
194
+ msgstr "Рисовать"
195
+
196
+ # @ wp-maintenance-mode
197
+ #: wp-maintenance-mode.php:356
198
+ msgid "Damask"
199
+ msgstr "Дамаск"
200
+
201
+ # @ wp-maintenance-mode
202
+ #: wp-maintenance-mode.php:357
203
+ msgid "Lego"
204
+ msgstr "Lego"
205
+
206
+ # @ wp-maintenance-mode
207
+ #: wp-maintenance-mode.php:364
208
+ msgid "Own Style URL (incl. http://):"
209
+ msgstr "Собственный URL Стиль (включ. http://)"
210
+
211
+ # @ wp-maintenance-mode
212
+ #: wp-maintenance-mode.php:406
213
+ msgid "Text:"
214
+ msgstr "Текст:"
215
+
216
+ # @ wp-maintenance-mode
217
+ #: wp-maintenance-mode.php:416
218
+ msgid "Excludes:"
219
+ msgstr "Исключает:"
220
+
221
+ # @ wp-maintenance-mode
222
+ #: wp-maintenance-mode.php:426
223
+ msgid "Role:"
224
+ msgstr "Роль:"
225
+
226
+ # @ wp-maintenance-mode
227
+ #: wp-maintenance-mode.php:457
228
+ msgid "Save"
229
+ msgstr "Сохранить"
230
+
231
+ # @ wp-maintenance-mode
232
+ #: wp-maintenance-mode.php:502
233
+ #: wp-maintenance-mode.php:545
234
+ msgid "Updated"
235
+ msgstr "Обновленный"
236
+
237
+ # @ wp-maintenance-mode
238
+ #: wp-maintenance-mode.php:697
239
+ #: wp-maintenance-mode.php:699
240
+ msgid "Deactivate or change Settings"
241
+ msgstr "Отключить или изменить настройки "
242
+
243
+ # @ wp-maintenance-mode
244
+ #: wp-maintenance-mode.php:625
245
+ msgid "seconds"
246
+ msgstr "секунды"
247
+
248
+ # @ wp-maintenance-mode
249
+ #: wp-maintenance-mode.php:629
250
+ msgid "minutes"
251
+ msgstr "минуты"
252
+
253
+ # @ wp-maintenance-mode
254
+ #: wp-maintenance-mode.php:633
255
+ msgid "hours"
256
+ msgstr "часы"
257
+
258
+ # @ wp-maintenance-mode
259
+ #: wp-maintenance-mode.php:637
260
+ msgid "days"
261
+ msgstr "дни"
262
+
263
+ # @ wp-maintenance-mode
264
+ #: wp-maintenance-mode.php:641
265
+ msgid "weeks"
266
+ msgstr "недели"
267
+
268
+ # @ wp-maintenance-mode
269
+ #: wp-maintenance-mode.php:649
270
+ msgid "years"
271
+ msgstr "годы"
272
+
273
+ # @ wp-maintenance-mode
274
+ #: wp-maintenance-mode.php:763
275
+ msgid "Plugin by:"
276
+ msgstr "Плагин от:"
277
+
278
+ # @ wp-maintenance-mode
279
+ #: wp-maintenance-mode.php:765
280
+ #: wp-maintenance-mode.php:767
281
+ #: wp-maintenance-mode.php:769
282
+ #: wp-maintenance-mode.php:771
283
+ #: wp-maintenance-mode.php:773
284
+ #: wp-maintenance-mode.php:775
285
+ #: wp-maintenance-mode.php:777
286
+ #: wp-maintenance-mode.php:779
287
+ #: wp-maintenance-mode.php:781
288
+ #: wp-maintenance-mode.php:783
289
+ #: wp-maintenance-mode.php:785
290
+ msgid "Design by:"
291
+ msgstr "Дизайн:"
292
+
293
+ # @ wp-maintenance-mode
294
+ #: site.php:12
295
+ #: site.php:48
296
+ msgid "Maintenance Mode"
297
+ msgstr "В режиме обслуживания"
298
+
299
+ # @ wp-maintenance-mode
300
+ #: site.php:62
301
+ msgid "Admin-Login"
302
+ msgstr "Admin-Войти"
303
+
304
+ # @ wp-maintenance-mode
305
+ #: wp-maintenance-mode.php:382
306
+ msgid "Title:"
307
+ msgstr "Название:"
308
+
309
+ # @ wp-maintenance-mode
310
+ #: wp-maintenance-mode.php:367
311
+ msgid "URL to the css-file"
312
+ msgstr "URL к css-файлу"
313
+
314
+ # @ wp-maintenance-mode
315
+ #: wp-maintenance-mode.php:385
316
+ #: wp-maintenance-mode.php:393
317
+ #: wp-maintenance-mode.php:401
318
+ msgid "Leave empty for default."
319
+ msgstr "Оставьте поле пустым, по умолчанию."
320
+
321
+ # @ wp-maintenance-mode
322
+ #: wp-maintenance-mode.php:390
323
+ msgid "Header:"
324
+ msgstr "Заголовок:"
325
+
326
+ # @ wp-maintenance-mode
327
+ #: wp-maintenance-mode.php:398
328
+ msgid "Heading:"
329
+ msgstr "Заголовок:"
330
+
331
+ # @ wp-maintenance-mode
332
+ #: wp-maintenance-mode.php:337
333
+ msgid "Please leave a link to the plugin- and design-author on your maintenance mode site."
334
+ msgstr "Пожалуйста оставьте линк к плагину - и дизайн-автора на своем сайте в режиме обслуживания."
335
+
336
+ # @ wp-maintenance-mode
337
+ #: wp-maintenance-mode.php:645
338
+ msgid "months"
339
+ msgstr "месяцы"
340
+
341
+ # @ wp-maintenance-mode
342
+ #: site.php:55
343
+ msgid "Access to the admin area blocked"
344
+ msgstr "Доступ к области администрирования закрыт"
345
+
346
+ # @ wp-maintenance-mode
347
+ #: site.php:58
348
+ msgid "Admin-Logout"
349
+ msgstr "Admin-Выход"
350
+
351
+ # @ wp-maintenance-mode
352
+ #: wp-maintenance-mode.php:447
353
+ msgid "Allowed userrole to see the frontend of this blog."
354
+ msgstr "Разрешенная роль пользователя для просмотра этого блога."
355
+
356
+ # @ wp-maintenance-mode
357
+ #: wp-maintenance-mode.php:695
358
+ msgid "Caution: Maintenance mode is <strong>active</strong>!"
359
+ msgstr "Осторожно: Режим обслуживания <strong>активен</strong>!"
360
+
361
+ # @ default
362
+ #: index.php:5
363
+ msgid "Cheatin&#8217; uh?"
364
+ msgstr ""
365
+
366
+ # @ wp-maintenance-mode
367
+ #: wp-maintenance-mode.php:369
368
+ msgid "<strong>Coution:</strong> Please don&acute;t copy the stylesheet in your plugin folder, it will be deleted on the next automatical update of the plugin!"
369
+ msgstr "<strong>Осторожно:</strong> Пожалуйтса не копируйте stylesheet в вашу директорию плагинов, это должно быть удалено при следующем автоматическом обновлении плагина!"
370
+
371
+ # @ wp-maintenance-mode
372
+ #: wp-maintenance-mode.php:374
373
+ #: wp-maintenance-mode.php:377
374
+ msgid "Preview"
375
+ msgstr "Предпросмотр"
376
+
377
+ # @ wp-maintenance-mode
378
+ #. translators: plugin header field 'Name'
379
+ #: wp-maintenance-mode.php:0
380
+ msgid "WP Maintenance Mode"
381
+ msgstr "WP в режиме обслуживания"
382
+
383
+ # @ wp-maintenance-mode
384
+ #. translators: plugin header field 'PluginURI'
385
+ #: wp-maintenance-mode.php:0
386
+ msgid "http://bueltge.de/wp-wartungsmodus-plugin/101/"
387
+ msgstr ""
388
+
389
+ # @ wp-maintenance-mode
390
+ #. translators: plugin header field 'Author'
391
+ #: wp-maintenance-mode.php:0
392
+ msgid "Frank B&uuml;ltge"
393
+ msgstr ""
394
+
395
+ # @ wp-maintenance-mode
396
+ #. translators: plugin header field 'AuthorURI'
397
+ #: wp-maintenance-mode.php:0
398
+ msgid "http://bueltge.de/"
399
+ msgstr ""
400
+
401
+ # @ wp-maintenance-mode
402
+ #: wp-maintenance-mode.php:355
403
+ msgid "Animate (Flash)"
404
+ msgstr "Анимировать (Flash)"
405
+
406
+ # @ wp-maintenance-mode
407
+ #: wp-maintenance-mode.php:358
408
+ msgid "Chemistry"
409
+ msgstr "Химия"
410
+
411
+ # @ wp-maintenance-mode
412
+ #: wp-maintenance-mode.php:411
413
+ #, php-format
414
+ msgid "Use the first <em>%1$s</em> for the time value or countdown and second <em>%2$s</em> for the unit of the time or countdown-value; HTML and Shortcodes are possible"
415
+ msgstr "Используйте первый <em>%1$s</em> для значения времени или обратный отсчет и второй <em>%2$s</em> за единицу времени или обратный отсчет; HTML и Shortcodes возможны"
416
+
417
+ # @ wp-maintenance-mode
418
+ #. translators: plugin header field 'Version'
419
+ #: wp-maintenance-mode.php:0
420
+ msgid "1.6.7"
421
+ msgstr ""
422
+
423
+ # @ wp-maintenance-mode
424
+ #: wp-maintenance-mode.php:448
425
+ msgid "Super Admin has always access."
426
+ msgstr "Super Admin всегда имеет доступ."
427
+
428
+ # @ wp-maintenance-mode
429
+ #: wp-maintenance-mode.php:421
430
+ msgid "Exclude feed, pages, posts or archives from the maintenance mode. Add the Slug of page or post as a comma-separated list.<br />Example:"
431
+ msgstr "Исключите feed, страницы, посты или архивы из режим обслуживания. Добавьте Slug страницы или поста как разделенных запятыми список.<br />Пример:"
432
+
languages/wp-maintenance-mode-sq_AL.mo CHANGED
File without changes
languages/wp-maintenance-mode-sq_AL.po CHANGED
File without changes
languages/wp-maintenance-mode-tr_TR.mo CHANGED
File without changes
languages/wp-maintenance-mode-tr_TR.po CHANGED
File without changes
languages/wp-maintenance-mode-xx_XX.pot CHANGED
File without changes
license.txt CHANGED
File without changes
readme.txt CHANGED
@@ -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
9
  Requires at least: 2.6
10
- Tested up to: 3.2-beta
11
- Stable tag: 1.6.9
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
 
@@ -19,33 +19,33 @@ Also you can add urls for exlude of maintenance mode.
19
 
20
  You can add your own html and stylesheet and add the url of this style to the options of the plugin. Write your style to this markup and upload to the webspace; after add the url include http:// to the settings of this plugin and change th theme to `"Own Theme"`:
21
 
22
- `<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"`
23
- `"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">`
24
- `<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de" id="wartungsmodus" >`
25
- ``
26
- `<head>`
27
- ` <title>Blogname - Maintenance Mode</title>`
28
- `</head>`
29
- ``
30
- `<body>`
31
- ` `
32
- ` <div id="header">`
33
- ` <p>WP Dev</p>`
34
- ` </div>`
35
- ` `
36
- ` <div id="content">`
37
- ` `
38
- ` <h1>Maintenance Mode</h1>`
39
- ` <p>Sorry for the inconvenience.<br />Our website is currently undergoing scheduled maintenance.<br /><strong>Please try back in 231 weeks.</strong><br />Thank you for your understanding.</p>`
40
- ` <div class="admin"><a href="http://example.com/wp-admin/">Admin-Login</a></div>`
41
- ` </div>`
42
- ` `
43
- ` <div id="footer">`
44
- ` <p><a href="http://bueltge.de/">Plugin by: <img src="http://bueltge.de/favicon.ico" alt="bueltge.de" width="16" height="16" /></a></p>`
45
- ` </div>`
46
- ` `
47
- `</body>`
48
- `</html>`
49
 
50
 
51
  Also you can add content via hook:
@@ -57,10 +57,10 @@ Also you can add content via hook:
57
 
58
  Example:
59
 
60
- `function add_my_link() {`
61
- ` echo '<a href="http://mylink.com/">My Link</a>`
62
- `}`
63
- `add_action( 'wm_footer', 'add_my_link' );`
64
 
65
 
66
  = Requirements =
@@ -88,17 +88,17 @@ Please visit [the official website](http://forum.mysqldumper.de/features-perl-cr
88
  * On the right you find a link named "SQL Commands", after you click this link, you can set the two queries for the automatic backup.
89
  * Click the link "new command", give it a name like "activate maintenance mode" and paste the code below in the required field and finally save this command:
90
 
91
- `UPDATE `wp-database`.`wp-prefix_options` SET `option_value` = '1' WHERE `wp-prefix_options`.`option_name` = 'wp-maintenance-mode-msqld';`
92
 
93
  * Now you can set the second command to deactivate the maintenance mode like the first one with this code:
94
 
95
- `UPDATE `wp-database`.`wp-prefix_options` SET `option_value` = '0' WHERE `wp-prefix_options`.`option_name` = 'wp-maintenance-mode-msqld';`
96
 
97
  = Note! =
98
  You must edit three places of the code to your options:
99
 
100
  * `wp-database` -> put here the name of your database.
101
- * `wp-prefix_options` -> put here the name of your options-table with the prefix you use (normally wp_options). This you must edit twice in the code!
102
 
103
  When you have edited the code, save the two commands and go back to the MySQLDumper Configuration. Now you can choose the commands in the required field. For "Command before Dump" use the Command you named like "activate maintenance mode" and for "Command after Dump" use the other, named like "deactivate maintenance mode".
104
 
@@ -120,7 +120,7 @@ Please use a plugin for the form-function with the possibility Shortcode, like [
120
  * Thanks to [Gianni Diurno](http://gidibao.net/ "Gianni Diurno") for italian language file and an [tutorial](http://gidibao.net/index.php/2010/09/16/wp-maintenance-mode-in-italiano/ "WP Maintenance Mode in italiano") for italien users
121
  * Thanks to [Romeo Shuka](http://www.romeolab.com/wp-wartungsmodus-shqip "About this Plugin in albanian language") for albanian language file
122
  * Thanks to [TodoWordPress](http://www.todowp.org/ "TodoWordPress") for spanish language file
123
- * Thanks to [FatCow](http://www.fatcow.com "www.fatcow.com") for belorussion language file
124
  * Thanks to [yuarez](http://yuraz.uni.cc "yuraz.uni.cc") for croatian languge files
125
  * Thanks to [Georg](http://wordpress.blogos.dk/s%C3%B8g-efter-downloads/?did=250 "wordpress.blogos.dk") for danish languge files
126
  * Thanks to [Jakub Dirska](http://www.bellartis.com "bellartis.com") for polish languge files
@@ -128,6 +128,7 @@ Please use a plugin for the form-function with the possibility Shortcode, like [
128
  * Thanks to [Alejandro Garcia](http://blog.wrsmexico.com "blog.wrsmexico.com") for a spanish flash-file for the style "Animate"
129
  * Thanks to [S.M. Mehdi Akram (Royal)](http://mehdiakram.wordpress.com/ "mehdiakram.wordpress.com") for (mother) bengali language files.
130
  * Thanks to [Yaser Maadan](http://www.englize.com "www.englize.com") for a arabic language files
 
131
 
132
  = More Plugins =
133
  Please see also my [Premium Plugins](http://wpplugins.com/author/malo.conny/). Maybe you find an solution for your requirement.
@@ -141,6 +142,7 @@ You may also be interested in WordPress tips and tricks at [WP Engineer](http://
141
  1. Activate the plugin through the 'Plugins' menu in WordPress
142
  1. Click the `settings`-link for change time, link of authors, text and design
143
  1. Activate under the settings and your blog is in maintenance mode
 
144
 
145
  See on [the official website](http://bueltge.de/wp-wartungsmodus-plugin/101/ "WP Maintenance Mode").
146
 
@@ -196,11 +198,11 @@ Please visit [the official website](http://forum.mysqldumper.de/features-perl-cr
196
  * On the right you find a link named "SQL Commands", after you click this link, you can set the two queries for the automatic backup.
197
  * Click the link "new command", give it a name like "activate maintenance mode" and paste the code below in the required field and finally save this command:
198
 
199
- `UPDATE `wp-database`.`wp-prefix_options` SET `option_value` = '1' WHERE `wp-prefix_options`.`option_name` = 'wp-maintenance-mode-msqld';`
200
 
201
  * Now you can set the second command to deactivate the maintenance mode like the first one with this code:
202
 
203
- `UPDATE `wp-database`.`wp-prefix_options` SET `option_value` = '0' WHERE `wp-prefix_options`.`option_name` = 'wp-maintenance-mode-msqld';`
204
 
205
  = Note! =
206
  You must edit three places of the code to your options:
@@ -239,7 +241,7 @@ Please visit [Automatisches Backup der WordPress-Datenbank](http://www.beedy.de/
239
  * Thanks to [Gianni Diurno](http://gidibao.net/ "Gianni Diurno") for italian language file
240
  * Thanks to [Romeo Shuka](http://www.romeolab.com/wp-wartungsmodus-shqip "About this Plugin in albanian language") for albanian language file
241
  * Thanks to [TodoWordPress](http://www.todowp.org/ "TodoWordPress") for spanish language file
242
- * Thanks to [FatCow](http://www.fatcow.com "www.fatcow.com") for belorussion language file
243
  * Thanks to [yuarez](http://yuraz.uni.cc "yuraz.uni.cc") for croatian languge files
244
  * Thanks to [Georg](http://wordpress.blogos.dk/s%C3%B8g-efter-downloads/?did=250 "wordpress.blogos.dk") for danish languge files
245
  * Thanks to [Jakub Dirska](http://www.bellartis.com "bellartis.com") for polish languge files
@@ -249,6 +251,10 @@ Please visit [Automatisches Backup der WordPress-Datenbank](http://www.beedy.de/
249
 
250
 
251
  == Changelog ==
 
 
 
 
252
  = 1.6.9 (06/13/2011) =
253
  * Small fix for empty string on custom design
254
 
7
  Donate link: http://bueltge.de/wunschliste/
8
  Tags: maintenance, mode, admin, administration, unavailable, coming soon
9
  Requires at least: 2.6
10
+ Tested up to: 3.3
11
+ Stable tag: 1.6.10
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
 
19
 
20
  You can add your own html and stylesheet and add the url of this style to the options of the plugin. Write your style to this markup and upload to the webspace; after add the url include http:// to the settings of this plugin and change th theme to `"Own Theme"`:
21
 
22
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
23
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
24
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de" id="wartungsmodus" >
25
+
26
+ <head>
27
+ <title>Blogname - Maintenance Mode</title>
28
+ </head>
29
+
30
+ <body>
31
+
32
+ <div id="header">
33
+ <p>WP Dev</p>
34
+ </div>
35
+
36
+ <div id="content">
37
+
38
+ <h1>Maintenance Mode</h1>
39
+ <p>Sorry for the inconvenience.<br />Our website is currently undergoing scheduled maintenance.<br /><strong>Please try back in 231 weeks.</strong><br />Thank you for your understanding.</p>
40
+ <div class="admin"><a href="http://example.com/wp-admin/">Admin-Login</a></div>
41
+ </div>
42
+
43
+ <div id="footer">
44
+ <p><a href="http://bueltge.de/">Plugin by: <img src="http://bueltge.de/favicon.ico" alt="bueltge.de" width="16" height="16" /></a></p>
45
+ </div>
46
+
47
+ </body>
48
+ </html>
49
 
50
 
51
  Also you can add content via hook:
57
 
58
  Example:
59
 
60
+ function add_my_link() {
61
+ echo '<a href="http://mylink.com/">My Link</a>
62
+ }
63
+ add_action( 'wm_footer', 'add_my_link' );
64
 
65
 
66
  = Requirements =
88
  * On the right you find a link named "SQL Commands", after you click this link, you can set the two queries for the automatic backup.
89
  * Click the link "new command", give it a name like "activate maintenance mode" and paste the code below in the required field and finally save this command:
90
 
91
+ `UPDATE 'wp-database'.'wp-prefix_options' SET 'option_value' = '1' WHERE 'wp-prefix_options'.'option_name' = 'wp-maintenance-mode-msqld';`
92
 
93
  * Now you can set the second command to deactivate the maintenance mode like the first one with this code:
94
 
95
+ `UPDATE 'wp-database'.'wp-prefix_options' SET 'option_value' = '0' WHERE 'wp-prefix_options'.'option_name' = 'wp-maintenance-mode-msqld';`
96
 
97
  = Note! =
98
  You must edit three places of the code to your options:
99
 
100
  * `wp-database` -> put here the name of your database.
101
+ * `wp-prefix_options` -> put here the name of your options-table with the prefix you use (normally wp_options). This you must edit twice in the code!
102
 
103
  When you have edited the code, save the two commands and go back to the MySQLDumper Configuration. Now you can choose the commands in the required field. For "Command before Dump" use the Command you named like "activate maintenance mode" and for "Command after Dump" use the other, named like "deactivate maintenance mode".
104
 
120
  * Thanks to [Gianni Diurno](http://gidibao.net/ "Gianni Diurno") for italian language file and an [tutorial](http://gidibao.net/index.php/2010/09/16/wp-maintenance-mode-in-italiano/ "WP Maintenance Mode in italiano") for italien users
121
  * Thanks to [Romeo Shuka](http://www.romeolab.com/wp-wartungsmodus-shqip "About this Plugin in albanian language") for albanian language file
122
  * Thanks to [TodoWordPress](http://www.todowp.org/ "TodoWordPress") for spanish language file
123
+ * Thanks to FatCow for belorussion language file
124
  * Thanks to [yuarez](http://yuraz.uni.cc "yuraz.uni.cc") for croatian languge files
125
  * Thanks to [Georg](http://wordpress.blogos.dk/s%C3%B8g-efter-downloads/?did=250 "wordpress.blogos.dk") for danish languge files
126
  * Thanks to [Jakub Dirska](http://www.bellartis.com "bellartis.com") for polish languge files
128
  * Thanks to [Alejandro Garcia](http://blog.wrsmexico.com "blog.wrsmexico.com") for a spanish flash-file for the style "Animate"
129
  * Thanks to [S.M. Mehdi Akram (Royal)](http://mehdiakram.wordpress.com/ "mehdiakram.wordpress.com") for (mother) bengali language files.
130
  * Thanks to [Yaser Maadan](http://www.englize.com "www.englize.com") for a arabic language files
131
+ * Thanks to [Andrew Kovalev] (http://www.portablecomponentsforall.com/)
132
 
133
  = More Plugins =
134
  Please see also my [Premium Plugins](http://wpplugins.com/author/malo.conny/). Maybe you find an solution for your requirement.
142
  1. Activate the plugin through the 'Plugins' menu in WordPress
143
  1. Click the `settings`-link for change time, link of authors, text and design
144
  1. Activate under the settings and your blog is in maintenance mode
145
+ 1. Please check the **Exclude** option in settings for parts of your install; maybe an custom login-adress etc.
146
 
147
  See on [the official website](http://bueltge.de/wp-wartungsmodus-plugin/101/ "WP Maintenance Mode").
148
 
198
  * On the right you find a link named "SQL Commands", after you click this link, you can set the two queries for the automatic backup.
199
  * Click the link "new command", give it a name like "activate maintenance mode" and paste the code below in the required field and finally save this command:
200
 
201
+ UPDATE `wp-database`.`wp-prefix_options` SET `option_value` = '1' WHERE `wp-prefix_options`.`option_name` = 'wp-maintenance-mode-msqld';
202
 
203
  * Now you can set the second command to deactivate the maintenance mode like the first one with this code:
204
 
205
+ UPDATE `wp-database`.`wp-prefix_options` SET `option_value` = '0' WHERE `wp-prefix_options`.`option_name` = 'wp-maintenance-mode-msqld';
206
 
207
  = Note! =
208
  You must edit three places of the code to your options:
241
  * Thanks to [Gianni Diurno](http://gidibao.net/ "Gianni Diurno") for italian language file
242
  * Thanks to [Romeo Shuka](http://www.romeolab.com/wp-wartungsmodus-shqip "About this Plugin in albanian language") for albanian language file
243
  * Thanks to [TodoWordPress](http://www.todowp.org/ "TodoWordPress") for spanish language file
244
+ * Thanks to FatCow for belorussion language file
245
  * Thanks to [yuarez](http://yuraz.uni.cc "yuraz.uni.cc") for croatian languge files
246
  * Thanks to [Georg](http://wordpress.blogos.dk/s%C3%B8g-efter-downloads/?did=250 "wordpress.blogos.dk") for danish languge files
247
  * Thanks to [Jakub Dirska](http://www.bellartis.com "bellartis.com") for polish languge files
251
 
252
 
253
  == Changelog ==
254
+ = 1.9.10 (08/30/2011) =
255
+ * add hint in Admin Bar, if active
256
+ * small changes for WP Codex
257
+
258
  = 1.6.9 (06/13/2011) =
259
  * Small fix for empty string on custom design
260
 
screenshot-1.png CHANGED
File without changes
screenshot-10.png CHANGED
File without changes
screenshot-11.png CHANGED
File without changes
screenshot-12.png CHANGED
File without changes
screenshot-13.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
screenshot-5.png CHANGED
File without changes
screenshot-6.png CHANGED
File without changes
screenshot-7.png CHANGED
File without changes
screenshot-8.png CHANGED
File without changes
screenshot-9.png CHANGED
File without changes
site.php CHANGED
@@ -1,91 +1,91 @@
1
- <?php
2
- if ( !isset($value) ) {
3
- $value = get_option( FB_WM_TEXTDOMAIN );
4
- $unitvalues = $WPMaintenanceMode->case_unit($value['unit']);
5
- }
6
- ?>
7
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
8
- <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?> id="wp_maintenance_mode" >
9
-
10
- <head>
11
-
12
- <title><?php if ( isset($value['title']) && ($value['title'] != '') ) echo stripslashes_deep( $value['title'] ); else { bloginfo('name'); echo ' - '; _e( 'Maintenance Mode', FB_WM_TEXTDOMAIN ); } ?></title>
13
-
14
- <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
15
- <meta name="author" content="WP Maintenance Mode: Frank Bueltge, http://bueltge.de" />
16
- <meta name="description" content="<?php bloginfo('name'); echo ' - '; bloginfo('description'); ?>" />
17
- <meta name="robots" content="noindex,nofollow" />
18
- <link rel="Shortcut Icon" type="image/x-icon" href="<?php echo get_option('home'); ?>/favicon.ico" />
19
- <link rel="stylesheet" type="text/css" href="<?php echo WP_PLUGIN_URL . '/' . FB_WM_BASEDIR ?>/css/jquery.countdown.css" media="all" />
20
-
21
- <?php
22
- if ( !defined('WP_CONTENT_URL') )
23
- define('WP_CONTENT_URL', get_option('siteurl') . '/wp-content');
24
- if ( !defined('WP_PLUGIN_URL') )
25
- define( 'WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins' );
26
-
27
- if ( !defined('FB_WM_BASENAME') )
28
- define( 'FB_WM_BASENAME', plugin_basename(__FILE__) );
29
- if ( !defined('FB_WM_BASEDIR') )
30
- define( 'FB_WM_BASEDIR', dirname( plugin_basename(__FILE__) ) );
31
-
32
- global $user_ID;
33
-
34
- get_currentuserinfo();
35
- $locale = get_locale();
36
-
37
- wm_head(); ?>
38
-
39
- </head>
40
-
41
- <body>
42
-
43
- <div id="header">
44
- <p><?php if ( isset($value['header']) && ($value['header'] != '') ) echo stripslashes_deep( $value['header'] ); else { bloginfo('name'); echo ' - '; bloginfo('description'); } ?></p>
45
- </div>
46
-
47
- <div id="content">
48
- <h1><?php if ( isset($value['heading']) && ($value['heading'] != '') ) echo stripslashes_deep( $value['heading'] ); else _e( 'Maintenance Mode', FB_WM_TEXTDOMAIN ); ?></h1>
49
-
50
- <?php wm_content();
51
-
52
- if (isset($user_ID) && $user_ID) {
53
- $adminlogin = wp_logout_url();
54
- if ( isset($rolestatus) && 'norights' == $rolestatus )
55
- $adminloginmsg = '<h3>' . __( 'Access to the admin area blocked', FB_WM_TEXTDOMAIN ) . '</h3>';
56
- else
57
- $adminloginmsg = '';
58
- $adminloginstr = __( 'Admin-Logout', FB_WM_TEXTDOMAIN );
59
- } else {
60
- $adminlogin = site_url('wp-login.php', 'login');
61
- $adminloginmsg = '';
62
- $adminloginstr = __( 'Admin-Login', FB_WM_TEXTDOMAIN );
63
- } ?>
64
- <?php echo $adminloginmsg; ?>
65
- <div class="admin" onclick="location.href='<?php echo $adminlogin; ?>';" onkeypress="location.href='<?php echo $adminlogin; ?>';"><a href="<?php echo $adminlogin; ?>"><?php echo $adminloginstr; ?></a></div>
66
- </div>
67
-
68
- <?php wm_footer(); ?>
69
-
70
- <?php
71
- $td = WPMaintenanceMode::check_datetime();
72
- if ( isset($td[2]) && 0 !== $td[2] ) {
73
-
74
- $locale = substr($locale, 0, 2);
75
- ?>
76
- <script type="text/javascript" src="<?php bloginfo('url') ?>/wp-includes/js/jquery/jquery.js"></script>
77
- <script type="text/javascript" src="<?php echo WPMaintenanceMode::get_plugins_url( 'js/jquery.countdown.pack.js', __FILE__ ); ?>"></script>
78
- <?php if ( file_exists(FB_WM_BASE . '/js/jquery.countdown-' . $locale . '.js') ) { ?>
79
- <script type="text/javascript" src="<?php echo WPMaintenanceMode::get_plugins_url( 'js/jquery.countdown-' . $locale . '.js', __FILE__ ); ?>"></script>
80
- <?php } ?>
81
  <script type="text/javascript">
82
  jQuery(document).ready( function($){
83
- var austDay = new Date();
84
  // 'Years', 'Months', 'Weeks', 'Days', 'Hours', 'Minutes', 'Seconds'
85
  austDay = new Date(<?php echo $td[2]; ?>);
86
  $('#countdown').countdown({until: austDay});
87
  });
88
- </script>
89
- <?php } ?>
90
- </body>
91
- </html>
1
+ <?php
2
+ if ( !isset($value) ) {
3
+ $value = get_option( FB_WM_TEXTDOMAIN );
4
+ $unitvalues = $WPMaintenanceMode->case_unit($value['unit']);
5
+ }
6
+ ?>
7
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
8
+ <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?> id="wp_maintenance_mode" >
9
+
10
+ <head>
11
+
12
+ <title><?php if ( isset($value['title']) && ($value['title'] != '') ) echo stripslashes_deep( $value['title'] ); else { bloginfo('name'); echo ' - '; _e( 'Maintenance Mode', FB_WM_TEXTDOMAIN ); } ?></title>
13
+
14
+ <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
15
+ <meta name="author" content="WP Maintenance Mode: Frank Bueltge, http://bueltge.de" />
16
+ <meta name="description" content="<?php bloginfo('name'); echo ' - '; bloginfo('description'); ?>" />
17
+ <meta name="robots" content="noindex,nofollow" />
18
+ <link rel="Shortcut Icon" type="image/x-icon" href="<?php echo get_option('home'); ?>/favicon.ico" />
19
+ <link rel="stylesheet" type="text/css" href="<?php echo WP_PLUGIN_URL . '/' . FB_WM_BASEDIR ?>/css/jquery.countdown.css" media="all" />
20
+
21
+ <?php
22
+ if ( !defined('WP_CONTENT_URL') )
23
+ define('WP_CONTENT_URL', get_option('siteurl') . '/wp-content');
24
+ if ( !defined('WP_PLUGIN_URL') )
25
+ define( 'WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins' );
26
+
27
+ if ( !defined('FB_WM_BASENAME') )
28
+ define( 'FB_WM_BASENAME', plugin_basename(__FILE__) );
29
+ if ( !defined('FB_WM_BASEDIR') )
30
+ define( 'FB_WM_BASEDIR', dirname( plugin_basename(__FILE__) ) );
31
+
32
+ global $user_ID;
33
+
34
+ get_currentuserinfo();
35
+ $locale = get_locale();
36
+
37
+ wm_head(); ?>
38
+
39
+ </head>
40
+
41
+ <body>
42
+
43
+ <div id="header">
44
+ <p><?php if ( isset($value['header']) && ($value['header'] != '') ) echo stripslashes_deep( $value['header'] ); else { bloginfo('name'); echo ' - '; bloginfo('description'); } ?></p>
45
+ </div>
46
+
47
+ <div id="content">
48
+ <h1><?php if ( isset($value['heading']) && ($value['heading'] != '') ) echo stripslashes_deep( $value['heading'] ); else _e( 'Maintenance Mode', FB_WM_TEXTDOMAIN ); ?></h1>
49
+
50
+ <?php wm_content();
51
+
52
+ if (isset($user_ID) && $user_ID) {
53
+ $adminlogin = wp_logout_url();
54
+ if ( isset($rolestatus) && 'norights' == $rolestatus )
55
+ $adminloginmsg = '<h3>' . __( 'Access to the admin area blocked', FB_WM_TEXTDOMAIN ) . '</h3>';
56
+ else
57
+ $adminloginmsg = '';
58
+ $adminloginstr = __( 'Admin-Logout', FB_WM_TEXTDOMAIN );
59
+ } else {
60
+ $adminlogin = site_url('wp-login.php', 'login');
61
+ $adminloginmsg = '';
62
+ $adminloginstr = __( 'Admin-Login', FB_WM_TEXTDOMAIN );
63
+ } ?>
64
+ <?php echo $adminloginmsg; ?>
65
+ <div class="admin" onclick="location.href='<?php echo $adminlogin; ?>';" onkeypress="location.href='<?php echo $adminlogin; ?>';"><a href="<?php echo $adminlogin; ?>"><?php echo $adminloginstr; ?></a></div>
66
+ </div>
67
+
68
+ <?php wm_footer(); ?>
69
+
70
+ <?php
71
+ $td = WPMaintenanceMode::check_datetime();
72
+ if ( isset($td[2]) && 0 !== $td[2] ) {
73
+
74
+ $locale = substr($locale, 0, 2);
75
+ ?>
76
+ <script type="text/javascript" src="<?php bloginfo('url') ?>/wp-includes/js/jquery/jquery.js"></script>
77
+ <script type="text/javascript" src="<?php echo WPMaintenanceMode::get_plugins_url( 'js/jquery.countdown.pack.js', __FILE__ ); ?>"></script>
78
+ <?php if ( file_exists(FB_WM_BASE . '/js/jquery.countdown-' . $locale . '.js') ) { ?>
79
+ <script type="text/javascript" src="<?php echo WPMaintenanceMode::get_plugins_url( 'js/jquery.countdown-' . $locale . '.js', __FILE__ ); ?>"></script>
80
+ <?php } ?>
81
  <script type="text/javascript">
82
  jQuery(document).ready( function($){
83
+ var austDay = new Date();
84
  // 'Years', 'Months', 'Weeks', 'Days', 'Hours', 'Minutes', 'Seconds'
85
  austDay = new Date(<?php echo $td[2]; ?>);
86
  $('#countdown').countdown({until: austDay});
87
  });
88
+ </script>
89
+ <?php } ?>
90
+ </body>
91
+ </html>
styles/af.css CHANGED
File without changes
styles/be.css CHANGED
File without changes
styles/cm.css CHANGED
File without changes
styles/dh.css CHANGED
File without changes
styles/es.css CHANGED
File without changes
styles/fl.css CHANGED
File without changes
styles/fv.css CHANGED
File without changes
styles/images/background.jpg CHANGED
File without changes
styles/images/bg.gif CHANGED
File without changes
styles/images/bg.jpg CHANGED
File without changes
styles/images/box-bg.jpg CHANGED
File without changes
styles/images/button.png CHANGED
File without changes
styles/images/do-not-enter.jpg CHANGED
File without changes
styles/images/es/bg-image.png CHANGED
File without changes
styles/images/es/bg.jpg CHANGED
File without changes
styles/images/es/button.png CHANGED
File without changes
styles/images/es/m-mode.png CHANGED
File without changes
styles/images/gnome-control_48px.png CHANGED
File without changes
styles/images/gnome_key_32px.png CHANGED
File without changes
styles/images/headline-af-de_DE.jpg CHANGED
File without changes
styles/images/headline-af-en_US.jpg CHANGED
File without changes
styles/images/headline-de_DE.jpg CHANGED
File without changes
styles/images/headline-en_US.jpg CHANGED
File without changes
styles/images/lego-bg.jpg CHANGED
File without changes
styles/images/lego-content.jpg CHANGED
File without changes
styles/images/leiste.jpg CHANGED
File without changes
styles/images/monster.jpg CHANGED
File without changes
styles/images/wartungsmodus.jpg CHANGED
File without changes
styles/ks.css CHANGED
File without changes
styles/ln.css CHANGED
File without changes
styles/monster.css CHANGED
File without changes
styles/nicki.css CHANGED
File without changes
styles/txt.css CHANGED
File without changes
styles/wartung-de_DE.swf CHANGED
File without changes
styles/wartung-es_ES.swf CHANGED
File without changes
styles/wartung.swf CHANGED
File without changes
uninstall.php CHANGED
@@ -1,5 +1,5 @@
1
- if( !defined( 'ABSPATH') && !defined('WP_UNINSTALL_PLUGIN') )
2
- exit();
3
-
4
- delete_option( 'wp-maintenance-mode' );
5
- delete_option( 'wp-maintenance-mode-msqd' );
1
+ if( !defined( 'ABSPATH') && !defined('WP_UNINSTALL_PLUGIN') )
2
+ exit();
3
+
4
+ delete_option( 'wp-maintenance-mode' );
5
+ delete_option( 'wp-maintenance-mode-msqd' );
wp-maintenance-mode.php CHANGED
@@ -1,1002 +1,1015 @@
1
- <?php
2
- /**
3
- * Plugin Name: WP Maintenance Mode
4
- * Plugin URI: http://bueltge.de/wp-wartungsmodus-plugin/101/
5
  * Text Domain: wp-maintenance-mode
6
- * Domain Path: /languages
7
- * Description: The plugin adds a splash page to your blog that lets visitors know your blog is down for maintenance. Logged in users get full access to the blog including the front-end, depends of the settings.
8
- * Author: Frank B&uuml;ltge
9
- * Author URI: http://bueltge.de/
10
- * Donate URI: http://bueltge.de/wunschliste/
11
- * Version: 1.6.9
12
- * Last change: 13.06.2011
13
- * Licence: GPL
14
- */
15
-
16
- /**
17
- License:
18
- ==============================================================================
19
- Copyright 2009-2010 Frank Bueltge (email : frank@bueltge.de)
20
-
21
- This program is free software; you can redistribute it and/or modify
22
- it under the terms of the GNU General Public License as published by
23
- the Free Software Foundation; either version 2 of the License, or
24
- (at your option) any later version.
25
-
26
- This program is distributed in the hope that it will be useful,
27
- but WITHOUT ANY WARRANTY; without even the implied warranty of
28
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29
- GNU General Public License for more details.
30
-
31
- You should have received a copy of the GNU General Public License
32
- along with this program; if not, write to the Free Software
33
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
34
-
35
- Requirements:
36
- ==============================================================================
37
- This plugin requires WordPress >= 2.6 and tested with PHP Interpreter >= 5.3.1
38
- */
39
-
40
- //avoid direct calls to this file, because now WP core and framework has been used
41
- if ( !function_exists('add_action') ) {
42
- header('Status: 403 Forbidden');
43
- header('HTTP/1.1 403 Forbidden');
44
- exit();
45
- }
46
-
47
- if ( !class_exists('WPMaintenanceMode') ) {
48
-
49
- if ( !defined('WP_CONTENT_URL') )
50
- define('WP_CONTENT_URL', site_url() . '/wp-content');
51
- if ( !defined('WP_PLUGIN_URL') )
52
- define( 'WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins' );
53
-
54
- define( 'FB_WM_BASENAME', plugin_basename(__FILE__) );
55
- define( 'FB_WM_BASEDIR', dirname( plugin_basename(__FILE__) ) );
56
- define( 'FB_WM_BASE', rtrim (dirname (__FILE__), '/') );
57
- define( 'FB_WM_TEXTDOMAIN', 'wp-maintenance-mode' );
58
-
59
- class WPMaintenanceMode {
60
-
61
- function WPMaintenanceMode() {
62
- global $wp_version;
63
-
64
- register_activation_hook( __FILE__, array(&$this, 'add_config') );
65
- add_action( 'load-plugins.php', array(&$this, 'add_scripts') );
66
- add_action( 'admin_init', array(&$this, 'admin_init') );
67
- if ( version_compare( $wp_version, '2.7alpha', '>' ) ) {
68
- add_action( 'after_plugin_row_' . FB_WM_BASENAME, array(&$this, 'add_config_form'), 10, 3);
69
- add_filter( 'plugin_action_links_' . FB_WM_BASENAME, array(&$this, 'add_settings_link' ), 10, 2);
70
- } else {
71
- add_action( 'after_plugin_row', array(&$this, 'add_config_form'), 10, 3);
72
- add_filter( 'plugin_action_links', array(&$this, 'add_settings_link' ), 10, 2 );
73
- }
74
- add_action( 'wp_ajax_wm_config-update', array(&$this, 'save_config' ) );
75
- add_action( 'wp_ajax_wm_config-active', array(&$this, 'save_active' ) );
76
- add_action( 'init', array(&$this, 'on_init'), 1 );
77
- }
78
-
79
-
80
- function esc_attr($text) {
81
- if ( function_exists('esc_attr') )
82
- $text = esc_attr($text);
83
- else
84
- $text = attribute_escape($text);
85
-
86
- return $text;
87
- }
88
-
89
-
90
- // function for WP < 2.8
91
- function get_plugins_url($path = '', $plugin = '') {
92
-
93
- if ( function_exists('plugin_url') )
94
- return plugins_url($path, $plugin);
95
-
96
- if ( function_exists('is_ssl') )
97
- $scheme = ( is_ssl() ? 'https' : 'http' );
98
- else
99
- $scheme = 'http';
100
- if ( function_exists('plugins_url') )
101
- $url = plugins_url();
102
- else
103
- $url = WP_PLUGIN_URL;
104
- if ( 0 === strpos($url, 'http') ) {
105
- if ( function_exists('is_ssl') && is_ssl() )
106
- $url = str_replace( 'http://', "{$scheme}://", $url );
107
- }
108
-
109
- if ( !empty($plugin) && is_string($plugin) )
110
- {
111
- $folder = dirname(plugin_basename($plugin));
112
- if ('.' != $folder)
113
- $url .= '/' . ltrim($folder, '/');
114
- }
115
-
116
- if ( !empty($path) && is_string($path) && ( FALSE === strpos($path, '..') ) )
117
- $url .= '/' . ltrim($path, '/');
118
-
119
- return apply_filters('plugins_url', $url, $path, $plugin);
120
- }
121
-
122
-
123
- function on_init() {
124
-
125
- load_plugin_textdomain( FB_WM_TEXTDOMAIN, FALSE, FB_WM_BASEDIR . '/languages' );
126
-
127
- $valuemsqld = (int) get_option( FB_WM_TEXTDOMAIN . '-msqld' );
128
-
129
- if ( 1 === $valuemsqld )
130
- $this->on_active();
131
- }
132
-
133
-
134
- function add_scripts() {
135
- global $current_user;
136
-
137
- $locale = get_locale();
138
-
139
- wp_enqueue_script( 'jquery-ui-datetimepicker', $this->get_plugins_url( 'js/ui.datetimepicker.js', __FILE__ ), array('jquery-ui-core') , 0.1, TRUE );
140
- //wp_register_script( 'jquery-ui-datetimepicker-de', $this->get_plugins_url( 'js/de_DE.datetimepicker.js', __FILE__ ), array( 'jquery-ui-core', 'jquery-ui-datetimepicker' ) , 0.1, TRUE );
141
- //if ( 'de_DE' === $locale )
142
- // wp_enqueue_script( 'jquery-ui-core', 'jquery-ui-datetimepicker', 'jquery-ui-datetimepicker-de' );
143
- add_action( 'admin_footer', array(&$this, 'add_script2admin_footer') );
144
-
145
- wp_enqueue_style( 'jquery-ui-datepicker', $this->get_plugins_url( 'css/overcast/jquery-ui-1.7.2.custom.css', __FILE__ ) );
146
-
147
- add_thickbox();
148
- }
149
-
150
-
151
- function admin_init() {
152
-
153
- wp_enqueue_style( 'wp-maintenance-mode-options', $this->get_plugins_url( 'css/style.css', __FILE__ ) );
154
- }
155
-
156
-
157
- function add_settings_link( $links, $file ) {
158
- array_unshift(
159
- $links,
160
- sprintf( '<a id="wm-pluginconflink" href="javascript:void(0)" title="Configure this plugin">%s</a>', __('Settings') )
161
- );
162
-
163
- return $links;
164
- }
165
-
166
-
167
- function add_script2admin_footer() {
168
- ?>
169
- <script type="text/javascript">
170
- jQuery(document).ready( function($){
171
-
172
- $('#wm-pluginconflink').click(function(s){$('#wm_config_row').slideToggle('fast'); });
173
- $('#wm_config_active').click(function(){ wm_config_active(); });
174
- $('#wm_config_submit').click(function(){ wm_config_update(); });
175
- $("#wm_config-date").datetimepicker({ dateFormat: 'dd-mm-yy', timeFormat: ' hh:ii:ss' });
176
-
177
- function wm_config_active(){
178
-
179
- active_Val = $('#wm_config-active').val();
180
- url = '<?php echo get_bloginfo('wpurl'); ?>/wp-admin/admin-ajax.php';
181
- $.post( url , {
182
- "action" : "wm_config-active",
183
- "wm_config-active" : active_Val
184
- },
185
- function(data) {
186
- $('#wm_message_active, #wm_message_active2').show('fast').animate({opacity: 1.0}, 3000).hide('slow');
187
- }
188
- );
189
- }
190
-
191
- function wm_config_update(){
192
-
193
- time_Val = $('#wm_config-time').val();
194
- link_Val = $('#wm_config-link').val();
195
- unit_Val = $('#wm_config-unit').val();
196
- theme_Val = $('#wm_config-theme').val();
197
- styleurl_Val = $('#wm_config-styleurl').val();
198
- title_Val = $('#wm_config-title').val();
199
- header_Val = $('#wm_config-header').val();
200
- heading_Val = $('#wm_config-heading').val();
201
- text_Val = $('#wm_config-text').val();
202
- exclude_Val = $('#wm_config-exclude').val();
203
- role_Val = $('#wm_config-role').val();
204
- radio_Val = $('#wm_config-radio').val();
205
- date_Val = $('#wm_config-date').val();
206
- cd_day_Val = $('#wm_config-cd-day').val();
207
- cd_month_Val = $('#wm_config-cd-month').val();
208
- cd_year_Val = $('#wm_config-cd-year').val();
209
- url = '<?php echo get_bloginfo('wpurl'); ?>/wp-admin/admin-ajax.php';
210
- $.post( url , {
211
- "action" : "wm_config-update",
212
- "wm_config-time" : time_Val,
213
- "wm_config-unit" : unit_Val,
214
- "wm_config-link" : link_Val,
215
- "wm_config-theme" : theme_Val,
216
- "wm_config-styleurl" : styleurl_Val,
217
- "wm_config-title" : title_Val,
218
- "wm_config-header" : header_Val,
219
- "wm_config-heading" : heading_Val,
220
- "wm_config-text" : text_Val,
221
- "wm_config-exclude" : exclude_Val,
222
- "wm_config-role" : role_Val,
223
- "wm_config-radio" : radio_Val,
224
- "wm_config-date" : date_Val,
225
- "wm_config-cd-day" : cd_day_Val,
226
- "wm_config-cd-month" : cd_month_Val,
227
- "wm_config-cd-year" : cd_year_Val
228
- },
229
- function(data) {
230
- $('#wm_message_update, #wm_message_update2').show('fast').animate({opacity: 1.0}, 3000).hide('slow');
231
- }
232
- );
233
- return false;
234
- }
235
- });
236
- </script>
237
- <?php
238
- }
239
-
240
- /**
241
- *
242
- * @return
243
- * @param $wm_pluginfile Object
244
- * @param $wm_plugindata Object (array)
245
- * @param $wm_context Object (all, active, inactive)
246
- */
247
- function add_config_form($wm_pluginfile, $wm_plugindata, $wm_context) {
248
- global $wp_roles;
249
-
250
- //if ( 0 < count($_POST['checked']) )
251
- // return;
252
-
253
- $value = get_option( FB_WM_TEXTDOMAIN );
254
- ?>
255
- <tr id="wm_config_tr" >
256
- <td colspan="3">
257
-
258
- <div id="wm_config_row" class="<?php echo ( isset($_GET['show']) && 'wmconfig' == $_GET['show'] ) ? '' : 'config_hidden' ;?>">
259
- <div class="updated fade" id="wm_message_update" style="background-color: #FFFBCC;">
260
- <p><?php echo sprintf( __( 'Plugin %s settings <strong>updated</strong>.', FB_WM_TEXTDOMAIN ), $wm_plugindata['Name'] ); ?></p>
261
- </div>
262
- <div class="error fade" id="wm_message_active" >
263
- <p><?php echo sprintf( __( 'Plugin %s active status <strong>updated</strong>.', FB_WM_TEXTDOMAIN ), $wm_plugindata['Name'] ); ?></p>
264
- </div>
265
-
266
- <h4><?php _e( 'Plugin Activate', FB_WM_TEXTDOMAIN ); ?></h4>
267
- <input type="hidden" name="wm_action" value="wm_config-active" />
268
- <p>
269
- <select name="wm_config-active" id="wm_config-active">
270
- <option value="0"<?php if ( isset($value['active']) && 0 === $value['active'] ) { echo ' selected="selected"'; } ?>><?php _e('False', FB_WM_TEXTDOMAIN ); ?> </option>
271
- <option value="1"<?php if ( isset($value['active']) && 1 === $value['active'] ) { echo ' selected="selected"'; } ?>><?php _e('True', FB_WM_TEXTDOMAIN ); ?> </option>
272
- </select>
273
- <input id="wm_config_active" type="button" value="<?php _e( 'Update', FB_WM_TEXTDOMAIN ); ?>" class="button-primary" />
274
- </p>
275
- <div class="plugin-update-tr">
276
- <p id="wm_message_active2" class="update-message"><?php echo sprintf( __( 'Plugin %s active status <strong>updated</strong>.', FB_WM_TEXTDOMAIN ), $wm_plugindata['Name'] ); ?></p>
277
- </div>
278
-
279
- <h4><?php _e( 'Plugin Settings', FB_WM_TEXTDOMAIN ); ?></h4>
280
- <input type="hidden" name="wm_action" value="wm_config-update" />
281
-
282
- <table class="form-table">
283
- <tr valign="top">
284
- <th scope="row">
285
- <label for="wm_config-radio"><?php _e( 'Countdown:', FB_WM_TEXTDOMAIN ); ?></label>
286
- </th>
287
- <td>
288
- <select name="wm_config-radio" id="wm_config-radio">
289
- <option value="0"<?php if ( isset($value['radio']) && 0 === $value['radio'] ) { echo ' selected="selected"'; } ?>><?php _e('False', FB_WM_TEXTDOMAIN ); ?> </option>
290
- <option value="1"<?php if ( isset($value['radio']) && 1 === $value['radio'] ) { echo ' selected="selected"'; } ?>><?php _e('True', FB_WM_TEXTDOMAIN ); ?> </option>
291
- </select>
292
- </td>
293
- </tr>
294
- <tr valign="top">
295
- <th scope="row">
296
- <label for="wm_config-date" title="<?php _e( 'Click for datepicker', FB_WM_TEXTDOMAIN ); ?>"><?php _e( 'Date:', FB_WM_TEXTDOMAIN ); ?></label>
297
- </th>
298
- <td>
299
- <input size="30" title="<?php _e( 'Click for datepicker', FB_WM_TEXTDOMAIN ); ?>" type="text" id="wm_config-date" name="wm_config-date" value="<?php if ( isset($value['date']) ) echo $value['date']; ?>" /><br />
300
- <small><?php _e( 'Activate countdown for using this. Use value and unit or use the countdown and set the date.', FB_WM_TEXTDOMAIN ); ?></small>
301
- </td>
302
- </tr>
303
- <tr valign="top">
304
- <th scope="row" class="alternate">
305
- <label for="wm_config-time"><?php _e( 'Value:', FB_WM_TEXTDOMAIN ); ?></label>
306
- </th>
307
- <td class="alternate">
308
- <input size="5" type="text" id="wm_config-time" name="wm_config-time" value="<?php if( isset($value['time']) ) echo $value['time']; ?>" />
309
- </td>
310
- </tr>
311
- <tr valign="top">
312
- <th scope="row" class="alternate">
313
- <label for="wm_config-unit"><?php _e( 'Unit:', FB_WM_TEXTDOMAIN ); ?></label>
314
- </th>
315
- <td class="alternate">
316
- <select name="wm_config-unit" id="wm_config-unit">
317
- <option value="0"<?php if ( isset($value['unit']) && 0 === $value['unit'] ) { echo ' selected="selected"'; } ?>><?php _e('second', FB_WM_TEXTDOMAIN ); ?> </option>
318
- <option value="1"<?php if ( isset($value['unit']) && 1 === $value['unit'] ) { echo ' selected="selected"'; } ?>><?php _e('minute', FB_WM_TEXTDOMAIN ); ?> </option>
319
- <option value="2"<?php if ( isset($value['unit']) && 2 === $value['unit'] ) { echo ' selected="selected"'; } ?>><?php _e('hour', FB_WM_TEXTDOMAIN ); ?> </option>
320
- <option value="3"<?php if ( isset($value['unit']) && 3 === $value['unit'] ) { echo ' selected="selected"'; } ?>><?php _e('day', FB_WM_TEXTDOMAIN ); ?> </option>
321
- <option value="4"<?php if ( isset($value['unit']) && 4 === $value['unit'] ) { echo ' selected="selected"'; } ?>><?php _e('week', FB_WM_TEXTDOMAIN ); ?> </option>
322
- <option value="5"<?php if ( isset($value['unit']) && 5 === $value['unit'] ) { echo ' selected="selected"'; } ?>><?php _e('month', FB_WM_TEXTDOMAIN ); ?> </option>
323
- <option value="6"<?php if ( isset($value['unit']) && 6 === $value['unit'] ) { echo ' selected="selected"'; } ?>><?php _e('year', FB_WM_TEXTDOMAIN ); ?> </option>
324
- </select>
325
- </td>
326
- </tr>
327
- <tr valign="top">
328
- <th scope="row">
329
- <label for="wm_config-link"><?php _e( 'Link:', FB_WM_TEXTDOMAIN ); ?></label>
330
- </th>
331
- <td>
332
- <select name="wm_config-link" id="wm_config-link">
333
- <option value="0"<?php if ( isset($value['link']) && 0 === $value['link'] ) { echo ' selected="selected"'; } ?>><?php _e('False', FB_WM_TEXTDOMAIN ); ?> </option>
334
- <option value="1"<?php if ( isset($value['link']) && 1 === $value['link'] ) { echo ' selected="selected"'; } ?>><?php _e('True', FB_WM_TEXTDOMAIN ); ?> </option>
335
- </select>
336
- <br />
337
- <small><?php _e( 'Please leave a link to the plugin- and design-author on your maintenance mode site.', FB_WM_TEXTDOMAIN ); ?></small>
338
- </td>
339
- </tr>
340
- <tr valign="top">
341
- <th scope="row" class="alternate">
342
- <label for="wm_config-theme"><?php _e( 'Theme:', FB_WM_TEXTDOMAIN ); ?></label>
343
- </th>
344
- <td class="alternate">
345
- <select name="wm_config-theme" id="wm_config-theme">
346
- <option value="0"<?php if ( isset($value['theme']) && 0 === $value['theme'] ) { echo ' selected="selected"'; } ?>><?php _e('Own Style', FB_WM_TEXTDOMAIN ); ?> </option>
347
- <option value="1"<?php if ( isset($value['theme']) && 1 === $value['theme'] ) { echo ' selected="selected"'; } ?>><?php _e('Simple Text', FB_WM_TEXTDOMAIN ); ?> </option>
348
- <option value="2"<?php if ( isset($value['theme']) && 2 === $value['theme'] ) { echo ' selected="selected"'; } ?>><?php _e('The Truck', FB_WM_TEXTDOMAIN ); ?> </option>
349
- <option value="3"<?php if ( isset($value['theme']) && 3 === $value['theme'] ) { echo ' selected="selected"'; } ?>><?php _e('The Sun', FB_WM_TEXTDOMAIN ); ?> </option>
350
- <option value="4"<?php if ( isset($value['theme']) && 4 === $value['theme'] ) { echo ' selected="selected"'; } ?>><?php _e('The FF Error', FB_WM_TEXTDOMAIN ); ?> </option>
351
- <option value="5"<?php if ( isset($value['theme']) && 5 === $value['theme'] ) { echo ' selected="selected"'; } ?>><?php _e('Monster', FB_WM_TEXTDOMAIN ); ?> </option>
352
- <option value="6"<?php if ( isset($value['theme']) && 6 === $value['theme'] ) { echo ' selected="selected"'; } ?>><?php _e('Chastely', FB_WM_TEXTDOMAIN ); ?> </option>
353
- <option value="7"<?php if ( isset($value['theme']) && 7 === $value['theme'] ) { echo ' selected="selected"'; } ?>><?php _e('Only Typo', FB_WM_TEXTDOMAIN ); ?> </option>
354
- <option value="8"<?php if ( isset($value['theme']) && 8 === $value['theme'] ) { echo ' selected="selected"'; } ?>><?php _e('Paint', FB_WM_TEXTDOMAIN ); ?> </option>
355
- <option value="9"<?php if ( isset($value['theme']) && 9 === $value['theme'] ) { echo ' selected="selected"'; } ?>><?php _e('Animate (Flash)', FB_WM_TEXTDOMAIN ); ?> </option>
356
- <option value="10"<?php if ( isset($value['theme']) && 10 === $value['theme'] ) { echo ' selected="selected"'; } ?>><?php _e('Damask', FB_WM_TEXTDOMAIN ); ?> </option>
357
- <option value="11"<?php if ( isset($value['theme']) && 11 === $value['theme'] ) { echo ' selected="selected"'; } ?>><?php _e('Lego', FB_WM_TEXTDOMAIN ); ?> </option>
358
- <option value="12"<?php if ( isset($value['theme']) && 12 === $value['theme'] ) { echo ' selected="selected"'; } ?>><?php _e('Chemistry', FB_WM_TEXTDOMAIN ); ?> </option>
359
- </select>
360
- </td>
361
- </tr>
362
- <tr valign="top">
363
- <th scope="row" class="alternate">
364
- <label for="wm_config-styleurl"><?php _e( 'Own Style URL (incl. http://):', FB_WM_TEXTDOMAIN ); ?></label>
365
- </th>
366
- <td class="alternate">
367
- <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>
368
- <br />
369
- <small><?php _e( '<strong>Coution:</strong> Please don&acute;t copy the stylesheet in your plugin folder, it will be deleted on the next automatical update of the plugin!', FB_WM_TEXTDOMAIN ); ?></small>
370
- </td>
371
- </tr>
372
- <tr valign="top">
373
- <th scope="row" class="alternate">
374
- <label for="wm_config-preview"><?php _e( 'Preview', FB_WM_TEXTDOMAIN ); ?></label>
375
- </th>
376
- <td class="alternate" style="padding:5px 0 0 0;">
377
- <a onclick="return false;" href="<?php echo WP_PLUGIN_URL . '/' . FB_WM_BASEDIR; ?>/index.php?TB_iframe=true" class="thickbox button"><?php _e( 'Preview', FB_WM_TEXTDOMAIN ); ?></a>
378
- </td>
379
- </tr>
380
- <tr valign="top">
381
- <th scope="row">
382
- <label for="wm_config-title"><?php _e( 'Title:', FB_WM_TEXTDOMAIN ); ?></label>
383
- </th>
384
- <td>
385
- <input size="30" type="text" id="wm_config-title" name="wm_config-title" value="<?php if ( isset($value['title']) ) echo $value['title']; ?>" /> <small><?php _e( 'Leave empty for default.', FB_WM_TEXTDOMAIN ); ?></small>
386
- </td>
387
- </tr>
388
- <tr valign="top">
389
- <th scope="row" class="alternate">
390
- <label for="wm_config-header"><?php _e( 'Header:', FB_WM_TEXTDOMAIN ); ?></label>
391
- </th>
392
- <td class="alternate">
393
- <input size="30" type="text" id="wm_config-header" name="wm_config-header" value="<?php if ( isset($value['header']) ) echo $value['header']; ?>" /> <small><?php _e( 'Leave empty for default.', FB_WM_TEXTDOMAIN ); ?></small>
394
- </td>
395
- </tr>
396
- <tr valign="top">
397
- <th scope="row">
398
- <label for="wm_config-heading"><?php _e( 'Heading:', FB_WM_TEXTDOMAIN ); ?></label>
399
- </th>
400
- <td>
401
- <input size="30" type="text" id="wm_config-heading" name="wm_config-heading" value="<?php if ( isset($value['heading']) ) echo $value['heading']; ?>" /> <small><?php _e( 'Leave empty for default.', FB_WM_TEXTDOMAIN ); ?></small>
402
- </td>
403
- </tr>
404
- <tr valign="top">
405
- <th scope="row" class="alternate">
406
- <label for="wm_config-text"><?php _e( 'Text:', FB_WM_TEXTDOMAIN ); ?></label>
407
- </th>
408
- <td class="alternate">
409
- <textarea class="code" style="width: 95%;" cols="40" rows="4" name="wm_config-text" id="wm_config-text"><?php if ( isset($value['text']) ) echo esc_attr($value['text']); ?></textarea>
410
- <br />
411
- <small><?php _e( 'Use the first <em>%1$s</em> for the time value or countdown and second <em>%2$s</em> for the unit of the time or countdown-value; HTML and Shortcodes are possible', FB_WM_TEXTDOMAIN ); ?></small>
412
- </td>
413
- </tr>
414
- <tr valign="top">
415
- <th scope="row">
416
- <label for="wm_config-exclude"><?php _e( 'Excludes:', FB_WM_TEXTDOMAIN ); ?></label>
417
- </th>
418
- <td>
419
- <?php
420
- if ( isset($value['exclude']) ) {
421
- if ( 1 < count($value['exclude']) ) {
422
- $value_exclude = join( ', ', $value['exclude'] );
423
- } else {
424
- $value_exclude = $value['exclude'];
425
- }
426
- } else {
427
- $value_exclude = NULL;
428
- }
429
- ?>
430
- <input size="30" type="text" id="wm_config-exclude" name="wm_config-exclude" value="<?php echo $value_exclude; ?>" />
431
- <br />
432
- <small><?php _e( 'Exclude feed, pages, posts or archives from the maintenance mode. Add the Slug of page or post as a comma-separated list.<br />Example:', FB_WM_TEXTDOMAIN ); ?> <code>wp-cron, feed, wp-admin, about, my-first-page, how-is-this-possible, category/test</code></small>
433
- </td>
434
- </tr>
435
- <tr valign="top">
436
- <th scope="row" class="alternate">
437
- <label for="wm_config-role"><?php _e( 'Role:', FB_WM_TEXTDOMAIN ); ?></label>
438
- </th>
439
- <td class="alternate">
440
- <select name="wm_config-role" id="wm_config-role">
441
- <?php
442
- // fallback
443
- if ( !isset($value['role'][0]) )
444
- $value['role'][0] = NULL;
445
-
446
- foreach ( $wp_roles->roles as $role => $name ) {
447
- if ( function_exists('translate_user_role') )
448
- $role_name = translate_user_role( $name['name'] );
449
- elseif ( function_exists('before_last_bar') )
450
- $role_name = before_last_bar( $name['name'], 'User role' );
451
- else
452
- $role_name = strrpos( $name['name'], '|' );
453
-
454
- if ($value['role'][0] !== $role)
455
- $selected = '';
456
- else
457
- $selected = ' selected="selected"';
458
- echo '<option value="' . $role . '"' . $selected . '>' . $role_name . ' (' . $role . ')' . ' </option>';
459
- }
460
- ?>
461
- </select>
462
- <small><?php _e( 'Allowed userrole to see the frontend of this blog.', FB_WM_TEXTDOMAIN ); ?>
463
- <?php if ( is_multisite() ) { _e( 'Super Admin has always access.', FB_WM_TEXTDOMAIN ); } ?></small>
464
- </td>
465
- </tr>
466
- </table>
467
- <br />
468
- <div class="plugin-update-tr">
469
- <p id="wm_message_update2" class="update-message"><?php echo sprintf( __( 'Plugin %s settings <strong>updated</strong>.', FB_WM_TEXTDOMAIN ), $wm_plugindata['Name'] ); ?></p>
470
- </div>
471
- <p id="submitbutton">
472
- <input id="wm_config_submit" type="button" value="<?php _e( 'Save', FB_WM_TEXTDOMAIN ); ?>" class="button-secondary" />
473
- </p>
474
- </div>
475
-
476
- </td>
477
- </tr>
478
- <?php
479
- }
480
-
481
-
482
- function add_config() {
483
-
484
- $this->data = array(
485
- 'active' => 0,
486
- 'radio' => 0,
487
- 'time' => 60,
488
- 'link' => 1,
489
- 'theme' => 1,
490
- 'role' => 'administrator',
491
- 'unit' => 1,
492
- 'title' => 'Maintenance mode',
493
- 'text' => '<p>Sorry for the inconvenience.<br />Our website is currently undergoing scheduled maintenance.<br /><strong>Please try back in %1$s %2$s</strong><br />Thank you for your understanding.</p>',
494
- 'exclude' => 'wp-cron, feed, wp-admin'
495
- );
496
- add_option( FB_WM_TEXTDOMAIN, $this->data );
497
- add_option( FB_WM_TEXTDOMAIN . '-msqld', $this->data['active'] );
498
-
499
- $old_check = get_option( 'wartungsmodus' );
500
- if ($old_check)
501
- delete_option( 'wartungsmodus' );
502
- }
503
-
504
-
505
- function save_active() {
506
-
507
- $this->data = array();
508
- $this->data = get_option( FB_WM_TEXTDOMAIN );
509
- $this->datamsqld = get_option( FB_WM_TEXTDOMAIN . '-msqld' );
510
-
511
- if ( isset($_POST['wm_config-active']) )
512
- $this->data['active'] = (int) $_POST['wm_config-active'];
513
-
514
- update_option( FB_WM_TEXTDOMAIN, $this->data );
515
- update_option( FB_WM_TEXTDOMAIN . '-msqld', $this->data['active'] );
516
-
517
- die( __( 'Updated', FB_WM_TEXTDOMAIN ) );
518
- }
519
-
520
-
521
- function save_config() {
522
-
523
- $this->data = array();
524
- $this->data = get_option( FB_WM_TEXTDOMAIN );
525
-
526
- if ( isset($_POST['wm_config-time']) )
527
- $this->data['time'] = (int) $_POST['wm_config-time'];
528
- if ( isset($_POST['wm_config-unit']) )
529
- $this->data['unit'] = (int) $_POST['wm_config-unit'];
530
- if ( isset($_POST['wm_config-link']) )
531
- $this->data['link'] = (int) $_POST['wm_config-link'];
532
- if ( isset($_POST['wm_config-theme']) )
533
- $this->data['theme'] = (int) $_POST['wm_config-theme'];
534
- if ( isset($_POST['wm_config-styleurl']) ) {
535
- if ( function_exists('esc_url') ) {
536
- $this->data['styleurl'] = esc_url( $_POST['wm_config-styleurl'] );
537
- } else {
538
- $this->data['styleurl'] = clean_url( $_POST['wm_config-styleurl'] );
539
- }
540
- }
541
- if ( isset($_POST['wm_config-title']) )
542
- $this->data['title'] = stripslashes_deep( $_POST['wm_config-title'] );
543
- if ( isset($_POST['wm_config-header']) )
544
- $this->data['header'] = stripslashes_deep( $_POST['wm_config-header'] );
545
- if ( isset($_POST['wm_config-heading']) )
546
- $this->data['heading'] = stripslashes_deep( $_POST['wm_config-heading'] );
547
- if ( isset($_POST['wm_config-text']) )
548
- $this->data['text'] = stripslashes_deep( $_POST['wm_config-text'] );
549
- if ( isset($_POST['wm_config-exclude']) )
550
- $this->data['exclude'] = preg_split("/[\s,]+/", $this->esc_attr( $_POST['wm_config-exclude'] ) );
551
- if ( isset($_POST['wm_config-role']) )
552
- $this->data['role'] = preg_split("/[\s,]+/", $this->esc_attr( $_POST['wm_config-role'] ) );
553
- if ( isset($_POST['wm_config-radio']) )
554
- $this->data['radio'] = (int) $_POST['wm_config-radio'];
555
- if ( isset($_POST['wm_config-date']) )
556
- $this->data['date'] = $this->esc_attr( $_POST['wm_config-date'] );
557
-
558
- update_option( FB_WM_TEXTDOMAIN, $this->data );
559
-
560
- die( __( 'Updated', FB_WM_TEXTDOMAIN ) );
561
- }
562
-
563
-
564
- function del_config() {
565
-
566
- delete_option( FB_WM_TEXTDOMAIN );
567
- delete_option( FB_WM_TEXTDOMAIN . '-msqld' );
568
- }
569
-
570
-
571
- function check_version() {
572
- global $wp_version;
573
-
574
- if ( version_compare($wp_version, '2.1-dev', '<') ) {
575
- require (ABSPATH . WPINC . '/pluggable-functions.php'); // < WP 2.1
576
- } else {
577
- require (ABSPATH . WPINC . '/pluggable.php'); // >= WP 2.1
578
- }
579
- }
580
-
581
-
582
- function check_exclude() {
583
- $value = get_option( FB_WM_TEXTDOMAIN );
584
-
585
- if ( !isset($value['exclude']) )
586
- return FALSE;
587
-
588
- foreach ( (array) $value['exclude'] as $exclude ) {
589
- if ( $exclude && strstr($_SERVER['REQUEST_URI'], $exclude) )
590
- return TRUE;
591
- }
592
-
593
- return FALSE;
594
- }
595
-
596
-
597
- function check_role() {
598
- $value = get_option( FB_WM_TEXTDOMAIN );
599
-
600
- if ( is_super_admin() )
601
- return TRUE;
602
-
603
- if ( !isset( $value['role'][0] ) || ( '' != $value['role'][0] ) )
604
- $role = 'manage_options';
605
-
606
- $defaultroles = array('administrator', 'editor', 'author', 'contributor', 'subscriber');
607
-
608
- if ( isset($value['role'][0]) ) {
609
- if ( 'administrator' == $value['role'][0] )
610
- $role = 'manage_options';
611
-
612
- elseif ( 'editor' == $value['role'][0] )
613
- $role = 'manage_categories';
614
-
615
- elseif ( 'author' == $value['role'][0] )
616
- $role = 'publish_posts';
617
-
618
- elseif ( 'contributor' == $value['role'][0] )
619
- $role = 'edit_posts';
620
-
621
- elseif ( 'subscriber' == $value['role'][0] )
622
- $role = 'read';
623
-
624
- elseif ( !in_array( $value['role'][0], $defaultroles ) )
625
- $role = 'manage_options';
626
- } else {
627
- $role = 'manage_options';
628
- }
629
-
630
- if ( current_user_can( $role ) )
631
- return TRUE;
632
-
633
- return FALSE;
634
- }
635
-
636
-
637
- function case_unit($unitvalue) {
638
-
639
- $value['unit'] = $unitvalue;
640
- $unitvalues = array();
641
-
642
- switch( $value['unit'] ) {
643
- case 0:
644
- $unitvalues['unit'] = __( 'seconds', FB_WM_TEXTDOMAIN );
645
- $unitvalues['multiplier'] = 1;
646
- break;
647
- case 1:
648
- $unitvalues['unit'] = __( 'minutes', FB_WM_TEXTDOMAIN );
649
- $unitvalues['multiplier'] = 60;
650
- break;
651
- case 2:
652
- $unitvalues['unit'] = __( 'hours', FB_WM_TEXTDOMAIN );
653
- $unitvalues['multiplier'] = 3600;
654
- break;
655
- case 3:
656
- $unitvalues['unit'] = __( 'days', FB_WM_TEXTDOMAIN );
657
- $unitvalues['multiplier'] = 86400;
658
- break;
659
- case 4:
660
- $unitvalues['unit'] = __( 'weeks', FB_WM_TEXTDOMAIN );
661
- $unitvalues['multiplier'] = 604800;
662
- break;
663
- case 5:
664
- $unitvalues['unit'] = __( 'months', FB_WM_TEXTDOMAIN );
665
- $unitvalues['multiplier'] = 2592000; // 30 days
666
- break;
667
- case 6:
668
- $unitvalues['unit'] = __( 'years', FB_WM_TEXTDOMAIN );
669
- $unitvalues['multiplier'] = 31556952;
670
- break;
671
- }
672
-
673
- return $unitvalues;
674
- }
675
-
676
-
677
- function check_datetime() {
678
-
679
- $datetime = NULL;
680
- $time = NULL;
681
- $date = NULL;
682
- $value = get_option( FB_WM_TEXTDOMAIN );
683
-
684
- if ( isset($value['radio']) && 1 === $value['radio'] ) {
685
- $datetime = explode( ' ', $value['date'] );
686
- $date = explode( '-', $datetime[0] );
687
- if ( isset($datetime[1]) )
688
- $time = explode( ':', $datetime[1] );
689
- else $time = 0;
690
- if (count($date) < 3) {
691
- $date = 0; //ausschalten wegen datum is nicht
692
- } else {
693
- $date[1] = $date[1] - 1;
694
- if (count($time) < 3)
695
- $time = 0;
696
- if ( isset($time) && 0 !== $time ) {
697
- // 'Years', 'Months', 'Weeks', 'Days', 'Hours', 'Minutes', 'Seconds'
698
- $date = $date[2].', '.$date[1].', '.$date[0].', '.$time[0].', '.$time[1].', '.$time[2];
699
- } else {
700
- $date = $date[2].', '.$date[1].', '.$date[0];
701
- }
702
- }
703
- }
704
-
705
- return array( $datetime, $time, $date );
706