| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/HostingSpaces/admin/pwan.uk/wwwroot/wp-content/plugins/zymfihg/ |
Upload File : |
<?php
/**
* Plugin Name: Simple Maintenance Mode
* Plugin URI: https://example.com/simple-maintenance-mode
* Description: Easily put your WordPress site into maintenance mode with a customizable notice for visitors.
* Version: 1.2.0
* Author: Developer Labs
* Author URI: https://example.com
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: simple-maintenance-mode
* Domain Path: /languages
* Requires at least: 5.0
* Requires PHP: 7.2
*/
if ( ! defined( 'WPINC' ) ) {
die;
}
define( 'SMM_VERSION', '1.2.0' );
define( 'SMM_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'SMM_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'SMM_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
require_once SMM_PLUGIN_DIR . 'includes/class-simple-maintenance-mode-loader.php';
require_once SMM_PLUGIN_DIR . 'includes/class-simple-maintenance-mode.php';
function smm_activate() {
$defaults = array(
'smm_enabled' => 0,
'smm_headline' => __( 'We\'ll Be Back Soon', 'simple-maintenance-mode' ),
'smm_message' => __( 'Our site is currently undergoing scheduled maintenance. Please check back shortly.', 'simple-maintenance-mode' ),
'smm_bypass_key' => wp_generate_password( 12, false ),
);
foreach ( $defaults as $key => $value ) {
if ( false === get_option( $key ) ) {
add_option( $key, $value );
}
}
}
function smm_deactivate() {
update_option( 'smm_enabled', 0 );
}
register_activation_hook( __FILE__, 'smm_activate' );
register_deactivation_hook( __FILE__, 'smm_deactivate' );
function smm_run() {
$plugin = new Simple_Maintenance_Mode();
$plugin->run();
}
smm_run();