-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
48 lines (44 loc) · 898 Bytes
/
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
47
48
<?php
session_start();
define('CHANX',TRUE);
include 'config/config.php';
include 'functions/login.php';
include 'functions/perizinan.php';
include 'functions/template.php';
include 'views/common/head.php';
if(!isset($_GET['sub']))
{
include 'views/common/depan.php';
}
else
{
switch($_GET['sub'])
{
case 'test':
include $engine->view('common/test');
break;
case 'proses':
include $engine->view('common/proses');
break;
case 'login':
include $engine->view('user/login');
break;
case 'register':
include $engine->view('user/register');
break;
case 'diskusi':
include $engine->view('diskusi/index');
break;
case 'materi':
include $engine->view('materi/index');
break;
case 'forum':
include $engine->view('forum/index');
break;
case 'profil':
include $engine->view('user/profil/index');
break;
}
}
include 'views/common/footer.php';
?>