Server IP : 15.235.198.142 / Your IP : 216.73.216.57 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/yme/wp-content/plugins/simply-static/ |
Upload File : |
<?php // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Plugin Name: Simply Static * Plugin URI: https://patrickposner.dev * Description: A static site generator to create fast and secure static versions of your WordPress website. * Version: 3.2.8.3 * Author: Patrick Posner * Author URI: https://patrickposner.dev * License: GPL-2.0+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt * Text Domain: simply-static * Domain Path: /languages */ define( 'SIMPLY_STATIC_PATH', plugin_dir_path( __FILE__ ) ); define( 'SIMPLY_STATIC_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) ); define( 'SIMPLY_STATIC_VERSION', '3.2.8.3' ); // Check PHP version. if ( version_compare( PHP_VERSION, '7.4', '<' ) ) { deactivate_plugins( plugin_basename( __FILE__ ) ); wp_die( esc_html__( 'Simply Static requires PHP 7.4 or higher.', 'simply-static' ), 'Plugin dependency check', array( 'back_link' => true ) ); } // Check WordPress version. if ( version_compare( get_bloginfo( 'version' ), '6.5', '<' ) ) { deactivate_plugins( plugin_basename( __FILE__ ) ); wp_die( esc_html__( 'Simply Static requires WordPress 6.5 or higher.', 'simply-static' ), 'Plugin dependency check', array( 'back_link' => true ) ); } // Run autoloader. if ( file_exists( __DIR__ . '/vendor/autoload.php' ) && ! class_exists( 'Simply_Static\Plugin' ) ) { require __DIR__ . '/vendor/autoload.php'; } // Boot Simply Static. if ( ! function_exists( 'simply_static_run_plugin' ) ) { add_action( 'plugins_loaded', 'simply_static_run_plugin' ); /** * Run plugin * * @return void */ function simply_static_run_plugin() { require_once SIMPLY_STATIC_PATH . 'src/class-ss-plugin.php'; Simply_Static\Plugin::instance(); $options = get_option( 'simply-static' ); if ( ! is_array( $options ) ) { $options = []; } // Server-side cron? if ( isset( $options['server_cron'] ) && true === $options['server_cron'] ) { define( 'SS_CRON', true ); } // Generate a secure unique key. if ( ! isset( $options['encryption_key'] ) ) { $options['encryption_key'] = bin2hex( random_bytes( 16 ) ); update_option( 'simply-static', $options ); } } // Update required? if ( defined( 'SIMPLY_STATIC_PRO_VERSION' ) && version_compare( SIMPLY_STATIC_PRO_VERSION, '1.6.3.2', '<' ) ) { // Site notice. add_action( 'admin_notices', function () { $message = esc_html__( 'You need to update Simply Static Pro to version 1.6.3.2 before continuing to use Simply Static, as we made significant changes requiring an upgrade.', 'simply-static' ); echo wp_kses_post( '<div class="notice notice-error"><p>' . $message . '</p></div>' ); } ); // Network notice. if ( function_exists( 'is_network_admin' ) ) { if ( is_network_admin() ) { add_action( 'network_admin_notices', function () { $message = esc_html__( 'You need to update Simply Static Pro to version 1.6.3.2 before continuing to use Simply Static, as we made significant changes requiring an upgrade.', 'simply-static' ); echo wp_kses_post( '<div class="notice notice-error"><p>' . $message . '</p></div>' ); } ); } } } }