WP Htaccess Editor - Version 1.2.0

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 Icon 128x128 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 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: 2011-04-14 05:55+0100\n"
6
- "PO-Revision-Date: 2011-04-14 05:55+0100\n"
7
- "Last-Translator: Lukenzi <mail@lukenzi.info>\n"
8
- "Language-Team: Lukenzi <wphe@lukenzi.info>\n"
 
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: .\n"
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
- #: lib/lib.ad.php:7
20
- msgid "Plugin homepage"
21
- msgstr "Web autora pluginu"
22
-
23
- #: lib/lib.ad.php:21
24
- #: lib/lib.ad.php:29
25
- msgid "Unlimited hosting WEDOS"
26
- msgstr "Neomezený hosting WEDOS"
27
-
28
- #: lib/lib.pages.php:10
29
- #: pages/wphe-dashboard.php:10
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:8
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:19
54
- #: pages/wphe-backup.php:39
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:23
59
  msgid "Backup was restored successfully"
60
  msgstr "Záloha souboru byla úspěšně obnovena."
61
 
62
- #: pages/wphe-backup.php:24
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:27
67
  msgid "Unable to restore backup!"
68
  msgstr "Nelze obnovit zálohu!"
69
 
70
- #: pages/wphe-backup.php:29
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:37
75
  msgid "Backup file was created successfully"
76
  msgstr "Záložní soubor byl úspěšně vytvořen."
77
 
78
- #: pages/wphe-backup.php:40
79
- #: pages/wphe-backup.php:62
80
- msgid "Download backup file"
81
- msgstr "Uložit záložní soubor do PC"
82
 
83
- #: pages/wphe-backup.php:43
84
- msgid "Unable to create backup! Probably the wrong setting write permissions to the files."
85
- msgstr "Vytvoření zálohy nebylo úspěšné! Pravděpodobně jsou špatně nastavena práva k zápisu do souboru. "
 
 
 
86
 
87
- #: pages/wphe-backup.php:50
88
  msgid "Backup file was successfully removed"
89
  msgstr "Záložní soubor byl úspěšně odstraněn."
90
 
91
- #: pages/wphe-backup.php:52
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:59
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:69
104
  msgid "Restore backup &raquo;"
105
  msgstr "Obnovit &raquo;"
106
 
107
- #: pages/wphe-backup.php:78
108
  msgid "Do you want to delete a backup file?"
109
  msgstr "Chcete odstranit záložní soubor?"
110
 
111
- #: pages/wphe-backup.php:78
112
- #: pages/wphe-dashboard.php:29
113
  msgid "Remove backup &raquo;"
114
  msgstr "Odstranit zálohu &raquo;"
115
 
116
- #: pages/wphe-backup.php:84
117
  msgid "Backup file not found..."
118
  msgstr "Záložní soubor nebyl nalezen..."
119
 
120
- #: pages/wphe-backup.php:92
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:92
125
  msgid "Create new &raquo;"
126
  msgstr "Vytvořit nový &raquo;"
127
 
128
- #: pages/wphe-backup.php:109
129
- #: pages/wphe-dashboard.php:178
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-backup.php:109
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 úspěšně změňen"
141
 
142
- #: pages/wphe-dashboard.php:23
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:24
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:24
151
- msgid "If something is not working properly restore the original backup file."
152
- msgstr "Pokud nefungují správně obnovte zálohu původního souboru."
153
 
154
- #: pages/wphe-dashboard.php:29
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:29
159
- #: pages/wphe-dashboard.php:134
160
  msgid "or"
161
  msgstr "nebo"
162
 
163
- #: pages/wphe-dashboard.php:29
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! Probably the wrong setting read permissions to the files"
169
- msgstr "Soubor nebyl uložen! Pravděpodobně jsou špatně nastavena práva k zápisu do souboru. "
170
 
171
- #: pages/wphe-dashboard.php:37
172
- msgid "Unable to create backup of the original file! Probably the wrong setting read permissions to the files"
173
- msgstr "Nelze vytvořit zálohu původního souboru! Pravděpodobně jsou špatně nastavena práva k zápisu do souboru. "
174
 
