-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
35 lines (31 loc) · 775 Bytes
/
index.php
File metadata and controls
35 lines (31 loc) · 775 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
33
34
35
<?php
include("settings.php");
include("controller/dbh.php");
include("controller/data_source.php");
include("controller/data_structure.php");
include("controller/data_view.php");
include("controller/component.php");
include("controller/ui_element.php");
$db = new MySQLiHandler(
$SETTING_DB_HOST,
$SETTING_DB_USER,
$SETTING_DB_PASS,
$SETTING_DB_DATABASE
);
if(!isset($_GET['v'])) $_GET['v'] = null;
switch($_GET['v']){
case 'list':
include("view/list.php");
break;
case 'resource_time_graph':
include("view/resource_time_graph_view.php");
break;
case 'graded_user_time_graph':
include("view/graded_user_time_graph_view.php");
break;
default:
case 'user_time_graph':
include("view/user_time_graph_view.php");
break;
}
?>