HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/shoetique/wp-content/plugins/googleanalytics/class/class-ga-autoloader.php
<?php
/**
 * GoogleAnalytics Autoloader.
 *
 * @package GoogleAnalytics
 */

/**
 * Autoloader class.
 */
class Ga_Autoloader {
	/**
	 * Registers clas loader.
	 */
	public static function register() {
		spl_autoload_register( 'Ga_Autoloader::loader' );
	}

	/**
	 * Class loader.
	 *
	 * @param string $class_name Class name string.
	 */
	private static function loader( $class_name ) {
		$class_slug = 'class-' . str_replace( '_', '-', sanitize_title( $class_name ) );

		// Core classes.
		if ( preg_match( '/_Core/', $class_name ) ) {
			$file_name = GA_PLUGIN_DIR . '/class/core/' . $class_slug . '.php';
			if ( file_exists( $file_name ) ) {
				require $file_name;
			}
		}

		// Controllers.
		if ( preg_match( '/_Controller/', $class_name ) ) {
			$file_name = GA_PLUGIN_DIR . '/class/controller/' . $class_slug . '.php';
			if ( file_exists( $file_name ) ) {
				require $file_name;
			}
		}

		// Classes.
		$file_name = GA_PLUGIN_DIR . '/class/' . $class_slug . '.php';
		if ( file_exists( $file_name ) ) {
			require $file_name;
		}

		// Tools.
		$file_name_tools = GA_PLUGIN_DIR . '/tools/' . $class_slug . '.php';
		if ( file_exists( $file_name_tools ) ) {
			require $file_name_tools;
		}

		// Libs.
		if ( preg_match( '/Ga_Lib/', $class_name ) ) {
			$file_name = GA_PLUGIN_DIR . '/lib/' . $class_slug . '.php';
			if ( file_exists( $file_name ) ) {
				require $file_name;
			}
		}
	}
}