175
- #: pages/wphe-dashboard.php:45
176
- msgid "Htaccess file is not created. Probably the wrong setting read permissions to the files"
177
- msgstr "Soubor Htaccess nebyl vytvořen! Pravděpodobně jsou špatně nastavena práva k zápisu do souboru. "
178
 
179
- #: pages/wphe-dashboard.php:47
180
  msgid "Htaccess file was successfully created."
181
  msgstr "Soubor htaccess byl úspěšně vytvořen."
182
 
183
- #: pages/wphe-dashboard.php:54
184
- msgid "Backup file could not be removed! Probably the wrong setting read permissions to the files"
185
- msgstr "Záložní soubor se nepodařilo odstranit! Pravděpodobně jsou špatně nastavena práva k zápisu do souboru. "
186
 
187
- #: pages/wphe-dashboard.php:56
 
 
 
 
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:62
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:63
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:64
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:70
204
- msgid "Htaccess file not found!"
205
- msgstr "Htaccess soubor nebyl nalezen!"
 
 
 
 
 
 
 
 
 
 
 
 
206
 
207
- #: pages/wphe-dashboard.php:73
208
- msgid "Htaccess file found..."
209
- msgstr "Htaccess soubor byl nalezen..."
210
 
211
- #: pages/wphe-dashboard.php:77
212
- #: pages/wphe-dashboard.php:86
213
- msgid "Htaccess file not read!"
214
- msgstr "Htaccess soubor nelze přečíst!"
215
 
216
- #: pages/wphe-dashboard.php:90
217
- msgid "Htaccess file is empty..."
218
- msgstr "Htaccess soubor je prázdný..."
219
 
220
- #: pages/wphe-dashboard.php:111
221
  msgid "Save file &raquo;"
222
  msgstr "Uložit soubor &raquo;"
223
 
224
- #: pages/wphe-dashboard.php:117
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:123
233
  msgid "Create &raquo;"
234
  msgstr "Vytvořit nový &raquo;"
235
 
236
- #: pages/wphe-dashboard.php:132
237
- msgid "Information for editing htaccess file"
238
- msgstr "Informace pro úpravy Htaccess souboru"
239
 
240
- #: pages/wphe-dashboard.php:134
241
- msgid "For more information on possible adjustments to this file, please visit"
242
- msgstr "Pro více informací o možných úpravách tohoto souboru navštivte weby"
243
 
244
- #: pages/wphe-dashboard.php:135
245
- msgid "Interesting tips and guides can also be found on "
246
- msgstr "Zajímavé tipy a návody můžete nalézt také na webu"
247
 
248
- #: pages/wphe-dashboard.php:136
249
- msgid "Or use the Google search."
250
- msgstr "Nebo použijte Google"
251
 
252
- #: pages/wphe-dashboard.php:138
253
- msgid "Information about this plugin"
254
- msgstr "Informace o tomto pluginu"
255
 
256
- #: pages/wphe-dashboard.php:141
257
- msgid "Author"
258
- msgstr "Autor"
259
 
260
- #: pages/wphe-dashboard.php:145
261
- msgid "Translators"
262
- msgstr "Překladatelé"
263
 
264
- #: pages/wphe-dashboard.php:152
265
- msgid "Plugin"
266
- msgstr "Plugin"
267
 
268
- #: pages/wphe-dashboard.php:154
269
- msgid "Version:"
270
- msgstr "Verze pluginu:"
271
 
272
- #: pages/wphe-dashboard.php:155
273
- msgid "URL:"
274
- msgstr "Web pluginu:"
275
 
276
- #: pages/wphe-dashboard.php:155
277
- msgid "WordPress repository"
278
- msgstr "WordPress repozitář"
 
 
 
279
 
280
- #: pages/wphe-dashboard.php:156
281
- msgid "Feedback:"
282
- msgstr "Hlášení chyb:"
283
 
