-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
44 lines (41 loc) · 1.18 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
<?php include('koneksi/koneksi.php'); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php include('include/head.php'); ?>
</head>
<body>
<?php include('include/navigasi.php'); ?>
<?php
// pemanggilan konten halaman index
if (isset($_GET["include"])) {
$include = $_GET["include"];
if ($include == "about-us") {
// about us
include("include/aboutus.php");
} else if ($include == "contact-us") {
// contact us
include("include/contactus.php");
} else if ($include == "detail-buku") {
// detail buku
include("include/detailbuku.php");
} else if ($include == "daftar-buku-kategori") {
// daftar buku
include("include/daftarbuku.php");
} else if ($include == "blog") {
// daftar buku
include("include/blog.php");
} else if ($include == "detail-blog") {
// daftar buku
include("include/detailblog.php");
} else {
include("include/index.php");
}
} else {
include("include/index.php");
}
?>
<?php include('include/footer.php'); ?>
<?php include('include/script.php'); ?>
</body>
</html>