paste.chapril.org-privatebin/vendor/mlocati/ip-lib/ip-lib.php

14 lines
350 B
PHP
Raw Normal View History

2021-05-22 09:21:01 +02:00
<?php
spl_autoload_register(
function ($class) {
if (strpos($class, 'IPLib\\') !== 0) {
return;
}
$file = __DIR__ . DIRECTORY_SEPARATOR . 'src' . str_replace('\\', DIRECTORY_SEPARATOR, substr($class, strlen('IPLib'))) . '.php';
if (is_file($file)) {
require_once $file;
}
}
);