1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12:
13: require_once 'Horde/Autoloader.php';
14: require_once 'Horde/Autoloader/ClassPathMapper.php';
15: require_once 'Horde/Autoloader/ClassPathMapper/Default.php';
16:
17: class Horde_Autoloader_Default extends Horde_Autoloader
18: {
19: public function __construct()
20: {
21: foreach (array_reverse(explode(PATH_SEPARATOR, get_include_path())) as $path) {
22: if ($path == '.') { continue; }
23: $path = realpath($path);
24: if ($path) {
25: $this->addClassPathMapper(new Horde_Autoloader_ClassPathMapper_Default($path));
26: }
27: }
28: }
29: }
30:
31: $__autoloader = new Horde_Autoloader_Default();
32: $__autoloader->registerAutoloader();
33: