Base Directory:
/home/ecedu/public_html/wp-content/plugins/really-simple-ssl/lets-encrypt
setup_constants();
self::$instance->includes();
if ( rsssl_letsencrypt_generation_allowed() ) {
self::$instance->hosts = new rsssl_le_hosts();
self::$instance->letsencrypt_handler = new rsssl_letsencrypt_handler();
self::$instance->le_restapi = new rsssl_le_restapi();
}
}
return self::$instance;
}
private function setup_constants() {
define('rsssl_le_url', plugin_dir_url(__FILE__));
define('rsssl_le_path', trailingslashit(plugin_dir_path(__FILE__)));
}
private function includes() {
require_once( rsssl_le_path . 'functions.php');
if ( rsssl_letsencrypt_generation_allowed() ) {
require_once( rsssl_le_path . 'config/class-hosts.php' );
require_once( rsssl_le_path . 'config/fields.php');
require_once( rsssl_le_path . 'class-le-restapi.php' );
require_once( rsssl_le_path . 'class-letsencrypt-handler.php' );
require_once( rsssl_le_path . 'integrations/integrations.php' );
}
require_once( rsssl_le_path . 'config/notices.php' );
}
/**
* Notice about possible compatibility issues with add ons
*/
public static function admin_notices() {
}
}
function RSSSL_LE() {
return RSSSL_LETSENCRYPT::instance();
}
add_action( 'plugins_loaded', 'RSSSL_LE', 9 );
class RSSSL_RESPONSE
{
public $message;
public $action;
public $status;
public $output;
public $request_success;
public function __construct($status, $action, $message, $output = false )
{
$this->status = $status;
$this->action = $action;
$this->message = $message;
$this->output = $output;
$this->request_success = true;
}
}