1 2 3 4 56 7 8 9 1011 12 13 14 1516 17 18 19 | <?php /** * Ultra Safe Auto Include * @author Z * @param string $classname */ function my_autoloader($classname) { chdir('challenge/are_you_serial'); require_once './'.str_replace('.', '', $classname).'.php'; chdir('../../'); } /** * Registers auto include */ spl_autoload_register('my_autoloader'); ?> |