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: destination_ftp_pathpicker.php
<?php backupbuddy_core::verifyAjaxAccess(); // FTP destination path picker. /* destination_ftp_pathpicker() * * description * */ function pb_backupbuddy_ftp_listDetailed($resource, $directory = '.') { if (is_array($children = @ftp_rawlist($resource, $directory))) { $items = array(); foreach ($children as $child) { $chunks = preg_split("/\s+/", $child); list($item['rights'], $item['number'], $item['user'], $item['group'], $item['size'], $item['month'], $item['day'], $item['time']) = $chunks; $item['type'] = $chunks[0]{0} === 'd' ? 'directory' : 'file'; array_splice($chunks, 0, 8); $items[implode(" ", $chunks)] = $item; } return $items; } return false; } // end listDetailed subfunction. $settings = array( 'address' => pb_backupbuddy::_GET( 'pb_backupbuddy_address' ), 'username' => pb_backupbuddy::_GET( 'pb_backupbuddy_username' ), 'password' => pb_backupbuddy::_GET( 'pb_backupbuddy_password' ), 'ftps' => pb_backupbuddy::_GET( 'pb_backupbuddy_ftps' ), 'active_mode' => pb_backupbuddy::_GET( 'pb_backupbuddy_active_mode' ), ); if ( ( $settings['address'] == '' ) || ( $settings['username'] == '' ) || ( $settings['password'] == '' ) ) { die( __('Missing required FTP server inputs.', 'it-l10n-backupbuddy' ) ); } // Settings if ( $settings['active_mode'] == '0' ) { $active_mode = false; } else { $active_mode = true; } $server = $settings['address']; $port = '21'; if ( strstr( $server, ':' ) ) { $server_params = explode( ':', $server ); $server = $server_params[0]; $port = $server_params[1]; } // Connect. if ( $settings['ftps'] == '0' ) { $conn_id = @ftp_connect( $server, $port, 10 ); // timeout of 10 seconds. if ( $conn_id === false ) { $error = __( 'Unable to connect to FTP address `' . $server . '` on port `' . $port . '`.', 'it-l10n-backupbuddy' ); $error .= "\n" . __( 'Verify the server address and port (default 21). Verify your host allows outgoing FTP connections.', 'it-l10n-backupbuddy' ); die( $error ); } } else { if ( function_exists( 'ftp_ssl_connect' ) ) { $conn_id = @ftp_ssl_connect( $server, $port ); if ( $conn_id === false ) { die( __('Destination server does not support FTPS?', 'it-l10n-backupbuddy' ) ); } } else { die( __('Your web server doesnt support FTPS.', 'it-l10n-backupbuddy' ) ); } } // Authenticate. $login_result = @ftp_login( $conn_id, $settings['username'], $settings['password'] ); if ( ( !$conn_id ) || ( !$login_result ) ) { pb_backupbuddy::status( 'details', 'FTP test: Invalid user/pass.' ); $response = __('Unable to login to FTP server. Bad user/pass.', 'it-l10n-backupbuddy' ); if ( $settings['ftps'] != '0' ) { $response .= "\n\nNote: You have FTPs enabled. You may get this error if your host does not support encryption at this address/port."; } die( $response ); } pb_backupbuddy::status( 'details', 'FTP test: Success logging in.' ); // Handle active/pasive mode. if ( $active_mode === true ) { // do nothing, active is default. pb_backupbuddy::status( 'details', 'Active FTP mode based on settings.' ); } elseif ( $active_mode === false ) { // Turn passive mode on. pb_backupbuddy::status( 'details', 'Passive FTP mode based on settings.' ); ftp_pasv( $conn_id, true ); } else { pb_backupbuddy::status( 'error', 'Unknown FTP active/passive mode: `' . $active_mode . '`.' ); } // Calculate root. $ftpRoot = urldecode( pb_backupbuddy::_POST( 'dir' ) ); if ( '' == $ftpRoot ) { // No root passed so figure out root from FTP server itself. $ftpRoot = ftp_pwd( $conn_id ); } $ftpList = pb_backupbuddy_ftp_listDetailed( $conn_id, $ftpRoot ); echo '<ul class="jqueryFileTree pb_backupbuddy_ftpdestination_pathpickerboxtree">'; if ( count( $ftpList ) > 2 ) { foreach( $ftpList as $fileName => $file ) { if ( ( '.' == $fileName ) || ( '..' == $fileName ) ) { continue; } if ( 'directory' == $file['type'] ) { // Directory. echo '<li class="directory collapsed">'; $return = ''; $return .= '<div class="pb_backupbuddy_treeselect_control">'; $return .= '<img src="' . pb_backupbuddy::plugin_url() . '/images/greenplus.png" style="vertical-align: -3px;" title="Select this path..." class="pb_backupbuddy_filetree_select">'; $return .= '</div>'; echo '<a href="#" rel="' . htmlentities( $ftpRoot . $fileName ) . '/" title="Toggle expand...">' . htmlentities($fileName) . $return . '</a>'; echo '</li>'; } else { // File. echo '<li class="file collapsed">'; echo '<a href="#" rel="' . htmlentities( $ftpRoot . $fileName ) . '">' . htmlentities($fileName) . '</a>'; echo '</li>'; } } } else { echo '<ul class="jqueryFileTree">'; echo '<li><a href="#" rel="' . htmlentities( pb_backupbuddy::_POST( 'dir' ) . 'NONE' ) . '"><i>Empty Directory ...</i></a></li>'; echo '</ul>'; } echo '</ul>'; die();
Save