. * @author niel * @copyright 2014 nZEDb */ spl_autoload_register( function ($class) { // Only continue if the class is in our namespace. if (strpos($class, 'newznab\\') === 0) { // Replace namespace separators with directory separators in the class name, append // with .php $file = NN_ROOT . str_replace('\\', DIRECTORY_SEPARATOR, $class) . '.php'; // if the file exists, require it if (file_exists($file)) { require_once $file; } } } ); ?>