Second index file

parent 0b798412
<?php
require_once("include/initialize.php");
if (!isset($_SESSION['StudentID'])) {
# code...
redirect('login.php');
}
$content='home.php';
$view = (isset($_GET['q']) && $_GET['q'] != '') ? $_GET['q'] : '';
switch ($view) {
case 'lesson':
$title = "Lesson";
$content = 'lesson.php';
# code...
break;
case 'exercises':
$title = "Exercises";
$content = 'exercises.php';
# code...
break;
case 'download':
$title = "Download";
$content = 'download.php';
# code...
break;
case 'about':
$title = "About Us";
$content = 'about.php';
# code...
break;
case 'playvideo':
$title = "Play Video";
$content = 'playvideo.php';
# code...
break;
case 'viewpdf':
$title = "Play Video";
$content = 'viewpdf.php';
# code...
break;
case 'question':
$title = "Question";
$content = 'question.php';
# code...
break;
case 'quizresult':
$title = "Result";
$content = 'quizresult.php';
# code...
break;
default :
$title = "Home";
$content = 'home.php';
}
require_once("theme/templates.php");
?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment