-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·40 lines (34 loc) · 880 Bytes
/
index.php
File metadata and controls
executable file
·40 lines (34 loc) · 880 Bytes
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
<?php
session_start();
if(isset($_SESSION['isAdmin']) && $_SESSION['isAdmin']) {
header("Location: view.php");
} elseif(isset($_SESSION['isClient']) && $_SESSION['isClient']) {
//logged in as a client => go back to public_view
} else {
//otherwise this page is for not logged in
}
?>
<html>
<head>
<title>SamBlogger | Marina Samuel</title>
<link rel="stylesheet" type="text/css" href="web.css" />
</head>
<body>
<div id="container">
<div id="center">
<h2>SamBlogger</h2>
<h3>
Create and edit a blog in seconds! Join for free today!
</h3>
<div id="home_navigator">
<ul>
<li><a href="join.php">Join</a></li>
<li><a href="login.php">Login</a></li>
</ul>
</div>
© Simple SamSoft Solutions
</div>
<div class="clearfix"></div>
</div>
</body>
</html>