1 | <?php |
||
2 | /******************************************************************** |
||
3 | * Created by: Marko Kungla @ OkramLabs on Aug 6, 2012 - 8:46:17 |
||
4 | * Contact: [email protected] - https://okramlabs.com |
||
5 | * @copyright: 2015 OkramLabs - https://okramlabs.com |
||
6 | * @license MIT |
||
7 | * |
||
8 | * Package name:libhowi-filesystem |
||
9 | * @category HOWI3 |
||
10 | * @package libhowi |
||
11 | * @subpackage filesystem |
||
12 | * |
||
13 | * Lang: PHP |
||
14 | * Encoding: UTF-8 |
||
15 | * File: bootstrap.inc |
||
16 | * @link https:// |
||
17 | ******************************************************************** |
||
18 | * Contributors: |
||
19 | * @author Marko Kungla <[email protected]> |
||
20 | * Github: https://github.com/mkungla |
||
21 | ******************************************************************** |
||
22 | * Comments: |
||
23 | */ |
||
24 | |||
25 | define("LIBHOWI_ROOT", dirname(__FILE__)); |
||
26 | |||
27 | function libhowi_autoloder($class = false) |
||
28 | 2 | { |
|
29 | 30 | $library = preg_replace(array( |
|
30 | 30 | '/HOWI3\\\\libhowi\\\\Filesystem/', |
|
31 | 4 | '/\\\\/' |
|
32 | 20 | ), array( |
|
33 | 30 | '', |
|
34 | DIRECTORY_SEPARATOR |
||
35 | 20 | ), $class); |
|
36 | |||
37 | 30 | $class_file = LIBHOWI_ROOT . $library . '.inc'; |
|
38 | 30 | if (file_exists($class_file)) |
|
39 | 23 | require_once ($class_file); |
|
40 | 30 | } |
|
41 | spl_autoload_register('libhowi_autoloder'); |
||
42 |