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: remote_send.php
<?php backupbuddy_core::verifyAjaxAccess(); /* remote_send() * * Send backup archive to a remote destination manually. Optionally sends importbuddy.php with files. * Sends are scheduled to run in a cron and are passed to the cron.php remote_send() method. * * @return null */ $success_output = false; // Set to true onece a leading 1 has been sent to the javascript to indicate success. $destination_id = pb_backupbuddy::_POST( 'destination_id' ); if ( pb_backupbuddy::_POST( 'file' ) != 'importbuddy.php' ) { $backup_file = backupbuddy_core::getBackupDirectory() . pb_backupbuddy::_POST( 'file' ); if ( ! file_exists( $backup_file ) ) { // Error if file to send did not exist! $error_message = 'Unable to find file `' . $backup_file . '` to send. File does not appear to exist. You can try again in a moment or turn on full error logging and try again to log for support.'; pb_backupbuddy::status( 'error', $error_message ); echo $error_message; die(); } if ( is_dir( $backup_file ) ) { // Error if a directory is trying to be sent. $error_message = 'You are attempting to send a directory, `' . $backup_file . '`. Try again and verify there were no javascript errors.'; pb_backupbuddy::status( 'error', $error_message ); echo $error_message; die(); } } else { $backup_file = ''; } // Send ImportBuddy along-side? if ( pb_backupbuddy::_POST( 'send_importbuddy' ) == '1' ) { $send_importbuddy = true; pb_backupbuddy::status( 'details', 'Cron send to be scheduled with importbuddy sending.' ); } else { $send_importbuddy = false; pb_backupbuddy::status( 'details', 'Cron send to be scheduled WITHOUT importbuddy sending.' ); } // Delete local copy after send completes? if ( pb_backupbuddy::_POST( 'delete_after' ) == 'true' ) { $delete_after = true; pb_backupbuddy::status( 'details', 'Remote send set to delete after successful send.' ); } else { $delete_after = false; pb_backupbuddy::status( 'details', 'Remote send NOT set to delete after successful send.' ); } if ( !isset( pb_backupbuddy::$options['remote_destinations'][$destination_id] ) ) { die( 'Error #833383: Invalid destination ID `' . htmlentities( $destination_id ) . '`.' ); } // For Stash we will check the quota prior to initiating send. if ( pb_backupbuddy::$options['remote_destinations'][$destination_id]['type'] == 'stash' ) { // Pass off to destination handler. require_once( pb_backupbuddy::plugin_path() . '/destinations/bootstrap.php' ); $send_result = pb_backupbuddy_destinations::get_info( 'stash' ); // Used to kick the Stash destination into life. $stash_quota = pb_backupbuddy_destination_stash::get_quota( pb_backupbuddy::$options['remote_destinations'][$destination_id], true ); if ( isset( $stash_quota['error'] ) ) { echo ' Error accessing Stash account. Send aborted. Details: `' . implode( ' - ', $stash_quota['error'] ) . '`.'; die(); } if ( $backup_file != '' ) { $backup_file_size = filesize( $backup_file ); } else { $backup_file_size = 50000; } if ( ( $backup_file_size + $stash_quota['quota_used'] ) > $stash_quota['quota_total'] ) { echo "You do not have enough Stash storage space to send this file. Please upgrade your Stash storage or delete files to make space.\n\n"; echo 'Attempting to send file of size ' . pb_backupbuddy::$format->file_size( $backup_file_size ) . ' but you only have ' . $stash_quota['quota_available_nice'] . ' available. '; echo 'Currently using ' . $stash_quota['quota_used_nice'] . ' of ' . $stash_quota['quota_total_nice'] . ' (' . $stash_quota['quota_used_percent'] . '%).'; die(); } else { if ( isset( $stash_quota['quota_warning'] ) && ( $stash_quota['quota_warning'] != '' ) ) { echo '1Warning: ' . $stash_quota['quota_warning'] . "\n\n"; $success_output = true; } } } // end if Stash. pb_backupbuddy::status( 'details', 'Scheduling cron to send to this remote destination...' ); $schedule_result = backupbuddy_core::schedule_single_event( time(), 'remote_send', array( $destination_id, $backup_file, pb_backupbuddy::_POST( 'trigger' ), $send_importbuddy, $delete_after ) ); if ( $schedule_result === FALSE ) { $error = 'Error scheduling file transfer. Please check your BackupBuddy error log for details. A plugin may have prevented scheduling or the database rejected it.'; pb_backupbuddy::status( 'error', $error ); echo $error; } else { pb_backupbuddy::status( 'details', 'Cron to send to remote destination scheduled.' ); } if ( '1' != pb_backupbuddy::$options['skip_spawn_cron_call'] ) { update_option( '_transient_doing_cron', 0 ); // Prevent cron-blocking for next item. spawn_cron( time() + 150 ); // Adds > 60 seconds to get around once per minute cron running limit. } // SEE cron.php remote_send() for sending function that we pass to via the cron above. if ( $success_output === false ) { echo 1; } die();
Save