284
- #: pages/wphe-dashboard.php:160
285
- msgid "Other plugins"
286
- msgstr "Další pluginy autora"
 
 
 
287
 
288
- #: pages/wphe-dashboard.php:162
289
- msgid "Czech support for WordPress"
290
- msgstr "Česká podpora pro WordPress"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 &raquo;"
89
  msgstr "Obnovit &raquo;"
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 &raquo;"
98
  msgstr "Odstranit zálohu &raquo;"
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 &raquo;"
110
  msgstr "Vytvořit nový &raquo;"
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 &raquo;"
291
  msgstr "Uložit soubor &raquo;"
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 &raquo;"
299
  msgstr "Vytvořit nový &raquo;"
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: 2011-04-14 00:14+0100\n"
6
- "PO-Revision-Date: 2011-04-14 00:15+0100\n"
7
- "Last-Translator: Lukenzi <mail@lukenzi.info>\n"
8
- "Language-Team: Lukenzi <wphe@lukenzi.info>\n"
 
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: c:\\wamp\\wordpress\\wp-content\\plugins\\wp-htaccess-editor\\\n"
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
- #: lib/lib.ad.php:15
20
- msgid "Plugin homepage"
21
- msgstr ""
22
-
23
- #: lib/lib.ad.php:35
24
- #: lib/lib.ad.php:47
25
- msgid "Unlimited hosting WEDOS"
26
- msgstr ""
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
- #: lib/lib.pages.php:20
38
- msgid "Htaccess Editor"
39
- msgstr ""
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:26
54
- #: pages/wphe-backup.php:46
55
  msgid "The backup file is located in the <code>wp-content</code> folder."
56
  msgstr ""
57
 
58
- #: pages/wphe-backup.php:30
 
59
  msgid "Backup was restored successfully"
60
- msgstr ""
61
 
62
- #: pages/wphe-backup.php:31
63
  msgid "Old backup file was deleted successfully"
64
  msgstr ""
65
 
66
- #: pages/wphe-backup.php:34
 
67
  msgid "Unable to restore backup!"
68
- msgstr ""
69
 
70
- #: pages/wphe-backup.php:36
71
  msgid "This is contents of the original file, put it into a file manually"
72
  msgstr ""
73
 
74
- #: pages/wphe-backup.php:44
75
  msgid "Backup file was created successfully"
76
  msgstr ""
77
 
78
- #: pages/wphe-backup.php:47
79
- #: pages/wphe-backup.php:71
80
- msgid "Download backup file"
81
  msgstr ""
82
 
83
- #: pages/wphe-backup.php:50
84
- msgid "Unable to create backup! Probably the wrong setting write permissions to the files."
 
 
 
85
  msgstr ""
86
 
87
- #: pages/wphe-backup.php:58
88
  msgid "Backup file was successfully removed"
89
  msgstr ""
90
 
91
- #: pages/wphe-backup.php:60
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:68
 
96
  msgid "The backup file was found..."
97
- msgstr ""
98
 
99
- #: pages/wphe-backup.php:78
 
100
  msgid "Do you want to restore the backup file?"
101
- msgstr ""
102
 
103
- #: pages/wphe-backup.php:78
 
104
  msgid "Restore backup &raquo;"
105
- msgstr ""
106
 
107
- #: pages/wphe-backup.php:87
 
108
  msgid "Do you want to delete a backup file?"
109
- msgstr ""
110
 
111
- #: pages/wphe-backup.php:87
112
- #: pages/wphe-dashboard.php:40
 
113
  msgid "Remove backup &raquo;"
114
- msgstr ""
115
 
116
- #: pages/wphe-backup.php:94
 
117
  msgid "Backup file not found..."
118
- msgstr ""
119
 
120
- #: pages/wphe-backup.php:102
 
121
  msgid "Do you want to create a new backup file?"
122
- msgstr ""
123
 
124
- #: pages/wphe-backup.php:102
 
125
  msgid "Create new &raquo;"
126
- msgstr ""
127
 
