-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·151 lines (111 loc) · 3.9 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<?php
include "hit_counter.php";
error_reporting(E_ALL ^ (E_NOTICE | E_WARNING));
$id_index = session_id();
$id_login=$_SESSION['id'];
$usernamedb = $_SESSION['username'];
$level = $_SESSION['level'];
$isi_more = substr($isi,0,500);
$page = $_GET['page'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Websiteku</title>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
<link rel="stylesheet" href="css/style.css" type="text/css" />
</head>
<body>
<div id="wrap">
<div id="header">
<?php include 'header.php' ?>
</div>
<div id="nav">
<?php
if($id_login){
include 'menulogin.php';
}
elseif($id_index){
include 'menu.php';
}
?>
</div>
<div id="run">
<p><marquee>Selamat Datang di Halaman Websiteku. Website ini dibuat sebagai syarat tugas akhir
mata kuliah Pemrograman Internet</marquee></p>
</div>
<div id="content">
<div id="main">
<?php
if($page=="tambahuser")
include 'modUser/form_user.php';
else if($page=="viewuser")
include'modUser/daftar_user.php';
else if($page=="edituser")
include'modUser/edit_user.php';
else if($page=="editkonten")
include'modKonten/edit_konten.php';
else if($page=="edituser2")
include'modUser/edit_user2.php';
else if($page=="tamu")
include'daftar_tamu.php';
else if($page=="formkonten")
include'modKonten/formkonten.php';
else if($page=="viewkonten")
include'modKonten/daftar_konten.php';
else if($page=="readmore")
include 'readmore.php';
else if($page=="katalog")
include 'daftar_katalog.php';
else if($page=="home")
include'konten.php';
else if($page=="contact")
include'form_tamu.php';
include 'halaman.php';
?>
<h2><?php echo "$judul"; ?></h2>
<p><?php echo "$isi"; ?></p>
</div>
<div id="sidebar">
<?php
if($id_index != $id_login)
include 'login.php';?>
<h3>Pencarian</h3>
<form id="qsearch" action="#" method="get" >
<p>
<label for="qsearch">Cari:</label>
<input class="tbox" type="text" name="qsearch" value="Cari disini..." onClick="this.value='';" onFocus="this.select()" onBlur="this.value=!this.value?'Cari disini...':this.value;" />
<input class="btn" alt="Search" type="image" name="searchsubmit" title="Search" src="images/search.gif" />
</p>
</form>
<div>
<?php if($id_login) {include 'status.php'; }?>
</div>
<?php
if($level=="admin")
{
include ('menu_admin.php');
}
else if($level=="user")
{
include ('menu_user.php');
}
?>
<h3>Pengunjung</h3>
<ul class="counter">
<li>IP Address Anda : <?php echo $ip_address; ?></li>
<li>Pengunjung hari ini : <?php echo $jlh_hari; ?> </li>
<li>Pengunjung bulan ini : <?php echo $jlh_bulan; ?></li>
<li>Pengunjung tahun ini : <?php echo $jlh_tahun; ?></li>
<li>Total Pengunjung : <?php echo $tot; ?></li>
<li>Pengunjung Online : <?php echo $time_online; ?></li>
<li>Hari Minggu : <?php echo $sun; ?></li>
</ul>
<br>
</div>
</div>
<div id="footer">
<?php include 'footer.php' ?>
</div>
</div>
</html>