-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
96 lines (75 loc) · 3.37 KB
/
Copy pathindex.php
File metadata and controls
96 lines (75 loc) · 3.37 KB
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
<?php
session_start();
include 'database.php';
include 'common.php';
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Friends</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="css/styles.css">
</head>
<body>
<div style='' class='navigation nav' >
<a class='selected' href='index.php'>Home</a>
<?php if(!isset($_SESSION['friendslogin'])){ ?> <a class='' href='registration.php'>Registration</a> <?php } ?>
<a class='' href='members.php'>Members</a>
<?php if(isset($_SESSION['friendslogin'])){ ?>
<a class='' href='feed.php'>Feed</a>
<a class='' href='friends.php'>Friend List</a>
<a class='' href='chat.php'>Messages</a>
<a class='' href='profile.php'>Profile</a>
<a class='' href='?logout=true'>Logout</a> <?php } ?>
</div>
<div class="container" style="border:solid 2px #3345;margin-top: 60px;padding: 20px;">
<div id="banner-div">
<div style="text-align: center;width: 40%;">
<img src="images/quiz2.png" height="160" >
<p><?php if(isset($_SESSION['alert'])){echo $_SESSION['alert'];$_SESSION['alert']=''; } ?></p>
<?php
if(isset($_SESSION['friendslogin'])){
$fullname = mysqli_fetch_assoc(mysqli_query($con,"SELECT fullname FROM user WHERE id = '{$_SESSION['logUserId']}'"))['fullname'];
?>
<h3>Logged in as <?php echo $fullname; ?> </h3>
<?php
}else{
?>
<form method="post" action="login-process.php">
<div class="form-group">
<input type="text" name="username" class="form-control" placeholder="Username" required>
</div>
<div class="form-group">
<input type="password" name="password" class="form-control" placeholder="Password" required>
</div>
<div class="form-group">
<a href="registration.php" class="btn btn-success">Create Account</a>
<button class="btn btn-primary">Login</button>
<br>
<a href="forgot.php">Forgot Password</a>
</div>
</form>
<?php
}
?>
</div>
<div>
<p style="font-size:48px;font-family: fantasy;margin-top: 0px;line-height: 50px; text-shadow: 1px 2px #3339;
color: #ef00a6;">
Connection is evolving and<br>
so are we..
<br>
<b style="font-size:22px;color: #343434;font-family: cursive;">We build technologies that help people <br> connect with friends and family, find communities</b>
</p>
</div>
</div>
</div>
<div class="footer col-lg-12" style="margin-top: 100px;text-align: left;position: fixed;bottom: 0;width: 100%;">
<div class="col-lg-12">
</div>
<div class="col-lg-12">
</div>
</div>
</body>
</html>