128
- #: pages/wphe-backup.php:120
129
- #: pages/wphe-dashboard.php:194
130
- msgid "You do not have permission to view this page"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
131
  msgstr ""
132
 
133
  #: pages/wphe-backup.php:120
134
- #: pages/wphe-dashboard.php:194
135
- msgid "Access denied"
136
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
137
 
138
- #: pages/wphe-dashboard.php:32
 
139
  msgid "File has been successfully changed"
140
- msgstr ""
141
 
142
- #: pages/wphe-dashboard.php:34
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:35
147
  msgid "Check the functionality of your site (the links to the articles or categories)."
148
  msgstr ""
149
 
150
- #: pages/wphe-dashboard.php:35
151
- msgid "If something is not working properly restore the original backup file."
152
- msgstr ""
 
153
 
154
- #: pages/wphe-dashboard.php:40
155
  msgid "If everything works properly, you can delete the backup file:"
156
  msgstr ""
157
 
158
- #: pages/wphe-dashboard.php:40
159
- #: pages/wphe-dashboard.php:150
 
160
  msgid "or"
161
- msgstr ""
162
 
163
- #: pages/wphe-dashboard.php:40
 
164
  msgid "restore the original file from backup"
165
- msgstr ""
166
 
167
- #: pages/wphe-dashboard.php:45
168
- msgid "The file could not be saved! Probably the wrong setting read permissions to the files"
169
- msgstr ""
 
 
170
 
171
- #: pages/wphe-dashboard.php:49
172
- msgid "Unable to create backup of the original file! Probably the wrong setting read permissions to the files"
173
  msgstr ""
174
 
175
- #: pages/wphe-dashboard.php:58
176
- msgid "Htaccess file is not created. Probably the wrong setting read permissions to the files"
177
- msgstr ""
 
178
 
179
- #: pages/wphe-dashboard.php:61
180
  msgid "Htaccess file was successfully created."
181
  msgstr ""
182
 
183
- #: pages/wphe-dashboard.php:68
184
- msgid "Backup file could not be removed! Probably the wrong setting read permissions to the files"
 
 
 
 
 
185
  msgstr ""
186
 
187
- #: pages/wphe-dashboard.php:70
188
  msgid "Backup file has been successfully removed."
189
  msgstr ""
190
 
191
- #: pages/wphe-dashboard.php:75
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:76
196
  msgid "<strong>WARNING:</strong> Any error in this file may cause malfunction of your site!"
197
  msgstr ""
198
 
199
- #: pages/wphe-dashboard.php:77
200
  msgid "Edit htaccess file should therefore be performed only by experienced users!"
201
  msgstr ""
202
 
203
- #: pages/wphe-dashboard.php:83
204
- msgid "Htaccess file not found!"
205
- msgstr ""
 
206
 
207
- #: pages/wphe-dashboard.php:86
208
- msgid "Htaccess file found..."
209
  msgstr ""
210
 
211
- #: pages/wphe-dashboard.php:90
212
- #: pages/wphe-dashboard.php:100
213
- msgid "Htaccess file not read!"
214
  msgstr ""
215
 
216
- #: pages/wphe-dashboard.php:104
217
- msgid "Htaccess file is empty..."
218
- msgstr ""
 
219
 
220
- #: pages/wphe-dashboard.php:127
221
- msgid "Save file &raquo;"
222
- msgstr ""
 
223
 
224
- #: pages/wphe-dashboard.php:133
225
- msgid "Htaccess file is not readable, probably does not exist"
 
 
226
  msgstr ""
 
 
227
 
228
- #: pages/wphe-dashboard.php:139
229
- msgid "Create new <code>.htaccess</code> file?"
230
- msgstr ""
 
231
 
232
- #: pages/wphe-dashboard.php:139
233
- msgid "Create &raquo;"
234
- msgstr ""
 
235
 
236
- #: pages/wphe-dashboard.php:148
237
- msgid "Information for editing htaccess file"
238
- msgstr ""
 
239
 
240
- #: pages/wphe-dashboard.php:150
241
- msgid "For more information on possible adjustments to this file, please visit"
242
- msgstr ""
 
