| Server IP : 162.215.171.210 / Your IP : 216.73.216.246 Web Server : Apache System : Linux 162-215-171-210.bluehost.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : swansondentalgro ( 1070) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/swansondentalgro/public_html/wp-content/plugins/wp-console/ |
Upload File : |
<?php
/**
* Plugin Name: WP Console
* Plugin URI: https://github.com/ediamin/wp-console
* Description: An in-browser PHP console for WordPress powered by PsySH
* Version: 2.6.0
* Author: Edi Amin
* Author URI: https://github.com/ediamin
* Text Domain: wp-console
* Domain Path: /languages/
*/
// Do not call the file directly.
defined( 'ABSPATH' ) || exit;
if ( ! class_exists( 'WPConsole\WPConsole' ) ) {
// Supported PHP versions depend on the supported PHP version by PsySH.
$version = 'php-7.4';
if ( version_compare( PHP_VERSION, '8.4', '>=' ) ) {
$version = 'php-8.4';
} elseif ( version_compare( PHP_VERSION, '8.0', '>=' ) ) {
$version = 'php-8.0';
}
require_once __DIR__ . '/lib/' . $version . '/vendor/autoload.php';
}
use WPConsole\Core\Console\VarDumper\VarDumper;
use WPConsole\WPConsole;
define( 'WP_CONSOLE_FILE', __FILE__ );
define( 'WP_CONSOLE_ABSPATH', dirname( WP_CONSOLE_FILE ) );
/**
* An override version of Symfony's dump function
*
* @since 1.0.0
*
* @param mixed $var
* @param mixed $moreVars
*
* @return mixed
*/
function _dump( $var, ...$moreVars ) {
VarDumper::dump($var);
foreach ( $moreVars as $v ) {
VarDumper::dump( $v );
}
if ( 1 < func_num_args() ) {
return func_get_args();
}
return $var;
}
/**
* Plugin main instance
*
* Returns the main instance of WPConsole to
* prevent the need to use globals.
*
* @since 1.0.0
*
* @return \WPConsole
*/
function wp_console() {
return WPConsole::instance();
}
// Initialize plugin for the first time.
wp_console();