Priority File Manager

📁 public_html
Base Directory:
/home/ecedu/public_html/wp-content/plugins/updraftplus/includes/updraftclone
NameTypeSizeActions
📁 .. Folder -
📄 temporary-clone-auto-login.php File 3801
Edit Download
📄 temporary-clone-dash-notice.php File 6815
Edit Download
📄 temporary-clone-restore.php File 3026
Edit Download
📄 temporary-clone-status.php File 13589
Edit Download
📄 temporary-clone-user-notice.php File 4120
Edit Download
backups_dir_location()). 'ready_for_restore'; error_log("UpdraftPlus_Temporary_Clone_Restore::clone_ready_for_restore($job_id): touching flag file"); if ($job_id) { file_put_contents($state_file, $job_id); } else { touch($state_file); } // Make the scope of $wp_file_descriptions global, so that when wp-admin/includes/file.php assigns to it, it is adjusting the global variable as intended global $wp_file_descriptions; // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable -- Passed though to wp-admin/includes/file.php. if (!function_exists('WP_Filesystem')) require_once ABSPATH.'wp-admin/includes/file.php'; WP_Filesystem(); // Create maintenance file with current clone status contents if (!$wp_filesystem->exists(trailingslashit(WP_CONTENT_DIR).'maintenance.php')) { ob_start(); if (!class_exists('UpdraftPlus_Temporary_Clone_Status')) { include_once trailingslashit(plugin_dir_path(__FILE__)).'temporary-clone-status.php'; } $updraftplus_temporary_clone_status = new UpdraftPlus_Temporary_Clone_Status(); $updraftplus_temporary_clone_status->output_status_page(false); $contents = ob_get_clean(); $wp_filesystem->put_contents( trailingslashit(WP_CONTENT_DIR).'maintenance.php', $contents, FS_CHMOD_FILE ); } } /** * Remove maintenance file created before the DB restoration. */ public function remove_maintenance_file() { global $updraftplus, $wp_filesystem; $updraft_dir = trailingslashit($updraftplus->backups_dir_location()); if (!file_exists($updraft_dir . 'ready_for_restore')) return; // Make the scope of $wp_file_descriptions global, so that when wp-admin/includes/file.php assigns to it, it is adjusting the global variable as intended global $wp_file_descriptions; // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable -- Passed though to wp-admin/includes/file.php. if (!function_exists('WP_Filesystem')) require_once ABSPATH.'wp-admin/includes/file.php'; WP_Filesystem(); $wp_filesystem->delete(trailingslashit(WP_CONTENT_DIR).'maintenance.php'); } } if (defined('UPDRAFTPLUS_THIS_IS_CLONE') && UPDRAFTPLUS_THIS_IS_CLONE) { new UpdraftPlus_Temporary_Clone_Restore(); }