OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
sendy
/
includes
/
helpers
/
geo
/
geolite2
/
vendor
/
maxmind-db
/
reader
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/18/2021 09:41:57 AM
rwxr-xr-x
📄
CHANGELOG.md
4.81 KB
11/18/2021 09:43:37 AM
rw-r--r--
📄
LICENSE
11.09 KB
11/18/2021 09:43:37 AM
rw-r--r--
📄
README.md
4.21 KB
11/18/2021 09:43:37 AM
rw-r--r--
📄
autoload.php
1.37 KB
11/18/2021 09:43:37 AM
rw-r--r--
📄
composer.json
1.11 KB
11/18/2021 09:43:37 AM
rw-r--r--
📁
ext
-
11/18/2021 09:43:34 AM
rwxr-xr-x
📁
src
-
11/18/2021 09:42:00 AM
rwxr-xr-x
Editing: autoload.php
Close
<?php /** * 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) { /* * 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');