Your IP : 216.73.216.87


Current Path : /home2/noxxprod/www/wp-content/plugins/cleantalk-spam-protect/lib/
Upload File :
Current File : //home2/noxxprod/www/wp-content/plugins/cleantalk-spam-protect/lib/autoloader.php

<?php

/**
 * Autoloader for \Cleantalk\* classes
 *
 * @param string $class
 *
 * @return void
 */

spl_autoload_register(function ($class) {
    // Register class auto loader
    // Custom modules1
    if ( strpos($class, 'Cleantalk') !== false ) {
        $class      = str_replace('\\', DIRECTORY_SEPARATOR, $class);
        $class_file = __DIR__ . DIRECTORY_SEPARATOR . $class . '.php';
        if ( file_exists($class_file) ) {
            require_once($class_file);
        }
    }
});