243
 
244
- #: pages/wphe-dashboard.php:151
245
- msgid "Interesting tips and guides can also be found on "
246
  msgstr ""
247
 
248
- #: pages/wphe-dashboard.php:152
249
- msgid "Or use the Google search."
250
  msgstr ""
251
 
252
- #: pages/wphe-dashboard.php:154
253
- msgid "Information about this plugin"
254
- msgstr ""
 
255
 
256
- #: pages/wphe-dashboard.php:157
257
- msgid "Author"
258
- msgstr ""
259
 
260
- #: pages/wphe-dashboard.php:161
261
- msgid "Translators"
262
- msgstr ""
263
 
264
- #: pages/wphe-dashboard.php:168
265
- msgid "Plugin"
266
- msgstr ""
267
 
268
- #: pages/wphe-dashboard.php:170
269
- msgid "Version:"
270
- msgstr ""
271
 
272
- #: pages/wphe-dashboard.php:171
273
- msgid "URL:"
274
- msgstr ""
275
 
276
- #: pages/wphe-dashboard.php:171
277
- msgid "WordPress repository"
278
- msgstr ""
279
 
280
- #: pages/wphe-dashboard.php:172
281
- msgid "Feedback:"
282
- msgstr ""
283
 
284
- #: pages/wphe-dashboard.php:176
285
- msgid "Other plugins"
286
- msgstr ""
287
 
288
- #: pages/wphe-dashboard.php:178
289
- msgid "Czech support for WordPress"
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 &raquo;"
99
+ msgstr "Odhlásit se &raquo;"
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 &raquo;"
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 &raquo;"
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 &#187;"
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 &raquo;"
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 &raquo;"
345
+ msgstr "Další &raquo;"
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 &#187;"
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://www.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://www.wp-blog.cz/" target="_blank">WP-blog.cz</a>';
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í reklamního odkazu ***/
27
- function WPHE_ViewAdLink()
28
  {
29
- echo '<a class="wedos-link" href="http://hosting.wedos.com/d/65832" title="'.__('Unlimited hosting WEDOS','wphe').'" target="_blank">'.__('Unlimited hosting WEDOS','wphe').'</a>';
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
- function WPHE_CreateBackup()
5
- {
 
 
6
  $WPHE_backup_path = ABSPATH.'wp-content/htaccess.backup';
7
  $WPHE_orig_path = ABSPATH.'.htaccess';
8
-
9
- if(file_exists($WPHE_backup_path))
10
- {
 
 
11
  WPHE_DeleteBackup();
12
- if(file_exists(ABSPATH.'.htaccess'))
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
- function WPHE_RestoreBackup()
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) == false)
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
- function WPHE_DeleteBackup()
112
- {
 
 
113
  $wphe_backup_path = ABSPATH.'wp-content/htaccess.backup';
114
-
115
- if(file_exists($wphe_backup_path))
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
- if(file_exists($wphe_backup_path))
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
- function WPHE_WriteNewHtaccess($WPHE_new_content)
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
- /*** 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
- {
10
- add_menu_page(__('WP Htaccess Editor','wphe'), __('Htaccess','wphe'), 'activate_plugins', $WPHE_dirname, 'WPHE_view_page', '');
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
- /*** Zobrazení stránky podle požadavku ***/
26
  function WPHE_view_page()
27
  {
28
  global $WPHE_dirname, $WPHE_root, $WPHE_dirurl, $WPHE_version;
29
-
30
- switch (htmlspecialchars(addslashes($_GET['page'])))
31
  {
32
  case $WPHE_dirname:
33
- include($WPHE_root.'pages/wphe-dashboard.php');
 
 
 
 
34
  break;
35
  case $WPHE_dirname.'_backup':
36
- include($WPHE_root.'pages/wphe-backup.php');
 
 
 
 
37
  break;
38
  default:
39
- include($WPHE_root.'pages/wphe-dashboard.php');
 
 
 
 
40
  break;
41
  }
42
-
43
  unset($WPHE_dirname);
44
  unset($WPHE_root);
45
  unset($WPHE_dirurl);
46
  unset($WPHE_version);
47
  }
48
 
49
- /*** Pomocná funkce pro vytvoření menu ***/
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
- if(!function_exists('wp_get_current_user'))
5
- {
6
- require_once ABSPATH.'wp-includes/pluggable.php';
7
- }
8
 
9
- if(!function_exists('current_user_can'))
10
- {
11
- require_once ABSPATH.'wp-includes/capabilities.php';
 
 
 
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><?php _e('WP Htaccess Editor - Backup', 'wphe'); ?></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! Probably the wrong setting write permissions to the files.', 'wphe').'</strong></p></div>';
 
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
- <input type="hidden" name="_wp_http_referer" value="/wp-admin/admin.php?page=<?php echo $WPHE_dirname; ?>_backup" />
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 &raquo;', '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
- <input type="hidden" name="_wp_http_referer" value="/wp-admin/admin.php?page=<?php echo $WPHE_dirname; ?>_backup" />
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 &raquo;', '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
- <input type="hidden" name="_wp_http_referer" value="/wp-admin/admin.php?page=<?php echo $WPHE_dirname; ?>_backup" />
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 &raquo;', 'wphe'); ?>" /></p>
93
  </form>
@@ -96,16 +90,51 @@ if(current_user_can('activate_plugins'))
96
  }
97
  }
98
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
99
  <p style="clear:both;">&nbsp;</p>
100
  <p style="clear:both;">&nbsp;</p>
101
  <p style="clear:both;">&nbsp;</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'), __('Access denied','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 &raquo;', '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 &raquo;', '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 &raquo;', 'wphe'); ?>" /></p>
87
  </form>
90
  }
