403Webshell
Server IP : 192.64.118.117  /  Your IP : 3.148.113.167
Web Server : LiteSpeed
System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64
User : thecgapy ( 1160)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/thecgapy/www/wp-content/plugins/googleanalytics/class/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/thecgapy/www/wp-content/plugins/googleanalytics/class/Ga_View.php
<?php

class Ga_View {

	/**
	 * Name of the view folder.
	 */
	const PATH = 'view';

	/**
	 * Loads given view file and it's data.
	 * Displays view or returns HTML code.
	 *
	 * @param string $view Filename
	 * @param array $data Data array
	 * @param bool $html Whether to display or return HTML code.
	 *
	 * @return string
	 */
	public static function load( $view, $data_array = array(), $html = false ) {
		if ( ! empty( $view ) ) {
			foreach ( $data_array as $k => $v ) {
				$$k = $v;
			}
			ob_start();
			include GA_PLUGIN_DIR . "/" . self::PATH . "/" . $view . ".php";
			if ( $html ) {
				return ob_get_clean();
			} else {
				echo ob_get_clean();
			}
		}
	}

//	private static function buffer($buffer) {
//		$data = $data_array;
//		return $buffer;
//	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit