* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA. */ $config = WPB2D_Factory::get('config'); $backup = new WPB2D_BackupController(); if (array_key_exists('stop_backup', $_POST)) { check_admin_referer('backup_to_dropbox_monitor_stop'); $backup->stop(); add_settings_error('wpb2d_monitor', 'backup_stopped', __('Backup stopped.', 'wpbtd'), 'updated'); } elseif (array_key_exists('start_backup', $_POST)) { check_admin_referer('backup_to_dropbox_monitor_stop'); $backup->backup_now(); $started = true; add_settings_error('wpb2d_monitor', 'backup_started', __('Backup started.', 'wpbtd'), 'updated'); } ?> <script type="text/javascript" language="javascript"> function reload() { jQuery('.files').hide(); jQuery.post(ajaxurl, { action : 'progress' }, function(data) { if (data.length) { jQuery('#progress').html(data); jQuery('.view-files').on('click', function() { $files = jQuery(this).next(); $files.toggle(); $files.find('li').each(function() {