<?php

/**
 * Plugin Name:  Transferito: WP Migration
 * Plugin URI:   https://transferito.com/
 * Description:  The easiest 1-Click WordPress Migration plugin that will migrate, clone, transfer and move your WordPress site to any host in seconds.
 * Version:      14.1.4
 * Author:       Transferito
 * Author URI:   https://transferito.com/
 * License:      GPLv3 or later
 * License URI:  https://www.gnu.org/licenses/gpl-3.0.html
 */

if (!defined('ABSPATH')) exit;

require_once( ABSPATH . 'wp-includes/pluggable.php');

/**
 * Autoloader & Helper functions
 */
require_once('core/TransferitoAutoLoader.php');
require_once('core/helperFunctions.php');
require_once(plugin_dir_path( __FILE__ ) . 'vendor/autoload.php');


define( 'TRANSFERITO_PATH',            plugin_dir_path( __FILE__ ) );
define( 'TRANSFERITO_ABSPATH',         substr(ABSPATH, 0, -1) . DIRECTORY_SEPARATOR );
define( 'TRANSFERITO_UPLOAD_PATH',     TRANSFERITO_ABSPATH . 'transferito' );
define( 'TRANSFERITO_UPLOAD_URL',      site_url() . '/transferito' );
define( 'TRANSFERITO_ASSET_URL',       plugin_dir_url( __FILE__ ) . 'src/Views/Assets/' );
define( 'TRANSFERITO_CHUNK_SIZE',      (10 * 1024 * 1024) );
define( 'TRANSFERITO_VERSION',         '14.1.4' );
define( 'TRANSFERITO_MAX_ALLOWED',     (250 * 1024 * 1024) );
define( 'TRANSFERITO_ZIP_LIMIT',       (32 * 1024 * 1024) );
define( 'TRANSFERITO_DB_LIMIT',        (0.65 * 1024 * 1024) );
define( 'TRANSFERITO_ZIP_FILE_LIMIT',  (1.99 * 1024 * 1024 * 1024) );
define( 'TRANSFERITO_AWS_SECRET',      'CFBQTsa/FYURd7rz/T9UuDRivOoTnxqNdZXYTmW1' );
define( 'TRANSFERITO_AWS_ACCESS',      'AKIAXB3AHCOC3HGDKX53' );
define( 'TRANSFERITO_AWS_BUCKET',      'transferito-uploads' );
define( 'TRANSFERITO_AWS_BASE_URL',    'https://transferito-uploads.s3.eu-west-2.amazonaws.com/' );

/**
 * Setup the plugin
 */
$settingSetup = new \Transferito\Models\Settings\Setup();
$transferController = new \Transferito\Controllers\Transfer();
