</p> <?php // The directory to display $directory = Path::get_root(); if (isset($_GET['hmbkp_directory_browse'])) { $untrusted_directory = urldecode($_GET['hmbkp_directory_browse']); // Only allow real sub directories of the site root to be browsed if (false !== strpos($untrusted_directory, Path::get_root()) && is_dir($untrusted_directory)) { $directory = $untrusted_directory; } } $exclude_string = implode('|', $excludes->get_excludes_for_regex()); $site_size = new Site_Size(); // Kick off a recursive filesize scan $files = list_directory_by_total_filesize($directory); ?> <table class="widefat"> <thead> <tr> <th></th> <th scope="col"><?php _e('Name', 'backupwordpress'); ?> </th> <th scope="col" class="column-format"><?php _e('Size', 'backupwordpress'); ?>
<?php // The directory to display. $directory = Path::get_root(); if (isset($_GET['hmbkp_directory_browse'])) { $untrusted_directory = urldecode($_GET['hmbkp_directory_browse']); // Only allow real sub directories of the site root to be browsed. if (false !== strpos($untrusted_directory, Path::get_root()) && is_dir($untrusted_directory)) { $directory = $untrusted_directory; } } $exclude_string = implode('|', $excludes->get_excludes_for_regex()); $site_size = new Site_Size('file'); $excluded_site_size = new Site_Size('file', $excludes); // Kick off a recursive filesize scan. $files = list_directory_by_total_filesize($directory, $excludes); ?> <table class="widefat"> <thead> <tr> <th></th> <th scope="col"><?php esc_html_e('Name', 'backupwordpress'); ?> </th> <th scope="col" class="column-format"><?php esc_html_e('Included Size', 'backupwordpress'); ?>