| Server IP : 104.21.20.47 / Your IP : 104.23.197.165 Web Server : Microsoft-IIS/7.5 System : Windows NT WIN-HN0MTSF2AF1 6.1 build 7601 (Windows Server 2008 R2 Enterprise Edition Service Pack 1) AMD64 User : IWPD_11(bayt-altogg) ( 0) PHP Version : 8.2.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Inetpub/vhosts/bayt-altoggar.com/httpdocs/wp-content/plugins/easy-watermark/src/ |
Upload File : |
<?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 › 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();