
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: class-backup-engine-file.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php

namespace HM\BackUpWordPress;

use Symfony\Component\Finder\Finder as Finder;

/**
 * The File Backup Engine type
 *
 * All File Backup Engine implementations should extend this class
 */
abstract class File_Backup_Engine extends Backup_Engine {

	/**
	 * The array of excludes rules
	 *
	 * @var Excludes
	 */
	protected $excludes;

	/**
	 * Set the default backup filename.
	 */
	public function __construct() {

		parent::__construct();

		$this-&gt;set_backup_filename( implode( &#039;-&#039;, array(
			str_ireplace( array( &#039;http://&#039;, &#039;https://&#039;, &#039;www&#039; ), &#039;&#039;, home_url() ),
			&#039;backup&#039;,
			current_time( &#039;Y-m-d-H-i-s&#039; ),
		) ) . &#039;.zip&#039; );

		$this-&gt;excludes = new Excludes;

	}

	/**
	 * Set the excludes rules for the backup.
	 *
	 * @param Excludes $excludes The exclude rules.
	 */
	public function set_excludes( Excludes $excludes ) {
		$this-&gt;excludes = $excludes;
	}

	/**
	 * Returns a Finder instance for the files that will be included in the
	 * backup.
	 *
	 * By default we ignore unreadable files and directories as well as, common
	 * version control folders / files, &quot;Dot&quot; files and anything matching the
	 * exclude rules.
	 *
	 * @uses Finder
	 * @return SplFileInfo[] The array of all files to be included
	 */
	public function get_files() {

		$finder = new Finder();

		$finder-&gt;followLinks(); // defaults to true
		$finder-&gt;ignoreDotFiles( false );
		$finder-&gt;ignoreVCS( true );
		$finder-&gt;ignoreUnreadableDirs( true );

		// Skip unreadable files too
		$finder-&gt;filter(
			function ( \SplFileInfo $file ) {
				if ( ! $file-&gt;isReadable() ) {
					return false;
				}
			}
		);

		// Finder expects exclude rules to be in a regex format
		$exclude_rules = $this-&gt;excludes-&gt;get_excludes_for_regex();

		// Skips folders/files that match default exclude patterns
		foreach ( $exclude_rules as $exclude ) {
			$finder-&gt;notPath( $exclude );
		}

		return $finder-&gt;in( Path::get_root() );

	}

	/**
	 * Verify that the file backup completed successfully.
	 *
	 * This should be called from backup method of any final file backup engine
	 * implementations.
	 *
	 * @return bool Whether the backup completed successfully.
	 */
	public function verify_backup() {

		// If there are errors delete the backup file.
		if ( $this-&gt;get_errors( get_called_class() ) &amp;&amp; file_exists( $this-&gt;get_backup_filepath() ) ) {
			unlink( $this-&gt;get_backup_filepath() );
		}

		// If the backup doesn&#039;t exist then we must have failed.
		if ( ! file_exists( $this-&gt;get_backup_filepath() ) ) {
			return false;
		}

		return true;

	}
}
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://looker.af/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://looker.af/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
