mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-06-03 17:03:12 +00:00
Basic account system
This commit is contained in:
parent
0536dfc62c
commit
87dc4d5ff0
19 changed files with 371 additions and 46 deletions
15
index.php
15
index.php
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>UwU</title>
|
||||
<title>Gallery</title>
|
||||
<link rel="stylesheet" href="css/master.css">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Rubik" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@600&display=swap">
|
||||
|
@ -17,10 +17,21 @@
|
|||
if ($_GET["del"] == "true") {
|
||||
echo "<p class='alert alert-high space-bottom'>Successfully deleted image: ".$_GET['id']."</p>";
|
||||
}
|
||||
|
||||
// Account toast
|
||||
if ($_GET["login"] == "success") {
|
||||
echo "<p class='alert alert-high space-bottom'>You're now logged in!</p>";
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="info-text center">
|
||||
<h1>Welcome!</h1>
|
||||
<?php
|
||||
if (isset($_SESSION["username"])) {
|
||||
echo "<h1>Welcome ".$_SESSION['username']."!</h1>";
|
||||
} else {
|
||||
echo "<h1>Welcome!</h1>";
|
||||
}
|
||||
?>
|
||||
<p>*internal screaming*</p>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue