-
Notifications
You must be signed in to change notification settings - Fork 0
/
index2.php
51 lines (46 loc) · 1.52 KB
/
index2.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
<?php include('server.php');
//if user is not signed in,they shall not pass..
if (empty($_SESSION['username'])){
header('location: login.php');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Home page</title>
<link rel="stylesheet" type="text/css" href="test.css"/>
</head>
<body>
<div class="cont">
<div class ="tb">
<table>
<tr>
<td>Index </td>
<td>Ruetian Clubs </td>
<td>Contact us </td>
</tr>
</table>
</div>
<div class="header">
<h1 class="h">Home page</h1>
</div>
<div class="content" id="animate-area">
<?php if(isset($_SESSION['success'])): ?>
<div class="error_success">
<h3>
<?php
echo $_SESSION['success'];
unset ($_SESSION['success']);
?>
</h3>
</div>
<?php endif ?>
<?php if (isset($_SESSION["username"])): ?>
<marquee scrollamount="3" direction="left" behavior="scroll"><p>Welcome <strong><?php echo $_SESSION['username']; ?>!!</strong></p></marquee>
<p> <a href="index.php?logout='1'"> Logout</a></p>
<?php endif ?>
</div>
</div>
</body>
</html>