Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /var/www/theprintave/wp-content/plugins/haru-pricom/includes/maintenance/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/theprintave/wp-content/plugins/haru-pricom/includes/maintenance/_init.php
<?php
/**
 * @package    HaruTheme/Haru Formota
 * @version    1.0.0
 * @author     Administrator <admin@harutheme.com>
 * @copyright  Copyright 2022, HaruTheme
 * @license    http://opensource.org/licenses/gpl-2.0.php GPL v2 or later
 * @link       http://harutheme.com
*/

if ( ! function_exists( 'haru_maintenance_mode' ) ) {
    function haru_maintenance_mode() {
        if ( current_user_can( 'edit_themes' ) || is_user_logged_in() ) {
            return;
        }

        if ( function_exists( 'haru_get_option' ) ) {
            $plugin_path        = untrailingslashit( plugin_dir_path(__FILE__) );
            $enable_maintenance = haru_get_option( 'enable_maintenance', '0' );
            if ( $enable_maintenance == '1' ) {
                date_default_timezone_set( haru_get_option( 'timezone' ) );
                $current_time = date('Y/m/d H:i:s');
                $online_time  = haru_get_option( 'online_time', '' );

                if ( $online_time > $current_time ) {
                    include( $plugin_path . '/templates/maintenance.php' );

                    exit();
                }
            }
        }
    }

    add_action( 'get_header', 'haru_maintenance_mode' );
}

Spamworldpro Mini