Version Description
- Improved code
- Improved design
- Improved security
- Removed debug panel
- Updated translations
- Updated links
- Updated screenshots
- Adding plugin logo
Download this release
Release Info
Developer | Lukenzi |
Plugin | WP Htaccess Editor |
Version | 1.2.0 |
Comparing to | |
See all releases |
Code changes from version 1.1.1 to 1.2.0
- index.php +4 -0
- lang/cs_CZ.mo +0 -0
- lang/cs_CZ.po +248 -158
- lang/default.po +268 -161
- lang/index.php +4 -0
- lib/index.php +4 -0
- lib/lib.ad.php +6 -17
- lib/lib.debug.php +0 -34
- lib/lib.functions.php +109 -44
- lib/lib.pages.php +29 -23
- lib/lib.wp-files.php +15 -9
- pages/index.php +4 -0
- pages/wphe-backup.php +55 -26
- pages/wphe-dashboard.php +68 -71
- readme.txt +22 -7
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
- style/img/1.gif +0 -0
- style/img/2.gif +0 -0
- style/img/3.gif +0 -0
- style/img/wphe-mini.png +0 -0
- style/img/wphe.png +0 -0
- style/index.php +4 -0
- style/wphe-style.css +7 -1
- wp-htaccess-editor.php +38 -19
index.php
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
header('Location: ../../');
|
3 |
+
exit();
|
4 |
+
?>
|
lang/cs_CZ.mo
CHANGED
Binary file
|
lang/cs_CZ.po
CHANGED
@@ -2,290 +2,380 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Htaccess editor\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date:
|
6 |
-
"PO-Revision-Date:
|
7 |
-
"Last-Translator: Lukenzi <
|
8 |
-
"Language-Team: Lukenzi <
|
|
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"X-Poedit-KeywordsList: _e;__\n"
|
13 |
-
"X-Poedit-Basepath:
|
14 |
"X-Poedit-Language: Czech\n"
|
15 |
"X-Poedit-Country: CZECH REPUBLIC\n"
|
16 |
"X-Poedit-SourceCharset: utf-8\n"
|
17 |
"X-Poedit-SearchPath-0: .\n"
|
18 |
|
19 |
-
#:
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
#: lib/lib.
|
24 |
-
#: lib/lib.
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
#: pages/wphe-
|
30 |
-
msgid "WP Htaccess Editor"
|
31 |
-
msgstr "WP Htaccess Editor"
|
32 |
-
|
33 |
-
#: lib/lib.pages.php:10
|
34 |
-
msgid "Htaccess"
|
35 |
-
msgstr "Htaccess"
|
36 |
-
|
37 |
#: lib/lib.pages.php:11
|
38 |
-
msgid "Htaccess Editor"
|
39 |
-
msgstr "Htaccess Editor"
|
40 |
-
|
41 |
-
#: lib/lib.pages.php:12
|
42 |
msgid "Backup"
|
43 |
msgstr "Záloha"
|
44 |
|
45 |
-
#: pages/wphe-backup.php:
|
46 |
-
msgid "WP Htaccess Editor - Backup"
|
47 |
-
msgstr "WP Htaccess Editor - Záloha"
|
48 |
-
|
49 |
-
#: pages/wphe-backup.php:17
|
50 |
msgid "Unable to restore backup! Probably the wrong setting write permissions to the files."
|
51 |
msgstr "Obnovení zálohy nebylo úspěšné! Pravděpodobně jsou špatně nastavena práva k zápisu do souboru. "
|
52 |
|
53 |
-
#: pages/wphe-backup.php:
|
54 |
-
#: pages/wphe-backup.php:
|
55 |
msgid "The backup file is located in the <code>wp-content</code> folder."
|
56 |
msgstr "Soubor zálohy je uložen ve složce <code>wp-content</code>."
|
57 |
|
58 |
-
#: pages/wphe-backup.php:
|
59 |
msgid "Backup was restored successfully"
|
60 |
msgstr "Záloha souboru byla úspěšně obnovena."
|
61 |
|
62 |
-
#: pages/wphe-backup.php:
|
63 |
msgid "Old backup file was deleted successfully"
|
64 |
msgstr "Starý záložní soubor byl úspěšně odstraněn."
|
65 |
|
66 |
-
#: pages/wphe-backup.php:
|
67 |
msgid "Unable to restore backup!"
|
68 |
msgstr "Nelze obnovit zálohu!"
|
69 |
|
70 |
-
#: pages/wphe-backup.php:
|
71 |
msgid "This is contents of the original file, put it into a file manually"
|
72 |
msgstr "Toto je obsah původního souboru, vložte jej do souboru <code>htaccess</code> ručně."
|
73 |
|
74 |
-
#: pages/wphe-backup.php:
|
75 |
msgid "Backup file was created successfully"
|
76 |
msgstr "Záložní soubor byl úspěšně vytvořen."
|
77 |
|
78 |
-
#: pages/wphe-backup.php:
|
79 |
-
|
80 |
-
|
81 |
-
msgstr "Uložit záložní soubor do PC"
|
82 |
|
83 |
-
#: pages/wphe-backup.php:
|
84 |
-
|
85 |
-
|
|
|
|
|
|
|
86 |
|
87 |
-
#: pages/wphe-backup.php:
|
88 |
msgid "Backup file was successfully removed"
|
89 |
msgstr "Záložní soubor byl úspěšně odstraněn."
|
90 |
|
91 |
-
#: pages/wphe-backup.php:
|
92 |
msgid "Backup file could not be removed! Probably the wrong setting write permissions to the files."
|
93 |
msgstr "Záložní soubor nelze odstranit! Pravděpodobně jsou špatně nastavena práva k zápisu do souboru. "
|
94 |
|
95 |
-
#: pages/wphe-backup.php:
|
96 |
-
msgid "The backup file was found..."
|
97 |
-
msgstr "Záložní soubor byl nalezen..."
|
98 |
-
|
99 |
-
#: pages/wphe-backup.php:69
|
100 |
msgid "Do you want to restore the backup file?"
|
101 |
msgstr "Chcete obnovit zálohu původního souboru?"
|
102 |
|
103 |
-
#: pages/wphe-backup.php:
|
104 |
msgid "Restore backup »"
|
105 |
msgstr "Obnovit »"
|
106 |
|
107 |
-
#: pages/wphe-backup.php:
|
108 |
msgid "Do you want to delete a backup file?"
|
109 |
msgstr "Chcete odstranit záložní soubor?"
|
110 |
|
111 |
-
#: pages/wphe-backup.php:
|
112 |
-
#: pages/wphe-dashboard.php:
|
113 |
msgid "Remove backup »"
|
114 |
msgstr "Odstranit zálohu »"
|
115 |
|
116 |
-
#: pages/wphe-backup.php:
|
117 |
msgid "Backup file not found..."
|
118 |
msgstr "Záložní soubor nebyl nalezen..."
|
119 |
|
120 |
-
#: pages/wphe-backup.php:
|
121 |
msgid "Do you want to create a new backup file?"
|
122 |
msgstr "Chcete vytvořit nový záložní soubor?"
|
123 |
|
124 |
-
#: pages/wphe-backup.php:
|
125 |
msgid "Create new »"
|
126 |
msgstr "Vytvořit nový »"
|
127 |
|
128 |
-
#: pages/wphe-backup.php:
|
129 |
-
#: pages/wphe-dashboard.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
msgid "You do not have permission to view this page"
|
131 |
msgstr "Nemáte oprávnění k zobrazení této stránky"
|
132 |
|
133 |
-
#: pages/wphe-
|
134 |
-
#: pages/wphe-dashboard.php:178
|
135 |
-
msgid "Access denied"
|
136 |
-
msgstr "Přístup odepřen"
|
137 |
-
|
138 |
-
#: pages/wphe-dashboard.php:21
|
139 |
msgid "File has been successfully changed"
|
140 |
-
msgstr "Soubor byl
|
141 |
|
142 |
-
#: pages/wphe-dashboard.php:
|
143 |
-
msgid "You have made changes to the htaccess file. The original file was automatically backed up
|
144 |
-
msgstr "Provedli jste změny v htaccess souboru. Původní soubor byl automaticky zálohován
|
145 |
|
146 |
-
#: pages/wphe-dashboard.php:
|
147 |
msgid "Check the functionality of your site (the links to the articles or categories)."
|
148 |
msgstr "Vyzkoušejte funkčnost Vašeho webu (odkazy na články nebo rubriky)."
|
149 |
|
150 |
-
#: pages/wphe-dashboard.php:
|
151 |
-
msgid "If something is not working properly restore the original backup
|
152 |
-
msgstr "Pokud nefungují
|
153 |
|
154 |
-
#: pages/wphe-dashboard.php:
|
155 |
msgid "If everything works properly, you can delete the backup file:"
|
156 |
msgstr "Pokud vše funguje jak má, můžete záložní soubor smazat:"
|
157 |
|
158 |
-
#: pages/wphe-dashboard.php:
|
159 |
-
#: pages/wphe-dashboard.php:
|
160 |
msgid "or"
|
161 |
msgstr "nebo"
|
162 |
|
163 |
-
#: pages/wphe-dashboard.php:
|
164 |
msgid "restore the original file from backup"
|
165 |
msgstr "obnovte zálohu původního souboru"
|
166 |
|
|
|
167 |
#: pages/wphe-dashboard.php:34
|
168 |
-
msgid "The file could not be saved!
|
169 |
-
msgstr "Soubor nebyl uložen!
|
170 |
|
171 |
-
#: pages/wphe-dashboard.php:
|
172 |
-
msgid "Unable to create backup of the original file!
|
173 |
-
msgstr "Nelze vytvořit zálohu původního souboru!
|
174 |
|
175 |
-
#: pages/wphe-dashboard.php:
|
176 |
-
msgid "Htaccess file is not created.
|
177 |
-
msgstr "Soubor Htaccess nebyl vytvořen
|
178 |
|
179 |
-
#: pages/wphe-dashboard.php:
|
180 |
msgid "Htaccess file was successfully created."
|
181 |
msgstr "Soubor htaccess byl úspěšně vytvořen."
|
182 |
|
183 |
-
#: pages/wphe-dashboard.php:
|
184 |
-
msgid "
|
185 |
-
msgstr "
|
186 |
|
187 |
-
#: pages/wphe-dashboard.php:
|
|
|
|
|
|
|
|
|
188 |
msgid "Backup file has been successfully removed."
|
189 |
msgstr "Záložní soubor byl úspěšně odstraněn."
|
190 |
|
191 |
-
#: pages/wphe-dashboard.php:
|
192 |
msgid "Using this editor you can easily modify your htaccess file without having to use an FTP client."
|
193 |
msgstr "Tento editor slouží k snadné úpravě vašeho htaccess souboru bez nutnosti použití FTP klienta."
|
194 |
|
195 |
-
#: pages/wphe-dashboard.php:
|
196 |
msgid "<strong>WARNING:</strong> Any error in this file may cause malfunction of your site!"
|
197 |
msgstr "<strong>POZOR:</strong> Jakákoliv chyba v tomto souboru může způsobit nefunkčnost vašeho webu!"
|
198 |
|
199 |
-
#: pages/wphe-dashboard.php:
|
200 |
msgid "Edit htaccess file should therefore be performed only by experienced users!"
|
201 |
msgstr "Upravovat htaccess soubor by měli provádět pouze zkušení uživatelé!"
|
202 |
|
203 |
-
#: pages/wphe-dashboard.php:
|
204 |
-
msgid "
|
205 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
206 |
|
207 |
-
#: pages/wphe-dashboard.php:
|
208 |
-
msgid "Htaccess file
|
209 |
-
msgstr "Htaccess
|
210 |
|
211 |
-
#: pages/wphe-dashboard.php:
|
212 |
-
#: pages/wphe-dashboard.php:
|
213 |
-
msgid "Htaccess file
|
214 |
-
msgstr "Htaccess
|
215 |
|
216 |
-
#: pages/wphe-dashboard.php:
|
217 |
-
msgid "Htaccess file
|
218 |
-
msgstr "Htaccess
|
219 |
|
220 |
-
#: pages/wphe-dashboard.php:
|
221 |
msgid "Save file »"
|
222 |
msgstr "Uložit soubor »"
|
223 |
|
224 |
-
#: pages/wphe-dashboard.php:
|
225 |
-
msgid "Htaccess file is not readable, probably does not exist"
|
226 |
-
msgstr "Htaccess soubor nelze přečíst, pravděpodobně neexistuje"
|
227 |
-
|
228 |
-
#: pages/wphe-dashboard.php:123
|
229 |
msgid "Create new <code>.htaccess</code> file?"
|
230 |
msgstr "Vytvořit nový <code>.htaccess</code> soubor?"
|
231 |
|
232 |
-
#: pages/wphe-dashboard.php:
|
233 |
msgid "Create »"
|
234 |
msgstr "Vytvořit nový »"
|
235 |
|
236 |
-
#:
|
237 |
-
msgid "
|
238 |
-
msgstr "
|
239 |
|
240 |
-
#:
|
241 |
-
msgid "
|
242 |
-
msgstr "
|
243 |
|
244 |
-
#:
|
245 |
-
msgid "
|
246 |
-
msgstr "
|
247 |
|
248 |
-
|
249 |
-
|
250 |
-
msgstr "Nebo použijte Google"
|
251 |
|
252 |
-
|
253 |
-
|
254 |
-
msgstr "Informace o tomto pluginu"
|
255 |
|
256 |
-
|
257 |
-
|
258 |
-
msgstr "Autor"
|
259 |
|
260 |
-
|
261 |
-
|
262 |
-
msgstr "Překladatelé"
|
263 |
|
264 |
-
|
265 |
-
|
266 |
-
msgstr "Plugin"
|
267 |
|
268 |
-
|
269 |
-
|
270 |
-
msgstr "Verze pluginu:"
|
271 |
|
272 |
-
|
273 |
-
|
274 |
-
msgstr "Web pluginu:"
|
275 |
|
276 |
-
|
277 |
-
|
278 |
-
|
|
|
|
|
|
|
279 |
|
280 |
-
|
281 |
-
|
282 |
-
msgstr "Hlášení chyb:"
|
283 |
|
284 |
-
|
285 |
-
|
286 |
-
|
|
|
|
|
|
|
287 |
|
288 |
-
|
289 |
-
|
290 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
291 |
|
|
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Htaccess editor\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2012-08-23 21:43+0100\n"
|
6 |
+
"PO-Revision-Date: 2012-08-23 21:43+0100\n"
|
7 |
+
"Last-Translator: Lukenzi <lukenzi@gmail.com>\n"
|
8 |
+
"Language-Team: Lukenzi <lukenzi@gmail.com>\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 |
"X-Poedit-KeywordsList: _e;__\n"
|
14 |
+
"X-Poedit-Basepath: /opt/lampp/htdocs/wordpress/wp-content/plugins/wp-htaccess-editor/\n"
|
15 |
"X-Poedit-Language: Czech\n"
|
16 |
"X-Poedit-Country: CZECH REPUBLIC\n"
|
17 |
"X-Poedit-SourceCharset: utf-8\n"
|
18 |
"X-Poedit-SearchPath-0: .\n"
|
19 |
|
20 |
+
#: wp-htaccess-editor.php:77
|
21 |
+
#: wp-htaccess-editor.php:81
|
22 |
+
#: wp-htaccess-editor.php:85
|
23 |
+
#: wp-htaccess-editor.php:90
|
24 |
+
#: lib/lib.pages.php:31
|
25 |
+
#: lib/lib.pages.php:38
|
26 |
+
#: lib/lib.pages.php:45
|
27 |
+
msgid "Fatal error: Plugin <strong>WP Htaccess Editor</strong> is corrupted"
|
28 |
+
msgstr "Chyba: Plugin <strong>WP Htaccess Editor</strong> je poškozen"
|
29 |
+
|
30 |
+
#: pages/wphe-backup.php:7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
#: lib/lib.pages.php:11
|
|
|
|
|
|
|
|
|
32 |
msgid "Backup"
|
33 |
msgstr "Záloha"
|
34 |
|
35 |
+
#: pages/wphe-backup.php:16
|
|
|
|
|
|
|
|
|
36 |
msgid "Unable to restore backup! Probably the wrong setting write permissions to the files."
|
37 |
msgstr "Obnovení zálohy nebylo úspěšné! Pravděpodobně jsou špatně nastavena práva k zápisu do souboru. "
|
38 |
|
39 |
+
#: pages/wphe-backup.php:18
|
40 |
+
#: pages/wphe-backup.php:38
|
41 |
msgid "The backup file is located in the <code>wp-content</code> folder."
|
42 |
msgstr "Soubor zálohy je uložen ve složce <code>wp-content</code>."
|
43 |
|
44 |
+
#: pages/wphe-backup.php:22
|
45 |
msgid "Backup was restored successfully"
|
46 |
msgstr "Záloha souboru byla úspěšně obnovena."
|
47 |
|
48 |
+
#: pages/wphe-backup.php:23
|
49 |
msgid "Old backup file was deleted successfully"
|
50 |
msgstr "Starý záložní soubor byl úspěšně odstraněn."
|
51 |
|
52 |
+
#: pages/wphe-backup.php:26
|
53 |
msgid "Unable to restore backup!"
|
54 |
msgstr "Nelze obnovit zálohu!"
|
55 |
|
56 |
+
#: pages/wphe-backup.php:28
|
57 |
msgid "This is contents of the original file, put it into a file manually"
|
58 |
msgstr "Toto je obsah původního souboru, vložte jej do souboru <code>htaccess</code> ručně."
|
59 |
|
60 |
+
#: pages/wphe-backup.php:36
|
61 |
msgid "Backup file was created successfully"
|
62 |
msgstr "Záložní soubor byl úspěšně vytvořen."
|
63 |
|
64 |
+
#: pages/wphe-backup.php:41
|
65 |
+
msgid "Unable to create backup! <code>wp-content</code> folder is not writeable! Change the permissions this folder manually!"
|
66 |
+
msgstr "Nelze vytvořit zálohu! Do složky <code>wp-content</code> nelze zapisovat, změňte oprávnění této složky!"
|
|
|
67 |
|
68 |
+
#: pages/wphe-backup.php:42
|
69 |
+
#: pages/wphe-backup.php:52
|
70 |
+
#: pages/wphe-dashboard.php:31
|
71 |
+
#: pages/wphe-dashboard.php:43
|
72 |
+
msgid "Due to server configuration can not change permissions on files or create new files"
|
73 |
+
msgstr "Kvůli nastavení serveru nelze měnit oprávnění souborů ani vytvářet nové soubory nebo mazat stávající"
|
74 |
|
75 |
+
#: pages/wphe-backup.php:49
|
76 |
msgid "Backup file was successfully removed"
|
77 |
msgstr "Záložní soubor byl úspěšně odstraněn."
|
78 |
|
79 |
+
#: pages/wphe-backup.php:51
|
80 |
msgid "Backup file could not be removed! Probably the wrong setting write permissions to the files."
|
81 |
msgstr "Záložní soubor nelze odstranit! Pravděpodobně jsou špatně nastavena práva k zápisu do souboru. "
|
82 |
|
83 |
+
#: pages/wphe-backup.php:63
|
|
|
|
|
|
|
|
|
84 |
msgid "Do you want to restore the backup file?"
|
85 |
msgstr "Chcete obnovit zálohu původního souboru?"
|
86 |
|
87 |
+
#: pages/wphe-backup.php:63
|
88 |
msgid "Restore backup »"
|
89 |
msgstr "Obnovit »"
|
90 |
|
91 |
+
#: pages/wphe-backup.php:72
|
92 |
msgid "Do you want to delete a backup file?"
|
93 |
msgstr "Chcete odstranit záložní soubor?"
|
94 |
|
95 |
+
#: pages/wphe-backup.php:72
|
96 |
+
#: pages/wphe-dashboard.php:25
|
97 |
msgid "Remove backup »"
|
98 |
msgstr "Odstranit zálohu »"
|
99 |
|
100 |
+
#: pages/wphe-backup.php:78
|
101 |
msgid "Backup file not found..."
|
102 |
msgstr "Záložní soubor nebyl nalezen..."
|
103 |
|
104 |
+
#: pages/wphe-backup.php:86
|
105 |
msgid "Do you want to create a new backup file?"
|
106 |
msgstr "Chcete vytvořit nový záložní soubor?"
|
107 |
|
108 |
+
#: pages/wphe-backup.php:86
|
109 |
msgid "Create new »"
|
110 |
msgstr "Vytvořit nový »"
|
111 |
|
112 |
+
#: pages/wphe-backup.php:95
|
113 |
+
#: pages/wphe-dashboard.php:129
|
114 |
+
msgid "Information about this plugin"
|
115 |
+
msgstr "Informace o tomto pluginu"
|
116 |
+
|
117 |
+
#: pages/wphe-backup.php:97
|
118 |
+
#: pages/wphe-dashboard.php:131
|
119 |
+
msgid "Author"
|
120 |
+
msgstr "Autor"
|
121 |
+
|
122 |
+
#: pages/wphe-backup.php:101
|
123 |
+
#: pages/wphe-dashboard.php:135
|
124 |
+
msgid "Translators"
|
125 |
+
msgstr "Překladatelé"
|
126 |
+
|
127 |
+
#: pages/wphe-backup.php:108
|
128 |
+
#: pages/wphe-dashboard.php:142
|
129 |
+
msgid "Plugin"
|
130 |
+
msgstr "Plugin"
|
131 |
+
|
132 |
+
#: pages/wphe-backup.php:110
|
133 |
+
#: pages/wphe-dashboard.php:144
|
134 |
+
msgid "Version:"
|
135 |
+
msgstr "Verze pluginu:"
|
136 |
+
|
137 |
+
#: pages/wphe-backup.php:111
|
138 |
+
#: pages/wphe-dashboard.php:145
|
139 |
+
msgid "Plugin homepage:"
|
140 |
+
msgstr "Domovská stránka pluginu:"
|
141 |
+
|
142 |
+
#: pages/wphe-backup.php:111
|
143 |
+
#: pages/wphe-dashboard.php:145
|
144 |
+
msgid "WordPress repository"
|
145 |
+
msgstr "WordPress repozitář"
|
146 |
+
|
147 |
+
#: pages/wphe-backup.php:112
|
148 |
+
#: pages/wphe-dashboard.php:146
|
149 |
+
msgid "Support:"
|
150 |
+
msgstr "Podpora:"
|
151 |
+
|
152 |
+
#: pages/wphe-backup.php:112
|
153 |
+
#: pages/wphe-dashboard.php:146
|
154 |
+
msgid "Forum"
|
155 |
+
msgstr "Fórum"
|
156 |
+
|
157 |
+
#: pages/wphe-backup.php:113
|
158 |
+
#: pages/wphe-dashboard.php:147
|
159 |
+
msgid "Support for the development:"
|
160 |
+
msgstr "Přispějte na další vývoj:"
|
161 |
+
|
162 |
+
#: pages/wphe-backup.php:113
|
163 |
+
#: pages/wphe-backup.php:124
|
164 |
+
#: pages/wphe-dashboard.php:147
|
165 |
+
#: pages/wphe-dashboard.php:158
|
166 |
+
#: lib/lib.ad.php:20
|
167 |
+
msgid "Donate"
|
168 |
+
msgstr "Přispějte"
|
169 |
+
|
170 |
+
#: pages/wphe-backup.php:117
|
171 |
+
#: pages/wphe-dashboard.php:151
|
172 |
+
msgid "Other plugins"
|
173 |
+
msgstr "Další pluginy autora"
|
174 |
+
|
175 |
+
#: pages/wphe-backup.php:119
|
176 |
+
#: pages/wphe-dashboard.php:153
|
177 |
+
msgid "System Files Editor"
|
178 |
+
msgstr "System Files Editor"
|
179 |
+
|
180 |
+
#: pages/wphe-backup.php:120
|
181 |
+
#: pages/wphe-dashboard.php:154
|
182 |
+
msgid "Czech support for WordPress"
|
183 |
+
msgstr "Česká podpora pro WordPress"
|
184 |
+
|
185 |
+
#: pages/wphe-backup.php:139
|
186 |
+
#: pages/wphe-dashboard.php:174
|
187 |
msgid "You do not have permission to view this page"
|
188 |
msgstr "Nemáte oprávnění k zobrazení této stránky"
|
189 |
|
190 |
+
#: pages/wphe-dashboard.php:17
|
|
|
|
|
|
|
|
|
|
|
191 |
msgid "File has been successfully changed"
|
192 |
+
msgstr "Soubor byl uložen"
|
193 |
|
194 |
+
#: pages/wphe-dashboard.php:19
|
195 |
+
msgid "You have made changes to the htaccess file. The original file was automatically backed up (in <code>wp-content</code> folder)"
|
196 |
+
msgstr "Provedli jste změny v htaccess souboru. Původní soubor byl automaticky zálohován (ve složce <code>wp-content</code>)"
|
197 |
|
198 |
+
#: pages/wphe-dashboard.php:20
|
199 |
msgid "Check the functionality of your site (the links to the articles or categories)."
|
200 |
msgstr "Vyzkoušejte funkčnost Vašeho webu (odkazy na články nebo rubriky)."
|
201 |
|
202 |
+
#: pages/wphe-dashboard.php:20
|
203 |
+
msgid "If something is not working properly restore the original file from backup"
|
204 |
+
msgstr "Pokud nefungují správně, obnovte zálohu původního souboru."
|
205 |
|
206 |
+
#: pages/wphe-dashboard.php:25
|
207 |
msgid "If everything works properly, you can delete the backup file:"
|
208 |
msgstr "Pokud vše funguje jak má, můžete záložní soubor smazat:"
|
209 |
|
210 |
+
#: pages/wphe-dashboard.php:25
|
211 |
+
#: pages/wphe-dashboard.php:66
|
212 |
msgid "or"
|
213 |
msgstr "nebo"
|
214 |
|
215 |
+
#: pages/wphe-dashboard.php:25
|
216 |
msgid "restore the original file from backup"
|
217 |
msgstr "obnovte zálohu původního souboru"
|
218 |
|
219 |
+
#: pages/wphe-dashboard.php:30
|
220 |
#: pages/wphe-dashboard.php:34
|
221 |
+
msgid "The file could not be saved!"
|
222 |
+
msgstr "Soubor nebyl uložen!"
|
223 |
|
224 |
+
#: pages/wphe-dashboard.php:35
|
225 |
+
msgid "Unable to create backup of the original file! <code>wp-content</code> folder is not writeable! Change the permissions this folder!"
|
226 |
+
msgstr "Nelze vytvořit zálohu původního souboru! Do složky <code>wp-content</code> nelze zapisovat, změňte oprávnění u této složky!"
|
227 |
|
228 |
+
#: pages/wphe-dashboard.php:42
|
229 |
+
msgid "Htaccess file is not created."
|
230 |
+
msgstr "Soubor Htaccess nebyl vytvořen."
|
231 |
|
232 |
+
#: pages/wphe-dashboard.php:45
|
233 |
msgid "Htaccess file was successfully created."
|
234 |
msgstr "Soubor htaccess byl úspěšně vytvořen."
|
235 |
|
236 |
+
#: pages/wphe-dashboard.php:46
|
237 |
+
msgid "View new Htaccess file"
|
238 |
+
msgstr "Zobrazit Htaccess soubor"
|
239 |
|
240 |
+
#: pages/wphe-dashboard.php:53
|
241 |
+
msgid "Backup file could not be removed! <code>wp-content</code> folder is not writeable! Change the permissions this folder!"
|
242 |
+
msgstr "Záložní soubor nelze odstranit! Složka <code>wp-content</code> nemá nastavena oprávnění pro zápis, změňte oprávnění ručně!"
|
243 |
+
|
244 |
+
#: pages/wphe-dashboard.php:55
|
245 |
msgid "Backup file has been successfully removed."
|
246 |
msgstr "Záložní soubor byl úspěšně odstraněn."
|
247 |
|
248 |
+
#: pages/wphe-dashboard.php:60
|
249 |
msgid "Using this editor you can easily modify your htaccess file without having to use an FTP client."
|
250 |
msgstr "Tento editor slouží k snadné úpravě vašeho htaccess souboru bez nutnosti použití FTP klienta."
|
251 |
|
252 |
+
#: pages/wphe-dashboard.php:61
|
253 |
msgid "<strong>WARNING:</strong> Any error in this file may cause malfunction of your site!"
|
254 |
msgstr "<strong>POZOR:</strong> Jakákoliv chyba v tomto souboru může způsobit nefunkčnost vašeho webu!"
|
255 |
|
256 |
+
#: pages/wphe-dashboard.php:62
|
257 |
msgid "Edit htaccess file should therefore be performed only by experienced users!"
|
258 |
msgstr "Upravovat htaccess soubor by měli provádět pouze zkušení uživatelé!"
|
259 |
|
260 |
+
#: pages/wphe-dashboard.php:65
|
261 |
+
msgid "Information for editing htaccess file"
|
262 |
+
msgstr "Informace pro úpravy Htaccess souboru"
|
263 |
+
|
264 |
+
#: pages/wphe-dashboard.php:66
|
265 |
+
msgid "For more information on possible adjustments to this file, please visit"
|
266 |
+
msgstr "Pro více informací o možných úpravách tohoto souboru navštivte weby"
|
267 |
+
|
268 |
+
#: pages/wphe-dashboard.php:67
|
269 |
+
msgid "Interesting tips and guides can also be found on "
|
270 |
+
msgstr "Zajímavé tipy a návody můžete nalézt také na webu"
|
271 |
+
|
272 |
+
#: pages/wphe-dashboard.php:68
|
273 |
+
msgid "Or use the Google search."
|
274 |
+
msgstr "Nebo použijte vyhledávač Google"
|
275 |
|
276 |
+
#: pages/wphe-dashboard.php:74
|
277 |
+
msgid "Htaccess file does not exists!"
|
278 |
+
msgstr "Soubor Htaccess neexistuje!"
|
279 |
|
280 |
+
#: pages/wphe-dashboard.php:82
|
281 |
+
#: pages/wphe-dashboard.php:91
|
282 |
+
msgid "Htaccess file cannot read!"
|
283 |
+
msgstr "Soubor Htaccess nelze přečíst!"
|
284 |
|
285 |
+
#: pages/wphe-dashboard.php:106
|
286 |
+
msgid "Content of the Htaccess file"
|
287 |
+
msgstr "Obsah Htaccess souboru"
|
288 |
|
289 |
+
#: pages/wphe-dashboard.php:108
|
290 |
msgid "Save file »"
|
291 |
msgstr "Uložit soubor »"
|
292 |
|
293 |
+
#: pages/wphe-dashboard.php:119
|
|
|
|
|
|
|
|
|
294 |
msgid "Create new <code>.htaccess</code> file?"
|
295 |
msgstr "Vytvořit nový <code>.htaccess</code> soubor?"
|
296 |
|
297 |
+
#: pages/wphe-dashboard.php:119
|
298 |
msgid "Create »"
|
299 |
msgstr "Vytvořit nový »"
|
300 |
|
301 |
+
#: lib/lib.wp-files.php:10
|
302 |
+
msgid "Plugin WP Htaccess Editor Error: File \"/wp-includes/pluggable.php\" does not exists!"
|
303 |
+
msgstr "Chyba v pluginu WP Htaccess Editor: Soubor \"/wp-includes/pluggable.php\" neexistuje!"
|
304 |
|
305 |
+
#: lib/lib.wp-files.php:18
|
306 |
+
msgid "Plugin WP Htaccess Editor Error: File \"/wp-includes/capabilities.php\" does not exists!"
|
307 |
+
msgstr "Chyba v pluginu WP Htaccess Editor: Soubor \"/wp-includes/capabilities.php\" neexistuje!"
|
308 |
|
309 |
+
#: lib/lib.ad.php:7
|
310 |
+
msgid "Plugin homepage"
|
311 |
+
msgstr "Web autora pluginu"
|
312 |
|
313 |
+
#~ msgid "The backup file was found..."
|
314 |
+
#~ msgstr "Záložní soubor byl nalezen..."
|
|
|
315 |
|
316 |
+
#~ msgid "Unlimited hosting WEDOS"
|
317 |
+
#~ msgstr "Neomezený hosting WEDOS"
|
|
|
318 |
|
319 |
+
#~ msgid "WP Htaccess Editor"
|
320 |
+
#~ msgstr "WP Htaccess Editor"
|
|
|
321 |
|
322 |
+
#~ msgid "Htaccess"
|
323 |
+
#~ msgstr "Htaccess"
|
|
|
324 |
|
325 |
+
#~ msgid "Htaccess Editor"
|
326 |
+
#~ msgstr "Htaccess Editor"
|
|
|
327 |
|
328 |
+
#~ msgid "WP Htaccess Editor - Backup"
|
329 |
+
#~ msgstr "WP Htaccess Editor - Záloha"
|
|
|
330 |
|
331 |
+
#~ msgid "Download backup file"
|
332 |
+
#~ msgstr "Uložit záložní soubor do PC"
|
|
|
333 |
|
334 |
+
#~ msgid ""
|
335 |
+
#~ "Unable to create backup! Probably the wrong setting write permissions to "
|
336 |
+
#~ "the files."
|
337 |
+
#~ msgstr ""
|
338 |
+
#~ "Vytvoření zálohy nebylo úspěšné! Pravděpodobně jsou špatně nastavena "
|
339 |
+
#~ "práva k zápisu do souboru. "
|
340 |
|
341 |
+
#~ msgid "Access denied"
|
342 |
+
#~ msgstr "Přístup odepřen"
|
|
|
343 |
|
344 |
+
#~ msgid ""
|
345 |
+
#~ "The file could not be saved! Probably the wrong setting read permissions "
|
346 |
+
#~ "to the files"
|
347 |
+
#~ msgstr ""
|
348 |
+
#~ "Soubor nebyl uložen! Pravděpodobně jsou špatně nastavena práva k zápisu "
|
349 |
+
#~ "do souboru. "
|
350 |
|
351 |
+
#~ msgid ""
|
352 |
+
#~ "Htaccess file is not created. Probably the wrong setting read permissions "
|
353 |
+
#~ "to the files"
|
354 |
+
#~ msgstr ""
|
355 |
+
#~ "Soubor Htaccess nebyl vytvořen! Pravděpodobně jsou špatně nastavena práva "
|
356 |
+
#~ "k zápisu do souboru. "
|
357 |
+
|
358 |
+
#~ msgid ""
|
359 |
+
#~ "Backup file could not be removed! Probably the wrong setting read "
|
360 |
+
#~ "permissions to the files"
|
361 |
+
#~ msgstr ""
|
362 |
+
#~ "Záložní soubor se nepodařilo odstranit! Pravděpodobně jsou špatně "
|
363 |
+
#~ "nastavena práva k zápisu do souboru. "
|
364 |
+
|
365 |
+
#~ msgid "Htaccess file not found!"
|
366 |
+
#~ msgstr "Htaccess soubor nebyl nalezen!"
|
367 |
+
|
368 |
+
#~ msgid "Htaccess file found..."
|
369 |
+
#~ msgstr "Htaccess soubor byl nalezen..."
|
370 |
+
|
371 |
+
#~ msgid "Htaccess file is empty..."
|
372 |
+
#~ msgstr "Htaccess soubor je prázdný..."
|
373 |
+
|
374 |
+
#~ msgid "Htaccess file is not readable, probably does not exist"
|
375 |
+
#~ msgstr "Htaccess soubor nelze přečíst, pravděpodobně neexistuje"
|
376 |
+
|
377 |
+
#~ msgid "URL:"
|
378 |
+
#~ msgstr "Web pluginu:"
|
379 |
|
380 |
+
#~ msgid "Feedback:"
|
381 |
+
#~ msgstr "Hlášení chyb:"
|
lang/default.po
CHANGED
@@ -2,290 +2,397 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Htaccess editor\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date:
|
6 |
-
"PO-Revision-Date:
|
7 |
-
"Last-Translator: Lukenzi <
|
8 |
-
"Language-Team: Lukenzi <
|
|
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"X-Poedit-KeywordsList: _e;__\n"
|
13 |
-
"X-Poedit-Basepath:
|
14 |
"X-Poedit-Language: Czech\n"
|
15 |
"X-Poedit-Country: CZECH REPUBLIC\n"
|
16 |
"X-Poedit-SourceCharset: utf-8\n"
|
17 |
"X-Poedit-SearchPath-0: .\n"
|
18 |
|
19 |
-
#:
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
#: lib/lib.
|
24 |
-
#: lib/lib.
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
#: lib/lib.pages.php:19
|
29 |
-
#: pages/wphe-dashboard.php:18
|
30 |
-
msgid "WP Htaccess Editor"
|
31 |
-
msgstr ""
|
32 |
-
|
33 |
-
#: lib/lib.pages.php:19
|
34 |
-
msgid "Htaccess"
|
35 |
msgstr ""
|
36 |
|
37 |
-
#:
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
#: lib/lib.pages.php:21
|
42 |
msgid "Backup"
|
43 |
-
msgstr ""
|
44 |
|
45 |
#: pages/wphe-backup.php:16
|
46 |
-
msgid "WP Htaccess Editor - Backup"
|
47 |
-
msgstr ""
|
48 |
-
|
49 |
-
#: pages/wphe-backup.php:24
|
50 |
msgid "Unable to restore backup! Probably the wrong setting write permissions to the files."
|
51 |
msgstr ""
|
52 |
|
53 |
-
#: pages/wphe-backup.php:
|
54 |
-
#: pages/wphe-backup.php:
|
55 |
msgid "The backup file is located in the <code>wp-content</code> folder."
|
56 |
msgstr ""
|
57 |
|
58 |
-
#: pages/wphe-backup.php:
|
|
|
59 |
msgid "Backup was restored successfully"
|
60 |
-
msgstr ""
|
61 |
|
62 |
-
#: pages/wphe-backup.php:
|
63 |
msgid "Old backup file was deleted successfully"
|
64 |
msgstr ""
|
65 |
|
66 |
-
#: pages/wphe-backup.php:
|
|
|
67 |
msgid "Unable to restore backup!"
|
68 |
-
msgstr ""
|
69 |
|
70 |
-
#: pages/wphe-backup.php:
|
71 |
msgid "This is contents of the original file, put it into a file manually"
|
72 |
msgstr ""
|
73 |
|
74 |
-
#: pages/wphe-backup.php:
|
75 |
msgid "Backup file was created successfully"
|
76 |
msgstr ""
|
77 |
|
78 |
-
#: pages/wphe-backup.php:
|
79 |
-
|
80 |
-
msgid "Download backup file"
|
81 |
msgstr ""
|
82 |
|
83 |
-
#: pages/wphe-backup.php:
|
84 |
-
|
|
|
|
|
|
|
85 |
msgstr ""
|
86 |
|
87 |
-
#: pages/wphe-backup.php:
|
88 |
msgid "Backup file was successfully removed"
|
89 |
msgstr ""
|
90 |
|
91 |
-
#: pages/wphe-backup.php:
|
92 |
msgid "Backup file could not be removed! Probably the wrong setting write permissions to the files."
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: pages/wphe-backup.php:
|
|
|
96 |
msgid "The backup file was found..."
|
97 |
-
msgstr ""
|
98 |
|
99 |
-
#: pages/wphe-backup.php:
|
|
|
100 |
msgid "Do you want to restore the backup file?"
|
101 |
-
msgstr ""
|
102 |
|
103 |
-
#: pages/wphe-backup.php:
|
|
|
104 |
msgid "Restore backup »"
|
105 |
-
msgstr ""
|
106 |
|
107 |
-
#: pages/wphe-backup.php:
|
|
|
108 |
msgid "Do you want to delete a backup file?"
|
109 |
-
msgstr ""
|
110 |
|
111 |
-
#: pages/wphe-backup.php:
|
112 |
-
#: pages/wphe-dashboard.php:
|
|
|
113 |
msgid "Remove backup »"
|
114 |
-
msgstr ""
|
115 |
|
116 |
-
#: pages/wphe-backup.php:
|
|
|
117 |
msgid "Backup file not found..."
|
118 |
-
msgstr ""
|
119 |
|
120 |
-
#: pages/wphe-backup.php:
|
|
|
121 |
msgid "Do you want to create a new backup file?"
|
122 |
-
msgstr ""
|
123 |
|
124 |
-
#: pages/wphe-backup.php:
|
|
|
125 |
msgid "Create new »"
|
126 |
-
msgstr ""
|
127 |
|
128 |
-
#: pages/wphe-backup.php:
|
129 |
-
#: pages/wphe-dashboard.php:
|
130 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
msgstr ""
|
132 |
|
133 |
#: pages/wphe-backup.php:120
|
134 |
-
#: pages/wphe-dashboard.php:
|
135 |
-
|
136 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
|
138 |
-
#: pages/wphe-dashboard.php:
|
|
|
139 |
msgid "File has been successfully changed"
|
140 |
-
msgstr ""
|
141 |
|
142 |
-
#: pages/wphe-dashboard.php:
|
143 |
-
msgid "You have made changes to the htaccess file. The original file was automatically backed up
|
144 |
msgstr ""
|
145 |
|
146 |
-
#: pages/wphe-dashboard.php:
|
147 |
msgid "Check the functionality of your site (the links to the articles or categories)."
|
148 |
msgstr ""
|
149 |
|
150 |
-
#: pages/wphe-dashboard.php:
|
151 |
-
|
152 |
-
|
|
|
153 |
|
154 |
-
#: pages/wphe-dashboard.php:
|
155 |
msgid "If everything works properly, you can delete the backup file:"
|
156 |
msgstr ""
|
157 |
|
158 |
-
#: pages/wphe-dashboard.php:
|
159 |
-
#: pages/wphe-dashboard.php:
|
|
|
160 |
msgid "or"
|
161 |
-
msgstr ""
|
162 |
|
163 |
-
#: pages/wphe-dashboard.php:
|
|
|
164 |
msgid "restore the original file from backup"
|
165 |
-
msgstr ""
|
166 |
|
167 |
-
#: pages/wphe-dashboard.php:
|
168 |
-
|
169 |
-
|
|
|
|
|
170 |
|
171 |
-
#: pages/wphe-dashboard.php:
|
172 |
-
msgid "Unable to create backup of the original file!
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: pages/wphe-dashboard.php:
|
176 |
-
|
177 |
-
|
|
|
178 |
|
179 |
-
#: pages/wphe-dashboard.php:
|
180 |
msgid "Htaccess file was successfully created."
|
181 |
msgstr ""
|
182 |
|
183 |
-
#: pages/wphe-dashboard.php:
|
184 |
-
|
|
|
|
|
|
|
|
|
|
|
185 |
msgstr ""
|
186 |
|
187 |
-
#: pages/wphe-dashboard.php:
|
188 |
msgid "Backup file has been successfully removed."
|
189 |
msgstr ""
|
190 |
|
191 |
-
#: pages/wphe-dashboard.php:
|
192 |
msgid "Using this editor you can easily modify your htaccess file without having to use an FTP client."
|
193 |
msgstr ""
|
194 |
|
195 |
-
#: pages/wphe-dashboard.php:
|
196 |
msgid "<strong>WARNING:</strong> Any error in this file may cause malfunction of your site!"
|
197 |
msgstr ""
|
198 |
|
199 |
-
#: pages/wphe-dashboard.php:
|
200 |
msgid "Edit htaccess file should therefore be performed only by experienced users!"
|
201 |
msgstr ""
|
202 |
|
203 |
-
#: pages/wphe-dashboard.php:
|
204 |
-
|
205 |
-
|
|
|
206 |
|
207 |
-
#: pages/wphe-dashboard.php:
|
208 |
-
msgid "
|
209 |
msgstr ""
|
210 |
|
211 |
-
#: pages/wphe-dashboard.php:
|
212 |
-
|
213 |
-
msgid "Htaccess file not read!"
|
214 |
msgstr ""
|
215 |
|
216 |
-
#: pages/wphe-dashboard.php:
|
217 |
-
|
218 |
-
|
|
|
219 |
|
220 |
-
#: pages/wphe-dashboard.php:
|
221 |
-
|
222 |
-
|
|
|
223 |
|
224 |
-
#: pages/wphe-dashboard.php:
|
225 |
-
|
|
|
|
|
226 |
msgstr ""
|
|
|
|
|
227 |
|
228 |
-
#: pages/wphe-dashboard.php:
|
229 |
-
|
230 |
-
|
|
|
231 |
|
232 |
-
#: pages/wphe-dashboard.php:
|
233 |
-
|
234 |
-
|
|
|
235 |
|
236 |
-
#: pages/wphe-dashboard.php:
|
237 |
-
|
238 |
-
|
|
|
239 |
|
240 |
-
#: pages/wphe-dashboard.php:
|
241 |
-
|
242 |
-
|
|
|
243 |
|
244 |
-
#:
|
245 |
-
msgid "
|
246 |
msgstr ""
|
247 |
|
248 |
-
#:
|
249 |
-
msgid "
|
250 |
msgstr ""
|
251 |
|
252 |
-
#:
|
253 |
-
|
254 |
-
|
|
|
255 |
|
256 |
-
|
257 |
-
msgid "
|
258 |
-
msgstr ""
|
259 |
|
260 |
-
|
261 |
-
msgid "
|
262 |
-
msgstr ""
|
263 |
|
264 |
-
|
265 |
-
msgid "
|
266 |
-
msgstr ""
|
267 |
|
268 |
-
|
269 |
-
msgid "
|
270 |
-
msgstr ""
|
271 |
|
272 |
-
|
273 |
-
msgid "
|
274 |
-
msgstr ""
|
275 |
|
276 |
-
|
277 |
-
msgid "
|
278 |
-
msgstr ""
|
279 |
|
280 |
-
|
281 |
-
msgid "
|
282 |
-
msgstr ""
|
283 |
|
284 |
-
|
285 |
-
msgid "
|
286 |
-
msgstr ""
|
287 |
|
288 |
-
|
289 |
-
msgid "
|
290 |
-
msgstr ""
|
291 |
|
|
|
|
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Htaccess editor\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2012-08-23 21:25+0100\n"
|
6 |
+
"PO-Revision-Date: 2012-08-23 21:26+0100\n"
|
7 |
+
"Last-Translator: Lukenzi <lukenzi@gmail.com>\n"
|
8 |
+
"Language-Team: Lukenzi <lukenzi@gmail.com>\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 |
"X-Poedit-KeywordsList: _e;__\n"
|
14 |
+
"X-Poedit-Basepath: /opt/lampp/htdocs/wordpress/wp-content/plugins/wp-htaccess-editor/\n"
|
15 |
"X-Poedit-Language: Czech\n"
|
16 |
"X-Poedit-Country: CZECH REPUBLIC\n"
|
17 |
"X-Poedit-SourceCharset: utf-8\n"
|
18 |
"X-Poedit-SearchPath-0: .\n"
|
19 |
|
20 |
+
#: wp-htaccess-editor.php:77
|
21 |
+
#: wp-htaccess-editor.php:81
|
22 |
+
#: wp-htaccess-editor.php:85
|
23 |
+
#: wp-htaccess-editor.php:90
|
24 |
+
#: lib/lib.pages.php:31
|
25 |
+
#: lib/lib.pages.php:38
|
26 |
+
#: lib/lib.pages.php:45
|
27 |
+
msgid "Fatal error: Plugin <strong>WP Htaccess Editor</strong> is corrupted"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
msgstr ""
|
29 |
|
30 |
+
#: pages/wphe-backup.php:7
|
31 |
+
#: lib/lib.pages.php:11
|
32 |
+
#, fuzzy
|
|
|
|
|
33 |
msgid "Backup"
|
34 |
+
msgstr "Záložní"
|
35 |
|
36 |
#: pages/wphe-backup.php:16
|
|
|
|
|
|
|
|
|
37 |
msgid "Unable to restore backup! Probably the wrong setting write permissions to the files."
|
38 |
msgstr ""
|
39 |
|
40 |
+
#: pages/wphe-backup.php:18
|
41 |
+
#: pages/wphe-backup.php:38
|
42 |
msgid "The backup file is located in the <code>wp-content</code> folder."
|
43 |
msgstr ""
|
44 |
|
45 |
+
#: pages/wphe-backup.php:22
|
46 |
+
#, fuzzy
|
47 |
msgid "Backup was restored successfully"
|
48 |
+
msgstr "<b>{0}</b> z <b>{1}</b> lepicí poznámky bylo úspěšně importováno."
|
49 |
|
50 |
+
#: pages/wphe-backup.php:23
|
51 |
msgid "Old backup file was deleted successfully"
|
52 |
msgstr ""
|
53 |
|
54 |
+
#: pages/wphe-backup.php:26
|
55 |
+
#, fuzzy
|
56 |
msgid "Unable to restore backup!"
|
57 |
+
msgstr "nelze obnovit záložní verzi „%.250s“"
|
58 |
|
59 |
+
#: pages/wphe-backup.php:28
|
60 |
msgid "This is contents of the original file, put it into a file manually"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: pages/wphe-backup.php:36
|
64 |
msgid "Backup file was created successfully"
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: pages/wphe-backup.php:41
|
68 |
+
msgid "Unable to create backup! <code>wp-content</code> folder is not writeable! Change the permissions this folder manually!"
|
|
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: pages/wphe-backup.php:42
|
72 |
+
#: pages/wphe-backup.php:52
|
73 |
+
#: pages/wphe-dashboard.php:31
|
74 |
+
#: pages/wphe-dashboard.php:43
|
75 |
+
msgid "Due to server configuration can not change permissions on files or create new files"
|
76 |
msgstr ""
|
77 |
|
78 |
+
#: pages/wphe-backup.php:49
|
79 |
msgid "Backup file was successfully removed"
|
80 |
msgstr ""
|
81 |
|
82 |
+
#: pages/wphe-backup.php:51
|
83 |
msgid "Backup file could not be removed! Probably the wrong setting write permissions to the files."
|
84 |
msgstr ""
|
85 |
|
86 |
+
#: pages/wphe-backup.php:59
|
87 |
+
#, fuzzy
|
88 |
msgid "The backup file was found..."
|
89 |
+
msgstr "Soubor s nastavením „%s“ nebyl nalezen: %s"
|
90 |
|
91 |
+
#: pages/wphe-backup.php:66
|
92 |
+
#, fuzzy
|
93 |
msgid "Do you want to restore the backup file?"
|
94 |
+
msgstr "Chcete nahradit stávající soubor?"
|
95 |
|
96 |
+
#: pages/wphe-backup.php:66
|
97 |
+
#, fuzzy
|
98 |
msgid "Restore backup »"
|
99 |
+
msgstr "Odhlásit se »"
|
100 |
|
101 |
+
#: pages/wphe-backup.php:75
|
102 |
+
#, fuzzy
|
103 |
msgid "Do you want to delete a backup file?"
|
104 |
+
msgstr "Chcete nahradit stávající soubor?"
|
105 |
|
106 |
+
#: pages/wphe-backup.php:75
|
107 |
+
#: pages/wphe-dashboard.php:25
|
108 |
+
#, fuzzy
|
109 |
msgid "Remove backup »"
|
110 |
+
msgstr "Při zavření odst_ranit záložní soubor"
|
111 |
|
112 |
+
#: pages/wphe-backup.php:81
|
113 |
+
#, fuzzy
|
114 |
msgid "Backup file not found..."
|
115 |
+
msgstr "Soubor s nastavením „%s“ nebyl nalezen: %s"
|
116 |
|
117 |
+
#: pages/wphe-backup.php:89
|
118 |
+
#, fuzzy
|
119 |
msgid "Do you want to create a new backup file?"
|
120 |
+
msgstr "Chcete vytvořit nový archiv s těmito soubory?"
|
121 |
|
122 |
+
#: pages/wphe-backup.php:89
|
123 |
+
#, fuzzy
|
124 |
msgid "Create new »"
|
125 |
+
msgstr "Vytvořit nový web"
|
126 |
|
127 |
+
#: pages/wphe-backup.php:98
|
128 |
+
#: pages/wphe-dashboard.php:129
|
129 |
+
#, fuzzy
|
130 |
+
msgid "Information about this plugin"
|
131 |
+
msgstr "Zobrazit informace o aplikaci gthumb"
|
132 |
+
|
133 |
+
#: pages/wphe-backup.php:100
|
134 |
+
#: pages/wphe-dashboard.php:131
|
135 |
+
#, fuzzy
|
136 |
+
msgid "Author"
|
137 |
+
msgstr "Autor"
|
138 |
+
|
139 |
+
#: pages/wphe-backup.php:104
|
140 |
+
#: pages/wphe-dashboard.php:135
|
141 |
+
#, fuzzy
|
142 |
+
msgid "Translators"
|
143 |
+
msgstr "Česká lokalizace"
|
144 |
+
|
145 |
+
#: pages/wphe-backup.php:111
|
146 |
+
#: pages/wphe-dashboard.php:142
|
147 |
+
#, fuzzy
|
148 |
+
msgid "Plugin"
|
149 |
+
msgstr "Plugin"
|
150 |
+
|
151 |
+
#: pages/wphe-backup.php:113
|
152 |
+
#: pages/wphe-dashboard.php:144
|
153 |
+
#, fuzzy
|
154 |
+
msgid "Version:"
|
155 |
+
msgstr "Verze:"
|
156 |
+
|
157 |
+
#: pages/wphe-backup.php:114
|
158 |
+
#: pages/wphe-dashboard.php:145
|
159 |
+
#, fuzzy
|
160 |
+
msgid "Plugin homepage:"
|
161 |
+
msgstr "Domácí stránka pluginu »"
|
162 |
+
|
163 |
+
#: pages/wphe-backup.php:114
|
164 |
+
#: pages/wphe-dashboard.php:145
|
165 |
+
#, fuzzy
|
166 |
+
msgid "WordPress repository"
|
167 |
+
msgstr "Přid_at zdroj"
|
168 |
+
|
169 |
+
#: pages/wphe-backup.php:115
|
170 |
+
#: pages/wphe-dashboard.php:146
|
171 |
+
#, fuzzy
|
172 |
+
msgid "Support:"
|
173 |
+
msgstr "Fórum podpory"
|
174 |
+
|
175 |
+
#: pages/wphe-backup.php:115
|
176 |
+
#: pages/wphe-dashboard.php:146
|
177 |
+
#, fuzzy
|
178 |
+
msgid "Forum"
|
179 |
+
msgstr "Online fórum..."
|
180 |
+
|
181 |
+
#: pages/wphe-backup.php:116
|
182 |
+
#: pages/wphe-dashboard.php:147
|
183 |
+
#, fuzzy
|
184 |
+
msgid "Support for the development:"
|
185 |
+
msgstr "Nástroje na vývoj softwaru"
|
186 |
+
|
187 |
+
#: pages/wphe-backup.php:116
|
188 |
+
#: pages/wphe-backup.php:127
|
189 |
+
#: pages/wphe-dashboard.php:147
|
190 |
+
#: pages/wphe-dashboard.php:158
|
191 |
+
#: lib/lib.ad.php:20
|
192 |
+
msgid "Donate"
|
193 |
msgstr ""
|
194 |
|
195 |
#: pages/wphe-backup.php:120
|
196 |
+
#: pages/wphe-dashboard.php:151
|
197 |
+
#, fuzzy
|
198 |
+
msgid "Other plugins"
|
199 |
+
msgstr "Instalace pluginů"
|
200 |
+
|
201 |
+
#: pages/wphe-backup.php:122
|
202 |
+
#: pages/wphe-dashboard.php:153
|
203 |
+
#, fuzzy
|
204 |
+
msgid "System Files Editor"
|
205 |
+
msgstr "Editor systému nastavení MateConf."
|
206 |
+
|
207 |
+
#: pages/wphe-backup.php:123
|
208 |
+
#: pages/wphe-dashboard.php:154
|
209 |
+
#, fuzzy
|
210 |
+
msgid "Czech support for WordPress"
|
211 |
+
msgstr "http://www.separatista.net/forum/"
|
212 |
+
|
213 |
+
#: pages/wphe-backup.php:142
|
214 |
+
#: pages/wphe-dashboard.php:174
|
215 |
+
#, fuzzy
|
216 |
+
msgid "You do not have permission to view this page"
|
217 |
+
msgstr "Nemáte dostatečné oprávnění pro úpravy tohoto uživatele."
|
218 |
|
219 |
+
#: pages/wphe-dashboard.php:17
|
220 |
+
#, fuzzy
|
221 |
msgid "File has been successfully changed"
|
222 |
+
msgstr "Dříve otevřený soubor byl změněn."
|
223 |
|
224 |
+
#: pages/wphe-dashboard.php:19
|
225 |
+
msgid "You have made changes to the htaccess file. The original file was automatically backed up (in <code>wp-content</code> folder)"
|
226 |
msgstr ""
|
227 |
|
228 |
+
#: pages/wphe-dashboard.php:20
|
229 |
msgid "Check the functionality of your site (the links to the articles or categories)."
|
230 |
msgstr ""
|
231 |
|
232 |
+
#: pages/wphe-dashboard.php:20
|
233 |
+
#, fuzzy
|
234 |
+
msgid "If something is not working properly restore the original file from backup"
|
235 |
+
msgstr "Ze zálohy nelze obnovit nastavení displeje"
|
236 |
|
237 |
+
#: pages/wphe-dashboard.php:25
|
238 |
msgid "If everything works properly, you can delete the backup file:"
|
239 |
msgstr ""
|
240 |
|
241 |
+
#: pages/wphe-dashboard.php:25
|
242 |
+
#: pages/wphe-dashboard.php:66
|
243 |
+
#, fuzzy
|
244 |
msgid "or"
|
245 |
+
msgstr "nebo"
|
246 |
|
247 |
+
#: pages/wphe-dashboard.php:25
|
248 |
+
#, fuzzy
|
249 |
msgid "restore the original file from backup"
|
250 |
+
msgstr "Ze zálohy nelze obnovit nastavení displeje"
|
251 |
|
252 |
+
#: pages/wphe-dashboard.php:30
|
253 |
+
#: pages/wphe-dashboard.php:34
|
254 |
+
#, fuzzy
|
255 |
+
msgid "The file could not be saved!"
|
256 |
+
msgstr "Soubor s nastaveními nemohl být uložen"
|
257 |
|
258 |
+
#: pages/wphe-dashboard.php:35
|
259 |
+
msgid "Unable to create backup of the original file! <code>wp-content</code> folder is not writeable! Change the permissions this folder!"
|
260 |
msgstr ""
|
261 |
|
262 |
+
#: pages/wphe-dashboard.php:42
|
263 |
+
#, fuzzy
|
264 |
+
msgid "Htaccess file is not created."
|
265 |
+
msgstr "Soubor není platným souborem .desktop"
|
266 |
|
267 |
+
#: pages/wphe-dashboard.php:45
|
268 |
msgid "Htaccess file was successfully created."
|
269 |
msgstr ""
|
270 |
|
271 |
+
#: pages/wphe-dashboard.php:46
|
272 |
+
#, fuzzy
|
273 |
+
msgid "View new Htaccess file"
|
274 |
+
msgstr "_Uložit nový soubor jako:"
|
275 |
+
|
276 |
+
#: pages/wphe-dashboard.php:53
|
277 |
+
msgid "Backup file could not be removed! <code>wp-content</code> folder is not writeable! Change the permissions this folder!"
|
278 |
msgstr ""
|
279 |
|
280 |
+
#: pages/wphe-dashboard.php:55
|
281 |
msgid "Backup file has been successfully removed."
|
282 |
msgstr ""
|
283 |
|
284 |
+
#: pages/wphe-dashboard.php:60
|
285 |
msgid "Using this editor you can easily modify your htaccess file without having to use an FTP client."
|
286 |
msgstr ""
|
287 |
|
288 |
+
#: pages/wphe-dashboard.php:61
|
289 |
msgid "<strong>WARNING:</strong> Any error in this file may cause malfunction of your site!"
|
290 |
msgstr ""
|
291 |
|
292 |
+
#: pages/wphe-dashboard.php:62
|
293 |
msgid "Edit htaccess file should therefore be performed only by experienced users!"
|
294 |
msgstr ""
|
295 |
|
296 |
+
#: pages/wphe-dashboard.php:65
|
297 |
+
#, fuzzy
|
298 |
+
msgid "Information for editing htaccess file"
|
299 |
+
msgstr "Nemohu získat informace o souboru '%s': %s"
|
300 |
|
301 |
+
#: pages/wphe-dashboard.php:66
|
302 |
+
msgid "For more information on possible adjustments to this file, please visit"
|
303 |
msgstr ""
|
304 |
|
305 |
+
#: pages/wphe-dashboard.php:67
|
306 |
+
msgid "Interesting tips and guides can also be found on "
|
|
|
307 |
msgstr ""
|
308 |
|
309 |
+
#: pages/wphe-dashboard.php:68
|
310 |
+
#, fuzzy
|
311 |
+
msgid "Or use the Google search."
|
312 |
+
msgstr "Vyhledat <i>%(name)s</i> pomocí <b>Google</b>"
|
313 |
|
314 |
+
#: pages/wphe-dashboard.php:74
|
315 |
+
#, fuzzy
|
316 |
+
msgid "Htaccess file does not exists!"
|
317 |
+
msgstr "Plugin neexistuje."
|
318 |
|
319 |
+
#: pages/wphe-dashboard.php:82
|
320 |
+
#: pages/wphe-dashboard.php:91
|
321 |
+
#, fuzzy
|
322 |
+
msgid "Htaccess file cannot read!"
|
323 |
msgstr ""
|
324 |
+
"Nemůžu přečíst zvkukový soubor:\n"
|
325 |
+
"%s"
|
326 |
|
327 |
+
#: pages/wphe-dashboard.php:106
|
328 |
+
#, fuzzy
|
329 |
+
msgid "Content of the Htaccess file"
|
330 |
+
msgstr "Chyba při čtení obsahu souboru '%s'"
|
331 |
|
332 |
+
#: pages/wphe-dashboard.php:108
|
333 |
+
#, fuzzy
|
334 |
+
msgid "Save file »"
|
335 |
+
msgstr "Uložit aktuální soubor"
|
336 |
|
337 |
+
#: pages/wphe-dashboard.php:119
|
338 |
+
#, fuzzy
|
339 |
+
msgid "Create new <code>.htaccess</code> file?"
|
340 |
+
msgstr "Vytvořit nový soubor ze šablony"
|
341 |
|
342 |
+
#: pages/wphe-dashboard.php:119
|
343 |
+
#, fuzzy
|
344 |
+
msgid "Create »"
|
345 |
+
msgstr "Další »"
|
346 |
|
347 |
+
#: lib/lib.wp-files.php:10
|
348 |
+
msgid "Plugin WP Htaccess Editor Error: File \"/wp-includes/pluggable.php\" does not exists!"
|
349 |
msgstr ""
|
350 |
|
351 |
+
#: lib/lib.wp-files.php:18
|
352 |
+
msgid "Plugin WP Htaccess Editor Error: File \"/wp-includes/capabilities.php\" does not exists!"
|
353 |
msgstr ""
|
354 |
|
355 |
+
#: lib/lib.ad.php:7
|
356 |
+
#, fuzzy
|
357 |
+
msgid "Plugin homepage"
|
358 |
+
msgstr "Domácí stránka pluginu »"
|
359 |
|
360 |
+
#, fuzzy
|
361 |
+
#~ msgid "Unlimited hosting WEDOS"
|
362 |
+
#~ msgstr "Zadejte 0 pro neomezenou rychlost."
|
363 |
|
364 |
+
#, fuzzy
|
365 |
+
#~ msgid "WP Htaccess Editor"
|
366 |
+
#~ msgstr "Modernizované API pro editor"
|
367 |
|
368 |
+
#, fuzzy
|
369 |
+
#~ msgid "Htaccess Editor"
|
370 |
+
#~ msgstr "Stylování vizuálního editoru"
|
371 |
|
372 |
+
#, fuzzy
|
373 |
+
#~ msgid "Download backup file"
|
374 |
+
#~ msgstr "Nezdařila se záloha souboru"
|
375 |
|
376 |
+
#, fuzzy
|
377 |
+
#~ msgid "Access denied"
|
378 |
+
#~ msgstr "Přístup zamítnut"
|
379 |
|
380 |
+
#, fuzzy
|
381 |
+
#~ msgid "Htaccess file not found!"
|
382 |
+
#~ msgstr "Soubor s nastavením „%s“ nebyl nalezen: %s"
|
383 |
|
384 |
+
#, fuzzy
|
385 |
+
#~ msgid "Htaccess file found..."
|
386 |
+
#~ msgstr "Soubor nebyl nalezen"
|
387 |
|
388 |
+
#, fuzzy
|
389 |
+
#~ msgid "Htaccess file is empty..."
|
390 |
+
#~ msgstr "Soubor s nastavením „%s“ je prázdný"
|
391 |
|
392 |
+
#, fuzzy
|
393 |
+
#~ msgid "URL:"
|
394 |
+
#~ msgstr "URL:"
|
395 |
|
396 |
+
#, fuzzy
|
397 |
+
#~ msgid "Feedback:"
|
398 |
+
#~ msgstr "Přání a stížnosti"
|
lang/index.php
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
header('Location: ../../');
|
3 |
+
exit();
|
4 |
+
?>
|
lib/index.php
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
header('Location: ../../');
|
3 |
+
exit();
|
4 |
+
?>
|
lib/lib.ad.php
CHANGED
@@ -1,32 +1,21 @@
|
|
1 |
<?php
|
2 |
-
if (!defined('ABSPATH')) die();
|
3 |
|
4 |
/*** funkce pro zobrazení odkazu na domovskou stránku pluginu ***/
|
5 |
function WPHE_PluginLink()
|
6 |
{
|
7 |
-
echo '<a class="plugin-link" href="http://
|
8 |
}
|
9 |
|
10 |
/*** funkce pro zobrazení odkazu na domovskou stránku autora ***/
|
11 |
function WPHE_AuthorLink()
|
12 |
{
|
13 |
-
echo '<a class="author-link" href="http://
|
14 |
}
|
15 |
|
16 |
-
/*** funkce pro zobrazení reklamního banneru ***/
|
17 |
-
function WPHE_ViewAdBanner()
|
18 |
-
{
|
19 |
-
global $WPHE_dirurl;
|
20 |
-
$id = rand(1,3);
|
21 |
-
echo '<a class="wedos-img" href="http://hosting.wedos.com/d/65832" title="'.__('Unlimited hosting WEDOS','wphe').'" target="_blank"><img src="'.$WPHE_dirurl.'style/img/'.$id.'.gif" alt="'.__('Unlimited hosting WEDOS','wphe').'" border="0" /></a>';
|
22 |
-
unset($id);
|
23 |
-
unset($WPHE_dirurl);
|
24 |
-
}
|
25 |
|
26 |
-
/*** funkce pro zobrazení
|
27 |
-
function
|
28 |
{
|
29 |
-
echo '<a class="
|
30 |
}
|
31 |
-
|
32 |
-
?>
|
1 |
<?php
|
2 |
+
if (!defined('ABSPATH')) die('You do not have sufficient permissions to access this file.');
|
3 |
|
4 |
/*** funkce pro zobrazení odkazu na domovskou stránku pluginu ***/
|
5 |
function WPHE_PluginLink()
|
6 |
{
|
7 |
+
echo '<a class="plugin-link" href="http://wp-blog.cz/101-plugin-wp-htaccess-editor/" title="'.__('Plugin homepage','wphe').'" target="_blank">'.__('Plugin homepage','wphe').'</a>';
|
8 |
}
|
9 |
|
10 |
/*** funkce pro zobrazení odkazu na domovskou stránku autora ***/
|
11 |
function WPHE_AuthorLink()
|
12 |
{
|
13 |
+
echo '<a class="author-link" href="http://wp-blog.cz/" target="_blank">WP-blog.cz</a>';
|
14 |
}
|
15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
+
/*** funkce pro zobrazení odkazu na příspěvky autorovi ***/
|
18 |
+
function WPHE_DonateLink()
|
19 |
{
|
20 |
+
echo '<a class="author-link" href="http://wp-blog.cz/projekty/" target="_blank">'.__('Donate', 'wphe').'</a>';
|
21 |
}
|
|
|
|
lib/lib.debug.php
DELETED
@@ -1,34 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if (!defined('ABSPATH')) die();
|
3 |
-
|
4 |
-
/*** Zjištění aktuálního využití paměti pluginem ***/
|
5 |
-
function WPHE_GetMemory()
|
6 |
-
{
|
7 |
-
global $WPHE_mem_start, $WPHE_mem_end;
|
8 |
-
|
9 |
-
$WPHE_mem_plugin = $WPHE_mem_end - $WPHE_mem_start;
|
10 |
-
$WPHE_mem_plugin = WPHE_ConvertMemory($WPHE_mem_plugin);
|
11 |
-
|
12 |
-
return $WPHE_mem_plugin;
|
13 |
-
}
|
14 |
-
|
15 |
-
/*** Převod hodnot do visuální podoby ***/
|
16 |
-
function WPHE_ConvertMemory($mem)
|
17 |
-
{
|
18 |
-
$unit = array('</td><td>b','</td><td>Kb','</td><td>Mb');
|
19 |
-
$WPHE_result = @round($mem/pow(1024,($i = floor(log($mem,1024)))),2).' '.$unit[$i];
|
20 |
-
unset($mem);
|
21 |
-
unset($unit);
|
22 |
-
unset($i);
|
23 |
-
|
24 |
-
return $WPHE_result;
|
25 |
-
}
|
26 |
-
|
27 |
-
/*** Zobrazení debug panelu ***/
|
28 |
-
function WPHE_DebugPanel($mem,$peak)
|
29 |
-
{
|
30 |
-
?><div class="wphe-debug-panel"><?php
|
31 |
-
echo '<strong>Memory usage:</strong><br /><span class="wphe-white"><table><tr><td>Plugin:</td><td class="wphe-lime">'.WPHE_GetMemory().'</td></tr><tr><td>Total:</td><td class="wphe-lime">'.WPHE_ConvertMemory($mem).'</td></tr><tr><td>Max:</td><td class="wphe-lime">'.WPHE_ConvertMemory($peak).'</td></tr></table></span>';
|
32 |
-
?></div><?php
|
33 |
-
}
|
34 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/lib.functions.php
CHANGED
@@ -1,22 +1,26 @@
|
|
1 |
<?php
|
2 |
-
if (!defined('ABSPATH')) die();
|
3 |
|
4 |
-
|
5 |
-
|
|
|
|
|
6 |
$WPHE_backup_path = ABSPATH.'wp-content/htaccess.backup';
|
7 |
$WPHE_orig_path = ABSPATH.'.htaccess';
|
8 |
-
|
9 |
-
|
10 |
-
|
|
|
|
|
11 |
WPHE_DeleteBackup();
|
12 |
-
|
13 |
-
{
|
14 |
-
$htaccess_content_orig = file_get_contents($WPHE_orig_path, false, NULL);
|
15 |
$htaccess_content_orig = trim($htaccess_content_orig);
|
16 |
$htaccess_content_orig = str_replace('\\\\', '\\', $htaccess_content_orig);
|
17 |
$htaccess_content_orig = str_replace('\"', '"', $htaccess_content_orig);
|
18 |
@chmod($WPHE_backup_path, 0666);
|
19 |
-
$WPHE_success = file_put_contents($WPHE_backup_path, $htaccess_content_orig, LOCK_EX);
|
20 |
if($WPHE_success === false)
|
21 |
{
|
22 |
unset($WPHE_backup_path);
|
@@ -38,16 +42,14 @@ function WPHE_CreateBackup()
|
|
38 |
return false;
|
39 |
}
|
40 |
}else{
|
41 |
-
if(file_exists(ABSPATH.'.htaccess'))
|
42 |
-
|
43 |
-
$htaccess_content_orig = file_get_contents($WPHE_orig_path, false, NULL);
|
44 |
$htaccess_content_orig = trim($htaccess_content_orig);
|
45 |
$htaccess_content_orig = str_replace('\\\\', '\\', $htaccess_content_orig);
|
46 |
$htaccess_content_orig = str_replace('\"', '"', $htaccess_content_orig);
|
47 |
@chmod($WPHE_backup_path, 0666);
|
48 |
-
$WPHE_success = file_put_contents($WPHE_backup_path, $htaccess_content_orig, LOCK_EX);
|
49 |
-
if($WPHE_success === false)
|
50 |
-
{
|
51 |
unset($WPHE_backup_path);
|
52 |
unset($WPHE_orig_path);
|
53 |
unset($htaccess_content_orig);
|
@@ -69,30 +71,80 @@ function WPHE_CreateBackup()
|
|
69 |
}
|
70 |
}
|
71 |
|
72 |
-
|
73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
$wphe_backup_path = ABSPATH.'wp-content/htaccess.backup';
|
75 |
$WPHE_orig_path = ABSPATH.'.htaccess';
|
|
|
76 |
|
77 |
-
if(!file_exists($wphe_backup_path))
|
78 |
-
{
|
79 |
unset($wphe_backup_path);
|
80 |
unset($WPHE_orig_path);
|
81 |
return false;
|
82 |
}else{
|
83 |
-
if(file_exists($WPHE_orig_path))
|
84 |
-
|
85 |
-
if(is_writable($WPHE_orig_path))
|
86 |
-
{
|
87 |
@unlink($WPHE_orig_path);
|
88 |
}else{
|
89 |
@chmod($WPHE_orig_path, 0666);
|
90 |
@unlink($WPHE_orig_path);
|
91 |
}
|
92 |
}
|
93 |
-
$wphe_htaccess_content_backup = file_get_contents($wphe_backup_path, false, NULL);
|
94 |
-
if(WPHE_WriteNewHtaccess($wphe_htaccess_content_backup)
|
95 |
-
{
|
96 |
unset($wphe_success);
|
97 |
unset($WPHE_orig_path);
|
98 |
unset($wphe_backup_path);
|
@@ -108,39 +160,43 @@ function WPHE_RestoreBackup()
|
|
108 |
}
|
109 |
}
|
110 |
|
111 |
-
|
112 |
-
|
|
|
|
|
113 |
$wphe_backup_path = ABSPATH.'wp-content/htaccess.backup';
|
114 |
-
|
115 |
-
|
116 |
-
{
|
117 |
-
if(is_writable($wphe_backup_path))
|
118 |
-
{
|
119 |
@unlink($wphe_backup_path);
|
120 |
}else{
|
121 |
@chmod($wphe_backup_path, 0666);
|
122 |
@unlink($wphe_backup_path);
|
123 |
}
|
124 |
-
|
125 |
-
|
126 |
-
|
|
|
127 |
unset($wphe_backup_path);
|
128 |
return false;
|
129 |
}else{
|
130 |
unset($wphe_backup_path);
|
131 |
return true;
|
132 |
}
|
133 |
-
}else
|
134 |
-
{
|
135 |
unset($wphe_backup_path);
|
136 |
return true;
|
137 |
}
|
138 |
}
|
139 |
|
140 |
-
|
141 |
-
|
|
|
|
|
142 |
$WPHE_orig_path = ABSPATH.'.htaccess';
|
143 |
-
|
|
|
144 |
if(file_exists($WPHE_orig_path))
|
145 |
{
|
146 |
if(is_writable($WPHE_orig_path))
|
@@ -154,7 +210,8 @@ function WPHE_WriteNewHtaccess($WPHE_new_content)
|
|
154 |
$WPHE_new_content = trim($WPHE_new_content);
|
155 |
$WPHE_new_content = str_replace('\\\\', '\\', $WPHE_new_content);
|
156 |
$WPHE_new_content = str_replace('\"', '"', $WPHE_new_content);
|
157 |
-
$WPHE_write_success = file_put_contents($WPHE_orig_path, $WPHE_new_content, LOCK_EX);
|
|
|
158 |
if(!file_exists($WPHE_orig_path) && $WPHE_write_success === false)
|
159 |
{
|
160 |
unset($WPHE_orig_path);
|
@@ -168,4 +225,12 @@ function WPHE_WriteNewHtaccess($WPHE_new_content)
|
|
168 |
return true;
|
169 |
}
|
170 |
}
|
171 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
+
if (!defined('ABSPATH')) die('You do not have sufficient permissions to access this file.');
|
3 |
|
4 |
+
|
5 |
+
|
6 |
+
/***** Vytvoření zálohy htaccess souboru ******************************/
|
7 |
+
function WPHE_CreateBackup(){
|
8 |
$WPHE_backup_path = ABSPATH.'wp-content/htaccess.backup';
|
9 |
$WPHE_orig_path = ABSPATH.'.htaccess';
|
10 |
+
@clearstatcache();
|
11 |
+
|
12 |
+
WPHE_CreateSecureWPcontent();
|
13 |
+
|
14 |
+
if(file_exists($WPHE_backup_path)){
|
15 |
WPHE_DeleteBackup();
|
16 |
+
|
17 |
+
if(file_exists(ABSPATH.'.htaccess')){
|
18 |
+
$htaccess_content_orig = @file_get_contents($WPHE_orig_path, false, NULL);
|
19 |
$htaccess_content_orig = trim($htaccess_content_orig);
|
20 |
$htaccess_content_orig = str_replace('\\\\', '\\', $htaccess_content_orig);
|
21 |
$htaccess_content_orig = str_replace('\"', '"', $htaccess_content_orig);
|
22 |
@chmod($WPHE_backup_path, 0666);
|
23 |
+
$WPHE_success = @file_put_contents($WPHE_backup_path, $htaccess_content_orig, LOCK_EX);
|
24 |
if($WPHE_success === false)
|
25 |
{
|
26 |
unset($WPHE_backup_path);
|
42 |
return false;
|
43 |
}
|
44 |
}else{
|
45 |
+
if(file_exists(ABSPATH.'.htaccess')){
|
46 |
+
$htaccess_content_orig = @file_get_contents($WPHE_orig_path, false, NULL);
|
|
|
47 |
$htaccess_content_orig = trim($htaccess_content_orig);
|
48 |
$htaccess_content_orig = str_replace('\\\\', '\\', $htaccess_content_orig);
|
49 |
$htaccess_content_orig = str_replace('\"', '"', $htaccess_content_orig);
|
50 |
@chmod($WPHE_backup_path, 0666);
|
51 |
+
$WPHE_success = @file_put_contents($WPHE_backup_path, $htaccess_content_orig, LOCK_EX);
|
52 |
+
if($WPHE_success === false){
|
|
|
53 |
unset($WPHE_backup_path);
|
54 |
unset($WPHE_orig_path);
|
55 |
unset($htaccess_content_orig);
|
71 |
}
|
72 |
}
|
73 |
|
74 |
+
|
75 |
+
|
76 |
+
/***** Vytvoření htaccess souboru ve složce wp-content ****************/
|
77 |
+
function WPHE_CreateSecureWPcontent(){
|
78 |
+
$wphe_secure_path = ABSPATH.'wp-content/.htaccess';
|
79 |
+
$wphe_secure_text = '
|
80 |
+
# WP Htaccess Editor - Secure backups
|
81 |
+
<files htaccess.backup>
|
82 |
+
order allow,deny
|
83 |
+
deny from all
|
84 |
+
</files>
|
85 |
+
';
|
86 |
+
|
87 |
+
if(is_readable(ABSPATH.'wp-content/.htaccess')){
|
88 |
+
$wphe_secure_content = @file_get_contents(ABSPATH.'wp-content/.htaccess');
|
89 |
+
|
90 |
+
if($wphe_secure_content !== false){
|
91 |
+
if(strpos($wphe_secure_content, 'Secure backups') === false){
|
92 |
+
unset($wphe_secure_content);
|
93 |
+
$wphe_create_sec = @file_put_contents(ABSPATH.'wp-content/.htaccess', $wphe_secure_text, FILE_APPEND|LOCK_EX);
|
94 |
+
if($wphe_create_sec !== false){
|
95 |
+
unset($wphe_secure_text);
|
96 |
+
unset($wphe_create_sec);
|
97 |
+
return true;
|
98 |
+
}else{
|
99 |
+
unset($wphe_secure_text);
|
100 |
+
unset($wphe_create_sec);
|
101 |
+
return false;
|
102 |
+
}
|
103 |
+
}else{
|
104 |
+
unset($wphe_secure_content);
|
105 |
+
return true;
|
106 |
+
}
|
107 |
+
}else{
|
108 |
+
unset($wphe_secure_content);
|
109 |
+
return false;
|
110 |
+
}
|
111 |
+
}else{
|
112 |
+
if(file_exists(ABSPATH.'wp-content/.htaccess')){
|
113 |
+
return false;
|
114 |
+
}else{
|
115 |
+
$wphe_create_sec = @file_put_contents(ABSPATH.'wp-content/.htaccess', $wphe_secure_text, LOCK_EX);
|
116 |
+
if($wphe_create_sec !== false){
|
117 |
+
return true;
|
118 |
+
}else{
|
119 |
+
return false;
|
120 |
+
}
|
121 |
+
}
|
122 |
+
}
|
123 |
+
}
|
124 |
+
|
125 |
+
|
126 |
+
|
127 |
+
/***** Obnova zálohy htaccess souboru *********************************/
|
128 |
+
function WPHE_RestoreBackup(){
|
129 |
$wphe_backup_path = ABSPATH.'wp-content/htaccess.backup';
|
130 |
$WPHE_orig_path = ABSPATH.'.htaccess';
|
131 |
+
@clearstatcache();
|
132 |
|
133 |
+
if(!file_exists($wphe_backup_path)){
|
|
|
134 |
unset($wphe_backup_path);
|
135 |
unset($WPHE_orig_path);
|
136 |
return false;
|
137 |
}else{
|
138 |
+
if(file_exists($WPHE_orig_path)){
|
139 |
+
if(is_writable($WPHE_orig_path)){
|
|
|
|
|
140 |
@unlink($WPHE_orig_path);
|
141 |
}else{
|
142 |
@chmod($WPHE_orig_path, 0666);
|
143 |
@unlink($WPHE_orig_path);
|
144 |
}
|
145 |
}
|
146 |
+
$wphe_htaccess_content_backup = @file_get_contents($wphe_backup_path, false, NULL);
|
147 |
+
if(WPHE_WriteNewHtaccess($wphe_htaccess_content_backup) === false){
|
|
|
148 |
unset($wphe_success);
|
149 |
unset($WPHE_orig_path);
|
150 |
unset($wphe_backup_path);
|
160 |
}
|
161 |
}
|
162 |
|
163 |
+
|
164 |
+
|
165 |
+
/***** Smazání záložního souboru **************************************/
|
166 |
+
function WPHE_DeleteBackup(){
|
167 |
$wphe_backup_path = ABSPATH.'wp-content/htaccess.backup';
|
168 |
+
@clearstatcache();
|
169 |
+
|
170 |
+
if(file_exists($wphe_backup_path)){
|
171 |
+
if(is_writable($wphe_backup_path)){
|
|
|
172 |
@unlink($wphe_backup_path);
|
173 |
}else{
|
174 |
@chmod($wphe_backup_path, 0666);
|
175 |
@unlink($wphe_backup_path);
|
176 |
}
|
177 |
+
|
178 |
+
@clearstatcache();
|
179 |
+
|
180 |
+
if(file_exists($wphe_backup_path)){
|
181 |
unset($wphe_backup_path);
|
182 |
return false;
|
183 |
}else{
|
184 |
unset($wphe_backup_path);
|
185 |
return true;
|
186 |
}
|
187 |
+
}else{
|
|
|
188 |
unset($wphe_backup_path);
|
189 |
return true;
|
190 |
}
|
191 |
}
|
192 |
|
193 |
+
|
194 |
+
|
195 |
+
/***** Vytvoření nového htaccess souboru ******************************/
|
196 |
+
function WPHE_WriteNewHtaccess($WPHE_new_content){
|
197 |
$WPHE_orig_path = ABSPATH.'.htaccess';
|
198 |
+
@clearstatcache();
|
199 |
+
|
200 |
if(file_exists($WPHE_orig_path))
|
201 |
{
|
202 |
if(is_writable($WPHE_orig_path))
|
210 |
$WPHE_new_content = trim($WPHE_new_content);
|
211 |
$WPHE_new_content = str_replace('\\\\', '\\', $WPHE_new_content);
|
212 |
$WPHE_new_content = str_replace('\"', '"', $WPHE_new_content);
|
213 |
+
$WPHE_write_success = @file_put_contents($WPHE_orig_path, $WPHE_new_content, LOCK_EX);
|
214 |
+
@clearstatcache();
|
215 |
if(!file_exists($WPHE_orig_path) && $WPHE_write_success === false)
|
216 |
{
|
217 |
unset($WPHE_orig_path);
|
225 |
return true;
|
226 |
}
|
227 |
}
|
228 |
+
|
229 |
+
|
230 |
+
|
231 |
+
/****** debug funkce **************************************************/
|
232 |
+
function WPHE_Debug($data){
|
233 |
+
echo '<pre>';
|
234 |
+
var_dump($data);
|
235 |
+
echo '</pre>';
|
236 |
+
}
|
lib/lib.pages.php
CHANGED
@@ -1,57 +1,64 @@
|
|
1 |
<?php
|
2 |
-
if (!defined('ABSPATH')) die();
|
3 |
|
4 |
-
|
5 |
function WPHE_admin_menu()
|
6 |
{
|
7 |
global $WPHE_dirname, $WPHE_dirurl;
|
8 |
-
if(current_user_can('activate_plugins'))
|
9 |
-
|
10 |
-
|
11 |
-
WPHE_add_page(__('Htaccess Editor','wphe'),__('Htaccess Editor','wphe'), 'activate_plugins', $WPHE_dirname, 'WPHE_view_page');
|
12 |
WPHE_add_page(__('Backup', 'wphe'),__('Backup', 'wphe'), 'activate_plugins', $WPHE_dirname.'_backup', 'WPHE_view_page');
|
13 |
-
|
14 |
// přidání css stylu do administrace
|
15 |
wp_enqueue_style('wphe-style', $WPHE_dirurl.'style/wphe-style.css');
|
16 |
-
|
17 |
-
unset($WPHE_dirname);
|
18 |
-
unset($WPHE_dirurl);
|
19 |
-
}else{
|
20 |
-
unset($WPHE_dirname);
|
21 |
-
unset($WPHE_dirurl);
|
22 |
}
|
|
|
|
|
23 |
}
|
24 |
|
25 |
-
|
26 |
function WPHE_view_page()
|
27 |
{
|
28 |
global $WPHE_dirname, $WPHE_root, $WPHE_dirurl, $WPHE_version;
|
29 |
-
|
30 |
-
switch (
|
31 |
{
|
32 |
case $WPHE_dirname:
|
33 |
-
|
|
|
|
|
|
|
|
|
34 |
break;
|
35 |
case $WPHE_dirname.'_backup':
|
36 |
-
|
|
|
|
|
|
|
|
|
37 |
break;
|
38 |
default:
|
39 |
-
|
|
|
|
|
|
|
|
|
40 |
break;
|
41 |
}
|
42 |
-
|
43 |
unset($WPHE_dirname);
|
44 |
unset($WPHE_root);
|
45 |
unset($WPHE_dirurl);
|
46 |
unset($WPHE_version);
|
47 |
}
|
48 |
|
49 |
-
|
50 |
function WPHE_add_page($page_title, $menu_title, $access_level, $file, $function = '')
|
51 |
{
|
52 |
global $WPHE_dirname;
|
53 |
add_submenu_page($WPHE_dirname, $page_title, $menu_title, $access_level, $file, $function);
|
54 |
-
|
55 |
unset($WPHE_dirname);
|
56 |
unset($page_title);
|
57 |
unset($menu_title);
|
@@ -59,4 +66,3 @@ function WPHE_add_page($page_title, $menu_title, $access_level, $file, $function
|
|
59 |
unset($file);
|
60 |
unset($function);
|
61 |
}
|
62 |
-
?>
|
1 |
<?php
|
2 |
+
if (!defined('ABSPATH')) die('You do not have sufficient permissions to access this file.');
|
3 |
|
4 |
+
/***** Přidání stránek do menu v administraci *************************/
|
5 |
function WPHE_admin_menu()
|
6 |
{
|
7 |
global $WPHE_dirname, $WPHE_dirurl;
|
8 |
+
if(current_user_can('activate_plugins')){
|
9 |
+
add_menu_page('WP Htaccess Editor', 'Htaccess', 'activate_plugins', $WPHE_dirname, 'WPHE_view_page', $WPHE_dirurl.'style/img/wphe-mini.png');
|
10 |
+
WPHE_add_page('Htaccess Editor','Htaccess Editor', 'activate_plugins', $WPHE_dirname, 'WPHE_view_page');
|
|
|
11 |
WPHE_add_page(__('Backup', 'wphe'),__('Backup', 'wphe'), 'activate_plugins', $WPHE_dirname.'_backup', 'WPHE_view_page');
|
12 |
+
|
13 |
// přidání css stylu do administrace
|
14 |
wp_enqueue_style('wphe-style', $WPHE_dirurl.'style/wphe-style.css');
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
}
|
16 |
+
unset($WPHE_dirname);
|
17 |
+
unset($WPHE_dirurl);
|
18 |
}
|
19 |
|
20 |
+
/***** Zobrazení stránky podle požadavku ******************************/
|
21 |
function WPHE_view_page()
|
22 |
{
|
23 |
global $WPHE_dirname, $WPHE_root, $WPHE_dirurl, $WPHE_version;
|
24 |
+
|
25 |
+
switch (strip_tags(addslashes($_GET['page'])))
|
26 |
{
|
27 |
case $WPHE_dirname:
|
28 |
+
if(file_exists($WPHE_root.'pages/wphe-dashboard.php')){
|
29 |
+
require $WPHE_root.'pages/wphe-dashboard.php';
|
30 |
+
}else{
|
31 |
+
wp_die(__('Fatal error: Plugin <strong>WP Htaccess Editor</strong> is corrupted', 'wphe'));
|
32 |
+
}
|
33 |
break;
|
34 |
case $WPHE_dirname.'_backup':
|
35 |
+
if(file_exists($WPHE_root.'pages/wphe-backup.php')){
|
36 |
+
require $WPHE_root.'pages/wphe-backup.php';
|
37 |
+
}else{
|
38 |
+
wp_die(__('Fatal error: Plugin <strong>WP Htaccess Editor</strong> is corrupted', 'wphe'));
|
39 |
+
}
|
40 |
break;
|
41 |
default:
|
42 |
+
if(file_exists($WPHE_root.'pages/wphe-dashboard.php')){
|
43 |
+
require $WPHE_root.'pages/wphe-dashboard.php';
|
44 |
+
}else{
|
45 |
+
wp_die(__('Fatal error: Plugin <strong>WP Htaccess Editor</strong> is corrupted', 'wphe'));
|
46 |
+
}
|
47 |
break;
|
48 |
}
|
49 |
+
|
50 |
unset($WPHE_dirname);
|
51 |
unset($WPHE_root);
|
52 |
unset($WPHE_dirurl);
|
53 |
unset($WPHE_version);
|
54 |
}
|
55 |
|
56 |
+
/***** Pomocná funkce pro vytvoření menu ******************************/
|
57 |
function WPHE_add_page($page_title, $menu_title, $access_level, $file, $function = '')
|
58 |
{
|
59 |
global $WPHE_dirname;
|
60 |
add_submenu_page($WPHE_dirname, $page_title, $menu_title, $access_level, $file, $function);
|
61 |
+
|
62 |
unset($WPHE_dirname);
|
63 |
unset($page_title);
|
64 |
unset($menu_title);
|
66 |
unset($file);
|
67 |
unset($function);
|
68 |
}
|
|
lib/lib.wp-files.php
CHANGED
@@ -1,14 +1,20 @@
|
|
1 |
<?php
|
2 |
-
if (!defined('ABSPATH')) die();
|
3 |
|
4 |
-
|
5 |
-
{
|
6 |
-
require_once ABSPATH.'wp-includes/pluggable.php';
|
7 |
-
}
|
8 |
|
9 |
-
if(!function_exists('
|
10 |
-
{
|
11 |
-
|
|
|
|
|
|
|
12 |
}
|
13 |
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
+
if (!defined('ABSPATH')) die('You do not have sufficient permissions to access this file.');
|
3 |
|
4 |
+
/***** Načtení systémových souborů WP pro kontrolu oprávnění uživatele */
|
|
|
|
|
|
|
5 |
|
6 |
+
if(!function_exists('wp_get_current_user')){
|
7 |
+
if(file_exists(ABSPATH.'wp-includes/pluggable.php')){
|
8 |
+
require_once ABSPATH.'wp-includes/pluggable.php';
|
9 |
+
}else{
|
10 |
+
wp_die(__('Plugin WP Htaccess Editor Error: File "/wp-includes/pluggable.php" does not exists!', 'wphe'));
|
11 |
+
}
|
12 |
}
|
13 |
|
14 |
+
if(!function_exists('current_user_can')){
|
15 |
+
if(file_exists(ABSPATH.'wp-includes/capabilities.php')){
|
16 |
+
require_once ABSPATH.'wp-includes/capabilities.php';
|
17 |
+
}else{
|
18 |
+
wp_die(__('Plugin WP Htaccess Editor Error: File "/wp-includes/capabilities.php" does not exists!', 'wphe'));
|
19 |
+
}
|
20 |
+
}
|
pages/index.php
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
header('Location: ../../');
|
3 |
+
exit();
|
4 |
+
?>
|
pages/wphe-backup.php
CHANGED
@@ -1,16 +1,15 @@
|
|
1 |
<?php
|
2 |
-
if (!defined('ABSPATH')) die();
|
3 |
|
4 |
-
if(current_user_can('activate_plugins'))
|
5 |
-
{
|
6 |
?>
|
7 |
<div class="wrap">
|
8 |
-
<h2
|
9 |
<?php
|
10 |
//============================ Restore Backup ===================================
|
11 |
-
if(!empty($_POST['submit']) && !empty($_POST['restore_backup']))
|
12 |
{
|
13 |
-
|
14 |
$wphe_restore_result = WPHE_RestoreBackup();
|
15 |
if($wphe_restore_result === false)
|
16 |
{
|
@@ -31,40 +30,35 @@ if(current_user_can('activate_plugins'))
|
|
31 |
echo'</div>';
|
32 |
}
|
33 |
//============================== Create Backup ===================================
|
34 |
-
}elseif(!empty($_POST['submit']) && !empty($_POST['create_backup'])){
|
35 |
if(WPHE_CreateBackup())
|
36 |
{
|
37 |
echo'<div id="message" class="updated fade"><p><strong>'.__('Backup file was created successfully', 'wphe').'</strong></p></div>';
|
38 |
echo'<div class="postbox wphe-box">';
|
39 |
echo'<p>'.__('The backup file is located in the <code>wp-content</code> folder.','wphe').'</p>';
|
40 |
-
echo'<p><a href="'.WP_CONTENT_URL.'/htaccess.backup" target="_blank">'.__('Download backup file','wphe').'</a></p>';
|
41 |
echo'</div>';
|
42 |
}else{
|
43 |
-
echo'<div id="message" class="error fade"><p><strong>'.__('Unable to create backup!
|
|
|
44 |
}
|
45 |
//============================== Delete Backup ====================================
|
46 |
-
}elseif(!empty($_POST['submit']) && !empty($_POST['delete_backup']))
|
47 |
{
|
48 |
if(WPHE_DeleteBackup())
|
49 |
{
|
50 |
echo'<div id="message" class="updated fade"><p><strong>'.__('Backup file was successfully removed', 'wphe').'</strong></p></div>';
|
51 |
}else{
|
52 |
echo'<div id="message" class="error fade"><p><strong>'.__('Backup file could not be removed! Probably the wrong setting write permissions to the files.','wphe').'</strong></p></div>';
|
|
|
53 |
}
|
54 |
//============================== Home ==============================================
|
55 |
}else{
|
56 |
if(file_exists(ABSPATH.'wp-content/htaccess.backup'))
|
57 |
{
|
58 |
-
echo '<div class="postbox wphe-box">';
|
59 |
-
echo '<pre class="wphe-green">'.__('The backup file was found...','wphe').'</pre>';
|
60 |
-
echo '</div>';
|
61 |
-
echo '<div class="postbox wphe-box" style="background: #E0FCE1;">';
|
62 |
-
echo '<a href="'.WP_CONTENT_URL.'/htaccess.backup" target="_blank">'.__('Download backup file','wphe').'</a>';
|
63 |
-
echo '</div>';
|
64 |
echo '<div class="postbox wphe-box" style="background: #FFEECE;">';
|
65 |
?>
|
66 |
<form method="post" action="admin.php?page=<?php echo $WPHE_dirname; ?>_backup">
|
67 |
-
|
68 |
<input type="hidden" name="restore_backup" value="restore" />
|
69 |
<p class="submit"><?php _e('Do you want to restore the backup file?', 'wphe'); ?> <input type="submit" name="submit" value="<?php _e('Restore backup »', 'wphe'); ?>" /></p>
|
70 |
</form>
|
@@ -73,7 +67,7 @@ if(current_user_can('activate_plugins'))
|
|
73 |
echo '<div class="postbox wphe-box" style="background: #FFEECE;">';
|
74 |
?>
|
75 |
<form method="post" action="admin.php?page=<?php echo $WPHE_dirname; ?>_backup">
|
76 |
-
|
77 |
<input type="hidden" name="delete_backup" value="delete" />
|
78 |
<p class="submit"><?php _e('Do you want to delete a backup file?', 'wphe'); ?> <input type="submit" name="submit" value="<?php _e('Remove backup »', 'wphe'); ?>" /></p>
|
79 |
</form>
|
@@ -83,11 +77,11 @@ if(current_user_can('activate_plugins'))
|
|
83 |
echo '<div class="postbox wphe-box">';
|
84 |
echo '<pre class="wphe-red">'.__('Backup file not found...','wphe').'</pre>';
|
85 |
echo '</div>';
|
86 |
-
|
87 |
echo '<div class="postbox wphe-box" style="background: #E0FCE1;">';
|
88 |
?>
|
89 |
<form method="post" action="admin.php?page=<?php echo $WPHE_dirname; ?>_backup">
|
90 |
-
|
91 |
<input type="hidden" name="create_backup" value="create" />
|
92 |
<p class="submit"><?php _e('Do you want to create a new backup file?', 'wphe'); ?> <input type="submit" name="submit" value="<?php _e('Create new »', 'wphe'); ?>" /></p>
|
93 |
</form>
|
@@ -96,16 +90,51 @@ if(current_user_can('activate_plugins'))
|
|
96 |
}
|
97 |
}
|
98 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
<p style="clear:both;"> </p>
|
100 |
<p style="clear:both;"> </p>
|
101 |
<p style="clear:both;"> </p>
|
102 |
-
<p class="wphe-banner"><?php WPHE_ViewAdBanner(); ?></p>
|
103 |
-
<?php
|
104 |
-
WPHE_DebugPanel(memory_get_usage(),memory_get_peak_usage());
|
105 |
-
?>
|
106 |
</div>
|
107 |
<?php
|
108 |
}else{
|
109 |
-
wp_die( __('You do not have permission to view this page','wphe')
|
110 |
}
|
111 |
-
?>
|
1 |
<?php
|
2 |
+
if (!defined('ABSPATH')) die('You do not have sufficient permissions to access this file.');
|
3 |
|
4 |
+
if(current_user_can('activate_plugins')){
|
|
|
5 |
?>
|
6 |
<div class="wrap">
|
7 |
+
<h2 class="wphe-title">WP Htaccess Editor - <?php _e('Backup', 'wphe'); ?></h2>
|
8 |
<?php
|
9 |
//============================ Restore Backup ===================================
|
10 |
+
if(!empty($_POST['submit']) && !empty($_POST['restore_backup']) && check_admin_referer('wphe_restoreb', 'wphe_restoreb'))
|
11 |
{
|
12 |
+
|
13 |
$wphe_restore_result = WPHE_RestoreBackup();
|
14 |
if($wphe_restore_result === false)
|
15 |
{
|
30 |
echo'</div>';
|
31 |
}
|
32 |
//============================== Create Backup ===================================
|
33 |
+
}elseif(!empty($_POST['submit']) && !empty($_POST['create_backup']) && check_admin_referer('wphe_createb', 'wphe_createb')){
|
34 |
if(WPHE_CreateBackup())
|
35 |
{
|
36 |
echo'<div id="message" class="updated fade"><p><strong>'.__('Backup file was created successfully', 'wphe').'</strong></p></div>';
|
37 |
echo'<div class="postbox wphe-box">';
|
38 |
echo'<p>'.__('The backup file is located in the <code>wp-content</code> folder.','wphe').'</p>';
|
|
|
39 |
echo'</div>';
|
40 |
}else{
|
41 |
+
echo'<div id="message" class="error fade"><p><strong>'.__('Unable to create backup! <code>wp-content</code> folder is not writeable! Change the permissions this folder manually!', 'wphe').'</strong></p></div>';
|
42 |
+
echo'<div id="message" class="error fade"><p><strong>'.__('Due to server configuration can not change permissions on files or create new files','wphe').'</strong></p></div>';
|
43 |
}
|
44 |
//============================== Delete Backup ====================================
|
45 |
+
}elseif(!empty($_POST['submit']) && !empty($_POST['delete_backup']) && check_admin_referer('wphe_deleteb', 'wphe_deleteb'))
|
46 |
{
|
47 |
if(WPHE_DeleteBackup())
|
48 |
{
|
49 |
echo'<div id="message" class="updated fade"><p><strong>'.__('Backup file was successfully removed', 'wphe').'</strong></p></div>';
|
50 |
}else{
|
51 |
echo'<div id="message" class="error fade"><p><strong>'.__('Backup file could not be removed! Probably the wrong setting write permissions to the files.','wphe').'</strong></p></div>';
|
52 |
+
echo'<div id="message" class="error fade"><p><strong>'.__('Due to server configuration can not change permissions on files or create new files','wphe').'</strong></p></div>';
|
53 |
}
|
54 |
//============================== Home ==============================================
|
55 |
}else{
|
56 |
if(file_exists(ABSPATH.'wp-content/htaccess.backup'))
|
57 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
echo '<div class="postbox wphe-box" style="background: #FFEECE;">';
|
59 |
?>
|
60 |
<form method="post" action="admin.php?page=<?php echo $WPHE_dirname; ?>_backup">
|
61 |
+
<?php wp_nonce_field('wphe_restoreb','wphe_restoreb'); ?>
|
62 |
<input type="hidden" name="restore_backup" value="restore" />
|
63 |
<p class="submit"><?php _e('Do you want to restore the backup file?', 'wphe'); ?> <input type="submit" name="submit" value="<?php _e('Restore backup »', 'wphe'); ?>" /></p>
|
64 |
</form>
|
67 |
echo '<div class="postbox wphe-box" style="background: #FFEECE;">';
|
68 |
?>
|
69 |
<form method="post" action="admin.php?page=<?php echo $WPHE_dirname; ?>_backup">
|
70 |
+
<?php wp_nonce_field('wphe_deleteb','wphe_deleteb'); ?>
|
71 |
<input type="hidden" name="delete_backup" value="delete" />
|
72 |
<p class="submit"><?php _e('Do you want to delete a backup file?', 'wphe'); ?> <input type="submit" name="submit" value="<?php _e('Remove backup »', 'wphe'); ?>" /></p>
|
73 |
</form>
|
77 |
echo '<div class="postbox wphe-box">';
|
78 |
echo '<pre class="wphe-red">'.__('Backup file not found...','wphe').'</pre>';
|
79 |
echo '</div>';
|
80 |
+
|
81 |
echo '<div class="postbox wphe-box" style="background: #E0FCE1;">';
|
82 |
?>
|
83 |
<form method="post" action="admin.php?page=<?php echo $WPHE_dirname; ?>_backup">
|
84 |
+
<?php wp_nonce_field('wphe_createb','wphe_createb'); ?>
|
85 |
<input type="hidden" name="create_backup" value="create" />
|
86 |
<p class="submit"><?php _e('Do you want to create a new backup file?', 'wphe'); ?> <input type="submit" name="submit" value="<?php _e('Create new »', 'wphe'); ?>" /></p>
|
87 |
</form>
|
90 |
}
|
91 |
}
|
92 |
?>
|
93 |
+
<p style="clear:both;"> </p>
|
94 |
+
<div class="postbox wphe-box">
|
95 |
+
<h3 class="wphe-title"><?php _e('Information about this plugin', 'wphe');?></h3>
|
96 |
+
<div class="wphe-infobox">
|
97 |
+
<h4><?php _e('Author','wphe'); ?></h4>
|
98 |
+
<p style="padding-left: 5px"><em>Lukenzi</em> <?php WPHE_AuthorLink(); ?></p>
|
99 |
+
</div>
|
100 |
+
<div class="wphe-infobox">
|
101 |
+
<h4><?php _e('Translators','wphe'); ?></h4>
|
102 |
+
<table class="wphe-translators">
|
103 |
+
<tr><td><em>Lukenzi</em></td><td><img src="<?php echo $WPHE_dirurl.'style/img/flag-cz.jpg'; ?>" border="0" alt="Czech" width="12" height="9" /></td><td><?php WPHE_AuthorLink(); ?></td></tr>
|
104 |
+
<tr><td><em>Andi Eko</em></td><td><img src="<?php echo $WPHE_dirurl.'style/img/flag-en.jpg'; ?>" border="0" alt="English" width="12" height="9" /></td><td><a href="http://andieko.info/" target="_blank">andieko.info</a></td></tr>
|
105 |
+
</table>
|
106 |
+
</div>
|
107 |
+
<div class="wphe-infobox">
|
108 |
+
<h4><?php _e('Plugin','wphe'); ?></h4>
|
109 |
+
<table>
|
110 |
+
<tr><td><em><?php _e('Version:','wphe'); ?></em></td><td><span class="wphe-green"><?php echo $WPHE_version; ?></span></td></tr>
|
111 |
+
<tr><td><em><?php _e('Plugin homepage:','wphe'); ?></em></td><td><a href="http://wordpress.org/extend/plugins/wp-htaccess-editor/" target="_blank"><?php _e('WordPress repository','wphe'); ?></a></td></tr>
|
112 |
+
<tr><td><em><?php _e('Support:','wphe'); ?></em></td><td><a href="http://wordpress.org/support/plugin/wp-htaccess-editor"><?php _e('Forum','wphe'); ?></a></td></tr>
|
113 |
+
<tr><td><em><?php _e('Support for the development:','wphe');?></em></td><td><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KM4GZAE9FVPSN"><?php _e('Donate','wphe'); ?></a></td></tr>
|
114 |
+
</table>
|
115 |
+
</div>
|
116 |
+
<div class="wphe-infobox">
|
117 |
+
<h4><?php _e('Other plugins','wphe'); ?></h4>
|
118 |
+
<table>
|
119 |
+
<tr><td><em><a href="http://wordpress.org/extend/plugins/system-files-editor/" target="_blank"><?php _e('System Files Editor','wphe'); ?></a></em></td></tr>
|
120 |
+
<tr><td><em><a href="http://wordpress.org/extend/plugins/ceska-podpora-wordpressu/" target="_blank"><?php _e('Czech support for WordPress','wphe'); ?></a></em></td></tr>
|
121 |
+
</table>
|
122 |
+
</div>
|
123 |
+
<div class="wphe-infobox">
|
124 |
+
<h4><?php _e('Donate','wphe'); ?></h4>
|
125 |
+
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
126 |
+
<input type="hidden" name="cmd" value="_s-xclick">
|
127 |
+
<input type="hidden" name="hosted_button_id" value="KM4GZAE9FVPSN">
|
128 |
+
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
|
129 |
+
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
|
130 |
+
</form>
|
131 |
+
</div>
|
132 |
+
</div>
|
133 |
<p style="clear:both;"> </p>
|
134 |
<p style="clear:both;"> </p>
|
135 |
<p style="clear:both;"> </p>
|
|
|
|
|
|
|
|
|
136 |
</div>
|
137 |
<?php
|
138 |
}else{
|
139 |
+
wp_die( __('You do not have permission to view this page','wphe'));
|
140 |
}
|
|
pages/wphe-dashboard.php
CHANGED
@@ -1,149 +1,140 @@
|
|
1 |
<?php
|
2 |
-
if (!defined('ABSPATH')) die();
|
3 |
|
4 |
-
if(current_user_can('activate_plugins'))
|
5 |
-
{
|
6 |
$WPHE_backup_path = WP_CONTENT_URL.'/htaccess.backup';
|
7 |
$WPHE_orig_path = ABSPATH.'.htaccess';
|
8 |
?>
|
9 |
<div class="wrap">
|
10 |
-
<h2
|
11 |
<?php
|
12 |
-
//============================
|
13 |
-
if(!empty($_POST['submit']) AND !empty($_POST['save_htaccess']))
|
14 |
-
{
|
15 |
$WPHE_new_content = $_POST['ht_content'];
|
16 |
WPHE_DeleteBackup();
|
17 |
-
if(WPHE_CreateBackup())
|
18 |
-
|
19 |
-
if(WPHE_WriteNewHtaccess($WPHE_new_content))
|
20 |
-
{
|
21 |
echo'<div id="message" class="updated fade"><p><strong>'.__('File has been successfully changed', 'wphe').'</strong></p></div>';
|
22 |
?>
|
23 |
-
<p><?php _e('You have made changes to the htaccess file. The original file was automatically backed up
|
24 |
-
<a href="<?php echo get_option('home'); ?>/" target="_blank"><?php _e('Check the functionality of your site (the links to the articles or categories).', 'wphe');?></a>. <?php _e('If something is not working properly restore the original backup
|
25 |
<div class="postbox" style="float: left; width: 95%; padding: 15px;">
|
26 |
<form method="post" action="admin.php?page=<?php echo $WPHE_dirname; ?>">
|
27 |
-
|
28 |
<input type="hidden" name="delete_backup" value="delete" />
|
29 |
<p class="submit"><?php _e('If everything works properly, you can delete the backup file:', 'wphe');?> <input type="submit" name="submit" value="<?php _e('Remove backup »', 'wphe');?>" /> <?php echo __('or','wphe'); ?> <a href="admin.php?page=<?php echo $WPHE_dirname; ?>_backup"><?php _e('restore the original file from backup','wphe');?></a></p>
|
30 |
</form>
|
31 |
</div>
|
32 |
<?php
|
33 |
}else{
|
34 |
-
echo'<div id="message" class="error fade"><p><strong>'.__('The file could not be saved!
|
|
|
35 |
}
|
36 |
}else{
|
37 |
-
echo'<div id="message" class="error fade"><p><strong>'.__('
|
|
|
38 |
}
|
39 |
unset($WPHE_new_content);
|
40 |
-
//============================
|
41 |
-
}elseif(!empty($_POST['submit']) AND !empty($_POST['create_htaccess']))
|
42 |
-
|
43 |
-
if(WPHE_WriteNewHtaccess('') === false)
|
44 |
{
|
45 |
-
echo'<div id="message" class="error fade"><p><strong>'.__('Htaccess file is not created.
|
|
|
46 |
}else{
|
47 |
echo'<div id="message" class="updated fade"><p><strong>'.__('Htaccess file was successfully created.', 'wphe').'</strong></p></div>';
|
|
|
48 |
}
|
49 |
-
//============================
|
50 |
-
}elseif(!empty($_POST['submit']) AND !empty($_POST['delete_backup']))
|
51 |
{
|
52 |
if(WPHE_DeleteBackup() === false)
|
53 |
{
|
54 |
-
echo'<div id="message" class="error fade"><p><strong>'.__('Backup file could not be removed!
|
55 |
}else{
|
56 |
echo'<div id="message" class="updated fade"><p><strong>'.__('Backup file has been successfully removed.', 'wphe').'</strong></p></div>';
|
57 |
}
|
58 |
//============================ Home ================================================
|
59 |
-
}else
|
60 |
-
{
|
61 |
?>
|
62 |
<p><?php _e('Using this editor you can easily modify your htaccess file without having to use an FTP client.', 'wphe');?></p>
|
63 |
<p class="wphe-red"><?php _e('<strong>WARNING:</strong> Any error in this file may cause malfunction of your site!', 'wphe');?><br />
|
64 |
<?php _e('Edit htaccess file should therefore be performed only by experienced users!', 'wphe');?><br />
|
65 |
-
</p>
|
66 |
<div class="postbox wphe-box">
|
|
|
|
|
|
|
|
|
|
|
67 |
<?php
|
68 |
if(!file_exists($WPHE_orig_path))
|
69 |
{
|
70 |
-
echo'<
|
|
|
|
|
71 |
$success = false;
|
72 |
}else{
|
73 |
-
echo'<pre class="wphe-green">'.__('Htaccess file found...', 'wphe').'</pre>';
|
74 |
$success = true;
|
75 |
if(!is_readable($WPHE_orig_path))
|
76 |
{
|
77 |
-
echo'<
|
|
|
|
|
78 |
$success = false;
|
79 |
}
|
80 |
-
if($success == true)
|
81 |
-
{
|
82 |
@chmod($WPHE_orig_path, 0644);
|
83 |
-
$WPHE_htaccess_content = file_get_contents($WPHE_orig_path, false, NULL);
|
84 |
-
if($WPHE_htaccess_content === false)
|
85 |
-
|
86 |
-
echo'<pre class="wphe-red">'.__('Htaccess file
|
|
|
87 |
$success = false;
|
88 |
-
}elseif(empty($WPHE_htaccess_content))
|
89 |
-
{
|
90 |
-
echo'<pre style="color: orange;">'.__('Htaccess file is empty...', 'wphe').'</pre>';
|
91 |
-
$success = true;
|
92 |
}else{
|
93 |
$success = true;
|
94 |
}
|
95 |
}
|
96 |
}
|
97 |
|
98 |
-
|
99 |
-
</div>
|
100 |
-
<?php
|
101 |
-
if($success == true)
|
102 |
-
{
|
103 |
?>
|
104 |
<div class="postbox wphe-box">
|
105 |
<form method="post" action="admin.php?page=<?php echo $WPHE_dirname; ?>">
|
106 |
<input type="hidden" name="save_htaccess" value="save" />
|
107 |
-
|
108 |
-
<
|
109 |
-
<
|
110 |
<p class="submit"><input type="submit" name="submit" value="<?php _e('Save file »', 'wphe');?>" /></p>
|
111 |
</form>
|
112 |
</div>
|
113 |
<?php
|
114 |
unset($WPHE_htaccess_content);
|
115 |
}else{
|
116 |
-
echo'<strong class="wphe-red">'.__('Htaccess file is not readable, probably does not exist', 'wphe').'</strong><br />';
|
117 |
?>
|
118 |
<div class="postbox wphe-box" style="background: #E0FCE1;">
|
119 |
<form method="post" action="admin.php?page=<?php echo $WPHE_dirname; ?>">
|
120 |
<input type="hidden" name="create_htaccess" value="create" />
|
121 |
-
|
122 |
<p class="submit"><?php _e('Create new <code>.htaccess</code> file?', 'wphe');?> <input type="submit" name="submit" value="<?php _e('Create »', 'wphe');?>" /></p>
|
123 |
</form>
|
124 |
</div>
|
125 |
<?php
|
126 |
}
|
127 |
unset($success);
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
<h2><?php _e('Information for editing htaccess file', 'wphe');?></h2>
|
132 |
-
<div class="postbox wphe-box">
|
133 |
-
<p><?php _e('For more information on possible adjustments to this file, please visit', 'wphe');?> <a href="http://httpd.apache.org/docs/current/howto/htaccess.html" target="_blank">Apache Tutorial: .htaccess files</a> <?php _e('or','wphe'); ?> <a href="http://net.tutsplus.com/tutorials/other/the-ultimate-guide-to-htaccess-files/" target="_blank">The Ultimate Guide to .htaccess Files</a>. </p>
|
134 |
-
<p><?php _e('Interesting tips and guides can also be found on ', 'wphe');?> <?php WPHE_AuthorLink(); ?>.</p>
|
135 |
-
<p><a href="http://www.google.com/#sclient=psy&q=htaccess+how+to" target="_blank"><?php _e('Or use the Google search.','wphe');?></a></p>
|
136 |
-
</div>
|
137 |
-
<h2><?php _e('Information about this plugin', 'wphe');?></h2>
|
138 |
<div class="postbox wphe-box">
|
|
|
139 |
<div class="wphe-infobox">
|
140 |
<h4><?php _e('Author','wphe'); ?></h4>
|
141 |
-
<p style="padding-left: 5px"><em>
|
142 |
</div>
|
143 |
<div class="wphe-infobox">
|
144 |
<h4><?php _e('Translators','wphe'); ?></h4>
|
145 |
<table class="wphe-translators">
|
146 |
-
<tr><td><em>
|
147 |
<tr><td><em>Andi Eko</em></td><td><img src="<?php echo $WPHE_dirurl.'style/img/flag-en.jpg'; ?>" border="0" alt="English" width="12" height="9" /></td><td><a href="http://andieko.info/" target="_blank">andieko.info</a></td></tr>
|
148 |
</table>
|
149 |
</div>
|
@@ -151,29 +142,35 @@ if(current_user_can('activate_plugins'))
|
|
151 |
<h4><?php _e('Plugin','wphe'); ?></h4>
|
152 |
<table>
|
153 |
<tr><td><em><?php _e('Version:','wphe'); ?></em></td><td><span class="wphe-green"><?php echo $WPHE_version; ?></span></td></tr>
|
154 |
-
<tr><td><em><?php _e('
|
155 |
-
<tr><td><em><?php _e('
|
|
|
156 |
</table>
|
157 |
</div>
|
158 |
<div class="wphe-infobox">
|
159 |
<h4><?php _e('Other plugins','wphe'); ?></h4>
|
160 |
<table>
|
|
|
161 |
<tr><td><em><a href="http://wordpress.org/extend/plugins/ceska-podpora-wordpressu/" target="_blank"><?php _e('Czech support for WordPress','wphe'); ?></a></em></td></tr>
|
162 |
</table>
|
163 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
164 |
</div>
|
165 |
-
<?php
|
166 |
-
}
|
167 |
-
WPHE_DebugPanel(memory_get_usage(), memory_get_peak_usage());
|
168 |
-
?>
|
169 |
<p style="clear:both;"> </p>
|
170 |
-
<p class="wphe-banner"><?php WPHE_ViewAdBanner(); ?></p>
|
171 |
<p style="clear:both;"> </p>
|
172 |
</div>
|
173 |
<?php
|
174 |
unset($WPHE_orig_path);
|
175 |
unset($WPHE_backup_path);
|
176 |
}else{
|
177 |
-
wp_die( __('You do not have permission to view this page','wphe')
|
178 |
}
|
179 |
-
|
1 |
<?php
|
2 |
+
if (!defined('ABSPATH')) die('You do not have sufficient permissions to access this file.');
|
3 |
|
4 |
+
if(current_user_can('activate_plugins')){
|
|
|
5 |
$WPHE_backup_path = WP_CONTENT_URL.'/htaccess.backup';
|
6 |
$WPHE_orig_path = ABSPATH.'.htaccess';
|
7 |
?>
|
8 |
<div class="wrap">
|
9 |
+
<h2 class="wphe-title">WP Htaccess Editor</h2>
|
10 |
<?php
|
11 |
+
//============================ Uložení Htaccess souboru =======================================
|
12 |
+
if(!empty($_POST['submit']) AND !empty($_POST['save_htaccess']) AND check_admin_referer('wphe_save', 'wphe_save')){
|
|
|
13 |
$WPHE_new_content = $_POST['ht_content'];
|
14 |
WPHE_DeleteBackup();
|
15 |
+
if(WPHE_CreateBackup()){
|
16 |
+
if(WPHE_WriteNewHtaccess($WPHE_new_content)){
|
|
|
|
|
17 |
echo'<div id="message" class="updated fade"><p><strong>'.__('File has been successfully changed', 'wphe').'</strong></p></div>';
|
18 |
?>
|
19 |
+
<p><?php _e('You have made changes to the htaccess file. The original file was automatically backed up (in <code>wp-content</code> folder)', 'wphe'); ?><br />
|
20 |
+
<a href="<?php echo get_option('home'); ?>/" target="_blank"><?php _e('Check the functionality of your site (the links to the articles or categories).', 'wphe');?></a>. <?php _e('If something is not working properly restore the original file from backup', 'wphe');?></p>
|
21 |
<div class="postbox" style="float: left; width: 95%; padding: 15px;">
|
22 |
<form method="post" action="admin.php?page=<?php echo $WPHE_dirname; ?>">
|
23 |
+
<?php wp_nonce_field('wphe_delete','wphe_delete'); ?>
|
24 |
<input type="hidden" name="delete_backup" value="delete" />
|
25 |
<p class="submit"><?php _e('If everything works properly, you can delete the backup file:', 'wphe');?> <input type="submit" name="submit" value="<?php _e('Remove backup »', 'wphe');?>" /> <?php echo __('or','wphe'); ?> <a href="admin.php?page=<?php echo $WPHE_dirname; ?>_backup"><?php _e('restore the original file from backup','wphe');?></a></p>
|
26 |
</form>
|
27 |
</div>
|
28 |
<?php
|
29 |
}else{
|
30 |
+
echo'<div id="message" class="error fade"><p><strong>'.__('The file could not be saved!', 'wphe').'</strong></p></div>';
|
31 |
+
echo'<div id="message" class="error fade"><p><strong>'.__('Due to server configuration can not change permissions on files or create new files','wphe').'</strong></p></div>';
|
32 |
}
|
33 |
}else{
|
34 |
+
echo'<div id="message" class="error fade"><p><strong>'.__('The file could not be saved!', 'wphe').'</strong></p></div>';
|
35 |
+
echo'<div id="message" class="error fade"><p><strong>'.__('Unable to create backup of the original file! <code>wp-content</code> folder is not writeable! Change the permissions this folder!', 'wphe').'</strong></p></div>';
|
36 |
}
|
37 |
unset($WPHE_new_content);
|
38 |
+
//============================ Vytvoření nového Htaccess souboru ================================
|
39 |
+
}elseif(!empty($_POST['submit']) AND !empty($_POST['create_htaccess']) AND check_admin_referer('wphe_create', 'wphe_create')){
|
40 |
+
if(WPHE_WriteNewHtaccess('# Created by WP Htaccess Editor') === false)
|
|
|
41 |
{
|
42 |
+
echo'<div id="message" class="error fade"><p><strong>'.__('Htaccess file is not created.', 'wphe').'</p></div>';
|
43 |
+
echo'<div id="message" class="error fade"><p><strong>'.__('Due to server configuration can not change permissions on files or create new files','wphe').'</strong></p></div>';
|
44 |
}else{
|
45 |
echo'<div id="message" class="updated fade"><p><strong>'.__('Htaccess file was successfully created.', 'wphe').'</strong></p></div>';
|
46 |
+
echo'<div id="message" class="updated fade"><p><strong><a href="admin.php?page='.$WPHE_dirname.'">'.__('View new Htaccess file', 'wphe').'</a></strong></p></div>';
|
47 |
}
|
48 |
+
//============================ Smazání zálohy =======================================
|
49 |
+
}elseif(!empty($_POST['submit']) AND !empty($_POST['delete_backup']) AND check_admin_referer('wphe_delete', 'wphe_delete'))
|
50 |
{
|
51 |
if(WPHE_DeleteBackup() === false)
|
52 |
{
|
53 |
+
echo'<div id="message" class="error fade"><p><strong>'.__('Backup file could not be removed! <code>wp-content</code> folder is not writeable! Change the permissions this folder!', 'wphe').'</p></div>';
|
54 |
}else{
|
55 |
echo'<div id="message" class="updated fade"><p><strong>'.__('Backup file has been successfully removed.', 'wphe').'</strong></p></div>';
|
56 |
}
|
57 |
//============================ Home ================================================
|
58 |
+
}else{
|
|
|
59 |
?>
|
60 |
<p><?php _e('Using this editor you can easily modify your htaccess file without having to use an FTP client.', 'wphe');?></p>
|
61 |
<p class="wphe-red"><?php _e('<strong>WARNING:</strong> Any error in this file may cause malfunction of your site!', 'wphe');?><br />
|
62 |
<?php _e('Edit htaccess file should therefore be performed only by experienced users!', 'wphe');?><br />
|
63 |
+
</p>
|
64 |
<div class="postbox wphe-box">
|
65 |
+
<h3 class="wphe-title"><?php _e('Information for editing htaccess file', 'wphe');?></h3>
|
66 |
+
<p><?php _e('For more information on possible adjustments to this file, please visit', 'wphe');?> <a href="http://httpd.apache.org/docs/current/howto/htaccess.html" target="_blank">Apache Tutorial: .htaccess files</a> <?php _e('or','wphe'); ?> <a href="http://net.tutsplus.com/tutorials/other/the-ultimate-guide-to-htaccess-files/" target="_blank">The Ultimate Guide to .htaccess Files</a>. </p>
|
67 |
+
<p><?php _e('Interesting tips and guides can also be found on ', 'wphe');?> <?php WPHE_AuthorLink(); ?>.</p>
|
68 |
+
<p><a href="http://www.google.com/#sclient=psy&q=htaccess+how+to" target="_blank"><?php _e('Or use the Google search.','wphe');?></a></p>
|
69 |
+
</div>
|
70 |
<?php
|
71 |
if(!file_exists($WPHE_orig_path))
|
72 |
{
|
73 |
+
echo'<div class="postbox wphe-box">';
|
74 |
+
echo'<pre class="wphe-red">'.__('Htaccess file does not exists!', 'wphe').'</pre>';
|
75 |
+
echo'</div>';
|
76 |
$success = false;
|
77 |
}else{
|
|
|
78 |
$success = true;
|
79 |
if(!is_readable($WPHE_orig_path))
|
80 |
{
|
81 |
+
echo'<div class="postbox wphe-box">';
|
82 |
+
echo'<pre class="wphe-red">'.__('Htaccess file cannot read!', 'wphe').'</pre>';
|
83 |
+
echo'</div>';
|
84 |
$success = false;
|
85 |
}
|
86 |
+
if($success == true){
|
|
|
87 |
@chmod($WPHE_orig_path, 0644);
|
88 |
+
$WPHE_htaccess_content = @file_get_contents($WPHE_orig_path, false, NULL);
|
89 |
+
if($WPHE_htaccess_content === false){
|
90 |
+
echo'<div class="postbox wphe-box">';
|
91 |
+
echo'<pre class="wphe-red">'.__('Htaccess file cannot read!', 'wphe').'</pre>';
|
92 |
+
echo'</div>';
|
93 |
$success = false;
|
|
|
|
|
|
|
|
|
94 |
}else{
|
95 |
$success = true;
|
96 |
}
|
97 |
}
|
98 |
}
|
99 |
|
100 |
+
if($success == true){
|
|
|
|
|
|
|
|
|
101 |
?>
|
102 |
<div class="postbox wphe-box">
|
103 |
<form method="post" action="admin.php?page=<?php echo $WPHE_dirname; ?>">
|
104 |
<input type="hidden" name="save_htaccess" value="save" />
|
105 |
+
<?php wp_nonce_field('wphe_save','wphe_save'); ?>
|
106 |
+
<h3 class="wphe-title"><?php _e('Content of the Htaccess file', 'wphe');?></h3>
|
107 |
+
<textarea name="ht_content" class="wphe-textarea" wrap="off"><?php echo $WPHE_htaccess_content;?></textarea>
|
108 |
<p class="submit"><input type="submit" name="submit" value="<?php _e('Save file »', 'wphe');?>" /></p>
|
109 |
</form>
|
110 |
</div>
|
111 |
<?php
|
112 |
unset($WPHE_htaccess_content);
|
113 |
}else{
|
|
|
114 |
?>
|
115 |
<div class="postbox wphe-box" style="background: #E0FCE1;">
|
116 |
<form method="post" action="admin.php?page=<?php echo $WPHE_dirname; ?>">
|
117 |
<input type="hidden" name="create_htaccess" value="create" />
|
118 |
+
<?php wp_nonce_field('wphe_create','wphe_create'); ?>
|
119 |
<p class="submit"><?php _e('Create new <code>.htaccess</code> file?', 'wphe');?> <input type="submit" name="submit" value="<?php _e('Create »', 'wphe');?>" /></p>
|
120 |
</form>
|
121 |
</div>
|
122 |
<?php
|
123 |
}
|
124 |
unset($success);
|
125 |
+
}
|
126 |
+
?>
|
127 |
+
<p style="clear:both;"> </p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
<div class="postbox wphe-box">
|
129 |
+
<h3 class="wphe-title"><?php _e('Information about this plugin', 'wphe');?></h3>
|
130 |
<div class="wphe-infobox">
|
131 |
<h4><?php _e('Author','wphe'); ?></h4>
|
132 |
+
<p style="padding-left: 5px"><em>Lukenzi</em> <?php WPHE_AuthorLink(); ?></p>
|
133 |
</div>
|
134 |
<div class="wphe-infobox">
|
135 |
<h4><?php _e('Translators','wphe'); ?></h4>
|
136 |
<table class="wphe-translators">
|
137 |
+
<tr><td><em>Lukenzi</em></td><td><img src="<?php echo $WPHE_dirurl.'style/img/flag-cz.jpg'; ?>" border="0" alt="Czech" width="12" height="9" /></td><td><?php WPHE_AuthorLink(); ?></td></tr>
|
138 |
<tr><td><em>Andi Eko</em></td><td><img src="<?php echo $WPHE_dirurl.'style/img/flag-en.jpg'; ?>" border="0" alt="English" width="12" height="9" /></td><td><a href="http://andieko.info/" target="_blank">andieko.info</a></td></tr>
|
139 |
</table>
|
140 |
</div>
|
142 |
<h4><?php _e('Plugin','wphe'); ?></h4>
|
143 |
<table>
|
144 |
<tr><td><em><?php _e('Version:','wphe'); ?></em></td><td><span class="wphe-green"><?php echo $WPHE_version; ?></span></td></tr>
|
145 |
+
<tr><td><em><?php _e('Plugin homepage:','wphe'); ?></em></td><td><a href="http://wordpress.org/extend/plugins/wp-htaccess-editor/" target="_blank"><?php _e('WordPress repository','wphe'); ?></a></td></tr>
|
146 |
+
<tr><td><em><?php _e('Support:','wphe'); ?></em></td><td><a href="http://wordpress.org/support/plugin/wp-htaccess-editor"><?php _e('Forum','wphe'); ?></a></td></tr>
|
147 |
+
<tr><td><em><?php _e('Support for the development:','wphe');?></em></td><td><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KM4GZAE9FVPSN"><?php _e('Donate','wphe'); ?></a></td></tr>
|
148 |
</table>
|
149 |
</div>
|
150 |
<div class="wphe-infobox">
|
151 |
<h4><?php _e('Other plugins','wphe'); ?></h4>
|
152 |
<table>
|
153 |
+
<tr><td><em><a href="http://wordpress.org/extend/plugins/system-files-editor/" target="_blank"><?php _e('System Files Editor','wphe'); ?></a></em></td></tr>
|
154 |
<tr><td><em><a href="http://wordpress.org/extend/plugins/ceska-podpora-wordpressu/" target="_blank"><?php _e('Czech support for WordPress','wphe'); ?></a></em></td></tr>
|
155 |
</table>
|
156 |
</div>
|
157 |
+
<div class="wphe-infobox">
|
158 |
+
<h4><?php _e('Donate','wphe'); ?></h4>
|
159 |
+
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
160 |
+
<input type="hidden" name="cmd" value="_s-xclick">
|
161 |
+
<input type="hidden" name="hosted_button_id" value="KM4GZAE9FVPSN">
|
162 |
+
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
|
163 |
+
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
|
164 |
+
</form>
|
165 |
+
</div>
|
166 |
</div>
|
|
|
|
|
|
|
|
|
167 |
<p style="clear:both;"> </p>
|
|
|
168 |
<p style="clear:both;"> </p>
|
169 |
</div>
|
170 |
<?php
|
171 |
unset($WPHE_orig_path);
|
172 |
unset($WPHE_backup_path);
|
173 |
}else{
|
174 |
+
wp_die( __('You do not have permission to view this page','wphe'));
|
175 |
}
|
176 |
+
|
readme.txt
CHANGED
@@ -1,10 +1,13 @@
|
|
1 |
=== WP Htaccess Editor ===
|
2 |
Contributors: Lukenzi
|
3 |
-
|
4 |
-
|
|
|
|
|
5 |
Requires at least: 3.0
|
6 |
-
Tested up to: 3.1
|
7 |
-
Stable tag: 1.
|
|
|
8 |
|
9 |
Simple editor htaccess file without using FTP client.
|
10 |
|
@@ -17,24 +20,36 @@ Simple editor *htaccess* file without using FTP client.
|
|
17 |
|
18 |
1. Extract the zip into the *wp-content/plugins* directory
|
19 |
2. Activate the plugin through the Admin panel of your WordPress
|
|
|
20 |
|
21 |
|
22 |
== Screenshots ==
|
23 |
|
24 |
1. Editing htaccess file
|
25 |
-
2.
|
26 |
-
3.
|
27 |
|
28 |
== Frequently Asked Questions ==
|
29 |
|
30 |
= Can create or edit the htaccess file =
|
31 |
-
If your hosting does not allow you to create or modify files on the server, use another hosting :)
|
32 |
|
33 |
= I edited my htaccess file and now my site does not work =
|
|
|
34 |
Try to restore the original backup file. If restoration is not possible with this plugin, restore the backup file from the folder "wp-content " manually.
|
35 |
|
36 |
== Changelog ==
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
= 1.1.1 =
|
39 |
* Fixed CHMOD
|
40 |
|
1 |
=== WP Htaccess Editor ===
|
2 |
Contributors: Lukenzi
|
3 |
+
Author URI: http://wp-blog.cz
|
4 |
+
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KM4GZAE9FVPSN
|
5 |
+
Tags: simply,htaccess,file,editor,backup,admin
|
6 |
+
Version: 1.2.0
|
7 |
Requires at least: 3.0
|
8 |
+
Tested up to: 3.4.1
|
9 |
+
Stable tag: 1.2.0
|
10 |
+
License: GPLv2 or later
|
11 |
|
12 |
Simple editor htaccess file without using FTP client.
|
13 |
|
20 |
|
21 |
1. Extract the zip into the *wp-content/plugins* directory
|
22 |
2. Activate the plugin through the Admin panel of your WordPress
|
23 |
+
3. Go to Menu -> Htaccess
|
24 |
|
25 |
|
26 |
== Screenshots ==
|
27 |
|
28 |
1. Editing htaccess file
|
29 |
+
2. Automatic backup htaccess file
|
30 |
+
3. Manual backup htaccess file
|
31 |
|
32 |
== Frequently Asked Questions ==
|
33 |
|
34 |
= Can create or edit the htaccess file =
|
35 |
+
If your hosting does not allow you to create or modify files on the server, use another (better) hosting :)
|
36 |
|
37 |
= I edited my htaccess file and now my site does not work =
|
38 |
+
You probably have a syntax error in the file or on the server you are not allowed any of the settings in your htaccess file.
|
39 |
Try to restore the original backup file. If restoration is not possible with this plugin, restore the backup file from the folder "wp-content " manually.
|
40 |
|
41 |
== Changelog ==
|
42 |
|
43 |
+
= 1.2.0 =
|
44 |
+
* Improved code
|
45 |
+
* Improved design
|
46 |
+
* Improved security
|
47 |
+
* Removed debug panel
|
48 |
+
* Updated translations
|
49 |
+
* Updated links
|
50 |
+
* Updated screenshots
|
51 |
+
* Adding plugin logo
|
52 |
+
|
53 |
= 1.1.1 =
|
54 |
* Fixed CHMOD
|
55 |
|
screenshot-1.png
CHANGED
Binary file
|
screenshot-2.png
CHANGED
Binary file
|
screenshot-3.png
CHANGED
Binary file
|
style/img/1.gif
DELETED
Binary file
|
style/img/2.gif
DELETED
Binary file
|
style/img/3.gif
DELETED
Binary file
|
style/img/wphe-mini.png
ADDED
Binary file
|
style/img/wphe.png
ADDED
Binary file
|
style/index.php
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
header('Location: ../../');
|
3 |
+
exit();
|
4 |
+
?>
|
style/wphe-style.css
CHANGED
@@ -1 +1,7 @@
|
|
1 |
-
.wphe-
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
h2.wphe-title{background: url('img/wphe.png') no-repeat left center;padding-left: 40px;}
|
2 |
+
div.wrap div.wphe-box{float: left;width: 95%;padding: 10px;background: #DADADA;border: 1px solid #7F7F7F;box-shadow: 1px 1px 3px gray;}
|
3 |
+
div.wrap div.wphe-box h3.wphe-title{background: transparent;border: none;cursor: default;}
|
4 |
+
div.wrap div.wphe-box textarea.wphe-textarea{width: 100%;height: 400px;padding: 10px;color: #106AC2;border: 1px solid #9A9A9A;line-height: 1.25em;font-family: Monospace,Mono;background: #EDEDED;}
|
5 |
+
.wphe-red{color: Red!important;}.wphe-green{color: Green!important;}
|
6 |
+
div.wrap table.wphe-translators tr td{padding: 0 5px 0 5px;}
|
7 |
+
div.wrap div.wphe-infobox{float: left;margin: 0 15px 15px 15px;}
|
wp-htaccess-editor.php
CHANGED
@@ -1,15 +1,17 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WP Htaccess Editor
|
4 |
-
Plugin URI: http://
|
5 |
Description: Simple editor htaccess file without using FTP client.
|
6 |
-
Version: 1.
|
|
|
|
|
7 |
Author: Lukenzi
|
8 |
-
Author URI: http://
|
9 |
License: GPLv2 or later
|
10 |
*/
|
11 |
|
12 |
-
/* Copyright 2011, Lukenzi (email :
|
13 |
|
14 |
This program is free software; you can redistribute it and/or modify
|
15 |
it under the terms of the GNU General Public License as published by
|
@@ -26,13 +28,16 @@ License: GPLv2 or later
|
|
26 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
27 |
*/
|
28 |
|
29 |
-
if (!defined('ABSPATH')) die();
|
30 |
|
|
|
|
|
|
|
|
|
31 |
if(!is_admin()){
|
32 |
return;
|
33 |
}else{
|
34 |
-
$WPHE_version = '1.
|
35 |
-
$WPHE_mem_start = memory_get_usage();
|
36 |
|
37 |
if(!defined('WP_CONTENT_URL')){
|
38 |
if(!defined('WP_SITEURL')){
|
@@ -46,11 +51,12 @@ if(!is_admin()){
|
|
46 |
|
47 |
$WPHE_root = str_replace('\\', '/', dirname(__FILE__)).'/';
|
48 |
$WPHE_lib = $WPHE_root.'lib/';
|
49 |
-
$
|
50 |
-
$WPHE_dirname = $WPHE_plugin;// deprecated 1.1.0
|
51 |
$WPHE_dirurl = WP_PLUGIN_URL.'/'.$WPHE_dirname.'/';
|
52 |
|
53 |
-
|
|
|
|
|
54 |
$WPHE_Locale = get_locale();
|
55 |
if(!empty($WPHE_Locale))
|
56 |
{
|
@@ -63,12 +69,29 @@ if(!is_admin()){
|
|
63 |
}
|
64 |
unset($WPHE_Locale);
|
65 |
|
66 |
-
include $WPHE_lib.'lib.wp-files.php';
|
67 |
-
include $WPHE_lib.'lib.functions.php';
|
68 |
-
include $WPHE_lib.'lib.debug.php';
|
69 |
-
include $WPHE_lib.'lib.ad.php';
|
70 |
-
include $WPHE_lib.'lib.pages.php';
|
71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
if(function_exists('add_action')){
|
73 |
add_action('admin_menu', 'WPHE_admin_menu');
|
74 |
}else{
|
@@ -77,10 +100,6 @@ if(!is_admin()){
|
|
77 |
unset($WPHE_plugin);
|
78 |
unset($WPHE_dirname);
|
79 |
unset($WPHE_dirurl);
|
80 |
-
unset($WPHE_mem_start);
|
81 |
return;
|
82 |
}
|
83 |
-
$WPHE_mem_end = memory_get_usage();
|
84 |
-
/******************************************************************************/
|
85 |
}
|
86 |
-
?>
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WP Htaccess Editor
|
4 |
+
Plugin URI: http://wp-blog.cz/101-plugin-wp-htaccess-editor/
|
5 |
Description: Simple editor htaccess file without using FTP client.
|
6 |
+
Version: 1.2.0
|
7 |
+
Text Domain: wphe
|
8 |
+
Domain Path: /lang/
|
9 |
Author: Lukenzi
|
10 |
+
Author URI: http://wp-blog.cz/
|
11 |
License: GPLv2 or later
|
12 |
*/
|
13 |
|
14 |
+
/* Copyright 2011-2012, Lukenzi (email : lukenzi@gmail.com)
|
15 |
|
16 |
This program is free software; you can redistribute it and/or modify
|
17 |
it under the terms of the GNU General Public License as published by
|
28 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
29 |
*/
|
30 |
|
31 |
+
if (!defined('ABSPATH')) die('You do not have sufficient permissions to access this file.');
|
32 |
|
33 |
+
|
34 |
+
|
35 |
+
|
36 |
+
/***** Základní nastavení cest a URL adres pluginu ********************/
|
37 |
if(!is_admin()){
|
38 |
return;
|
39 |
}else{
|
40 |
+
$WPHE_version = '1.2.0';
|
|
|
41 |
|
42 |
if(!defined('WP_CONTENT_URL')){
|
43 |
if(!defined('WP_SITEURL')){
|
51 |
|
52 |
$WPHE_root = str_replace('\\', '/', dirname(__FILE__)).'/';
|
53 |
$WPHE_lib = $WPHE_root.'lib/';
|
54 |
+
$WPHE_dirname = str_replace('\\', '/', dirname(plugin_basename(__FILE__)));
|
|
|
55 |
$WPHE_dirurl = WP_PLUGIN_URL.'/'.$WPHE_dirname.'/';
|
56 |
|
57 |
+
|
58 |
+
|
59 |
+
/***** Načtení překladu ***********************************************/
|
60 |
$WPHE_Locale = get_locale();
|
61 |
if(!empty($WPHE_Locale))
|
62 |
{
|
69 |
}
|
70 |
unset($WPHE_Locale);
|
71 |
|
|
|
|
|
|
|
|
|
|
|
72 |
|
73 |
+
|
74 |
+
/***** Načtení souborů pluginu ****************************************/
|
75 |
+
if(file_exists($WPHE_lib.'lib.wp-files.php')){
|
76 |
+
require $WPHE_lib.'lib.wp-files.php';
|
77 |
+
}else{ wp_die(__('Fatal error: Plugin <strong>WP Htaccess Editor</strong> is corrupted', 'wphe')); }
|
78 |
+
|
79 |
+
if(file_exists($WPHE_lib.'lib.functions.php')){
|
80 |
+
require $WPHE_lib.'lib.functions.php';
|
81 |
+
}else{ wp_die(__('Fatal error: Plugin <strong>WP Htaccess Editor</strong> is corrupted', 'wphe')); }
|
82 |
+
|
83 |
+
if(file_exists($WPHE_lib.'lib.ad.php')){
|
84 |
+
require $WPHE_lib.'lib.ad.php';
|
85 |
+
}else{ wp_die(__('Fatal error: Plugin <strong>WP Htaccess Editor</strong> is corrupted', 'wphe')); }
|
86 |
+
|
87 |
+
|
88 |
+
if(file_exists($WPHE_lib.'lib.pages.php')){
|
89 |
+
require $WPHE_lib.'lib.pages.php';
|
90 |
+
}else{ wp_die(__('Fatal error: Plugin <strong>WP Htaccess Editor</strong> is corrupted', 'wphe')); }
|
91 |
+
|
92 |
+
|
93 |
+
|
94 |
+
/***** Vytvoření menu v administraci a spuštění pluginu ***************/
|
95 |
if(function_exists('add_action')){
|
96 |
add_action('admin_menu', 'WPHE_admin_menu');
|
97 |
}else{
|
100 |
unset($WPHE_plugin);
|
101 |
unset($WPHE_dirname);
|
102 |
unset($WPHE_dirurl);
|
|
|
103 |
return;
|
104 |
}
|
|
|
|
|
105 |
}
|
|