403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.190
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/2of3/wp-content/plugins/nobj405n/freemius/includes/debug/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/2of3/wp-content/plugins/nobj405n/freemius/includes/debug/class-fs-debug-bar-panel.php
<?php
	/**
	 * @package     Freemius
	 * @copyright   Copyright (c) 2015, Freemius, Inc.
	 * @license     https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
	 * @since       1.1.7.3
	 */

	if ( ! defined( 'ABSPATH' ) ) {
		exit;
	}

	/**
	 * Extends Debug Bar plugin by adding a panel to show all Freemius API requests.
	 *
	 * @author Vova Feldman (@svovaf)
	 * @since  1.1.7.3
	 *
	 * Class Freemius_Debug_Bar_Panel
	 */
	class Freemius_Debug_Bar_Panel extends Debug_Bar_Panel {
		function init() {
			$this->title( 'Freemius' );
		}

		static function requests_count() {
			if ( class_exists( 'Freemius_Api_WordPress' ) ) {
				$logger = Freemius_Api_WordPress::GetLogger();
			} else {
				$logger = array();
			}

			return number_format( count( $logger ) );
		}

		static function total_time() {
			if ( class_exists( 'Freemius_Api_WordPress' ) ) {
				$logger = Freemius_Api_WordPress::GetLogger();
			} else {
				$logger = array();
			}

			$total_time = .0;
			foreach ( $logger as $l ) {
				$total_time += $l['total'];
			}

			return number_format( 100 * $total_time, 2 ) . ' ' . fs_text_x_inline( 'ms', 'milliseconds' );
		}

		function render() {
			?>
			<div id='debug-bar-php'>
				<?php fs_require_template( '/debug/api-calls.php' ) ?>
				<br>
				<?php fs_require_template( '/debug/scheduled-crons.php' ) ?>
				<br>
				<?php fs_require_template( '/debug/plugins-themes-sync.php' ) ?>
				<br>
				<?php fs_require_template( '/debug/logger.php' ) ?>
			</div>
		<?php
		}
	}

Youez - 2016 - github.com/yon3zu
LinuXploit