-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathboot.php
More file actions
32 lines (26 loc) · 890 Bytes
/
boot.php
File metadata and controls
32 lines (26 loc) · 890 Bytes
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
<?php
//error reporting
error_reporting(E_ALL);
ini_set('display_errors', '1');
//defines
define("__mediafiles__", "");
define("__smartypath__", "");
define("_SBASE", "");
define("_BASE", "");
define("__passwdfile__", "");
//requires
require_once __smartypath__."\\Smarty.class.php";
//template stuff
$smarty = new Smarty();
$smarty->setTemplateDir(_SBASE.'\\templates');
$smarty->setCompileDir(_SBASE.'\\smarty\\compile');
$smarty->setCacheDir(_SBASE.'\\smarty\\cache');
$smarty->setConfigDir(_SBASE.'\\smarty\\configs');
//load all controllers
require_once _BASE."\\controllers\\indexcontroller.php";
require_once _BASE."\\controllers\\homecontroller.php";
require_once _BASE."\\controllers\\classlistcontroller.php";
require_once _BASE."\\classes\\auth.php";
require_once _BASE."\\classes\\editfile.php";
//test stuff
?>