-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
35 lines (27 loc) · 848 Bytes
/
index.php
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
<?php
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 1);
include_once("Mailer.php");
include_once("Message.php");
include_once("SessionUser.php");
include_once("Permissions.php");
include_once("Forms.php");
include_once("datasource/DataSource_PDO.php");
include_once("Controller.php");
include_once("Render.php");
include_once("Router.php");
// place website in development mode
$_GET["dev"] = true;
$GLOBALS["SiteName"] = "SiteName";
$GLOBALS["SiteEmail"] = "[email protected]";
DS::connect("localhost","root","root","test");
Controller::includeAll("controllers",false);
Forms::setUploadPath("uploads");
$router->setWebContentFolder("webcontent");
$router->loadAll();
$router->set("user","UserController",null,array());
$router->setDefaultRoute("home");
Permissions::load();
SessionUser::start(DS::get());
$router->run();
?>