gluon-web-remote

Web remote Administration for big size of gluon routers
git clone git://archive.git.mtrnord.blog/MTRNord/gluon-web-remote.git
Log | Files | Refs | README

autoload.php (442B)


      1 <?php
      2 
      3 /**
      4 * Registers an autoload for all the classes in Gregwar\Captcha
      5 */
      6 spl_autoload_register(function ($className) {
      7     $namespace = 'Gregwar\\Captcha';
      8 
      9     if (strpos($className, $namespace) === 0) {
     10         $className = str_replace($namespace, '', $className);
     11         $fileName = __DIR__ . '/' . str_replace('\\', '/', $className) . '.php';
     12         if (file_exists($fileName)) {
     13             require($fileName);
     14         }
     15     }
     16 });