66 lines
2.1 KiB
PHP
66 lines
2.1 KiB
PHP
<?php
|
|
/**
|
|
* Plugin Name: SMTP (by ROBOTSTXT) Amazon SES
|
|
* Plugin URI: https://git.robotstxt.es/ROBOTSTXT/robotstxt-smtp-amazonses
|
|
* Description: Adds Amazon SES configuration support to the ROBOTSTXT SMTP plugin.
|
|
* Version: 2.1.0
|
|
* Requires at least: 6.5
|
|
* Requires PHP: 8.2
|
|
* Network: true
|
|
* Security: robotstxt@robotstxt.es
|
|
* Author: ROBOTSTXT
|
|
* Author URI: https://www.robotstxt.es/
|
|
* Text Domain: robotstxt-smtp-amazonses
|
|
* Requires Plugins: robotstxt-smtp
|
|
* Domain Path: /languages
|
|
* License: GPL-3.0-or-later
|
|
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
|
* Gitea Plugin URI: https://git.robotstxt.es/ROBOTSTXT/robotstxt-smtp-amazonses
|
|
* Primary Branch: main
|
|
*
|
|
* @package Robotstxt_SMTP_AmazonSES
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
if ( ! defined( 'ROBOTSTXT_SMTP_AMAZONSES_VERSION' ) ) {
|
|
define( 'ROBOTSTXT_SMTP_AMAZONSES_VERSION', '2.1.0' );
|
|
}
|
|
|
|
if ( ! defined( 'ROBOTSTXT_SMTP_AMAZONSES_FILE' ) ) {
|
|
define( 'ROBOTSTXT_SMTP_AMAZONSES_FILE', __FILE__ );
|
|
}
|
|
|
|
if ( ! defined( 'ROBOTSTXT_SMTP_AMAZONSES_PATH' ) ) {
|
|
define( 'ROBOTSTXT_SMTP_AMAZONSES_PATH', plugin_dir_path( __FILE__ ) );
|
|
}
|
|
|
|
if ( ! defined( 'ROBOTSTXT_SMTP_AMAZONSES_URL' ) ) {
|
|
define( 'ROBOTSTXT_SMTP_AMAZONSES_URL', plugin_dir_url( __FILE__ ) );
|
|
}
|
|
|
|
if ( ! defined( 'ROBOTSTXT_SMTP_AMAZONSES_SLUG' ) ) {
|
|
define( 'ROBOTSTXT_SMTP_AMAZONSES_SLUG', 'robotstxt-smtp-amazonses' );
|
|
}
|
|
|
|
if ( ! defined( 'ROBOTSTXT_SMTP_AMAZONSES_BASENAME' ) ) {
|
|
define( 'ROBOTSTXT_SMTP_AMAZONSES_BASENAME', plugin_basename( ROBOTSTXT_SMTP_AMAZONSES_FILE ) );
|
|
}
|
|
|
|
$autoload = ROBOTSTXT_SMTP_AMAZONSES_PATH . 'vendor/autoload.php';
|
|
|
|
if ( \is_readable( $autoload ) ) {
|
|
require_once $autoload;
|
|
}
|
|
|
|
require_once ROBOTSTXT_SMTP_AMAZONSES_PATH . 'includes/class-plugin.php';
|
|
|
|
// Initialize the plugin.
|
|
// Dependency checking is handled by the "Requires Plugins" header in WordPress 6.5+.
|
|
\Robotstxt_SMTP_AmazonSES\Plugin::get_instance()->run();
|
|
|
|
// Initialize ROBOTSTXT updater (auto-configures from plugin headers).
|
|
require_once __DIR__ . '/robotstxt-updater.php';
|
|
Robotstxt_Updater::init( __FILE__ );
|