golden hour
/home/doctorbruno/public_html/pgmed.org/wp-content/plugins/backupbuddy/controllers/ajax
⬆️ Go Up
Upload
File/Folder
Size
Actions
_destination_picker.php
24.64 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
15 KB
Del
OK
destination_ftp_pathpicker.php
4.74 KB
Del
OK
destination_picker.php
306 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.67 KB
Del
OK
file_tree.php
7.35 KB
Del
OK
forceSpawnCron.php
421 B
Del
OK
gdrive_folder_create.php
1.96 KB
Del
OK
gdrive_folder_select.php
2.39 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_last_snapshot_details.php
6.34 KB
Del
OK
live_settings.php
3.77 KB
Del
OK
live_setup.php
4.65 KB
Del
OK
live_snapshot_status.php
1.32 KB
Del
OK
live_stash_files.php
1.03 KB
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
pinfo.php
171 B
Del
OK
profile_settings.php
327 B
Del
OK
quickstart.php
246 B
Del
OK
quickstart_form.php
6.97 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
3.15 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
7.72 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: restore_file_view.php
<?php backupbuddy_core::verifyAjaxAccess(); // File viewer (view content only) in the file restore page. /* restore_file_view() * * View contents of a file (text) that is inside a zip archive. * */ pb_backupbuddy::$ui->ajax_header( true, false ); // js, no padding $archive_file = pb_backupbuddy::_GET( 'archive' ); // archive to extract from. $file = pb_backupbuddy::_GET( 'file' ); // file to extract. $serial = backupbuddy_core::get_serial_from_file( $archive_file ); // serial of archive. $temp_file = uniqid(); // temp filename to extract into. require_once( pb_backupbuddy::plugin_path() . '/lib/zipbuddy/zipbuddy.php' ); $zipbuddy = new pluginbuddy_zipbuddy( backupbuddy_core::getBackupDirectory() ); // Calculate temp directory & lock it down. $temp_dir = get_temp_dir(); $destination = $temp_dir . 'backupbuddy-' . $serial; if ( ( ( ! file_exists( $destination ) ) && ( false === mkdir( $destination ) ) ) ) { $error = 'Error #458485945b: Unable to create temporary location.'; pb_backupbuddy::status( 'error', $error ); die( $error ); } // If temp directory is within webroot then lock it down. $temp_dir = str_replace( '\\', '/', $temp_dir ); // Normalize for Windows. $temp_dir = rtrim( $temp_dir, '/\\' ) . '/'; // Enforce single trailing slash. if ( FALSE !== stristr( $temp_dir, ABSPATH ) ) { // Temp dir is within webroot. pb_backupbuddy::anti_directory_browsing( $destination ); } unset( $temp_dir ); $message = 'Extracting "' . $file . '" from archive "' . $archive_file . '" into temporary file "' . $destination . '". '; echo '<!-- '; pb_backupbuddy::status( 'details', $message ); echo $message; $extractions = array( $file => $temp_file ); $extract_result = $zipbuddy->extract( backupbuddy_core::getBackupDirectory() . $archive_file, $destination, $extractions ); if ( false === $extract_result ) { // failed. echo ' -->'; $error = 'Error #584984458. Unable to extract.'; pb_backupbuddy::status( 'error', $error ); die( $error ); } else { // success. _e( 'Success.', 'it-l10n-backupbuddy' ); echo ' -->'; ?> <textarea readonly="readonly" wrap="off" style="width: 100%; min-height: 175px; height: 100%; margin: 0;"><?php echo file_get_contents( $destination . '/' . $temp_file ); ?></textarea> <?php //unlink( $destination . '/' . $temp_file ); } // Try to cleanup. if ( file_exists( $destination ) ) { if ( false === pb_backupbuddy::$filesystem->unlink_recursive( $destination ) ) { pb_backupbuddy::status( 'details', 'Unable to delete temporary holding directory `' . $destination . '`.' ); } else { pb_backupbuddy::status( 'details', 'Cleaned up temporary files.' ); } } pb_backupbuddy::$ui->ajax_footer(); die();
Save