WP-DB-Backup - Version 2.2.1

Version Description

Download this release

Release Info

Developer filosofo
Plugin Icon 128x128 WP-DB-Backup
Version 2.2.1
Comparing to
See all releases

Code changes from version 2.2 to 2.2.1

readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.ilfilosofo.com/blog/wp-db-backup/
4
  Tags: mysql, database, backup, cron
5
  Requires at least: 2.0.3
6
  Tested up to: 2.7
7
- Stable tag: 2.2
8
 
9
  On-demand backup of your WordPress database.
10
 
@@ -27,13 +27,13 @@ Released under the terms of the GNU GPL, version 2.
27
  For example:
28
  `$ cd /wordpress/`
29
  `$ chgrp www-data wp-content` (where "`www-data`" is the group your FTP client uses)
30
- `$ chmod g+w backup`
31
 
32
  == Frequently Asked Questions ==
33
 
34
  = How do I restore my database from a backup? =
35
 
36
- Briefly, use phpMyAdmin, which is included with most hosting control panels. More details and links to further explanations are here: http://codex.wordpress.org/Restoring_Your_Database_From_Backup
37
 
38
  = My backup stops or hangs without completing. =
39
 
@@ -105,6 +105,7 @@ of your choice.
105
 
106
  == Translators ==
107
  Thanks to following people for providing translation files for WP-DB-Backup:
 
108
  * İzzet Emre Erkan
109
  * Michele Spagnuolo
110
  * Rune Gulbrandsøy
4
  Tags: mysql, database, backup, cron
5
  Requires at least: 2.0.3
6
  Tested up to: 2.7
7
+ Stable tag: 2.2.1
8
 
9
  On-demand backup of your WordPress database.
10
 
27
  For example:
28
  `$ cd /wordpress/`
29
  `$ chgrp www-data wp-content` (where "`www-data`" is the group your FTP client uses)
30
+ `$ chmod g+w wp-content`
31
 
32
  == Frequently Asked Questions ==
33
 
34
  = How do I restore my database from a backup? =
35
 
