Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
20_21-J09
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
20_21-J09
20_21-J09
Commits
dd14ab86
Commit
dd14ab86
authored
Nov 08, 2020
by
IT17167338_Minoli Pemmawadu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Second index file
parent
0b798412
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
0 deletions
+55
-0
index.php
index.php
+55
-0
No files found.
index.php
0 → 100644
View file @
dd14ab86
<?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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment