-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
30 lines (25 loc) · 857 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
<?php
require_once("bootstrap.php");
require_once('auth.php');
auth::checkUser();
class app
{
public $smarty;
public $DB;
public function loader(): void
{
$this->DB = new DB;
$this->smarty = new Smarty();
$this->smarty->setTemplateDir(__DIR__ . '/App/vendor/smarty/smarty/template');
$this->smarty->setConfigDir(__DIR__ . '/App/vendor/smarty/smarty/config');
$this->smarty->setCompileDir(__DIR__ . '/App/vendor/smarty/smarty/compile');
$this->smarty->setCacheDir(__DIR__ . '/App/vendor/smarty/smarty/cache');
$this->smarty->assign('dir', 'App/');
$this->smarty->assign('page_title', 'Resources');
$this->smarty->display('meta.tpl');
$this->smarty->display('index.tpl');
$this->smarty->display('footer.tpl');
}
}
$app = new app;
$app->loader();