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

namespace HM\BackUpWordPress;

// Refresh the schedules from the database to make sure we have the latest changes
Schedules::get_instance()-&gt;refresh_schedules();

$schedules = Schedules::get_instance()-&gt;get_schedules();

if ( ! empty( $_GET[&#039;hmbkp_schedule_id&#039;] ) ) {
	$current_schedule = new Scheduled_Backup( sanitize_text_field( $_GET[&#039;hmbkp_schedule_id&#039;] ) );
} else {
	$current_schedule = reset( $schedules );
} ?&gt;

&lt;div class=&quot;wp-filter&quot;&gt;
	&lt;ul class=&quot;filter-links&quot;&gt;

		&lt;?php foreach ( $schedules as $schedule ) :
			$status = new Backup_Status( $schedule-&gt;get_id() ); ?&gt;

			&lt;li&lt;?php if ( $status-&gt;get_status() ) { ?&gt; title=&quot;&lt;?php echo esc_attr( strip_tags( $status-&gt;get_status() ) ); ?&gt;&quot;&lt;?php } ?&gt;&gt;&lt;a href=&quot;&lt;?php echo esc_url( add_query_arg( &#039;hmbkp_schedule_id&#039;, $schedule-&gt;get_id(), HMBKP_ADMIN_URL ) ); ?&gt;&quot; class=&quot;&lt;?php if ( $status-&gt;get_status() ) { ?&gt;hmbkp-running&lt;?php } ?&gt; &lt;?php if ( $schedule-&gt;get_id() === $current_schedule-&gt;get_id() ) { ?&gt;current&lt;?php } ?&gt;&quot;&gt;&lt;?php echo esc_html( translated_schedule_title( $schedule-&gt;get_slug(), $schedule-&gt;get_name() ) ); ?&gt; &lt;span class=&quot;count&quot;&gt;(&lt;?php echo esc_html( count( $schedule-&gt;get_backups() ) ); ?&gt;)&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;

		&lt;?php endforeach; ?&gt;

		&lt;li&gt;&lt;a href=&quot;&lt;?php echo esc_url( add_query_arg( array( &#039;hmbkp_add_schedule&#039; =&gt; &#039;1&#039;, &#039;action&#039; =&gt; &#039;hmbkp_edit_schedule&#039;, &#039;hmbkp_schedule_id&#039; =&gt; time(), &#039;hmbkp_panel&#039; =&gt; &#039;hmbkp_edit_schedule_settings&#039; ), HMBKP_ADMIN_URL ) ); ?&gt;&quot; class=&quot;&lt;?php if ( ! Schedules::get_instance()-&gt;get_schedule( $current_schedule-&gt;get_id() ) ) { ?&gt; current&lt;?php } ?&gt;&quot;&gt; + &lt;?php _e( &#039;add schedule&#039;, &#039;backupwordpress&#039; ); ?&gt;&lt;/a&gt;&lt;/li&gt;

	&lt;/ul&gt;
&lt;/div&gt;

&lt;?php // Don&#039;t continue if we don&#039;t have a schedule
if ( ! $schedule = $current_schedule ) {
	return;
} ?&gt;

&lt;div data-hmbkp-schedule-id=&quot;&lt;?php echo esc_attr( $schedule-&gt;get_id() ); ?&gt;&quot; class=&quot;hmbkp_schedule&quot;&gt;

	&lt;?php require( HMBKP_PLUGIN_PATH . &#039;admin/schedule-sentence.php&#039; ); ?&gt;

	&lt;?php require( HMBKP_PLUGIN_PATH . &#039;admin/backups-table.php&#039; ); ?&gt;

&lt;/div&gt;
</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>
