=== Autoupdate Plugins & Themes ===
Contributors: codemenschen
Tags: Auto Update, Auto update Notifications, Restore, Backup, Update Manager, Backup Updates, Restore Update, Backup Plugin
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2

Safely Upgrade or Rollback any plugin either Automatically or Manually

== Description ==
- The plugin will create \"Advanced Update Manager\" setting tab after activation

- This Plugin will create 3 tables \"autoupdaterestore_data\", \"autoupdaterestore_backup\" and \"autoupdaterestore_updates\" for storage purpose

- If the user allows Auto Update then the plugin will set cron as per selected schedule for plugin update checking

- From \"Default\" tab
	=> User can set settings like \"To\" email address where user can get update emails, 
		\"From\" email address so, user can get update emails from a particular email 
		\"cron schedule\" user has options like \"Daily\",\"Weekly\" or \"Monthly\".

	=> Also user can upload sitemap for backup purpose, 

	=> User can take manual backup

	=> User can change Plugin Auto Update settings

	=> User can Rollback or Upgrade any plugin versions manually

- From \"Backup History\" tab

	=> From here user can view the Backup list of files

- Cron will check the updates as it scheduled

	=> By default if user select \"Auto Update\" yes then cron will set to Daily schedule

	=> First time when plugin detects update then one mail will send to the admin

	=> If user set allows to auto update plugin 

	then on second schedule cron will update plugin automatically

	=> Before updating plugin cron will take Files and Database backup

	=> After update will take backup again of updated files and Database

	=> Then will Compare both files before updates and after updates. If found any errors then \"Rollback\" the update
	and Mail to admin

== Installation ==
Installation and uninstallation are extremely simple. You can use WordPress’ automatic install or follow the manual instructions below.

INSTALLING:

Download the package.
Extract it to the “plugins” folder of your WordPress directory.
In the Admin Panel, go to “Plugins” and activate it.
Go to Settings -> Set up the basic settings.

UNINSTALLING:
In the Admin Panel, go to “Plugins” and deactivate the plugin.
Go to the “plugins” folder of your WordPress directory and delete the files/folder for this plugin.

== Changelog ==

= 1.1.0 =
* Security: rollback and update now only install plugins from downloads.wordpress.org. The download address is built on the server.
* Security: rollback only works for plugins that are installed on the site. Folder names are checked strictly.
* Security: rollback needs the "update plugins" and "install plugins" rights. Settings need the "manage options" right.
* Security: plugins are replaced through the WordPress file system API. If the new version cannot be installed, the old version is restored.
* Security: all database queries with values now use prepared statements.
* Security: sitemap uploads accept only .xml and .txt files. The file is read from the temporary upload and is not stored in a public folder.
* Security: the page backup only fetches pages of your own site and saves them as .html files.
* Security: the backup folder is protected against web access. Database backups get a random file name. Existing backups are renamed on update.
* Security: all output on the settings page and in the e-mails is escaped.
* Fix: the saved notification address is no longer reset to the admin address.
* Fix: the automatic rollback after a failed update check works again.
* Fix: the database backup works with every DB_HOST format and only covers the tables of this site.
* Fix: the update interval setting shows and hides correctly.
* Fix: "Update available" is only shown when wordpress.org has a newer version.

= 1.0.1 =
* Loads the stylesheet and script only on the plugin settings page.

= 1.0.0 =
* First release.
