File autoload.php
Last commit: Mon Jun 6 14:06:46 2022 +0200 Jan Dankert First commit after fetching from upstream repo.
1 <?php 2 // Enable class autoloading for all classes 3 4 spl_autoload_register( 5 6 /** 7 * Loads classes from modules. 8 * 9 * The PHP default loader is unusable, because it will always use lowercase file names. 10 * 11 * @param $className Class name 12 * @return void 13 */ 14 function ($className) { 15 16 $c = __DIR__.DIRECTORY_SEPARATOR.str_replace( "\\", DIRECTORY_SEPARATOR, $className).'.class.php'; 17 18 if ( is_file($c) ) 19 require($c); 20 } 21 );
Downloadautoload.php
History Mon, 6 Jun 2022 14:06:46 +0200 Jan Dankert First commit after fetching from upstream repo.