File: /var/www/html/wp-content/plugins/backup-guard-security-platinum/com/config/config.wordpress.php
<?php
global $wp_version, $wpdb;
define('BGS_WP_ROOT', ABSPATH);
define('BGS_ENV_WORDPRESS', 'Wordpress');
define('BGS_ENV_MAGENTO', 'Magento');
define('BGS_ENV_VERSION', $wp_version);
define('BGS_ENV_ADAPTER', BGS_ENV_WORDPRESS);
define('BGS_ENV_DB_PREFIX', $wpdb->prefix);
require_once(dirname(__FILE__).'/config.php');
//Database
define('BGS_DB_ADAPTER', BGS_ENV_ADAPTER);
//Notice
define('BGS_NOTICE_TEMPLATES_PATH', BGS_APP_PATH.'../public/templates/notices/');
$upload_dir = wp_upload_dir();
define('BGS_UPLOAD_PATH', $upload_dir['basedir']);
define('BGS_UPLOAD_URL', $upload_dir['baseurl']);
define('BGS_SITE_URL', get_site_url());
define('BGS_HOME_URL', get_home_url());
define('BGS_MYSQL_VERSION', $wpdb->db_version());
//Symlink download
define('BGS_SYMLINK_PATH', $upload_dir['basedir'].'/bgs_symlinks/');
define('BGS_SYMLINK_URL', $upload_dir['baseurl'].'/bgs_symlinks/');
define('BGS_APP_ROOT_DIRECTORY', realpath(dirname(WP_CONTENT_DIR)."/")); //Wordpress Define
define('BGS_REPORTS_DIRECTORY', $upload_dir['basedir'].'/backup-guard-security/'); //backups will be stored here
define('BGS_REPORTS_DIRECTORY_URL', BGS_UPLOAD_URL.'/backup-guard-security/');
define('BGS_PING_FILE_PATH', BGS_REPORTS_DIRECTORY.'ping.json');
$wpContent = basename(WP_CONTENT_DIR);
$wpPlugins = basename(WP_PLUGIN_DIR);
$bgsPathsToExclude = array(
$wpContent.'/'.$wpPlugins.'/backup/',
$wpContent.'/'.$wpPlugins.'/backup-guard-pro/',
$wpContent.'/'.$wpPlugins.'/backup-guard-silver/',
$wpContent.'/'.$wpPlugins.'/backup-guard-gold/',
$wpContent.'/'.$wpPlugins.'/backup-guard-platinum/',
$wpContent.'/'.$wpPlugins.'/backup-guard-security-silver/',
$wpContent.'/'.$wpPlugins.'/backup-guard-security-gold/',
$wpContent.'/'.$wpPlugins.'/backup-guard-security-platinum/'
);
define('BGS_PATHS_TO_EXCLUDE', implode(',', $bgsPathsToExclude));