BackUpWordPress - Version 1.3.2

Version Description

Download this release

Release Info

Developer willmot
Plugin Icon 128x128 BackUpWordPress
Version 1.3.2
Comparing to
See all releases

Code changes from version 1.3.1 to 1.3.2

.gitignore DELETED
@@ -1 +0,0 @@
1
- .svn
 
admin.actions.php CHANGED
@@ -11,7 +11,7 @@ function hmbkp_request_delete_backup() {
11
 
12
  hmbkp_delete_backup( $_GET['hmbkp_delete'] );
13
 
14
- wp_redirect( remove_query_arg( 'hmbkp_delete' ) );
15
  exit;
16
 
17
  }
@@ -37,7 +37,7 @@ function hmbkp_request_do_backup() {
37
  spawn_cron();
38
 
39
  // Redirect back
40
- wp_redirect( remove_query_arg( 'action' ) );
41
  exit;
42
 
43
  }
11
 
12
  hmbkp_delete_backup( $_GET['hmbkp_delete'] );
13
 
14
+ wp_redirect( remove_query_arg( 'hmbkp_delete' ), 303 );
15
  exit;
16
 
17
  }
37
  spawn_cron();
38
 
39
  // Redirect back
40
+ wp_redirect( remove_query_arg( 'action' ), 303 );
41
  exit;
42
 
43
  }
admin.page.php CHANGED
@@ -7,17 +7,14 @@
7
  <?php _e( 'Manage Backups', 'hmbkp' ); ?>
8
 
9
  <?php if ( hmbkp_is_in_progress() ) : ?>
10
- <a class="button add-new-h2" <?php disabled( true ); ?>><img src="<?php echo site_url( 'wp-admin/images/wpspin_light.gif' ); ?>" width="16" height="16" /><?php echo hmbkp_get_status(); ?></a>
11
 
12
- <?php elseif ( !hmbkp_possible() ) : ?>
13
- <a class="button add-new-h2" <?php disabled( true ); ?>><?php _e( 'Back Up Now', 'hmbkp' ); ?></a>
14
-
15
- <?php else : ?>
16
- <a class="button add-new-h2" href="tools.php?page=<?php echo $_GET['page']; ?>&amp;action=hmbkp_backup_now"><?php _e( 'Back Up Now', 'hmbkp' ); ?></a>
17
 
18
  <?php endif; ?>
19
 
20
- <a href="#hmbkp_advanced-options" class="button add-new-h2 hmbkp_advanced-options-toggle"><?php _e( 'Advanced Options' ); ?></a>
21
 
22
  </h2>
23
 
7
  <?php _e( 'Manage Backups', 'hmbkp' ); ?>
8
 
9
  <?php if ( hmbkp_is_in_progress() ) : ?>
10
+ <a class="add-new-h2" <?php disabled( true ); ?>><img src="<?php echo site_url( 'wp-admin/images/wpspin_light.gif' ); ?>" width="16" height="16" /><?php echo hmbkp_get_status(); ?></a>
11
 
12
+ <?php elseif ( hmbkp_possible() ) : ?>
13
+ <a class="add-new-h2" href="tools.php?page=<?php echo $_GET['page']; ?>&amp;action=hmbkp_backup_now"><?php _e( 'Back Up Now', 'hmbkp' ); ?></a>
 
 
 
14
 
15
  <?php endif; ?>
16
 
17
+ <a href="#hmbkp_advanced-options" class="add-new-h2 hmbkp_advanced-options-toggle"><?php _e( 'Advanced Options' ); ?></a>
18
 
19
  </h2>
20
 
assets/hmbkp.css CHANGED
@@ -1,7 +1,6 @@
1
  #icon-backupwordpress.icon32 { background: url(icon_backupwordpress_32x32.png); }