36
+ Briefly, use phpMyAdmin, which is included with most hosting control panels. More details and links to further explanations are [here](http://codex.wordpress.org/Restoring_Your_Database_From_Backup).
37
 
38
  = My backup stops or hangs without completing. =
39
 
105
 
106
  == Translators ==
107
  Thanks to following people for providing translation files for WP-DB-Backup:
108
+ * Gilles Wittezaele
109
  * İzzet Emre Erkan
110
  * Michele Spagnuolo
111
  * Rune Gulbrandsøy
wp-db-backup-ar.mo ADDED
Binary file
wp-db-backup-ar.po ADDED
@@ -0,0 +1,394 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: www.rjlalmtr.com\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-08-15 11:00-0500\n"
6
+ "PO-Revision-Date: 2008-11-07 11:41+0300\n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: www.rjlalmtr.com <info@rjlalmtr.com>\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-Language: Arabic\n"
13
+ "X-Poedit-Country: SAUDI ARABIA\n"
14
+
15
+ #: wp-db-backup.php:181
16
+ msgid "Backup Complete!"
17
+ msgstr "النسخه الاحتياطيه اكتملت !"
18
+
19
+ #: wp-db-backup.php:211
20
+ msgid "Progress"
21
+ msgstr "معالجه .."
22
+
23
+ #: wp-db-backup.php:213
24
+ msgid "DO NOT DO THE FOLLOWING AS IT WILL CAUSE YOUR BACKUP TO FAIL:"
25
+ msgstr "لاتقم بفعل مايلي لانه سيتلف عملية النسخ الاحتياطي الخاصه بك :"
26
+
27
+ #: wp-db-backup.php:216
28
+ msgid "Close this browser"
29
+ msgstr "إغلاق المتصفح"
30
+
31
+ #: wp-db-backup.php:217
32
+ msgid "Reload this page"
33
+ msgstr "تحديث الصفحه"
34
+
35
+ #: wp-db-backup.php:218
36
+ msgid "Click the Stop or Back buttons in your browser"
37
+ msgstr "الضغط على زر الإيقاف او الرجوع للخلف في متصفحك "
38
+
39
+ #: wp-db-backup.php:220
40
+ msgid "Progress:"
41
+ msgstr "معالجه ..."
42
+
43
+ #: wp-db-backup.php:229
44
+ msgid "Navigating away from this page will cause your backup to fail."
45
+ msgstr "الانتقال من هذه الصفحه سيؤدي الى فشل عملية النسخ الاحتياطي"
46
+
47
+ #: wp-db-backup.php:266
48
+ #, php-format
49
+ msgid "Backup complete, preparing <a href=\\\"%s\\\">backup</a> for download..."
50
+ msgstr "النسخ الاحتياطي اكتمل <a href=\\\"%s\\\">النسخه الاحتياطيه</a> للتحميل..."
51
+
52
+ #: wp-db-backup.php:273
53
+ #, php-format
54
+ msgid "Backup complete, sending <a href=\\\"%s\\\">backup</a> via email..."
55
+ msgstr "النسخه الاحتياطيه اكتملت ,, إرسال <a href=\\\"%s\\\">النسخه الاحتياطيه</a> الى الايميل..."
56
+
57
+ #: wp-db-backup.php:280
58
+ #, php-format
59
+ msgid "Backup complete, download <a href=\\\"%s\\\">here</a>."
60
+ msgstr "النسخ الاحتياطي اكتمل , للتحميل <a href=\\\"%s\\\">من هنا</a>."
61
+
62
+ #: wp-db-backup.php:340
63
+ msgid "Creating backup file..."
64
+ msgstr "انشاء النسخه الاحتياطيه"
65
+
66
+ #: wp-db-backup.php:343
67
+ #, php-format
68
+ msgid "Finished backing up table \\\"%s\\\"."
69
+ msgstr "تم الانتهاء من نسخ الجدول \\\"%s\\\"."
70
+
71
+ #: wp-db-backup.php:345
72
+ #, php-format
73
+ msgid "Backing up table \\\"%s\\\"..."
74
+ msgstr "نسخ الجدول \\\"%s\\\"..."
75
+
76
+ #: wp-db-backup.php:352
77
+ #: wp-db-backup.php:835
78
+ msgid "Could not open the backup file for writing!"
79
+ msgstr "تعذر فتح ملف النسخة الاحتياطية للكتابة!"
80
+
81
+ #: wp-db-backup.php:353
82
+ msgid "The backup file could not be saved. Please check the permissions for writing to your backup directory and try again."
83
+ msgstr "ملف النسخة الاحتياطية لا يمكن حفظه. يرجى التحقق من اذونات التصريح إلى مجلد النسخه الاحتياطية الخاصة بك وحاول مرة أخرى."
84
+
85
+ #: wp-db-backup.php:358
86
+ #: wp-db-backup.php:844
87
+ msgid "WordPress MySQL database backup"
88
+ msgstr "النسخ الاحتياطي لقاعدة بيانات ووردبريس"
89
+
90
+ #: wp-db-backup.php:360
91
+ #: wp-db-backup.php:846
92
+ #, php-format
93
+ msgid "Generated: %s"
94
+ msgstr "تم النسخ في: %s"
95
+
96
+ #: wp-db-backup.php:361
97
+ #: wp-db-backup.php:847
98
+ #, php-format
99
+ msgid "Hostname: %s"
100
+ msgstr "اسم الموقع: %s"
101
+
102
+ #: wp-db-backup.php:362
103
+ #: wp-db-backup.php:848
104
+ #, php-format
105
+ msgid "Database: %s"
106
+ msgstr "اسم القاعده: %s"
107
+
108
+ #: wp-db-backup.php:370
109
+ #: wp-db-backup.php:861
110
+ #, php-format
111
+ msgid "Table: %s"
112
+ msgstr "الجدول: %s"
113
+
114
+ #: wp-db-backup.php:377
115
+ msgid "The backup directory is not writeable! Please check the permissions for writing to your backup directory and try again."
116
+ msgstr "مجلد النسخ الاحتياطي غير قابل للكتابه. يرجى التحقق من اذونات التصريح إلى مجلد النسخه الاحتياطية الخاصة بك وحاول مرة أخرى."
117
+
118
+ #: wp-db-backup.php:434
119
+ msgid "Click and hold down <code>[SHIFT]</code> to toggle multiple checkboxes"
120
+ msgstr "اضغط باستمرار نزول <code>[SHIFT]</code>للانتقال لحانات متعدده"
121
+
122
+ #: wp-db-backup.php:474
123
+ msgid "Change"
124
+ msgstr "تغيير"
125
+
126
+ #: wp-db-backup.php:483
127
+ msgid "Save"
128
+ msgstr "حفظ"
129
+
130
+ #: wp-db-backup.php:566
131
+ #: wp-db-backup.php:571
132
+ #: wp-db-backup.php:1126
133
+ msgid "Backup"
134
+ msgstr "النسخ الاحتياطي"
135
+
136
+ #: wp-db-backup.php:646
137
+ #: wp-db-backup.php:649
138
+ msgid "There was an error writing a line to the backup script:"
139
+ msgstr "هناك خطأ في طتابة السطر البرمجي لسكربت النسخ الاحتياطي"
140
+
141
+ #: wp-db-backup.php:681
142
+ msgid "Subsequent errors have been omitted from this log."
143
+ msgstr "الأخطاء اللاحقة قد حذفت من هذا السجل."
144
+
145
+ #: wp-db-backup.php:715
146
+ msgid "Error getting table details"
147
+ msgstr "حدث خطأ أثناء الحصول على تفاصيل الجدول"
148
+
149
+ #: wp-db-backup.php:723
150
+ #, php-format
151
+ msgid "Delete any existing table %s"
152
+ msgstr "حذف اي جدول من القائمه %s"
153
+
154
+ #: wp-db-backup.php:732
155
+ #, php-format
156
+ msgid "Table structure of table %s"
157
+ msgstr "جداول هيكلة الجدول %s"
158
+
159
+ #: wp-db-backup.php:738
160
+ #, php-format
161
+ msgid "Error with SHOW CREATE TABLE for %s."
162
+ msgstr "خطأ مع عرض وانشاء الجدول لـ %s"
163
+
164
+ #: wp-db-backup.php:745
165
+ #, php-format
166
+ msgid "Error getting table structure of %s"
167
+ msgstr "حدث خطا اثناء الحصول على هيكل الجدول %s"
168
+
169
+ #: wp-db-backup.php:753
170
+ #, php-format
171
+ msgid "Data contents of table %s"
172
+ msgstr "محتوى بيانات الجدول %s"
173
+
174
+ #: wp-db-backup.php:823
175
+ #, php-format
176
+ msgid "End of data contents of table %s"
177
+ msgstr "نهاية محتوى بيانات الجدول %s"
178
+
179
+ #: wp-db-backup.php:839
180
+ msgid "The backup directory is not writeable!"
181
+ msgstr "مجلد النسخ الاحتياطي غير قابل للكتابه"
182
+
183
+ #: wp-db-backup.php:974
184
+ #, php-format
185
+ msgid "File not found:%s"
186
+ msgstr "لم يعثر على الملف :%s"
187
+
188
+ #: wp-db-backup.php:974
189
+ msgid "Return to Backup"
190
+ msgstr "عوده الى الخلف"
191
+
192
+ #: wp-db-backup.php:983
193
+ #, php-format
194
+ msgid "File %s does not exist!"
195
+ msgstr "الملف %s لا وجود له !"
196
+
197
+ #: wp-db-backup.php:990
198
+ #, php-format
199
+ msgid ""
200
+ "Attached to this email is\n"
201
+ " %1s\n"
202
+ " Size:%2s kilobytes\n"
203
+ msgstr ""
204
+ "مرفقات الرساله هي\n"
205
+ " %1s\n"
206
+ " الحجم:%2s كيلوبايت\n"
207
+
208
+ #: wp-db-backup.php:991
209
+ msgid "Database Backup"
210
+ msgstr "نسخ قاعدة البيانات"
211
+
212
+ #: wp-db-backup.php:994
213
+ #: wp-db-backup.php:1041
214
+ msgid "The following errors were reported:"
215
+ msgstr "تم الابلاغ عن الاخطاء التاليه :"
216
+
217
+ #: wp-db-backup.php:999
218
+ msgid "ERROR: The mail application has failed to deliver the backup."
219
+ msgstr "خطأ : تطبيق البريد فشل في تقديم النسخه الاحتياطيه ."
220
+
221
+ #: wp-db-backup.php:1016
222
+ msgid "Backup Successful"
223
+ msgstr "اكتمال النسخ الاحتياطي "
224
+
225
+ #: wp-db-backup.php:1020
226
+ #, php-format
227
+ msgid "Your backup file: <a href=\"%1s\">%2s</a> should begin downloading shortly."
228
+ msgstr "النسخه الاحتياطيه الخاصه بك: <a href=\"%1s\">%2s</a> ينبغي ان تبداء بتحميلها قريبا."
229
+
230
+ #: wp-db-backup.php:1028
231
+ #, php-format
232
+ msgid "Your backup has been emailed to %s"
233
+ msgstr "النسخه الاحتياطيه الحاصه بك تم ارسالها بالبريد الالكتروني للايميل %s"
234
+
235
+ #: wp-db-backup.php:1031
236
+ msgid "Your backup file has been saved on the server. If you would like to download it now, right click and select \"Save As\""
237
+ msgstr "النسخه الاحتياطيه الخاص بك تم حفظها على السيرفر لتحميلها اضغط بالزر الايمن واختر \"حفظ باسم\""
238
+
239
+ #: wp-db-backup.php:1032
240
+ #, php-format
241
+ msgid "%s bytes"
242
+ msgstr "%s بايت"
243
+
244
+ #: wp-db-backup.php:1068
245
+ msgid "Scheduled Backup Options Saved!"
246
+ msgstr "خيارات النسخ الدوري تم حفظها !"
247
+
248
+ #: wp-db-backup.php:1095
249
+ msgid "WARNING: Your backup directory does <strong>NOT</strong> exist, and we cannot create it."
250
+ msgstr "تحذير : مجلد النسخ الاحتياطيه <strong>لم يتم</strong> العثور عليه . كما انه لم يتم انشائه . "
251
+
252
+ #: wp-db-backup.php:1096
253
+ #, php-format
254
+ msgid "Using your FTP client, try to create the backup directory yourself: %s"
255
+ msgstr "استخدم برنامج الاف تي بي FTP وقم بإنشاء المجلد على هذا المسار : %s"
256
+
257
+ #: wp-db-backup.php:1100
258
+ #: wp-db-backup.php:1111
259
+ msgid "WARNING: Your backup directory is <strong>NOT</strong> writable! We cannot create the backup files."
260
+ msgstr "تحذير : المجلد الخاص بالنسخ الاحتياطي <strong>غير قابل</strong> للكتابه! لذلك لايمكن انشاء النسخ الاحتياطي ."
261
+
262
+ #: wp-db-backup.php:1101
263
+ #, php-format
264
+ msgid "Using your FTP client, try to set the backup directory&rsquo;s write permission to %1$s or %2$s: %3$s"
265
+ msgstr "استخدم برنامج الاف تي بي الخاص بك . واعط مجلد النسخ الاحتياطي&rsquo;s التصاريح %1$s or %2$s: %3$s"
266
+
267
+ #: wp-db-backup.php:1113
268
+ msgid "This problem seems to be caused by your server&rsquo;s <code>safe_mode</code> file ownership restrictions, which limit what files web applications like WordPress can create."
269
+ msgstr ""
270
+
271
+ #: wp-db-backup.php:1115
272
+ #, php-format
273
+ msgid "You can try to correct this problem by using your FTP client to delete and then re-create the backup directory: %s"
274
+ msgstr "يمكنك تصحيح هذه المشكله باستخدام برنامج الاف تي بي ومن ثم حذف مجلد النسخ الاحتياطي واعادة انشائه مرخ اخرى %s"
275
+
276
+ #: wp-db-backup.php:1129
277
+ msgid "Tables"
278
+ msgstr "الجدوال"
279
+
280
+ #: wp-db-backup.php:1131
281
+ msgid "These core WordPress tables will always be backed up:"
282
+ msgstr "هذه الجدوال الاساسيه للووردبريس سيتم نسخها دائما :"
283
+
284
+ #: wp-db-backup.php:1136
285
+ msgid "Exclude spam comments"
286
+ msgstr "استبعاد التعليقات المزعجه ( سبام ) "
287
+
288
+ #: wp-db-backup.php:1139
289
+ msgid "Exclude post revisions"
290
+ msgstr "استثناء تنقيحات المواضيع"
291
+
292
+ #: wp-db-backup.php:1150
293
+ msgid "You may choose to include any of the following tables:"
294
+ msgstr "يمكنك اختيار اي من الجداول التاليه ليشملها النسخ :"
295
+
296
+ #: wp-db-backup.php:1164
297
+ msgid "Backup Options"
298
+ msgstr "خيارات النسخ الدوري"
299
+
300
+ #: wp-db-backup.php:1165
301
+ msgid "What to do with the backup file:"
302
+ msgstr "ماذا تريد ان تفعل بملف النسخه الاحتياطيه :"
303
+
304
+ #: wp-db-backup.php:1169
305
+ msgid "Save to server"
306
+ msgstr "حفظ على السيرفر"
307
+
308
+ #: wp-db-backup.php:1174
309
+ msgid "Download to your computer"
310
+ msgstr "حفظ على الكمبيوتر "
311
+
312
+ #: wp-db-backup.php:1178
313
+ #: wp-db-backup.php:1235
314
+ msgid "Email backup to:"
315
+ msgstr "ارسالها الى الايميل "
316
+
317
+ #: wp-db-backup.php:1185
318
+ msgid "Backup now!"
319
+ msgstr "النسخ الان !"
320
+
321
+ #: wp-db-backup.php:1188
322
+ msgid "WARNING: Your backup directory is <strong>NOT</strong> writable!"
323
+ msgstr "تحذير : دليل النسخ الاحتياطيه الخاص بك <strong>غير قابل</strong>للكتابه !"
324
+
325
+ #: wp-db-backup.php:1199
326
+ msgid "Scheduled Backup"
327
+ msgstr "النسخ الاحتياطي الدوري"
328
+
329
+ #: wp-db-backup.php:1206
330
+ #, php-format
331
+ msgid "Next Backup: %s"
332
+ msgstr "النسخ الاحتياطي التالي: %s"
333
+
334
+ #: wp-db-backup.php:1211
335
+ #, php-format
336
+ msgid "Last WP-Cron Daily Execution: %s"
337
+ msgstr "Last WP-Cron Daily Execution: %s"
338
+
339
+ #: wp-db-backup.php:1212
340
+ #, php-format
341
+ msgid "Next WP-Cron Daily Execution: %s"
342
+ msgstr ""
343
+
344
+ #: wp-db-backup.php:1217
345
+ msgid "Schedule: "
346
+ msgstr "النسخ الدوري :"
347
+
348
+ #: wp-db-backup.php:1220
349
+ msgid "None"
350
+ msgstr "بدون"
351
+
352
+ #: wp-db-backup.php:1220
353
+ msgid "Daily"
354
+ msgstr "يومي"
355
+
356
+ #: wp-db-backup.php:1243
357
+ msgid "Tables to include in the scheduled backup:"
358
+ msgstr "الجداول التي يشملها النسخ الاحتياطي الدوري :"
359
+
360
+ #: wp-db-backup.php:1253
361
+ msgid "Schedule backup"
362
+ msgstr "النسخ الاحتياطي الدوري"
363
+
364
+ #: wp-db-backup.php:1278
365
+ msgid "Never"
366
+ msgstr "ابدا"
367
+
368
+ #: wp-db-backup.php:1283
369
+ #, php-format
370
+ msgid "%s seconds"
371
+ msgstr ""
372
+
373
+ #: wp-db-backup.php:1316
374
+ msgid "Once Weekly"
375
+ msgstr "مره كل اسبوع"
376
+
377
+ #: wp-db-backup.php:1329
378
+ #, php-format
379
+ msgid "Your WordPress version, %1s, lacks important security features without which it is unsafe to use the WP-DB-Backup plugin. Hence, this plugin is automatically disabled. Please consider <a href=\"%2s\">upgrading WordPress</a> to a more recent version."
380
+ msgstr ""
381
+
382
+ #: wp-db-backup.php:1347
383
+ msgid "You are not allowed to perform backups."
384
+ msgstr "لم تسمح بالنسخ الاحتياطي ."
385
+
386
+ #: wp-db-backup.php:1362
387
+ #, php-format
388
+ msgid "There appears to be an unauthorized attempt from this site to access your database located at %1s. The attempt has been halted."
389
+ msgstr ""
390
+
391
+ #: wp-db-backup.php:1373
392
+ msgid "Cheatin' uh ?"
393
+ msgstr ""
394
+
wp-db-backup-fr_FR.mo ADDED
Binary file
wp-db-backup-fr_FR.po ADDED
@@ -0,0 +1,398 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WordPress Database Backup v2.2.1\n"
4
+ "PO-Revision-Date: 2008-09-11 13:28+0200\n"
5
+ "Last-Translator: gilles <gilles.wittezaele@laposte.net>\n"
6
+ "MIME-Version: 1.0\n"
7
+ "Content-Type: text/plain; charset=UTF-8\n"
8
+ "Content-Transfer-Encoding: 8bit\n"
9
+ "Plural-Forms: nplurals=2; plural=n>1;\n"
10
+ "X-Poedit-Language: French\n"
11
+ "X-Poedit-Country: FRANCE\n"
12
+ "X-Poedit-SourceCharset: utf-8\n"
13
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;__ngettext_noop:1,2;_c\n"
14
+ "X-Poedit-Basepath: \n"
15
+ "X-Poedit-SearchPath-0: ."
16
+
17
+ #: wp-db-backup.php:182
18
+ msgid "Backup Complete!"
19
+ msgstr "Sauvegarde effectuée !"
20
+
21
+ #: wp-db-backup.php:211
22
+ msgid "Progress"
23
+ msgstr "Progression"
24
+
25
+ #: wp-db-backup.php:213
26
+ msgid "DO NOT DO THE FOLLOWING AS IT WILL CAUSE YOUR BACKUP TO FAIL:"
27
+ msgstr "NE FAITES PAS CECI CAR VOTRE SAUVEGARDE ÉCHOUERA :"
28
+
29
+ #: wp-db-backup.php:216
30
+ msgid "Close this browser"
31
+ msgstr "Fermer ce navigateur"
32
+
33
+ #: wp-db-backup.php:217
34
+ msgid "Reload this page"
35
+ msgstr "Recharger cette page"
36
+
37
+ #: wp-db-backup.php:218
38
+ msgid "Click the Stop or Back buttons in your browser"
39
+ msgstr "Cliquez sur les boutons Retour ou Stop de votre navigateur"
40
+
41
+ #: wp-db-backup.php:220
42
+ msgid "Progress:"
43
+ msgstr "Progression :"
44
+
45
+ #: wp-db-backup.php:229
46
+ msgid "Navigating away from this page will cause your backup to fail."
47
+ msgstr "Naviguer hors de cette page fera échouer votre sauvegarde."
48
+
49
+ #: wp-db-backup.php:266
50
+ #, php-format
51
+ msgid "Backup complete, preparing <a href=\\"%s\\">backup</a> for download..."
52
+ msgstr "Sauvegarde effectuée, préparation de <a href=\\"%s\\">la sauvegarde</a> pour le téléchargement..."
53
+
54
+ #: wp-db-backup.php:273
55
+ #, php-format
56
+ msgid "Backup complete, sending <a href=\\"%s\\">backup</a> via email..."
57
+ msgstr "Sauvegarde effectuée, envoi de <a href=\\"%s\\">la sauvegarde</a> par e-mail..."
58
+
59
+ #: wp-db-backup.php:280
60
+ #, php-format
61
+ msgid "Backup complete, download <a href=\\"%s\\">here</a>."
62
+ msgstr "Sauvegarde effectuée, téléchargez-la <a href=\\"%s\\">ici</a>."
63
+
64
+ #: wp-db-backup.php:340
65
+ msgid "Creating backup file..."
66
+ msgstr "Création du fichier de sauvegarde..."
67
+
68
+ #: wp-db-backup.php:343
69
+ #, php-format
70
+ msgid "Finished backing up table \\"%s\\"."
71
+ msgstr "Sauvegarde des tables \\"%s\\" terminée."
72
+
73
+ #: wp-db-backup.php:345
74
+ #, php-format
75
+ msgid "Backing up table \\"%s\\"..."
76
+ msgstr "Sauvegarde des tables \\"%s\\"..."
77
+
78
+ #: wp-db-backup.php:352
79
+ #: wp-db-backup.php:839
80
+ msgid "Could not open the backup file for writing!"
81
+ msgstr "Impossible d'ouvrir le fichier de sauvegarde pour y écrire !"
82
+
83
+ #: wp-db-backup.php:353
84
+ msgid "The backup file could not be saved. Please check the permissions for writing to your backup directory and try again."
85
+ msgstr "Le fichier de sauvegarde n'a pas pu être enregistré. S’il vous plaît, vérifiez les permissions d'écriture de votre répertoire de sauvegarde et essayez à nouveau."
86
+
87
+ #: wp-db-backup.php:358
88
+ #: wp-db-backup.php:848
89
+ msgid "WordPress MySQL database backup"
90
+ msgstr "Sauvegarde de la base de données MySLQ de WordPress"
91
+
92
+ #: wp-db-backup.php:360
93
+ #: wp-db-backup.php:850
94
+ #, php-format
95
+ msgid "Generated: %s"
96
+ msgstr "Généré le : %s"
97
+
98
+ #: wp-db-backup.php:361
99
+ #: wp-db-backup.php:851
100
+ #, php-format
101
+ msgid "Hostname: %s"
102
+ msgstr "Nom d'hôte : %s"
103
+
104
+ #: wp-db-backup.php:362
105
+ #: wp-db-backup.php:852
106
+ #, php-format
107
+ msgid "Database: %s"
108
+ msgstr "Base de données : %s"
109
+
110
+ #: wp-db-backup.php:370
111
+ #: wp-db-backup.php:865
112
+ #, php-format
113
+ msgid "Table: %s"
114
+ msgstr "Tables : %s"
115
+
116
+ #: wp-db-backup.php:377
117
+ msgid "The backup directory is not writeable! Please check the permissions for writing to your backup directory and try again."
118
+ msgstr "Le répertoire de sauvegarde n'est pas accessible en écriture ! S’il vous plaît, vérifiez les permissions d'écriture dans votre répertoire de sauvegarde et essayez à nouveau."
119
+
120
+ #: wp-db-backup.php:434
121
+ msgid "Click and hold down <code>[SHIFT]</code> to toggle multiple checkboxes"
122
+ msgstr "Cliquez et maintenez enfoncé <code>[SHIFT]</code> pour sélectionner plusieurs cases à cocher"
123
+
124
+ #: wp-db-backup.php:474
125
+ msgid "Change"
126
+ msgstr "Changer"
127
+
128
+ #: wp-db-backup.php:483
129
+ msgid "Save"
130
+ msgstr "Enregistrer"
131
+
132
+ #: wp-db-backup.php:570
133
+ #: wp-db-backup.php:570
134
+ #: wp-db-backup.php:575
135
+ #: wp-db-backup.php:575
136
+ #: wp-db-backup.php:1129
137
+ msgid "Backup"
138
+ msgstr "Sauvegarder"
139
+
140
+ #: wp-db-backup.php:650
141
+ #: wp-db-backup.php:653
142
+ msgid "There was an error writing a line to the backup script:"
143
+ msgstr "Il y a eu une erreur lors de l'écriture d'une ligne dans le script de sauvegarde :"
144
+
145
+ #: wp-db-backup.php:685
146
+ msgid "Subsequent errors have been omitted from this log."
147
+ msgstr "Les erreurs suivantes ont été omises dans le journal."
148
+
149
+ #: wp-db-backup.php:719
150
+ msgid "Error getting table details"
151
+ msgstr "Erreur lors de l'obtention des détails des tables"
152
+
153
+ #: wp-db-backup.php:727
154
+ #, php-format
155
+ msgid "Delete any existing table %s"
156
+ msgstr "Supprimer toute table existante %s"
157
+
158
+ #: wp-db-backup.php:736
159
+ #, php-format
160
+ msgid "Table structure of table %s"
161
+ msgstr "Tableau de structure de la table %s"
162
+
163
+ #: wp-db-backup.php:742
164
+ #, php-format
165
+ msgid "Error with SHOW CREATE TABLE for %s."
166
+ msgstr "Erreur avec SHOW CREATE TABLE pour %s."
167
+
168
+ #: wp-db-backup.php:749
169
+ #, php-format
170
+ msgid "Error getting table structure of %s"
171
+ msgstr "Erreur de récupération de la structure de table de %s"
172
+
173
+ #: wp-db-backup.php:757
174
+ #, php-format
175
+ msgid "Data contents of table %s"
176
+ msgstr "Contenu de la table %s"
177
+
178
+ #: wp-db-backup.php:827
179
+ #, php-format
180
+ msgid "End of data contents of table %s"
181
+ msgstr "Fin du contenu de la table %s"
182
+
183
+ #: wp-db-backup.php:843
184
+ msgid "The backup directory is not writeable!"
185
+ msgstr "Le répertoire de sauvegarde n'est pas accessible en écriture !"
186
+
187
+ #: wp-db-backup.php:977
188
+ #, php-format
189
+ msgid "File not found:%s"
190
+ msgstr "Fichier introuvable :%s"
191
+
192
+ #: wp-db-backup.php:977
193
+ msgid "Return to Backup"
194
+ msgstr "Retourner à la sauvegarde"
195
+
196
+ #: wp-db-backup.php:986
197
+ #, php-format
198
+ msgid "File %s does not exist!"
199
+ msgstr "Le fichier %s n'existe pas !"
200
+
201
+ #: wp-db-backup.php:993
202
+ #, php-format
203
+ msgid ""
204
+ "Attached to this email is\n"
205
+ " %1s\n"
206
+ " Size:%2s kilobytes\n"
207
+ msgstr ""
208
+ "Pièce-jointe de l'e-mail \n"
209
+ " %1s\n"
210
+ " Taille : %2s kilobytes\n"
211
+
212
+ #: wp-db-backup.php:994
213
+ msgid "Database Backup"
214
+ msgstr "Sauvegarde de la base de données"
215
+
216
+ #: wp-db-backup.php:997
217
+ #: wp-db-backup.php:1044
218
+ msgid "The following errors were reported:"
219
+ msgstr "Les erreurs suivantes ont été signalées :"
220
+
221
+ #: wp-db-backup.php:1002
222
+ msgid "ERROR: The mail application has failed to deliver the backup."
223
+ msgstr "ERREUR : L'application e-mail n'a pas pu acheminer la sauvegarde."
224
+
225
+ #: wp-db-backup.php:1019
226
+ msgid "Backup Successful"
227
+ msgstr "Sauvegarde réussie"
228
+
229
+ #: wp-db-backup.php:1023
230
+ #, php-format
231
+ msgid "Your backup file: <a href=\"%1s\">%2s</a> should begin downloading shortly."
232
+ msgstr "Le téléchargement de votre fichier de sauvegarde <a href=\"%1s\">%2s</a> devrait commencer dans peu de temps."
233
+
234
+ #: wp-db-backup.php:1031
235
+ #, php-format
236
+ msgid "Your backup has been emailed to %s"
237
+ msgstr "Votre sauvegarde a été envoyée par e-mail à % s"
238
+
239
+ #: wp-db-backup.php:1034
240
+ msgid "Your backup file has been saved on the server. If you would like to download it now, right click and select \"Save As\""
241
+ msgstr "Votre fichier de sauvegarde a été enregistré sur le serveur. Si vous souhaitez le télécharger maintenant, cliquez avec le bouton droit et sélectionnez \"Enregistrer la cible sous\""
242
+
243
+ #: wp-db-backup.php:1035
244
+ #, php-format
245
+ msgid "%s bytes"
246
+ msgstr "%s bytes"
247
+
248
+ #: wp-db-backup.php:1071
249
+ msgid "Scheduled Backup Options Saved!"
250
+ msgstr "Options de la sauvegarde programmée enregistrées !"
251
+
252
+ #: wp-db-backup.php:1098
253
+ msgid "WARNING: Your backup directory does <strong>NOT</strong> exist, and we cannot create it."
254
+ msgstr "ATTENTION : Votre répertoire de sauvegarde <strong>N'EXISTE PAS</strong> et nous ne pouvons pas le créer."
255
+
256
+ #: wp-db-backup.php:1099
257
+ #, php-format
258
+ msgid "Using your FTP client, try to create the backup directory yourself: %s"
259
+ msgstr "A l'aide de votre client FTP, essayez de créer le répertoire de sauvegarde vous-même : %s"
260
+
261
+ #: wp-db-backup.php:1103
262
+ #: wp-db-backup.php:1114
263
+ msgid "WARNING: Your backup directory is <strong>NOT</strong> writable! We cannot create the backup files."
264
+ msgstr "ATTENTION : Votre répertoire de sauvegarde <strong>N'EST PAS</strong> accessible en écriture ! Nous ne pouvons pas créer les fichiers de sauvegarde."
265
+
266
+ #: wp-db-backup.php:1104
267
+ #, php-format
268
+ msgid "Using your FTP client, try to set the backup directory&rsquo;s write permission to %1$s or %2$s: %3$s"
269
+ msgstr "En utilisant votre client FTP, essayez de changer les permissions d'écriture du répertoire de sauvegarde en %1$s ou %2$s : %3$s"
270
+
271
+ #: wp-db-backup.php:1116
272
+ msgid "This problem seems to be caused by your server&rsquo;s <code>safe_mode</code> file ownership restrictions, which limit what files web applications like WordPress can create."
273
+ msgstr "Ce problème semble être causé par le mode <code>safe_mode</code> de votre serveur, ce qui limite les créations de fichiers à partir d'applications web comme WordPress."
274
+
275
+ #: wp-db-backup.php:1118
276
+ #, php-format
277
+ msgid "You can try to correct this problem by using your FTP client to delete and then re-create the backup directory: %s"
278
+ msgstr "Vous pouvez essayer de corriger ce problème en utilisant votre client FTP pour supprimer puis re-créer le répertoire de sauvegarde :%s"
279
+
280
+ #: wp-db-backup.php:1132
281
+ msgid "Tables"
282
+ msgstr "Tables"
283
+
284
+ #: wp-db-backup.php:1134
285
+ msgid "These core WordPress tables will always be backed up:"
286
+ msgstr "Ces tables de base WordPress seront toujours sauvegardées :"
287
+
288
+ #: wp-db-backup.php:1139
289
+ msgid "Exclude spam comments"
290
+ msgstr "Exclure les commentaires de spam"
291
+
292
+ #: wp-db-backup.php:1142
293
+ msgid "Exclude post revisions"
294
+ msgstr "Exclure les anciennes versions des billets"
295
+
296
+ #: wp-db-backup.php:1153
297
+ msgid "You may choose to include any of the following tables:"
298
+ msgstr "Vous pouvez choisir d'inclure certaines tables suivantes :"
299
+
300
+ #: wp-db-backup.php:1167
301
+ msgid "Backup Options"
302
+ msgstr "Options de sauvegarde"
303
+
304
+ #: wp-db-backup.php:1168
305
+ msgid "What to do with the backup file:"
306
+ msgstr "Que faire avec le fichier de sauvegarde :"
307
+
308
+ #: wp-db-backup.php:1172
309
+ msgid "Save to server"
310
+ msgstr "Sauvegarder sur le serveur"
311
+
312
+ #: wp-db-backup.php:1177
313
+ msgid "Download to your computer"
314
+ msgstr "Télécharger sur votre ordinateur"
315
+
316
+ #: wp-db-backup.php:1181
317
+ #: wp-db-backup.php:1239
318
+ msgid "Email backup to:"
319
+ msgstr "Envoyer la sauvegarde par e-mail à :"
320
+
321
+ #: wp-db-backup.php:1188
322
+ msgid "Backup now!"
323
+ msgstr "Sauvegarder maintenant !"
324
+
325
+ #: wp-db-backup.php:1191
326
+ msgid "WARNING: Your backup directory is <strong>NOT</strong> writable!"
327
+ msgstr "ATTENTION : Votre répertoire de sauvegarde <strong>N'EST PAS</strong> accessible en écriture !"
328
+
329
+ #: wp-db-backup.php:1202
330
+ msgid "Scheduled Backup"
331
+ msgstr "Sauvegarde programmée"
332
+
333
+ #: wp-db-backup.php:1209
334
+ #, php-format
335
+ msgid "Next Backup: %s"
336
+ msgstr "Prochaine sauvegarde : %s"
337
+
338
+ #: wp-db-backup.php:1214
339
+ #, php-format
340
+ msgid "Last WP-Cron Daily Execution: %s"
341
+ msgstr "Dernière exécution journalière de WP-Cron : %s"
342
+
343
+ #: wp-db-backup.php:1215
344
+ #, php-format
345
+ msgid "Next WP-Cron Daily Execution: %s"
346
+ msgstr "Prochaine exécution journalière de WP-Cron : %s"
347
+
348
+ #: wp-db-backup.php:1220
349
+ msgid "Schedule: "
350
+ msgstr "Fréquence :"
351
+
352
+ #: wp-db-backup.php:1224
353
+ msgid "None"
354
+ msgstr "Aucun"
355
+
356
+ #: wp-db-backup.php:1224
357
+ msgid "Daily"
358
+ msgstr "Tous les jours"
359
+
360
+ #: wp-db-backup.php:1241
361
+ msgid "Schedule backup"
362
+ msgstr "Sauvegarde programmée"
363
+
364
+ #: wp-db-backup.php:1249
365
+ msgid "Tables to include in the scheduled backup:"
366
+ msgstr "Tables à inclure dans la sauvegarde programmée :"
367
+
368
+ #: wp-db-backup.php:1284
369
+ msgid "Never"
370
+ msgstr "Jamais"
371
+
372
+ #: wp-db-backup.php:1289
373
+ #, php-format
374
+ msgid "%s seconds"
375
+ msgstr "%s secondes"
376
+
377
+ #: wp-db-backup.php:1322
378
+ msgid "Once Weekly"
379
+ msgstr "Une fois par semaine"
380
+
381
+ #: wp-db-backup.php:1335
382
+ #, php-format
383
+ msgid "Your WordPress version, %1s, lacks important security features without which it is unsafe to use the WP-DB-Backup plugin. Hence, this plugin is automatically disabled. Please consider <a href=\"%2s\">upgrading WordPress</a> to a more recent version."
384
+ msgstr "Votre version de WordPress, 1s%, ne comporte pas certains dispositifs de sécurité importants sans lesquels il est dangereux d'utiliser l'extension WP-DB-Backup. Par conséquent, ce plugin est automatiquement désactivée. S'il vous plaît, examiner, <a href=\"%2s\">mettez à jour WordPress</a> avec une version plus récente."
385
+
386
+ #: wp-db-backup.php:1353
387
+ msgid "You are not allowed to perform backups."
388
+ msgstr "Vous n'êtes pas autorisé à effectuer des sauvegardes."
389
+
390
+ #: wp-db-backup.php:1368
391
+ #, php-format
392
+ msgid "There appears to be an unauthorized attempt from this site to access your database located at %1s. The attempt has been halted."
393
+ msgstr "Il semble y avoir une tentative non autorisée de ce site pour accéder à votre base de données située à 1s%. La tentative a été stoppée."
394
+
395
+ #: wp-db-backup.php:1379
396
+ msgid "Cheatin' uh ?"
397
+ msgstr "P\'tit malin !"
398
+
wp-db-backup.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.ilfilosofo.com/blog/wp-db-backup
5
  Description: On-demand backup of your WordPress database. Navigate to <a href="edit.php?page=wp-db-backup">Manage &rarr; Backup</a> to get started.
6
  Author: Austin Matzko
7
  Author URI: http://www.ilfilosofo.com/
8
- Version: 2.2
9
 
10
  Development continued from that done by Skippy (http://www.skippy.net/)
11
 
@@ -130,7 +130,8 @@ class wpdbBackup {
130
  $query_args = array( 'page' => $this->basename );
131
  if ( function_exists('wp_create_nonce') )
132
  $query_args = array_merge( $query_args, array('_wpnonce' => wp_create_nonce($this->referer_check_key)) );
133
- $this->page_url = add_query_arg( $query_args, get_option('siteurl') . '/wp-admin/edit.php');
 
134
  if (isset($_POST['do_backup'])) {
135
  $this->wp_secure('fatal');
136
  check_admin_referer($this->referer_check_key);
@@ -396,7 +397,7 @@ class wpdbBackup {
396
  $also_backup = $_POST['other_tables'];
397
  $core_tables = $_POST['core_tables'];
398
  $this->backup_file = $this->db_backup($core_tables, $also_backup);
399
- if (FALSE !== $this->backup_file) {
400
  if ('smtp' == $_POST['deliver']) {
401
  $this->deliver_backup($this->backup_file, $_POST['deliver'], $_POST['backup_recipient'], 'main');
402
  wp_redirect($this->page_url);
@@ -598,7 +599,7 @@ class wpdbBackup {
598
  * Better addslashes for SQL queries.
599
  * Taken from phpMyAdmin.
600
  */
601
- function sql_addslashes($a_string = '', $is_like = FALSE) {
602
  if ($is_like) $a_string = str_replace('\\', '\\\\\\\\', $a_string);
603
  else $a_string = str_replace('\\', '\\\\', $a_string);
604
  return str_replace('\'', '\\\'', $a_string);
@@ -648,7 +649,7 @@ class wpdbBackup {
648
  if(! @gzwrite($this->fp, $query_line))
649
  $this->error(__('There was an error writing a line to the backup script:','wp-db-backup') . ' ' . $query_line . ' ' . $php_errormsg);
650
  } else {
651
- if(FALSE === @fwrite($this->fp, $query_line))
652
  $this->error(__('There was an error writing a line to the backup script:','wp-db-backup') . ' ' . $query_line . ' ' . $php_errormsg);
653
  }
654
  }
@@ -716,7 +717,7 @@ class wpdbBackup {
716
  $table_structure = $wpdb->get_results("DESCRIBE $table");
717
  if (! $table_structure) {
718
  $this->error(__('Error getting table details','wp-db-backup') . ": $table");
719
- return FALSE;
720
  }
721
 
722
  if(($segment == 'none') || ($segment == 0)) {
@@ -737,14 +738,14 @@ class wpdbBackup {
737
  $this->stow("\n");
738
 
739
  $create_table = $wpdb->get_results("SHOW CREATE TABLE $table", ARRAY_N);
740
- if (FALSE === $create_table) {
741
  $err_msg = sprintf(__('Error with SHOW CREATE TABLE for %s.','wp-db-backup'), $table);
742
  $this->error($err_msg);
743
  $this->stow("#\n# $err_msg\n#\n");
744
  }
745
  $this->stow($create_table[0][1] . ' ;');
746
 
747
- if (FALSE === $table_structure) {
748
  $err_msg = sprintf(__('Error getting table structure of %s','wp-db-backup'), $table);
749
  $this->error($err_msg);
750
  $this->stow("#\n# $err_msg\n#\n");
@@ -963,7 +964,6 @@ class wpdbBackup {
963
 
964
  $result = @wp_mail($to, $subject, $message, $headers);
965
  }
966
- return false;
967
  return $result;
968
 
969
  }
@@ -993,7 +993,7 @@ class wpdbBackup {
993
  $message = sprintf(__("Attached to this email is\n %1s\n Size:%2s kilobytes\n",'wp-db-backup'), $filename, round(filesize($diskfile)/1024));
994
  $success = $this->send_mail($recipient, get_bloginfo('name') . ' ' . __('Database Backup','wp-db-backup'), $message, $diskfile);
995
 
996
- if ( false == $success ) {
997
  $msg = __('The following errors were reported:','wp-db-backup') . "\n ";
998
  if ( function_exists('error_get_last') ) {
999
  $err = error_get_last();
@@ -1012,7 +1012,7 @@ class wpdbBackup {
1012
  function backup_menu() {
1013
  global $table_prefix, $wpdb;
1014
  $feedback = '';
1015
- $WHOOPS = FALSE;
1016
 
1017
  // did we just do a backup? If so, let's report the status
1018
  if ( $this->backup_complete ) {
@@ -1056,17 +1056,17 @@ class wpdbBackup {
1056
  $name = strval($_POST['wp_cron_schedule']);
1057
  $interval = ( isset($scheds[$name]['interval']) ) ?
1058
  (int) $scheds[$name]['interval'] : 0;
1059
- update_option('wp_cron_backup_schedule', $name, FALSE);
1060
  if ( 0 !== $interval ) {
1061
  wp_schedule_event(time() + $interval, $name, 'wp_db_backup_cron');
1062
  }
1063
  }
1064
  else {
1065
- update_option('wp_cron_backup_schedule', intval($_POST['cron_schedule']), FALSE);
1066
  }
1067
  update_option('wp_cron_backup_tables', $_POST['wp_cron_backup_tables']);
1068
  if (is_email($_POST['cron_backup_recipient'])) {
1069
- update_option('wp_cron_backup_recipient', $_POST['cron_backup_recipient'], FALSE);
1070
  }
1071
  $feedback .= '<div class="updated wp-db-backup-updated"><p>' . __('Scheduled Backup Options Saved!','wp-db-backup') . '</p></div>';
1072
  endif;
@@ -1097,13 +1097,13 @@ class wpdbBackup {
1097
  if ( ! file_exists($this->backup_dir) && ! @mkdir($this->backup_dir) ) {
1098
  ?><div class="updated wp-db-backup-updated error"><p><?php _e('WARNING: Your backup directory does <strong>NOT</strong> exist, and we cannot create it.','wp-db-backup'); ?></p>
1099
  <p><?php printf(__('Using your FTP client, try to create the backup directory yourself: %s', 'wp-db-backup'), '<code>' . $this->backup_dir . '</code>'); ?></p></div><?php
1100
- $WHOOPS = TRUE;
1101
  // not writable due to write permissions
1102
  } elseif ( !is_writable($this->backup_dir) && ! @chmod($this->backup_dir, $dir_perms) ) {
1103
  ?><div class="updated wp-db-backup-updated error"><p><?php _e('WARNING: Your backup directory is <strong>NOT</strong> writable! We cannot create the backup files.','wp-db-backup'); ?></p>
1104
  <p><?php printf(__('Using your FTP client, try to set the backup directory&rsquo;s write permission to %1$s or %2$s: %3$s', 'wp-db-backup'), '<code>777</code>', '<code>a+w</code>', '<code>' . $this->backup_dir . '</code>'); ?>
1105
  </p></div><?php
1106
- $WHOOPS = TRUE;
1107
  } else {
1108
  $this->fp = $this->open($this->backup_dir . 'test' );
1109
  if( $this->fp ) {
@@ -1117,7 +1117,7 @@ class wpdbBackup {
1117
  }
1118
  ?><?php printf(__('You can try to correct this problem by using your FTP client to delete and then re-create the backup directory: %s', 'wp-db-backup'), '<code>' . $this->backup_dir . '</code>');
1119
  ?></div><?php
1120
- $WHOOPS = TRUE;
1121
  }
1122
  }
1123
 
@@ -1182,7 +1182,7 @@ class wpdbBackup {
1182
  <input type="text" name="backup_recipient" size="20" value="<?php echo get_option('admin_email'); ?>" />
1183
  </label></li>
1184
  </ul>
1185
- <?php if ( ! $WHOOPS ) : ?>
1186
  <input type="hidden" name="do_backup" id="do_backup" value="backup" />
1187
  <p class="submit">
1188
  <input type="submit" name="submit" onclick="document.getElementById('do_backup').value='fragments';" value="<?php _e('Backup now!','wp-db-backup'); ?>" />
@@ -1238,12 +1238,14 @@ class wpdbBackup {
1238
  }
1239
  $cron_recipient_input = '<p><label for="cron_backup_recipient">' . __('Email backup to:','wp-db-backup') . ' <input type="text" name="cron_backup_recipient" id="cron_backup_recipient" size="20" value="' . $cron_recipient . '" /></label></p>';
1240
  echo apply_filters('wp_db_b_cron_recipient_input', $cron_recipient_input);
1241
- echo '</div><div class="tables-list alternate" id="include-tables-list">';
 
1242
  $cron_tables = get_option('wp_cron_backup_tables');
1243
  if (! is_array($cron_tables)) {
1244
  $cron_tables = array();
1245
  }
1246
  if (count($other_tables) > 0) {
 
1247
  echo '<h4>' . __('Tables to include in the scheduled backup:','wp-db-backup') . '</h4><ul>';
1248
  foreach ($other_tables as $table) {
1249
  echo '<li><input type="checkbox" ';
@@ -1252,13 +1254,13 @@ class wpdbBackup {
1252
  }
1253
  echo "name='wp_cron_backup_tables[]' value='{$table}' /> <code>{$table}</code></li>";
1254
  }
1255
- echo '</ul>';
1256
  }
1257
- echo '<input type="hidden" name="wp_cron_backup_options" value="SET" /><p class="submit"><input type="submit" name="submit" value="' . __('Schedule backup','wp-db-backup') . '" /></p></div></form>';
1258
  echo '</fieldset>';
1259
  endif; // end of wp_cron (legacy) section
1260
 
1261
- echo '</div>';
1262
 
1263
  } // end wp_backup_menu()
1264
 
@@ -1311,7 +1313,7 @@ class wpdbBackup {
1311
  $other_tables = get_option('wp_cron_backup_tables');
1312
  $recipient = get_option('wp_cron_backup_recipient');
1313
  $backup_file = $this->db_backup($core_tables, $other_tables);
1314
- if (FALSE !== $backup_file)
1315
  return $this->deliver_backup($backup_file, 'smtp', $recipient, 'main');
1316
  else return false;
1317
  }
5
  Description: On-demand backup of your WordPress database. Navigate to <a href="edit.php?page=wp-db-backup">Manage &rarr; Backup</a> to get started.
6
  Author: Austin Matzko
7
  Author URI: http://www.ilfilosofo.com/
8
+ Version: 2.2.1
9
 
10
  Development continued from that done by Skippy (http://www.skippy.net/)
11
 
130
  $query_args = array( 'page' => $this->basename );
131
  if ( function_exists('wp_create_nonce') )
132
  $query_args = array_merge( $query_args, array('_wpnonce' => wp_create_nonce($this->referer_check_key)) );
133
+ $base = ( function_exists('site_url') ) ? site_url('', 'admin') : get_option('siteurl');
134
+ $this->page_url = add_query_arg( $query_args, $base . '/wp-admin/edit.php');
135
  if (isset($_POST['do_backup'])) {
136
  $this->wp_secure('fatal');
137
  check_admin_referer($this->referer_check_key);
397
  $also_backup = $_POST['other_tables'];
398
  $core_tables = $_POST['core_tables'];
399
  $this->backup_file = $this->db_backup($core_tables, $also_backup);
400
+ if (false !== $this->backup_file) {
401
  if ('smtp' == $_POST['deliver']) {
402
  $this->deliver_backup($this->backup_file, $_POST['deliver'], $_POST['backup_recipient'], 'main');
403
  wp_redirect($this->page_url);
599
  * Better addslashes for SQL queries.
600
  * Taken from phpMyAdmin.
601
  */
602
+ function sql_addslashes($a_string = '', $is_like = false) {
603
  if ($is_like) $a_string = str_replace('\\', '\\\\\\\\', $a_string);
604
  else $a_string = str_replace('\\', '\\\\', $a_string);
605
  return str_replace('\'', '\\\'', $a_string);
649
  if(! @gzwrite($this->fp, $query_line))
650
  $this->error(__('There was an error writing a line to the backup script:','wp-db-backup') . ' ' . $query_line . ' ' . $php_errormsg);
651
  } else {
652
+ if(false === @fwrite($this->fp, $query_line))
653
  $this->error(__('There was an error writing a line to the backup script:','wp-db-backup') . ' ' . $query_line . ' ' . $php_errormsg);
654
  }
655
  }
717
  $table_structure = $wpdb->get_results("DESCRIBE $table");
718
  if (! $table_structure) {
719
  $this->error(__('Error getting table details','wp-db-backup') . ": $table");
720
+ return false;
721
  }
722
 
723
  if(($segment == 'none') || ($segment == 0)) {
738
  $this->stow("\n");
739
 
740
  $create_table = $wpdb->get_results("SHOW CREATE TABLE $table", ARRAY_N);
741
+ if (false === $create_table) {
742
  $err_msg = sprintf(__('Error with SHOW CREATE TABLE for %s.','wp-db-backup'), $table);
743
  $this->error($err_msg);
744
  $this->stow("#\n# $err_msg\n#\n");
745
  }
746
  $this->stow($create_table[0][1] . ' ;');
747
 
748
+ if (false === $table_structure) {
749
  $err_msg = sprintf(__('Error getting table structure of %s','wp-db-backup'), $table);
750
  $this->error($err_msg);
751
  $this->stow("#\n# $err_msg\n#\n");
964
 
965
  $result = @wp_mail($to, $subject, $message, $headers);
966
  }
 
967
  return $result;
968
 
969
  }
993
  $message = sprintf(__("Attached to this email is\n %1s\n Size:%2s kilobytes\n",'wp-db-backup'), $filename, round(filesize($diskfile)/1024));
994
  $success = $this->send_mail($recipient, get_bloginfo('name') . ' ' . __('Database Backup','wp-db-backup'), $message, $diskfile);
995
 
996
+ if ( false === $success ) {
997
  $msg = __('The following errors were reported:','wp-db-backup') . "\n ";
998
  if ( function_exists('error_get_last') ) {
999
  $err = error_get_last();
1012
  function backup_menu() {
1013
  global $table_prefix, $wpdb;
1014
  $feedback = '';
1015
+ $whoops = false;
1016
 
1017
  // did we just do a backup? If so, let's report the status
1018
  if ( $this->backup_complete ) {
1056
  $name = strval($_POST['wp_cron_schedule']);
1057
  $interval = ( isset($scheds[$name]['interval']) ) ?
1058
  (int) $scheds[$name]['interval'] : 0;
1059
+ update_option('wp_cron_backup_schedule', $name, false);
1060
  if ( 0 !== $interval ) {
1061
  wp_schedule_event(time() + $interval, $name, 'wp_db_backup_cron');
1062
  }
1063
  }
1064
  else {
1065
+ update_option('wp_cron_backup_schedule', intval($_POST['cron_schedule']), false);
1066
  }
1067
  update_option('wp_cron_backup_tables', $_POST['wp_cron_backup_tables']);
1068
  if (is_email($_POST['cron_backup_recipient'])) {
1069
+ update_option('wp_cron_backup_recipient', $_POST['cron_backup_recipient'], false);
1070
  }
1071
  $feedback .= '<div class="updated wp-db-backup-updated"><p>' . __('Scheduled Backup Options Saved!','wp-db-backup') . '</p></div>';
1072
  endif;
1097
  if ( ! file_exists($this->backup_dir) && ! @mkdir($this->backup_dir) ) {
1098
  ?><div class="updated wp-db-backup-updated error"><p><?php _e('WARNING: Your backup directory does <strong>NOT</strong> exist, and we cannot create it.','wp-db-backup'); ?></p>
1099
  <p><?php printf(__('Using your FTP client, try to create the backup directory yourself: %s', 'wp-db-backup'), '<code>' . $this->backup_dir . '</code>'); ?></p></div><?php
1100
+ $whoops = true;
1101
  // not writable due to write permissions
1102
  } elseif ( !is_writable($this->backup_dir) && ! @chmod($this->backup_dir, $dir_perms) ) {
1103
  ?><div class="updated wp-db-backup-updated error"><p><?php _e('WARNING: Your backup directory is <strong>NOT</strong> writable! We cannot create the backup files.','wp-db-backup'); ?></p>
1104
  <p><?php printf(__('Using your FTP client, try to set the backup directory&rsquo;s write permission to %1$s or %2$s: %3$s', 'wp-db-backup'), '<code>777</code>', '<code>a+w</code>', '<code>' . $this->backup_dir . '</code>'); ?>
1105
  </p></div><?php
1106
+ $whoops = true;
1107
  } else {
1108
  $this->fp = $this->open($this->backup_dir . 'test' );
1109
  if( $this->fp ) {
1117
  }
1118
  ?><?php printf(__('You can try to correct this problem by using your FTP client to delete and then re-create the backup directory: %s', 'wp-db-backup'), '<code>' . $this->backup_dir . '</code>');
1119
  ?></div><?php
1120
+ $whoops = true;
1121
  }
1122
  }
1123
 
1182
  <input type="text" name="backup_recipient" size="20" value="<?php echo get_option('admin_email'); ?>" />
1183
  </label></li>
1184
  </ul>
1185
+ <?php if ( ! $whoops ) : ?>
1186
  <input type="hidden" name="do_backup" id="do_backup" value="backup" />
1187
  <p class="submit">
1188
  <input type="submit" name="submit" onclick="document.getElementById('do_backup').value='fragments';" value="<?php _e('Backup now!','wp-db-backup'); ?>" />
1238
  }
1239
  $cron_recipient_input = '<p><label for="cron_backup_recipient">' . __('Email backup to:','wp-db-backup') . ' <input type="text" name="cron_backup_recipient" id="cron_backup_recipient" size="20" value="' . $cron_recipient . '" /></label></p>';
1240
  echo apply_filters('wp_db_b_cron_recipient_input', $cron_recipient_input);
1241
+ echo '<p class="submit"><input type="submit" name="submit" value="' . __('Schedule backup','wp-db-backup') . '" /></p>';
1242
+ echo '</div>';
1243
  $cron_tables = get_option('wp_cron_backup_tables');
1244
  if (! is_array($cron_tables)) {
1245
  $cron_tables = array();
1246
  }
1247
  if (count($other_tables) > 0) {
1248
+ echo '<div class="tables-list alternate" id="include-tables-list">';
1249
  echo '<h4>' . __('Tables to include in the scheduled backup:','wp-db-backup') . '</h4><ul>';
1250
  foreach ($other_tables as $table) {
1251
  echo '<li><input type="checkbox" ';
1254
  }
1255
  echo "name='wp_cron_backup_tables[]' value='{$table}' /> <code>{$table}</code></li>";
1256
  }
1257
+ echo '</ul></div>';
1258
  }
1259
+ echo '<input type="hidden" name="wp_cron_backup_options" value="SET" /></form>';
1260
  echo '</fieldset>';
1261
  endif; // end of wp_cron (legacy) section
1262
 
1263
+ echo '</div><!-- .wrap -->';
1264
 
1265
  } // end wp_backup_menu()
1266
 
1313
  $other_tables = get_option('wp_cron_backup_tables');
1314
  $recipient = get_option('wp_cron_backup_recipient');
1315
  $backup_file = $this->db_backup($core_tables, $other_tables);
1316
+ if (false !== $backup_file)
1317
  return $this->deliver_backup($backup_file, 'smtp', $recipient, 'main');
1318
  else return false;
1319
  }