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
49
50
51
52
53
54
55
56
57
58 | <?php
/////////////////////Pisahkan variable dan Page di belakang tanda "?"
if (strpos($page, '?') !== false) {
$url_arr = explode("?",$page); // Jika halaman mengandung variable, maka potong variabel menurut tanda "?"
$page = $url_arr[0]; // URL halaman adalah sebelum tanda "?"
}
switch ($page) {
// Menampilkan page default saat mengakses sebuah folder URL
case "":
{header("location:".ASANOER_MAIN_URL.ASANOER_INDEX_APLIKASI); } // index
break;
// Menampilkan halaman default
case ASANOER_INDEX_APLIKASI:
include('modul/asanoer.com-index.php'); // index
break;
// Loading Modul READ.
case "index-read.html":
include('modul/asanoer.com-index-read.php'); // Modul READ
break;
// Loading Modul UPDATE.
case "index-update.html":
include('modul/asanoer.com-index-update.php'); // Modul UPDATE
break;
// Loading Modul UPDATE Aksi.
case "index-update-aksi.proses":
include('modul/aksi/asanoer.com-index-update-x.php'); // Modul UPDATE Aksi
break;
// Loading Modul CREATE.
case "index-create.html":
include('modul/asanoer.com-index-create.php'); // Modul CREATE
break;
// Loading Modul CREATE Aksi.
case "index-create-aksi.proses":
include('modul/aksi/asanoer.com-index-create-x.php'); // Modul CREATE Aksi
break;
// Loading Modul DELETE.
case "index-delete.html":
include('modul/asanoer.com-index-delete.php'); // Modul DELETE
break;
// Loading Modul DELETE Aksi.
case "index-delete-aksi.proses":
include('modul/aksi/asanoer.com-index-delete-x.php'); // Modul DELETE Aksi
break;
// Loading Modul HELP.
case "help-me.html":
include('modul/asanoer.com-help.php'); // Modul HELP
break;
default:
echo "Tidak Ada Nama Modul dengan nama '$page'.<br/>Silahkan cek kembali file asanoer.com-index-modul.php
<br/><br/>Oleh: asanoer.com";
break;
}
exit();
?>
|