-
Notifications
You must be signed in to change notification settings - Fork 6
/
really-simple-ssl-letsencrypt.php
41 lines (39 loc) · 1.71 KB
/
really-simple-ssl-letsencrypt.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* Plugin Name: Really Simple SSL Shell Add on
* Plugin URI: https://really-simple-ssl.com
* Description: Add on for Really Simple SSL adding shell functionality to install SSL certificates
* Version: 2.0.0
* Author: Really Simple Plugins
* Author URI: https://really-simple-plugins.com
* License: GPL2
* Text Domain: really-simple-ssl-shell
* Domain Path: /languages
*/
/* Copyright 2021 Really Simple Plugins BV (email : [email protected])
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
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, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
defined('ABSPATH') or die();
define('rsssl_shell_version', '2.0.0');
if (!defined('rsssl_shell_path')) define('rsssl_shell_path', trailingslashit(plugin_dir_path(__FILE__)) );
function rsssl_le_load_shell_addon(){
if ( function_exists('rsssl_letsencrypt_generation_allowed') && rsssl_letsencrypt_generation_allowed() ) {
if (defined('rsssl_version')) {
if (version_compare(rsssl_version, '6.0.0', '>=')) {
require_once( rsssl_shell_path . 'functions-6.php' );
} else {
require_once( rsssl_shell_path . 'functions.php' );
}
}
}
}
add_action( 'plugins_loaded', 'rsssl_le_load_shell_addon' );