golden hour
/home/doctorbruno/public_html/doctorbruno.in/wp-content/plugins/backupbuddy/controllers/ajax
⬆️ Go Up
Upload
File/Folder
Size
Actions
.listing
5.58 KB
Del
OK
_destination_picker.php
24.45 KB
Del
OK
backup_status.php
586 B
Del
OK
db_check.php
853 B
Del
OK
db_repair.php
765 B
Del
OK
deploy.php
1.64 KB
Del
OK
deploy_confirm.php
2.69 KB
Del
OK
deploy_status.php
1.72 KB
Del
OK
deployment_regenerateKey.php
705 B
Del
OK
destinationTabs.php
14.13 KB
Del
OK
destination_ftp_pathpicker.php
4.74 KB
Del
OK
destination_picker.php
294 B
Del
OK
disalert.php
298 B
Del
OK
download_archive.php
2.96 KB
Del
OK
email_error_test.php
485 B
Del
OK
exclude_tree.php
2.52 KB
Del
OK
file_tree.php
7.35 KB
Del
OK
forceSpawnCron.php
421 B
Del
OK
gdrive_folder_create.php
1.7 KB
Del
OK
gdrive_folder_select.php
2.12 KB
Del
OK
getMainLog.php
360 B
Del
OK
hash.php
951 B
Del
OK
icicle.php
386 B
Del
OK
importbuddy.php
609 B
Del
OK
importexport_settings.php
3.84 KB
Del
OK
index.php
28 B
Del
OK
integrity_status.php
8.82 KB
Del
OK
live_settings.php
3.11 KB
Del
OK
live_setup.php
4.65 KB
Del
OK
live_snapshot_status.php
1.32 KB
Del
OK
live_stash_files.php
658 B
Del
OK
live_stats.php
2.56 KB
Del
OK
live_troubleshooting_download.php
754 B
Del
OK
migrate_status.php
4.69 KB
Del
OK
migration_picker.php
343 B
Del
OK
php_max_runtime_test.php
1.27 KB
Del
OK
phpinfo.php
171 B
Del
OK
profile_settings.php
327 B
Del
OK
quickstart.php
246 B
Del
OK
quickstart_form.php
9.9 KB
Del
OK
refresh_database_size.php
415 B
Del
OK
refresh_database_size_excluded.php
461 B
Del
OK
refresh_site_objects.php
384 B
Del
OK
refresh_site_objects_excluded.php
448 B
Del
OK
refresh_site_size.php
382 B
Del
OK
refresh_site_size_excluded.php
428 B
Del
OK
refresh_zip_methods.php
1.36 KB
Del
OK
remoteClient.php
867 B
Del
OK
remote_delete.php
635 B
Del
OK
remote_save.php
2.36 KB
Del
OK
remote_send.php
4.73 KB
Del
OK
remote_test.php
978 B
Del
OK
remotesend_abort.php
1.11 KB
Del
OK
remotesend_details.php
1.69 KB
Del
OK
remotesend_retry.php
2.59 KB
Del
OK
restore_file_restore.php
3.71 KB
Del
OK
restore_file_view.php
2.61 KB
Del
OK
rollback.php
1.86 KB
Del
OK
run_php_memory_test.php
856 B
Del
OK
run_php_memory_test_results.php
647 B
Del
OK
run_php_runtime_test.php
859 B
Del
OK
run_php_runtime_test_results.php
657 B
Del
OK
send_status.php
4.32 KB
Del
OK
set_backup_note.php
1.74 KB
Del
OK
site_size_listing.php
6.97 KB
Del
OK
stop_backup.php
208 B
Del
OK
testErrorLog.php
371 B
Del
OK
view_log.php
1.44 KB
Del
OK
Edit: migrate_status.php
<?php backupbuddy_core::verifyAjaxAccess(); // Magic migration status polling. /* migrate_status() * * Gives the current migration status. Echos. * * @return null */ $step = pb_backupbuddy::_POST( 'step' ); $backup_file = pb_backupbuddy::_POST( 'backup_file' ); $url = trim( pb_backupbuddy::_POST( 'url' ) ); switch( $step ) { case 'step1': // Make sure backup file has been transferred properly. // Find last migration. $last_migration_key = get_transient( 'pb_backupbuddy_migrationkey' ); if ( false === $last_migration_key ) { die( json_encode( array( 'status_code' => 'failure', 'status_message' => 'Status: Error #54849545. Unable to determine which backup is migrating. Please try again.', 'next_step' => '0', ) ) ); } pb_backupbuddy::status( 'details', 'About to load fileoptions data.' ); require_once( pb_backupbuddy::plugin_path() . '/classes/fileoptions.php' ); pb_backupbuddy::status( 'details', 'Fileoptions instance #26.' ); $fileoptions_obj = new pb_backupbuddy_fileoptions( backupbuddy_core::getLogDirectory() . 'fileoptions/send-' . $last_migration_key . '.txt', $read_only = true, $ignore_lock = true, $create_file = false ); if ( true !== ( $result = $fileoptions_obj->is_ok() ) ) { pb_backupbuddy::status( 'error', __('Fatal Error #9034.2342348. Unable to access fileoptions data.', 'it-l10n-backupbuddy' ) . ' Error: ' . $result ); return false; } pb_backupbuddy::status( 'details', 'Fileoptions data loaded.' ); $fileoptions = &$fileoptions_obj->options; $migrate_send_status = $fileoptions['status']; if ( $migrate_send_status == 'timeout' || $migrate_send_status == 'running' ) { $status_message = 'Status: Waiting for backup to finish uploading to server...'; $next_step = '1'; } elseif ( $migrate_send_status == 'failure' ) { $status_message = 'Status: Sending backup to server failed.'; $next_step = '0'; } elseif ( $migrate_send_status == 'success' ) { $status_message = 'Status: Success sending backup file.'; $next_step = '2'; } die( json_encode( array( 'status_code' => $migrate_send_status, 'status_message' => $status_message, 'next_step' => $next_step, ) ) ); break; case 'step2': // Hit importbuddy file to make sure URL is correct, it exists, and extracts itself fine. $url = rtrim( $url, '/' ); // Remove trailing slash if its there. if ( strpos( $url, 'importbuddy.php' ) === false ) { // If no importbuddy.php at end of URL add it. $url .= '/importbuddy.php'; } if ( ( false === strstr( $url, 'http://' ) ) && ( false === strstr( $url, 'https://' ) ) ) { // http or https is missing; prepend it. $url = 'http://' . $url; } $response = wp_remote_get( $url . '?api=ping', array( 'method' => 'GET', 'timeout' => 45, 'redirection' => 5, 'httpversion' => '1.0', 'blocking' => true, 'headers' => array(), 'body' => null, 'cookies' => array() ) ); if( is_wp_error( $response ) ) { die( json_encode( array( 'status_code' => 'failure', 'status_message' => 'Status: HTTP error checking for importbuddy.php at `' . $url . '`. Error: `' . $response->get_error_message() . '`.', 'next_step' => '0', ) ) ); } if ( trim( $response['body'] ) == 'pong' ) { // Importbuddy found. die( json_encode( array( 'import_url' => $url . '?display_mode=embed&file=' . pb_backupbuddy::_POST( 'backup_file' ) . '&v=' . pb_backupbuddy::$options['importbuddy_pass_hash'], 'status_code' => 'success', 'status_message' => 'Sucess verifying URL is valid importbuddy.php location. Continue migration below.', 'next_step' => '0', ) ) ); } else { // No importbuddy here. die( json_encode( array( 'status_code' => 'failure', 'status_message' => '<b>Error</b>: The importbuddy.php file uploaded was not found at <a href="' . $url . '">' . $url . '</a>. Please verify the URL properly matches & corresponds to the upload directory entered for this destination\'s settings.<br><br><b>Tip:</b> This error is only caused by URL not properly matching, permissions on the destination server blocking the script, or other destination server error. You may manually verify that the importbuddy.php scripts exists in the expected location on the destination server and that the script URL <a href="' . $url . '">' . $url . '</a> properly loads the ImportBuddy tool. You may manually upload importbuddy.php and the backup ZIP file to the destination server & navigating to its URL in your browser for an almost-as-quick alternative.', 'next_step' => '0', ) ) ); } break; default: echo 'Invalid migrate_status() step: `' . pb_backupbuddy::_POST( 'step' ) . '`.'; break; } // End switch on action. die();
Save