91
  }
92
  ?>
93
+ <p style="clear:both;">&nbsp;</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>&nbsp;&nbsp;<?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;">&nbsp;</p>
134
  <p style="clear:both;">&nbsp;</p>
135
  <p style="clear:both;">&nbsp;</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><?php _e('WP Htaccess Editor', 'wphe'); ?></h2>
11
  <?php
12
- //============================ Save Htaccess =======================================
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.', 'wphe'); ?><br />
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 file.', 'wphe');?></p>
25
  <div class="postbox" style="float: left; width: 95%; padding: 15px;">
26
  <form method="post" action="admin.php?page=<?php echo $WPHE_dirname; ?>">
27
- <input type="hidden" name="_wp_http_referer" value="/wp-admin/admin.php?page=<?php echo $WPHE_dirname; ?>" />
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 &raquo;', 'wphe');?>" />&nbsp;<?php echo __('or','wphe'); ?>&nbsp;<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! Probably the wrong setting read permissions to the files', 'wphe').'</strong></p></div>';
 
35
  }
36
  }else{
37
- echo'<div id="message" class="error fade"><p><strong>'.__('Unable to create backup of the original file! Probably the wrong setting read permissions to the files', 'wphe').'</strong></p></div>';
 
38
  }
39
  unset($WPHE_new_content);
40
- //============================ Create New Htaccess ================================
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. Probably the wrong setting read permissions to the files', 'wphe').'</p></div>';
 
46
  }else{
47
  echo'<div id="message" class="updated fade"><p><strong>'.__('Htaccess file was successfully created.', 'wphe').'</strong></p></div>';
 
48
  }
49
- //============================ Delete Backup =======================================
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! Probably the wrong setting read permissions to the files', 'wphe').'</p></div>';
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'<pre class="wphe-red">'.__('Htaccess file not found!', 'wphe').'</pre>';
 
 
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'<pre class="wphe-red">'.__('Htaccess file not read!', 'wphe').'</pre>';
 
 
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 not read!', 'wphe').'</pre>';
 
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
- <input type="hidden" name="_wp_http_referer" value="/wp-admin/admin.php?page=<?php echo $WPHE_dirname; ?>" />
108
- <textarea name="ht_content" style="float:left;width: 100%;padding:5px;color:blue;background-color:whitesmoke;height:250px;" wrap="off"><?php echo $WPHE_htaccess_content;?></textarea>
109
- <p style="clear:both;">&nbsp;</p>
110
  <p class="submit"><input type="submit" name="submit" value="<?php _e('Save file &raquo;', '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
