403Webshell
Server IP : 162.0.217.223  /  Your IP : 216.73.216.112
Web Server : LiteSpeed
System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : mypckeys ( 1539)
PHP Version : 8.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/mypckeys/www/wp-content/themes/woodmart/inc/integrations/woocommerce/modules/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mypckeys/www/wp-content/themes/woodmart/inc/integrations/woocommerce/modules/maintenance.php
<?php if ( ! defined( 'WOODMART_THEME_DIR' ) ) {
	exit( 'No direct script access allowed' );
}

if ( ! function_exists( 'woodmart_maintenance_mode' ) ) {
	function woodmart_maintenance_mode() {
		if ( ! woodmart_is_maintenance_active() ) {
			return;
		}

        $page_id = woodmart_pages_ids_from_template( 'maintenance' );

        $page_id = current( $page_id );

        if ( ! $page_id ) {
			return;
		}

        if ( ! is_page( $page_id ) && ! is_user_logged_in() ) {
            wp_redirect( get_permalink( $page_id ) );
            exit();
        }
	}

	add_action( 'template_redirect', 'woodmart_maintenance_mode', 10 );
}

Youez - 2016 - github.com/yon3zu
LinuXploit