HEX
Server: Apache
System: Linux efa57bbe-abb1-400d-2985-3b056fbc2701.secureserver.net 6.1.147-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jul 24 12:33:32 EDT 2025 x86_64
User: root (0)
PHP: 8.0.30.4
Disabled: NONE
Upload Files
File: //var/chroot/var/www/wp-content/mu-plugins/vendor/wpex/godaddy-launch/godaddy-launch.php
<?php
/**
 * Plugin Name: GoDaddy Launch
 * Plugin URI: https://godaddy.com/
 * Description: GoDaddy Launch Description
 * Version: 2.14.13
 * Requires at least: 5.9
 * Requires PHP: 8.0
 * Author: GoDaddy
 * Author URI: https://godaddy.com
 * Text Domain: godaddy-launch
 * Domain Path: /languages
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * 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, see <http://www.gnu.org/licenses/>.
 *
 * @package GoDaddy_Launch
 */

namespace GoDaddy\WordPress\Plugins\Launch;

defined( 'ABSPATH' ) || exit;

// Guard the plugin from running in the WP-CLI context.
if ( class_exists( 'WP_CLI' ) ) {
	return;
}

// Guard the plugin from initializing more than once.
if ( class_exists( Application::class ) ) {
	return;
}

$godaddy_launch_config_data = defined( 'configData' ) ? json_decode( constant( 'configData' ), true ) : array();
$godaddy_launch_is_reseller = array_key_exists( 'GD_RESELLER', $godaddy_launch_config_data ) ? '1' !== $godaddy_launch_config_data['GD_RESELLER'] : false;

// Guard the plugin from running when the user is a reseller.
if ( $godaddy_launch_is_reseller ) {
	return;
}

require_once dirname( __FILE__ ) . '/vendor/autoload.php';

/**
 * Create and retrieve the main applicaiton container instance.
 *
 * @return Application The application container.
 */
function gdl() {
	return Application::getInstance();
}

gdl()->setBasePath( __FILE__ );

/**
 * Autoloaded Service Providers.
 */
$gdl_providers = array(
	GoDaddyStylesServiceProvider::class,
	LiveSiteControl\LiveSiteControlProvider::class,
	PublishGuide\PublishGuideServiceProvider::class,
	PageMetaServiceProvider::class,
);

foreach ( $gdl_providers as $gdl_provider ) {
	gdl()->register( $gdl_provider );
}

register_deactivation_hook( __FILE__, array( gdl(), 'deactivation' ) );

// Boot the plugin.
add_action( 'plugins_loaded', array( gdl(), 'boot' ) );
add_action( 'plugins_loaded', array( gdl(), 'loadTextDomain' ) );
add_filter( 'load_textdomain_mofile', array( gdl(), 'loadMoFiles' ), 10, 2 );