Skip to content

Commit 1f5d0d5

Browse files
Kolja NolteKolja Nolte
authored andcommitted
v9.1.10
1 parent 433adb7 commit 1f5d0d5

8,536 files changed

Lines changed: 963003 additions & 170782 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v18.14.0

_importbuddy/_importbuddy.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* ImportBuddy Backup Importer Script
3+
* Importer Backup Importer Script
44
*
55
* ATTENTION: IF YOU ARE READING THIS WHILE TRYING TO LOAD IMPORTBUDDY TO RESTORE YOUR SITE:
66
* Your server is not properly handling PHP files. Contact your hosting provider to fix this.
@@ -10,10 +10,10 @@
1010
*/
1111

1212
/**
13-
* <!-- ImportBuddy Restore & Migration Tool - iThemes.com
13+
* <!-- Importer Restore & Migration Tool - SolidWP.com
1414
*
1515
* @version #VERSION#
16-
* @author iThemes.com
16+
* @author SolidWP.com
1717
* @developer Dustin Bolton
1818
* @created Feb 11, 2010
1919
*
@@ -26,14 +26,14 @@
2626

2727
define( 'PB_PASSWORD', '#PASSWORD#' ); // Update this portion with the hashed password to override a forgotten password.
2828

29-
$php_minimum = '5.1'; // User's PHP must be equal or newer to this version.
29+
$php_minimum = '7.2'; // User's PHP must be equal or newer to this version.
3030
$ignore_not_writable = false; // Set to true to ignore is_writable() returning false on this directory. Useful for servers lying about the writable status of the directory.
3131

3232
// Uncomment the following line when 500 Internal Server Error occurs.
3333
// error_reporting( E_ALL );
3434

3535
if ( version_compare( PHP_VERSION, $php_minimum ) < 0 ) {
36-
die( 'ERROR #9013. See <a href="https://ithemeshelp.zendesk.com/hc/en-us/articles/211132377-Error-Codes-#9013">this page for details</a>. Sorry! PHP version ' . $php_minimum . ' or newer is required for BackupBuddy to properly run. You are running PHP version ' . PHP_VERSION . '.' );
36+
die( 'ERROR #9013. See <a href="https://go.solidwp.com/error-codes">this page for details</a>. Sorry! PHP version ' . $php_minimum . ' or newer is required for Solid Backups to properly run. You are running PHP version ' . PHP_VERSION . '.' );
3737
}
3838

3939
global $importbuddy_file;
@@ -97,7 +97,7 @@ function ib_directory_browsing_allowed() {
9797

9898
// Make sure this file is complete and contains all the packed data to the end before proceeding.
9999
if ( false === strpos( $importbuddy_contents, '###PACKDATA' . ',END' ) ) { // Concat here so we don't false positive on this line when searching.
100-
die( 'ERROR: It appears your `' . __FILE__ . '` file is incomplete. It may have not finished downloading or uploading completely. Please try re-downloading the script from within BackupBuddy in WordPress (do not just copy the file from the plugin directory) and re-uploading it.' );
100+
die( 'ERROR: It appears your `' . __FILE__ . '` file is incomplete. It may have not finished downloading or uploading completely. Please try re-downloading the script from within Solid Backups in WordPress (do not just copy the file from the plugin directory) and re-uploading it.' );
101101
}
102102

103103
// Make sure no leading whitespace. Some servers introduce this to the beginning, breaking authentication due to output before auth headers being sent.
@@ -113,7 +113,7 @@ function ib_directory_browsing_allowed() {
113113
$importbuddy_contents = '';
114114

115115
$unpack_importbuddy = true;
116-
if ( file_exists( ABSPATH . 'importbuddy' ) ) { // ImportBuddy directory already exists. We may need to re-unpack it if this file has been updated since.
116+
if ( file_exists( ABSPATH . 'importbuddy' ) ) { // Importer directory already exists. We may need to re-unpack it if this file has been updated since.
117117
$signature = @file_get_contents( ABSPATH . 'importbuddy/_signature.php' );
118118
$signature = trim( str_replace( '<?php die(); ?>', '', $signature ) );
119119
if ( md5( PB_BB_VERSION . PB_PASSWORD ) != $signature ) { // Signature mismatch. We will need to delete and unpack again to update.
@@ -125,7 +125,7 @@ function ib_directory_browsing_allowed() {
125125
}
126126
if ( true === $unpack_importbuddy ) {
127127
unpack_importbuddy( $ignore_not_writable );
128-
@file_put_contents( ABSPATH . 'importbuddy/_signature.php', '<?php die(); ?>' . md5( PB_BB_VERSION . PB_PASSWORD ) ); // Create a hash of this ImportBuddy version & password. On accessing importbuddy.php's authentication page all importbuddy files will be freshly unpacked if the importbuddy.php version and/or password mismatches to allow users to just replace importbuddy.php to upgrade ImportBuddy or password.
128+
@file_put_contents( ABSPATH . 'importbuddy/_signature.php', '<?php die(); ?>' . md5( PB_BB_VERSION . PB_PASSWORD ) ); // Create a hash of this Importer version & password. On accessing importbuddy.php's authentication page all importbuddy files will be freshly unpacked if the importbuddy.php version and/or password mismatches to allow users to just replace importbuddy.php to upgrade Importer or password.
129129
}
130130
}
131131

@@ -141,7 +141,7 @@ function ib_directory_browsing_allowed() {
141141
}
142142
} else { // NORMAL ACCESS.
143143
if ( ! file_exists( ABSPATH . 'importbuddy/init.php' ) ) {
144-
die( 'Error: Unable to find file `' . ABSPATH . 'importbuddy/init.php`. Make sure that you downloaded this script from within BackupBuddy. Copying importbuddy files from inside the plugin directory is not sufficient as many file additions are made on demand.' );
144+
die( 'Error: Unable to find file `' . ABSPATH . 'importbuddy/init.php`. Make sure that you downloaded this script from within Solid Backups. Copying importbuddy files from inside the plugin directory is not sufficient as many file additions are made on demand.' );
145145
} else {
146146
require_once ABSPATH . 'importbuddy/init.php';
147147
}

0 commit comments

Comments
 (0)