Server IP : 52.91.253.208 / Your IP : 3.145.172.56 [ Web Server : Apache System : Linux ip-172-26-9-9 4.19.0-25-cloud-amd64 #1 SMP Debian 4.19.289-1 (2023-07-24) x86_64 User : daemon ( 1) PHP Version : 7.3.18 Disable Function : NONE Domains : 3 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wp-letsencrypt-ssl-pro/classes/ |
Upload File : |
<?php /** * @package WP Encryption * * @author Go Web Smarty * @copyright Copyright (C) 2019-2020, Go Web Smarty * @link https://gowebsmarty.com * @since Class available since Release 2.0.0 * */ include_once WPLE_DIR . 'classes/le-core.php'; /** * WPLEPRO_Core * * @since 2.0 */ class WPLEPRO_Core extends WPLE_Core { public function __construct() { $opts = get_option('wple_opts'); $wc = false; if (isset($opts['type']) && $opts['type'] == 'wildcard') { $wc = true; } parent::__construct(array(), false, $wc); add_action('cert_expiry_updated', array($this, 'wple_schedule_renewal_cron')); add_action('wple_ssl_renewal', array($this, 'wple_start_ssl_renewal')); } public function wple_schedule_renewal_cron() { $opts = get_option('wple_opts'); if ($opts['expiry'] != '' && !wp_next_scheduled('wple_ssl_renewal')) { wp_schedule_single_event(strtotime('-30 day', strtotime($opts['expiry'])), 'wple_ssl_renewal'); } } public function wple_start_ssl_renewal($waited_propagation = '') { if (wple_fs()->can_use_premium_code__premium_only()) { if (function_exists('ignore_user_abort')) { ignore_user_abort(); } $det = date('d-m-Y'); if ($waited_propagation == 'propagating') { parent::wple_log("\n\n--------------WAITED FOR DNS PROPAGATION AND CONTINUING [$det]----------------\n", 'success', 'a', false); } else { parent::wple_log("\n\n--------------STARTED CERT RENEWAL [$det]----------------\n", 'success', 'a', false); } parent::wple_create_client(); parent::wple_generate_order(); parent::wple_verify_pending_orders(false, false, true); parent::wple_generate_certs(); parent::wple_install_certs__premium_only(true); parent::wple_send_usage_data(); //parent::wple_save_expiry_date(); } } }