PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/public_html/pro1/wp-content/plugins/boldgrid-backup/cli/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/public_html/pro1/wp-content/plugins/boldgrid-backup/cli/bgbkup-cli.php

<?php
/**
 * File: bgbkup-cli.php
 *
 * Performs site integrity checks and manual and emergency restoration.
 *
 * @link       https://www.boldgrid.com
 * @link       https://github.com/BoldGrid/boldgrid-backup/wiki/Restorations-outside-of-WordPress
 * @since      1.9.0
 *
 * @package    Boldgrid_Backup
 * @subpackage Boldgrid_Backup\Cli
 * @copyright  BoldGrid
 * @author     BoldGrid <support@boldgrid.com>
 *
 * @see \Boldgrid\Backup\Cli\Info::has_errors()
 * @see \Boldgrid\Backup\Cli\Info::print_errors()
 * @see \Boldgrid\Backup\Cli\Site_Check::should_restore()
 * @see \Boldgrid\Backup\Cli\Site_Restore::run()
 * @see \Boldgrid\Backup\Cli\Log::write()
 *
 * phpcs:disable WordPress.VIP,WordPress.XSS.EscapeOutput
 */

namespace Boldgrid\Backup\Cli;

$php_min_version = '5.4';

if ( version_compare( PHP_VERSION, $php_min_version, '<' ) ) {
	echo 'Error: Incompatible PHP version "' . PHP_VERSION . '".  This utility requires "' .
		$php_min_version . '" or higher.' . PHP_EOL;
	exit( 1 );
}

require __DIR__ . '/class-info.php';
require __DIR__ . '/class-site-check.php';
require __DIR__ . '/class-log.php';
require __DIR__ . '/class-email.php';

if ( Info::has_errors() ) {
	Info::print_errors();
	exit( 1 );
}

if ( Site_Check::should_restore() ) {
	require __DIR__ . '/class-site-restore.php';
	( new Site_Restore() )->run();
} else {
	$message = 'Info: No action taken.';
	echo $message . PHP_EOL;
	Log::write( $message, LOG_INFO );
}