-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
42 lines (38 loc) · 977 Bytes
/
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
<?php
session_start();
include 'dbh.php';
if(!isset($_SESSION['id'])){
//$userId=$_SESSION['id'];
?>
<html>
<head>
<title>Index</title>
<link rel="stylesheet" type="text/css" href="index1.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script type="text/javascript" src="general.js"></script>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300" rel="stylesheet">
</head>
<body>
<div class="bckgrnd">
<div class="d">
<h1 style="width:400px;display:block;margin:0 auto">Senior's Online Security</h1>
<img class="image" src="SOS 4 Seniors1.png">
<a class="signup" href="signup.php">Sign up</a>
<a class="login" href="login.php">Login</a>
</div>
</div>
</body>
</html>
<?php
}
else
{
if(isset($_SESSION['id']))
{
header('Location: userprofile.php?id='.$_SESSION['id']);
}
else
{
//header('Location: index.php');
}
}