HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
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/html/wpicare/wp-content/plugins/defender-security/src/extra/maxmind-db/reader/autoload.php
<?php

declare( strict_types=1 );

/**
 * PSR-4 autoloader implementation for the MaxMind\DB namespace.
 * First we define the 'mmdb_autoload' function, and then we register
 * it with 'spl_autoload_register' so that PHP knows to use it.
 *
 * @param mixed $class
 */

/**
 * Automatically include the file that defines <code>class</code>.
 *
 * @param string $class
 *                      the name of the class to load
 */
function mmdb_autoload( $class ): void {
	/*
	* A project-specific mapping between the namespaces and where
	* they're located. By convention, we include the trailing
	* slashes. The one-element array here simply makes things easy
	* to extend in the future if (for example) the test classes
	* begin to use one another.
	*/
	$namespace_map = [ 'MaxMind\\Db\\' => __DIR__ . '/src/MaxMind/Db/' ];

	foreach ( $namespace_map as $prefix => $dir ) {
		// First swap out the namespace prefix with a directory...
		$path = str_replace( $prefix, $dir, $class );

		// replace the namespace separator with a directory separator...
		$path = str_replace( '\\', '/', $path );

		// and finally, add the PHP file extension to the result.
		$path = $path . '.php';

		// $path should now contain the path to a PHP file defining $class
		if ( file_exists( $path ) ) {
			include $path;
		}
	}
}

spl_autoload_register( 'mmdb_autoload' );