-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.php
More file actions
38 lines (29 loc) · 1.17 KB
/
init.php
File metadata and controls
38 lines (29 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* Main init file that calls all the system classes, methods and an application settings file
* ******************************************************
*
* @author Paul Brighton <escape@null.net>
* @link http://www.phpiphany.com/
* @copyright Copyright © 2012-2013 _MD_ ProductionS
* @license http://www.phpiphany.com/license/
* @package main
* @since 1.0
*
*/
require(dirname(__FILE__) . '/system/functions.php');
require(dirname(__FILE__) . '/system/settings.php');
require(dirname(__FILE__) . '/system/view_engine.php');
require(dirname(__FILE__) . '/system/error_handler.php');
require(dirname(__FILE__) . '/system/dispatch.php');
require(dirname(__FILE__) . '/system/autoloader.php');
// Include all system files
//foreach (glob(dirname(__FILE__) . "/system/*.php") as $file) require($file);
// Autoload all classes and controllers
autoloader::init();
require(dirname(__FILE__) . '/system/cache.php');
require(dirname(__FILE__) . '/system/session.php');
// Include a database class that instantiates $db object
require(dirname(__FILE__) . '/models/database.php');
// Include the disk writing class
require(dirname(__FILE__) . '/system/classes/storage/disk.php');