-
Notifications
You must be signed in to change notification settings - Fork 3
/
kokurikulum.php
46 lines (43 loc) · 993 Bytes
/
kokurikulum.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
if (!isset($_SESSION)) { session_start(); }
include('inc/conn.php');
include('inc/fungsi.php');
include('tmp/header.php');
//menu ini hanya bole diakses oleh admin sahaja
if (isset($_SESSION['user']) && $tm['ulevel'] == 1) {
if (!empty($_GET['menu'])) {
switch($_GET['menu']) {
case "senarai":
include('tmp/koko_senarai.php');
break;
case "daftar":
if (!empty($_POST['koko'])) {
include('inc/koko_daftar.php');
}
else {
include('tmp/koko_daftar.php');
}
break;
case "kemaskini":
if (!empty($_POST['koko'])) {
include('inc/koko_daftar.php');
}
else {
include('tmp/koko_kemaskini.php');
}
break;
default:
echo '<meta http-equiv="Refresh" content="0;url=index.php">';
break;
}
}
else {
echo '<meta http-equiv="Refresh" content="0;url=index.php">';
}
}
//jika belum login @ bukan admin
else {
echo '<meta http-equiv="Refresh" content="0;url=index.php">';
}
include('tmp/footer.php');
?>