forked from stunningpixels/yearbook
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
23 lines (20 loc) · 702 Bytes
/
index.php
File metadata and controls
23 lines (20 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
require_once '../Composer/vendor/autoload.php';
require_once 'Configuration.php';
require_once 'Controllers/Authenticator.php';
if (!Authenticator::IsLoggedIn())
{
Redirect('/login');
return;
}
$Template = new Twig_Environment(new Twig_Loader_Filesystem(array('Templates', 'Templates/Modules')), array('cache' => '../Cache', 'auto_reload' => true));
$Template->display(
'Home.html',
array(
'BiographyAuthorRequests' => $GLOBALS['YearbookModel']->FindBiographiesByAuthorStudentId($_SESSION['StudentId']),
'BiographyTargetRequests' => $GLOBALS['YearbookModel']->FindBiographiesByTargetStudentId($_SESSION['StudentId']),
'TaskStates' => TaskState::GetTaskStates()
)
);
// e^3y=x^2+y
?>