-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
45 lines (39 loc) · 1.45 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
<?php session_start(); ?>
<?php include("koneksi/koneksi.php"); ?>
<!doctype html>
<html lang="en">
<head>
<?php include("include/templates/head.php") ?>
</head>
<body>
<?php include("include/templates/navigasi.php") ?>
<?php
// pemanggilan konten halaman index
if (isset($_GET["include"])) {
$include = $_GET["include"];
if ($include == "tentang") {
// tentang
include("include/user/tentang.php");
} else if ($include == "populer") {
// populer
include("include/user/populer.php");
} else if ($include == "kategori-buku") {
// kategori buku
include("include/user/kategori-buku.php");
} else if ($include == "detail-buku") {
// detail buku
include("include/user/detail-buku.php");
} else if ($include == "team") {
// team
include("include/user/team.php");
} else {
include("include/user/index.php");
}
} else {
include("include/user/index.php");
}
?>
<?php include("include/templates/footer.php") ?>
<?php include("include/templates/script.php") ?>
</body>
</html>