- <input type="hidden" name="_wp_http_referer" value="/wp-admin/admin.php?page=<?php echo $WPHE_dirname; ?>" />
122
  <p class="submit"><?php _e('Create new <code>.htaccess</code> file?', 'wphe');?> <input type="submit" name="submit" value="<?php _e('Create &raquo;', 'wphe');?>" /></p>
123
  </form>
124
  </div>
125
  <?php
126
  }
127
  unset($success);
128
- ?>
129
-
130
- <p style="clear:both;">&nbsp;</p>
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>Lukáš Svadbík</em>&nbsp;&nbsp;<?php WPHE_AuthorLink(); ?></p>
142
  </div>
143
  <div class="wphe-infobox">
144
  <h4><?php _e('Translators','wphe'); ?></h4>
145
  <table class="wphe-translators">
146
- <tr><td><em>Lukáš Svadbík</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>
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('URL:','wphe'); ?></em></td><td><a href="http://wordpress.org/extend/plugins/wp-htaccess-editor/" target="_blank"><?php _e('WordPress repository','wphe'); ?></a></td></tr>
155
- <tr><td><em><?php _e('Feedback:','wphe'); ?></em></td><td><a href="mailto:wphe@lukenzi.info">wphe&#64;lukenzi&#46;info</a></td></tr>
 
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;">&nbsp;</p>
170
- <p class="wphe-banner"><?php WPHE_ViewAdBanner(); ?></p>
171
  <p style="clear:both;">&nbsp;</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'), __('Access denied','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 &raquo;', 'wphe');?>" />&nbsp;<?php echo __('or','wphe'); ?>&nbsp;<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 &raquo;', '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 &raquo;', 'wphe');?>" /></p>
120
  </form>
121
  </div>
122
  <?php
123
  }
124
  unset($success);
125
+ }
126
+ ?>
127
+ <p style="clear:both;">&nbsp;</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>&nbsp;&nbsp;<?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;">&nbsp;</p>
 
168
  <p style="clear:both;">&nbsp;</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
- Donate link: http://www.wp-blog.cz/o-autorovi/
4
- Tags: simply,htaccess,editor
 
 
5
  Requires at least: 3.0
6
- Tested up to: 3.1.2
7
- Stable tag: 1.1.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. Admin menu
26
- 3. Restore backup
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-box{ float: left; width: 95%; padding: 10px; } .wphe-box textarea.wphe-textarea{ width: 400px; _width: 420px; height: 400px; padding: 10px; color: Purple; } .wphe-red{ color: Red!important; } .wphe-green{ color: Green!important; } .wphe-white{ color: White!important; } .wphe-lime{ color: Lime!important; } .wphe-banner{ float: none; text-align: center; margin: 0 auto; border: none; } .wphe-banner a img{ border: none; background-color: #E0FCE1; } .wphe-debug-panel{ width: auto; text-align: left; padding: 5px; font-size: 11px; position:fixed; bottom:0px; right:0px; height: auto; color:yellow; background-color:black; z-index:1000; } table.wphe-translators tr td{ padding: 0 5px 0 5px; } .wphe-infobox{ float: left; margin: 0 15px 15px 15px; }
 
 
 
 
 
 
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://www.wp-blog.cz/101-plugin-wp-htaccess-editor/
5
  Description: Simple editor htaccess file without using FTP client.
6
- Version: 1.1.1
 
 
7
  Author: Lukenzi
8
- Author URI: http://www.wp-blog.cz/
9
  License: GPLv2 or later
10
  */
11
 
12
- /* Copyright 2011, Lukenzi (email : mail@lukenzi.info)
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.1.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
- $WPHE_plugin = str_replace('\\', '/', dirname(plugin_basename(__FILE__)));
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
  }