-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
31 lines (28 loc) · 935 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
<?php
session_start();
if(isset($_SESSION["user"])){
$user = $_SESSION["user"];
}
unset($_SESSION['fileName']);
unset($_SESSION["selectedPicture"]);
unset($_SESSION["comments"]);
unset($_SESSION["albumId"]);
include("./common/header.php");
?>
<div class="container">
<br>
<div style="display: flex; align-items: center;">
<h1 style="margin-right: 20px">Welcome to Bee Yourself</h1>
<img src="Common/img/logo.jpeg" alt="Bee Yourself logo" style="max-width:80px; max-height:100%;"/>
</div>
<br>
<?php
if (!$user){
print "<p>If you have never used this before, you have to <a href='NewUser.php'>sign up</a> first.</p>";
print "<p>If you have already signed up, you can <a href='Login.php'>log in</a> now.</p>";
} else {
print "You're already logged in.";
}
?>
</div>
<?php include('./common/footer.php'); ?>