HEX
Server: Apache/2
System: Linux server.cloudfly.vn 3.10.0-1160.71.1.el7.x86_64 #1 SMP Tue Jun 28 15:37:28 UTC 2022 x86_64
User: root (0)
PHP: 7.4.29
Disabled: NONE
Upload Files
File: /home/dkhp464/public_html/wp-content/plugins/easy-watermark/src/bootstrap.php
<?php
/**
 * Plugin bootstrap file
 *
 * @package easy-watermark
 */

namespace EasyWatermark;

use EasyWatermark\Core\Plugin as EasyWatermark;

/**
 * Helper function for startup errors
 *
 * @param string $message
 * @param string $subtitle
 * @param string $title
 */
$ew_error = function( $message, $subtitle = '', $title = '' ) {
	$title   = $title ?: __( 'Easy Watermark &rsaquo; Error', 'easy-watermark' );
	$footer  = '<a href="https://wordpress.org/support/plugin/easy-watermark">Support </a>';
	$message = "<h1>{$title}<br><small>{$subtitle}</small></h1><p>{$message}</p><p>{$footer}</p>";
	wp_die( $message, $title ); // phpcs:ignore
};

require EW_DIR_PATH . '/src/inc/functions.php';

/**
 * Composer autoloader file
 */
$autoloader = EW_DIR_PATH . '/vendor/autoload.php';

/**
 * Check if the composer vendors are installed
 */
if ( ! file_exists( $autoloader ) ) {
	$ew_error( 'If you are a developer, please run: `<code>composer install</code>`. Otherwies contact us for help.', 'The plugin vendors are missing.' );
}

/**
 * Require composer autoload
 */
require $autoloader;

/**
 * Requirements check
 */
$requirements = new \underDEV_Requirements( __( 'Easy Watermark', 'easy-watermark' ), [
	'php'            => '5.6.0',
	'wp'             => '4.6',
	'php_extensions' => [ 'gd' ],
] );

if ( ! $requirements->satisfied() ) {
	add_action( 'admin_notices', [ $requirements, 'notice' ] );
	return;
}

$plugin = EasyWatermark::get();