2
- .hmbkp_running .add-new-h2 img { margin: 0 3px -4px -9px; opacity: 0.3; }
3
- .button.disabled, .button[disabled], .button[disabled="disabled"] { cursor: default; }
4
- .button.disabled:active, .button[disabled]:active, .button[disabled="disabled"]:active { background: #F2F2F2 url(../../../../wp-admin/images/white-grad.png) repeat-x; }
5
  tfoot p { margin: 0; font-weight: normal; }
6
  #hmbkp_advanced-options { display: none; }
7
  #hmbkp_advanced-options dl { overflow: hidden; margin: 20px 0; }
1
  #icon-backupwordpress.icon32 { background: url(icon_backupwordpress_32x32.png); }
2
+ .hmbkp_running .add-new-h2 img { margin: 0 3px -4px -6px; opacity: 0.3; }
3
+ .add-new-h2[disabled="disabled"], add-new-h2[disabled="disabled"]:hover, .add-new-h2[disabled="disabled"]:active, .add-new-h2[disabled="disabled"]:focus { cursor: default; color: #666; }
 
4
  tfoot p { margin: 0; font-weight: normal; }
5
  #hmbkp_advanced-options { display: none; }
6
  #hmbkp_advanced-options dl { overflow: hidden; margin: 20px 0; }
assets/hmbkp.js CHANGED
@@ -30,7 +30,7 @@ jQuery( document ).ready( function( $ ) {
30
 
31
  function hmbkpRedirectOnBackupComplete() {
32
 
33
- img = jQuery( '<div>' ).append( jQuery( '.hmbkp_running a.button[disabled]:first img' ).clone() ).remove().html();
34
 
35
  jQuery.get( ajaxurl, { 'action' : 'hmbkp_is_in_progress' },
36
 
@@ -44,7 +44,7 @@ function hmbkpRedirectOnBackupComplete() {
44
 
45
  setTimeout( 'hmbkpRedirectOnBackupComplete();', 5000 );
46
 
47
- jQuery( '.hmbkp_running a.button[disabled]:first' ).html( img + data );
48
 
49
  }
50
  }
30
 
31
  function hmbkpRedirectOnBackupComplete() {
32
 
33
+ img = jQuery( '<div>' ).append( jQuery( '.hmbkp_running a.add-new-h2[disabled]:first img' ).clone() ).remove().html();
34
 
35
  jQuery.get( ajaxurl, { 'action' : 'hmbkp_is_in_progress' },
36
 
44
 
45
  setTimeout( 'hmbkpRedirectOnBackupComplete();', 5000 );
46
 
47
+ jQuery( '.hmbkp_running a.add-new-h2[disabled]:first' ).html( img + data );
48
 
49
  }
50
  }
functions/backup.files.fallback.functions.php CHANGED
@@ -45,6 +45,10 @@ function hmbkp_pclzip_exclude( $event, &$file ) {
45
  // Match everything else past the exclude list
46
  elseif ( preg_match( '(' . $excludes . ')', $file['stored_filename'] ) )
47
  return false;
 
 
 
 
48
 
49
  return true;
50
 
45
  // Match everything else past the exclude list
46
  elseif ( preg_match( '(' . $excludes . ')', $file['stored_filename'] ) )
47
  return false;
48
+
49
+ // Don't try to add unreadable files.
50
+ if ( !is_readable( $file['filename'] ) )
51
+ return false;
52
 
53
  return true;
54
 
functions/backup.functions.php CHANGED
@@ -61,7 +61,7 @@ function hmbkp_do_backup() {
61
  if ( !$handle = @fopen( $file, 'w' ) )
62
  return false;
63
 
64
- fwrite( $handle );
65
 
66
  fclose( $handle );
67
 
61
  if ( !$handle = @fopen( $file, 'w' ) )
62
  return false;
63
 
64
+ fwrite( $handle, '' );
65
 
66
  fclose( $handle );
67
 
functions/backup.mysql.fallback.functions.php CHANGED
@@ -203,6 +203,8 @@ function hmbkp_sql_addslashes( $a_string = '', $is_like = false ) {
203
  function hmbkp_backup_mysql_fallback() {
204
 
205
  global $hmbkp_db_connect;
 
 
206
 
207
  $hmbkp_db_connect = mysql_pconnect( DB_HOST, DB_USER, DB_PASSWORD );
208
 
@@ -222,8 +224,6 @@ function hmbkp_backup_mysql_fallback() {
222
 
223
  $curr_table = mysql_tablename( $tables, $i );
224
 
225
- @set_time_limit( 0 );
226
-
227
  // Create the SQL statements
228
  $sql_file .= "# --------------------------------------------------------\n";
229
  $sql_file .= "# Table: " . hmbkp_backquote( $curr_table ) . "\n";
203
  function hmbkp_backup_mysql_fallback() {
204
 
205
  global $hmbkp_db_connect;
206
+
207
+ @set_time_limit( 0 );
208
 
209
  $hmbkp_db_connect = mysql_pconnect( DB_HOST, DB_USER, DB_PASSWORD );
210
 
224
 
225
  $curr_table = mysql_tablename( $tables, $i );
226
 
 
 
227
  // Create the SQL statements
228
  $sql_file .= "# --------------------------------------------------------\n";
229
  $sql_file .= "# Table: " . hmbkp_backquote( $curr_table ) . "\n";
functions/backup.mysql.functions.php CHANGED
@@ -9,22 +9,43 @@
9
  function hmbkp_backup_mysql() {
10
 
11
  // Use mysqldump if we can
12
- if ( hmbkp_mysqldump_path() )
 
 
 
 
 
 
13
 
14
- // Backup everything except whats in the exclude file
15
- shell_exec(
16
- escapeshellarg( hmbkp_mysqldump_path() )
17
- . ' --no-create-db '
18
- . ' -u ' . escapeshellarg( DB_USER )
19
- . ' -p' . escapeshellarg( DB_PASSWORD )
20
- . ' -h ' . escapeshellarg( DB_HOST )
21
- . ' -r ' . escapeshellarg( hmbkp_path() . '/database_' . DB_NAME . '.sql' ) . ' ' . escapeshellarg( DB_NAME )
22
- );
23
-
24
- // Fallback to using PHP if not
25
- else
26
- hmbkp_backup_mysql_fallback();
 
 
27
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  }
29
 
30
  /**
@@ -61,7 +82,7 @@ function hmbkp_mysqldump_path() {
61
  '\Program Files\MySQL\MySQL Server 5.0\bin\mysqldump',
62
  '\Program Files\MySQL\MySQL Server 4.1\bin\mysqldump'
63
  );
64
-
65
  // Allow the path to be overridden
66
  if ( defined( 'HMBKP_MYSQLDUMP_PATH' ) && HMBKP_MYSQLDUMP_PATH )
67
  array_unshift( $mysqldump_locations, HMBKP_MYSQLDUMP_PATH );
9
  function hmbkp_backup_mysql() {
10
 
11
  // Use mysqldump if we can
12
+ if ( hmbkp_mysqldump_path() ) {
13
+
14
+ // Path to the mysqldump executable
15
+ $cmd = escapeshellarg( hmbkp_mysqldump_path() );
16
+
17
+ // No Create DB command
18
+ $cmd .= ' --no-create-db';
19
 
20
+ // Make sure binary data is exported properly
21
+ $cmd .= ' --hex-blob';
22
+
23
+ // Username
24
+ $cmd .= ' -u ' . escapeshellarg( DB_USER );
25
+
26
+ // Don't pass the password if it's blank
27
+ if ( DB_PASSWORD )
28
+ $cmd .= ' -p' . escapeshellarg( DB_PASSWORD );
29
+
30
+ // Set the host
31
+ $cmd .= ' -h ' . escapeshellarg( DB_HOST );
32
+
33
+ // Save the file
34
+ $cmd .= ' -r ' . escapeshellarg( hmbkp_path() . '/database_' . DB_NAME . '.sql' );
35
 
36
+ // The database we're dumping
37
+ $cmd .= ' ' . escapeshellarg( DB_NAME );
38
+
39
+ shell_exec( $cmd );
40
+
41
+ // If the file doesn't exist then the shell_exec must have failed
42
+ if ( file_exists( hmbkp_path() . '/database_' . DB_NAME . '.sql' ) )
43
+ return true;
44
+
45
+ }
46
+
47
+ // Fallback to using the PHP library
48
+ hmbkp_backup_mysql_fallback();
49
  }
50
 
51
  /**
82
  '\Program Files\MySQL\MySQL Server 5.0\bin\mysqldump',
83
  '\Program Files\MySQL\MySQL Server 4.1\bin\mysqldump'
84
  );
85
+
86
  // Allow the path to be overridden
87
  if ( defined( 'HMBKP_MYSQLDUMP_PATH' ) && HMBKP_MYSQLDUMP_PATH )
88
  array_unshift( $mysqldump_locations, HMBKP_MYSQLDUMP_PATH );
functions/core.functions.php CHANGED
@@ -4,7 +4,11 @@
4
  * Setup the default options on plugin activation
5
  */
6
  function hmbkp_activate() {
 
 
 
7
  hmbkp_setup_daily_schedule();
 
8
  }
9
 
10
  /**
@@ -29,6 +33,12 @@ function hmbkp_deactivate() {
29
  foreach ( $options as $option )
30
  delete_option( $option );
31
 
 
 
 
 
 
 
32
  delete_transient( 'hmbkp_running' );
33
  delete_transient( 'hmbkp_estimated_filesize' );
34
 
@@ -49,13 +59,7 @@ function hmbkp_update() {
49
  // Every update
50
  if ( version_compare( HMBKP_VERSION, get_option( 'hmbkp_plugin_version' ), '>' ) ) :
51
 
52
- hmbkp_cleanup();
53
-
54
- delete_transient( 'hmbkp_estimated_filesize' );
55
- delete_option( 'hmbkp_running' );
56
- delete_option( 'hmbkp_complete' );
57
- delete_option( 'hmbkp_status' );
58
- delete_transient( 'hmbkp_running' );
59
 
60
  // Check whether we have a logs directory to delete
61
  if ( is_dir( hmbkp_path() . '/logs' ) )
@@ -415,7 +419,7 @@ function hmbkp_shell_exec_available() {
415
 
416
  /**
417
  * Check whether safe mode if active or not
418
- *
419
  * @return bool
420
  */
421
  function hmbkp_is_safe_mode_active() {
@@ -506,7 +510,7 @@ function hmbkp_path() {
506
 
507
  /**
508
  * Return the default backup path
509
- *
510
  * @return string path
511
  */
512
  function hmbkp_path_default() {
@@ -516,7 +520,7 @@ function hmbkp_path_default() {
516
  /**
517
  * Move the backup directory and all existing backup files to a new
518
  * location
519
- *
520
  * @param string $from path to move the backups dir from
521
  * @param string $to path to move the backups dir to
522
  * @return void
@@ -571,10 +575,10 @@ function hmbkp_possible() {
571
 
572
  if ( !is_writable( hmbkp_path() ) || !is_dir( hmbkp_path() ) || hmbkp_is_safe_mode_active() )
573
  return false;
574
-
575
  if ( defined( 'HMBKP_FILES_ONLY' ) && HMBKP_FILES_ONLY && defined( 'HMBKP_DATABASE_ONLY' ) && HMBKP_DATABASE_ONLY )
576
  return false;
577
-
578
  return true;
579
  }
580
 
@@ -586,7 +590,7 @@ function hmbkp_possible() {
586
  function hmbkp_cleanup() {
587
 
588
  $hmbkp_path = hmbkp_path();
589
-
590
  if ( !is_dir( $hmbkp_path ) )
591
  return;
592
 
4
  * Setup the default options on plugin activation
5
  */
6
  function hmbkp_activate() {
7
+
8
+ hmbkp_deactivate();
9
+
10
  hmbkp_setup_daily_schedule();
11
+
12
  }
13
 
14
  /**
33
  foreach ( $options as $option )
34
  delete_option( $option );
35
 
36
+ // If there is a backup running file we should delete it on activate.
37
+ $file = hmbkp_path() . '/.backup_running';
38
+
39
+ if ( file_exists( $file ) )
40
+ unlink( $file );
41
+
42
  delete_transient( 'hmbkp_running' );
43
  delete_transient( 'hmbkp_estimated_filesize' );
44
 
59
  // Every update
60
  if ( version_compare( HMBKP_VERSION, get_option( 'hmbkp_plugin_version' ), '>' ) ) :
61
 
62
+ hmbkp_deactivate();
 
 
 
 
 
 
63
 
64
  // Check whether we have a logs directory to delete
65
  if ( is_dir( hmbkp_path() . '/logs' ) )
419
 
420
  /**
421
  * Check whether safe mode if active or not
422
+ *
423
  * @return bool
424
  */
425
  function hmbkp_is_safe_mode_active() {
510
 
511
  /**
512
  * Return the default backup path
513
+ *
514
  * @return string path
515
  */
516
  function hmbkp_path_default() {
520
  /**
521
  * Move the backup directory and all existing backup files to a new
522
  * location
523
+ *
524
  * @param string $from path to move the backups dir from
525
  * @param string $to path to move the backups dir to
526
  * @return void
575
 
576
  if ( !is_writable( hmbkp_path() ) || !is_dir( hmbkp_path() ) || hmbkp_is_safe_mode_active() )
577
  return false;
578
+
579
  if ( defined( 'HMBKP_FILES_ONLY' ) && HMBKP_FILES_ONLY && defined( 'HMBKP_DATABASE_ONLY' ) && HMBKP_DATABASE_ONLY )
580
  return false;
581
+
582
  return true;
583
  }
584
 
590
  function hmbkp_cleanup() {
591
 
592
  $hmbkp_path = hmbkp_path();
593
+
594
  if ( !is_dir( $hmbkp_path ) )
595
  return;
596
 
languages/hmbkp-es_ES.mo ADDED
Binary file
languages/hmbkp-es_ES.po ADDED
@@ -0,0 +1,327 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2010
2
+ # This file is distributed under the same license as the package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: BackUpWordPress\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/backupwordpress\n"
7
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
8
+ "POT-Creation-Date: 2011-07-11 15:40:57+00:00\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "PO-Revision-Date: 2011-07-12 12:08-0000\n"
13
+ "Last-Translator: Francesca Bartrum <frankiie@humanmade.co.uk>\n"
14
+ "Language-Team: HumanMade <support@humanmade.co.uk>\n"
15
+ "X-Poedit-Language: English\n"
16
+ "X-Poedit-Country: England\n"
17
+ "X-Poedit-SourceCharset: utf-8\n"
18
+
19
+ #: admin.actions.php:101
20
+ #: functions/interface.functions.php:68
21
+ #: functions/interface.functions.php:78
22
+ #: functions/interface.functions.php:88
23
+ #: functions/interface.functions.php:98
24
+ #: functions/interface.functions.php:108
25
+ #: functions/interface.functions.php:118
26
+ #: functions/interface.functions.php:128
27
+ msgid "BackUpWordPress has detected a problem."
28
+ msgstr "BackUpWordPress ha detectado un problema."
29
+
30
+ #: admin.actions.php:101
31
+ msgid "%s is returning a %s response which could mean cron jobs aren't getting fired properly. BackUpWordPress relies on wp-cron to run back ups in a separate process."
32
+ msgstr "&s esta devolviendo una respuesta &s que podria hacer que un trabajo no sea ejecutado apropiadamente. BackUpWordPress no funciona sin que wp-cron haga copias de seguridad en un processo aparte."
33
+
34
+ #: admin.backups-table.php:13
35
+ msgid "1 backup completed"
36
+ msgid_plural "%d backups completed"
37
+ msgstr[0] "una copia completada"
38
+ msgstr[1] "%s copias completadas"
39
+
40
+ #: admin.backups-table.php:14
41
+ msgid "Size"
42
+ msgstr "tamano"
43
+
44
+ #: admin.backups-table.php:15
45
+ msgid "Actions"
46
+ msgstr "Acción"
47
+
48
+ #: admin.backups-table.php:21
49
+ msgid "Only the most recent backup will be saved"
50
+ msgid_plural "The %d most recent backups will be saved"
51
+ msgstr[0] "Solamente la copia más nueva será guardada"
52
+ msgstr[1] "Solamente las %s copias más nuevas serán guardadas"
53
+
54
+ #: admin.backups-table.php:22
55
+ msgid "Total %s"
56
+ msgstr "%s total"
57
+
58
+ #: functions/backup.functions.php:34
59
+ msgid "Dumping database"
60
+ msgstr "Base de datos ejecutado"
61
+
62
+ #: functions/backup.functions.php:40
63
+ msgid "Creating zip archive"
64
+ msgstr "Creando archivo de zip"
65
+
66
+ #: functions/backup.functions.php:52
67
+ msgid "Removing old backups"
68
+ msgstr "Borrando copias viejas"
69
+
70
+ #: functions/backup.functions.php:167
71
+ #: functions/backup.functions.php:177
72
+ msgid "Backup of %s"
73
+ msgstr "Copias de %s"
74
+
75
+ #: functions/backup.functions.php:168
76
+ msgid ""
77
+ "BackUpWordPress has completed a backup of your site %s.\n"
78
+ "\n"
79
+ "The backup file should be attached to this email.\n"
80
+ "\n"
81
+ "You can also download the backup file by clicking the link below:\n"
82
+ "\n"
83
+ "%s\n"
84
+ "\n"
85
+ "Kind Regards\n"
86
+ "\n"
87
+ " The Happy BackUpWordPress Backup Emailing Robot"
88
+ msgstr ""
89
+ "BackUpWordpress ha completado una copia de tu web %s.\n"
90
+ "\n"
91
+ "La copia del archivo debería estar adjunto a este email.\n"
92
+ "\n"
93
+ "%s\n"
94
+ "\n"
95
+ "Un saludo\n"
96
+ "\n"
97
+ "El feliz robot de BackUpWordPress Email"
98
+
99
+ #: functions/backup.functions.php:178
100
+ msgid ""
101
+ "BackUpWordPress has completed a backup of your site %s.\n"
102
+ "\n"
103
+ "Unfortunately the backup file was too large to attach to this email.\n"
104
+ "\n"
105
+ "You can download the backup file by clicking the link below:\n"
106
+ "\n"
107
+ "%s\n"
108
+ "\n"
109
+ "Kind Regards\n"
110
+ "\n"
111
+ " The Happy BackUpWordPress Backup Emailing Robot"
112
+ msgstr ""
113
+ "BackUpWordpress ha completado una copia de tu web %s.\n"
114
+ "\n"
115
+ "Desafortunadamente la copia del archivo no pudo ser añadido a este email.\n"
116
+ "\n"
117
+ "Puedes descargar la copia del archivo a través de lasiguiente dirección:\n"
118
+ "\n"
119
+ "%s\n"
120
+ "\n"
121
+ "Un saludo\n"
122
+ "\n"
123
+ "El feliz robot de BackUpWordPress Email"
124
+
125
+ #: functions/interface.functions.php:23
126
+ msgid "Download"
127
+ msgstr "Descarga"
128
+
129
+ #: functions/interface.functions.php:24
130
+ msgid "Delete"
131
+ msgstr "Borra"
132
+
133
+ #: functions/interface.functions.php:46
134
+ #: functions/interface.functions.php:58
135
+ msgid "BackUpWordPress is almost ready."
136
+ msgstr "BackUpWordPress esta casi preparado."
137
+
138
+ #: functions/interface.functions.php:46
139
+ msgid "The backups directory can't be created because your %s directory isn't writable, run %s or %s or create the folder yourself."
140
+ msgstr "El directorio de copias de seguridad no pudo ser creado porque tu directorio de %s no pudo ser escrito, ejecuta %s o %s o crea el archivo tu mismo."
141
+
142
+ #: functions/interface.functions.php:58
143
+ msgid "Your backups directory isn't writable. run %s or %s or set the permissions yourself."
144
+ msgstr "El directorio de tus copias no se puede escribir, ejecuta %s o %s o configura los permisos tu mismo."
145
+
146
+ #: functions/interface.functions.php:68
147
+ msgid " %s is running in %s. Please contact your host and ask them to disable %s."
148
+ msgstr "%s está ejecutando en %s. Por favor contacte su administrador para que incapacite. %s"
149
+
150
+ #: functions/interface.functions.php:78
151
+ msgid "You have both %s and %s defined so there isn't anything to back up."
152
+ msgstr "Tienes %s y %s definidos asi que no hay nada de lo que hacer copias."
153
+
154
+ #: functions/interface.functions.php:88
155
+ msgid "%s is not a valid email address."
156
+ msgstr "%s no es una dirección de email valida."
157
+
158
+ #: functions/interface.functions.php:98
159
+ msgid "The last backup email failed to send."
160
+ msgstr "El último email con las copias no se pudo enviar."
161
+
162
+ #: functions/interface.functions.php:108
163
+ msgid "Your custom backups directory %s doesn't exist and can't be created, your backups will be saved to %s instead."
164
+ msgstr "Tus copias en tu directorio %s no existen y no pueden ser creados, tus copias serán entonces guardadas en %s."
165
+
166
+ #: functions/interface.functions.php:118
167
+ msgid "Your custom backups directory %s isn't writable, new backups will be saved to %s instead."
168
+ msgstr "Tus copias en tu directorio %s no se pudieron crear, las nuevas copis serán guardadas en %s."
169
+
170
+ #: functions/interface.functions.php:128
171
+ msgid "You have defined a custom exclude list but the following paths don't exist %s, are you sure you entered them correctly?"
172
+ msgstr "Has definido tu propoa lista pero las trajectorias %s no existen, ¿estás seguro de que los has llenado correctamente?"
173
+
174
+ #: admin.status.php:5
175
+ msgid "Automatic backups are %s."
176
+ msgstr "Las copias automaticas son %s."
177
+
178
+ #: admin.status.php:5
179
+ msgid "disabled"
180
+ msgstr "impedido"
181
+
182
+ #: admin.status.php:10
183
+ #: admin.status.php:13
184
+ #: admin.status.php:35
185
+ #: admin.advanced-options.php:13
186
+ #: admin.advanced-options.php:16
187
+ #: admin.advanced-options.php:25
188
+ #: admin.advanced-options.php:28
189
+ msgid "database"
190
+ msgstr "base de datos"
191
+
192
+ #: admin.status.php:10
193
+ msgid "&amp;"
194
+ msgstr "&amp;"
195
+
196
+ #: admin.status.php:10
197
+ #: admin.status.php:16
198
+ #: admin.status.php:31
199
+ #: admin.advanced-options.php:16
200
+ #: admin.advanced-options.php:25
201
+ #: admin.advanced-options.php:28
202
+ msgid "files"
203
+ msgstr "archivos"
204
+
205
+ #: admin.status.php:18
206
+ msgid "Your %s will be automatically backed up every day at %s to %s."
207
+ msgstr "Tus %s serán automaticamente copiados cada día de %s a %s."
208
+
209
+ #: admin.status.php:18
210
+ msgid "It's currently %s on the server."
211
+ msgstr "Corrientemente es %s en el servidor."
212
+
213
+ #: admin.status.php:22
214
+ msgid "Your site is %s. Backups will be compressed and should be smaller than this."
215
+ msgstr "Tu web es %s. Las copias serán compresadas Y deberían ser menos grandes que el original."
216
+
217
+ #: admin.status.php:22
218
+ msgid "Calculating Size..."
219
+ msgstr "Calculando el tamaño..."
220
+
221
+ #: admin.status.php:25
222
+ msgid "%s is disabled which means we have to use the slower PHP fallbacks, you could try contacting your host and asking them to enable it."
223
+ msgstr "%s ha diso incapacitado que quiere decir que tenemos que utlizar PHP fallbacks más pequeños, podrías intentar contactando con tu host y pedirles que lo incampaciten."
224
+
225
+ #: admin.status.php:31
226
+ #: admin.status.php:35
227
+ msgid "Your %s will be backed up using %s."
228
+ msgstr "Su %s tendrá una copia utilizando %s."
229
+
230
+ #: admin.status.php:41
231
+ msgid "A copy of each backup will be emailed to %s."
232
+ msgstr "Una copia de cada copia de seguridad será mandada por email a %s."
233
+
234
+ #: admin.status.php:45
235
+ msgid "The following paths will be excluded from your backups %s."
236
+ msgstr "Las siguientes trajectorias serán ejecutadas de tu copias %s"
237
+
238
+ #: admin.page.php:7
239
+ #: admin.menus.php:8
240
+ msgid "Manage Backups"
241
+ msgstr "Manejar copias"
242
+
243
+ #: admin.page.php:13
244
+ #: admin.page.php:16
245
+ msgid "Back Up Now"
246
+ msgstr "Hacer copias ahora"
247
+
248
+ #: admin.page.php:20
249
+ #: admin.advanced-options.php:3
250
+ msgid "Advanced Options"
251
+ msgstr "Opciones avanzadas"
252
+
253
+ #: admin.page.php:32
254
+ msgid "You need to fix the issues detailed above before BackUpWordPress can start."
255
+ msgstr "Debes arreglar los problemas relacionados arriba antes que BackUpWordPress comience."
256
+
257
+ #: admin.page.php:38
258
+ msgid "If you need help getting things working you are more than welcome to email us at %s and we'll do what we can to help."
259
+ msgstr "Si necesitas ayuda porfavor contactenos a través de nuestro email %s y haremos lo que podemos para ayudarle."
260
+
261
+ #: admin.menus.php:8
262
+ #: admin.menus.php:30
263
+ msgid "Backups"
264
+ msgstr "Copias de seguridad"
265
+
266
+ #: admin.menus.php:53
267
+ msgid "You are not using the latest stable version of BackUpWordPress"
268
+ msgstr "No estás utlizando la versión más estable de BackUpWordPress"
269
+
270
+ #: admin.menus.php:53
271
+ msgid " &mdash; The information below is for version %s. View the readme.txt file for help specific to version %s."
272
+ msgstr "&mdash; La información abajo es para la versión %s. Lea el archivo readme.txt para ayuda especifica para la versión %s."
273
+
274
+ #: plugin.php:42
275
+ msgid "BackUpWordPress requires WordPress version %s."
276
+ msgstr "BackUpWordPress requiere la versión %s de Wordpress."
277
+
278
+ #: admin.advanced-options.php:5
279
+ msgid "You can %s any of the following %s in your %s to control advanced options. %s. Defined %s will be highlighted."
280
+ msgstr "Puedes %s cualquiera de los %s en tu %s para controlar opciones avanzadas. %s. %s definidos serán subrayados."
281
+
282
+ #: admin.advanced-options.php:5
283
+ msgid "The Codex can help"
284
+ msgstr "El Codex puede ayudar"
285
+
286
+ #: admin.advanced-options.php:10
287
+ msgid "The path to folder you would like to store your backup files in, defaults to %s."
288
+ msgstr "La trajectoria al archivo en la que deseas guardar tus copias será por defecto &s."
289
+
290
+ #: admin.advanced-options.php:13
291
+ msgid "The path to your %s executable. Will be used for the %s part of the back up if available."
292
+ msgstr "La trajectoria a tu %s executable. será utilizado para la parte %s de la copia que es disponible."
293
+
294
+ #: admin.advanced-options.php:16
295
+ msgid "The path to your %s executable. Will be used to zip up your %s and %s if available."
296
+ msgstr "La trajectoria a tu %s ejecutable. será utilizado para hacer zip to %s y %s si son disponibles."
297
+
298
+ #: admin.advanced-options.php:19
299
+ msgid "Completely disables the automatic back up. You can still back up using the \"Back Up Now\" button. Defaults to %s."
300
+ msgstr "Completamente desactiva las copias automaticas, todavía podrás copiar utilizando el botón \"Back Up Now\". Por defecto a %s."
301
+
302
+ #: admin.advanced-options.php:22
303
+ msgid "Number of backups to keep, older backups will be deleted automatically when a new backup is completed. Detaults to %s."
304
+ msgstr "El numero de copias la cual guardar, las copias viejas serán borradas automaticamente cuando una nueva copia ha sido completada. Por defecto a %s."
305
+
306
+ #: admin.advanced-options.php:25
307
+ #: admin.advanced-options.php:28
308
+ msgid "Backup %s only, your %s will %s be backed up. Defaults to %s."
309
+ msgstr "Solamente %s, su %s será %s copiado. por defecto a %s."
310
+
311
+ #: admin.advanced-options.php:25
312
+ #: admin.advanced-options.php:28
313
+ msgid "not"
314
+ msgstr "no"
315
+
316
+ #: admin.advanced-options.php:31
317
+ msgid "The time that the daily back up should run. Defaults to %s."
318
+ msgstr "La hora a la que la copia diaria será ejecutado. Por defecto a %s."
319
+
320
+ #: admin.advanced-options.php:34
321
+ msgid "Attempt to email a copy of your backups. Value should be email address to send backups to. Defaults to %s."
322
+ msgstr "Intento a mandar un email con la copia de sus copias de seguridad. Por defecto al email que sido elegido por usted en la configuración."
323
+
324
+ #: admin.advanced-options.php:37
325
+ msgid "Comma separated list of files or directories to exclude, the backups directory is automatically excluded."
326
+ msgstr "listas de archivos o directorios separadas por una coma para excluir, las copias en el directorio serán automaticamente excluidas."
327
+
plugin.php CHANGED
@@ -5,7 +5,7 @@ Plugin Name: BackUpWordPress
5
  Plugin URI: http://humanmade.co.uk/
6
  Description: Simple automated backups of your WordPress powered website. Once activated you'll find me under <strong>Tools &rarr; Backups</strong>.
7
  Author: Human Made Limited
8
- Version: 1.3.1
9
  Author URI: http://humanmade.co.uk/
10
  */
11
 
@@ -31,15 +31,14 @@ define( 'HMBKP_PLUGIN_PATH', WP_PLUGIN_DIR . '/' . HMBKP_PLUGIN_SLUG );
31
  define( 'HMBKP_PLUGIN_URL', WP_PLUGIN_URL . '/' . HMBKP_PLUGIN_SLUG );
32
  define( 'HMBKP_REQUIRED_WP_VERSION', '3.1' );
33
 
34
-
35
  // Don't activate on anything less than PHP5
36
- if ( version_compare( phpversion(), '5.0', '<' ) ) {
37
 
38
  require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
39
- deactivate_plugins( ABSPATH . 'wp-content/plugins/' . HMBKP_PLUGIN_SLUG . '/plugin.php' );
40
 
41
  if ( isset( $_GET['action'] ) && ( $_GET['action'] == 'activate' || $_GET['action'] == 'error_scrape' ) )
42
- die( __( 'BackUpWordPress requires PHP version 5.0.', 'hmbkp' ) );
43
 
44
  }
45
 
@@ -47,7 +46,7 @@ if ( version_compare( phpversion(), '5.0', '<' ) ) {
47
  if ( version_compare( get_bloginfo('version'), HMBKP_REQUIRED_WP_VERSION, '<' ) ) {
48
 
49
  require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
50
- deactivate_plugins( ABSPATH . 'wp-content/plugins/' . HMBKP_PLUGIN_SLUG . '/plugin.php' );
51
 
52
  if ( isset( $_GET['action'] ) && ( $_GET['action'] == 'activate' || $_GET['action'] == 'error_scrape' ) )
53
  die( sprintf( __( 'BackUpWordPress requires WordPress version %s.', 'hmbkp' ), HMBKP_REQUIRED_WP_VERSION ) );
@@ -60,6 +59,8 @@ function hmbkp_actions() {
60
  $plugin_data = get_plugin_data( __FILE__ );
61
 
62
  define( 'HMBKP_VERSION', $plugin_data['Version'] );
 
 
63
 
64
  // Fire the update action
65
  if ( HMBKP_VERSION > get_option( 'hmbkp_plugin_version' ) )
5
  Plugin URI: http://humanmade.co.uk/
6
  Description: Simple automated backups of your WordPress powered website. Once activated you'll find me under <strong>Tools &rarr; Backups</strong>.
7
  Author: Human Made Limited
8
+ Version: 1.3.2
9
  Author URI: http://humanmade.co.uk/
10
  */
11
 
31
  define( 'HMBKP_PLUGIN_URL', WP_PLUGIN_URL . '/' . HMBKP_PLUGIN_SLUG );
32
  define( 'HMBKP_REQUIRED_WP_VERSION', '3.1' );
33
 
 
34
  // Don't activate on anything less than PHP5
35
+ if ( version_compare( phpversion(), '5.2.4', '<' ) ) {
36
 
37
  require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
38
+ deactivate_plugins( HMBKP_PLUGIN_PATH . '/plugin.php' );
39
 
40
  if ( isset( $_GET['action'] ) && ( $_GET['action'] == 'activate' || $_GET['action'] == 'error_scrape' ) )
41
+ die( __( 'BackUpWordPress requires PHP version 5.2.4 or greater.', 'hmbkp' ) );
42
 
43
  }
44
 
46
  if ( version_compare( get_bloginfo('version'), HMBKP_REQUIRED_WP_VERSION, '<' ) ) {
47
 
48
  require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
49
+ deactivate_plugins( HMBKP_PLUGIN_PATH . '/plugin.php' );
50
 
51
  if ( isset( $_GET['action'] ) && ( $_GET['action'] == 'activate' || $_GET['action'] == 'error_scrape' ) )
52
  die( sprintf( __( 'BackUpWordPress requires WordPress version %s.', 'hmbkp' ), HMBKP_REQUIRED_WP_VERSION ) );
59
  $plugin_data = get_plugin_data( __FILE__ );
60
 
61
  define( 'HMBKP_VERSION', $plugin_data['Version'] );
62
+
63
+ load_plugin_textdomain( 'hmbkp', false, HMBKP_PLUGIN_SLUG . '/languages/' );
64
 
65
  // Fire the update action
66
  if ( HMBKP_VERSION > get_option( 'hmbkp_plugin_version' ) )
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === BackUpWordPress ===
2
  Contributors: willmot, mattheu, joehoyle, humanmade
3
- Tags: back up, back up, backup, backups, database, zip, db, files, archive, humanmade
4
  Requires at least: 3.1
5
- Tested up to: 3.1.2
6
- Stable tag: 1.3.1
7
 
8
  Simple automated back ups of your WordPress powered website.
9
 
@@ -75,6 +75,19 @@ You can also twitter <a href="http://twitter.com/humanmadeltd">@humanmadeltd</a>
75
 
76
  == Changelog ==
77
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  #### 1.3.1
79
 
80
  * Check for PHP version. Deactivate plugin if running on PHP version 4.
1
  === BackUpWordPress ===
2
  Contributors: willmot, mattheu, joehoyle, humanmade
3
+ Tags: back up, backup, backups, database, zip, db, files, archive, humanmade
4
  Requires at least: 3.1
5
+ Tested up to: 3.2.1
6
+ Stable tag: 1.3.2
7
 
8
  Simple automated back ups of your WordPress powered website.
9
 
75
 
76
  == Changelog ==
77
 
78
+ #### 1.3.2
79
+
80
+ * Spanish translation
81
+ * Bump PHP version check to 5.2.4
82
+ * Fallback to PHP mysqldump if shell_exec fails for any reason.
83
+ * Silently ignore unreadable files / folders
84
+ * Make sure binary data is properly exported when doing a mysqldump
85
+ * Use 303 instead of 302 when redirecting in the admin.
86
+ * Don't set_time_limit inside a loop
87
+ * Use WordPress 3.2 style buttons
88
+ * Don't pass an empty password to mysqldump
89
+
90
+
91
  #### 1.3.1
92
 
93
  * Check for PHP version. Deactivate plugin if running on PHP version 4.