-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
46 lines (46 loc) · 1.03 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
<?php
require_once("include/initialize.php");
if (!isset($_SESSION['StudentID'])) {
redirect('login.php');
}
$content='home.php';
$view = (isset($_GET['q']) && $_GET['q'] != '') ? $_GET['q'] : '';
switch ($view) {
case 'lesson':
$title = "Lesson";
$content = 'lesson.php';
break;
case 'exercises':
$title = "Exercises";
$content = 'exercises.php';
break;
case 'download':
$title = "Download";
$content = 'download.php';
break;
case 'about':
$title = "About Us";
$content = 'about.php';
break;
case 'playvideo':
$title = "Play Video";
$content = 'playvideo.php';
break;
case 'viewpdf':
$title = "Play Video";
$content = 'viewpdf.php';
break;
case 'question':
$title = "Question";
$content = 'question.php';
break;
case 'quizresult':
$title = "Result";
$content = 'quizresult.php';
break;
default :
$title = "Home";
$content = 'home.php';
}
require_once("theme/templates.php");
?>