<?php

/**
 * @wordpress-plugin
 * Plugin Name:       My Agile Privacy®
 * Plugin URI:        https://www.myagileprivacy.com/
 * Description:       My Agile Privacy® - CMP, Cookie Consent & Privacy Tools
 * Version:           3.3.2
 * Requires at least: 4.4.0
 * Requires PHP:      5.6
 * Author:            MyAgilePrivacy
 * Author URI:        https://www.myagileprivacy.com/
 * License:           GPLv3
 * License URI:       https://www.gnu.org/licenses/gpl-3.0.html
 * Text Domain:       MAP_txt
 * Domain Path:       /lang
 */

require plugin_dir_path( __FILE__ ) . 'includes/my-agile-privacy-defines.php';
require plugin_dir_path( __FILE__ ) . 'includes/my-agile-privacy-class.php';

/**
 * Starts the plugin execution
 *
 */
function run_my_agile_privacy() {
	ini_set( 'display_errors', 0 );
	$plugin = new MyAgilePrivacy();

    $rconfig = MyAgilePrivacy::get_rconfig();

    if( isset( $rconfig ) &&
        isset( $rconfig['verbose_remote_log'] ) &&
        $rconfig['verbose_remote_log'] )
    {
        define ( 'MAP_DEBUGGER', true );
    }
    else
    {
        define ( 'MAP_DEBUGGER', false );
    }
}
run_my_agile_privacy();