PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/craftsperks.online/wp-content/plugins/backupbuddy/destinations/local/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/craftsperks.online/wp-content/plugins/backupbuddy/destinations/local/_manage.php |
<?php // @author Dustin Bolton 2012. // Set reference to destination. if ( isset( pb_backupbuddy::$options['remote_destinations'][pb_backupbuddy::_GET('destination_id')] ) ) { $destination = &pb_backupbuddy::$options['remote_destinations'][pb_backupbuddy::_GET('destination_id')]; } // Welcome text. pb_backupbuddy::$ui->title( 'Local Destination `' . $destination['title'] . '`' ); echo 'Listing backups in local directory `' . $destination['path'] . '`...<br><br>'; // Handle deletion. if ( pb_backupbuddy::_POST( 'bulk_action' ) == 'delete_backup' ) { pb_backupbuddy::verify_nonce(); $deleted_files = array(); foreach( (array)pb_backupbuddy::_POST( 'items' ) as $item ) { @unlink( $destination['path'] . $item ); if ( file_exists( $destination['path'] . $item ) ) { pb_backupbuddy::alert( 'Error: Unable to delete `' . $item . '`. Verify permissions.' ); } else { $deleted_files[] = $item; } } if ( count( $deleted_files ) > 0 ) { pb_backupbuddy::alert( 'Deleted ' . implode( ', ', $deleted_files ) . '.' ); } } // Find backups in directory. $backups = glob( $destination['path'] . '*.zip' ); if ( !is_array( $backups ) ) { $backups = array(); } // Generate array of table rows. $backup_list = array(); foreach( $backups as $backup ) { $backup_list[basename($backup)] = array( basename( $backup ), pb_backupbuddy::$format->date( pb_backupbuddy::$format->localize_time( filemtime( $backup ) ) ) . '<br /><span class="description">(' . pb_backupbuddy::$format->time_ago( filemtime( $backup ) ) . ' ago)</span>', pb_backupbuddy::$format->file_size( filesize( $backup ) ), ); } // Render table. pb_backupbuddy::$ui->list_table( $backup_list, array( 'action' => pb_backupbuddy::page_url() . '&custom=remoteclient&destination_id=' . htmlentities( pb_backupbuddy::_GET( 'destination_id' ) ), 'columns' => array( 'Backup File', 'Last Modified', 'File Size' ), //'hover_actions' => array( 'copy' => 'Copy to Local' ), 'hover_action_column_key' => '0', 'bulk_actions' => array( 'delete_backup' => 'Delete' ), 'css' => 'width: 100%;', ) );