This repository was archived by the owner on Aug 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
36 lines (30 loc) · 1.97 KB
/
header.php
File metadata and controls
36 lines (30 loc) · 1.97 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta charset="utf-8">
<link href="style.css" rel="stylesheet" />
<link href="utopia.css" rel="stylesheet" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<link rel="icon" type="image/gif" href="favicon.gif">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<div id=header>
<div class="text" style="display: flex; flex-direction:row; text-align:center;">
<img src="logo.svg" id="logo" alt="Website icon">
<h1 style="text-align: center !important;margin: auto">Purrfect</h1>
</div>
<nav id="nav">
<form id="search-form" method="get" action=search.php>
<input type="text" id="search" name="search" placeholder="Search for a product" required>
<div id="thing"><button type="submit" aria-label="search" id="search"><i class="material-icons">search</i></button><label for="search" style="margin-left: 0px;margin-top: 0px;">Search</label></div>
</form>
<div id="thing"><a href=about.php aria-label="about" id="about" name="about"><i class="material-icons"></i></a><label for="about">About</label></div>
<?php
session_start();
if (isset($_SESSION["loggedin"]) && $_SESSION["loggedin"] = true) echo "<div id='thing'><a href=account.php id='account' name='account'><i class='material-icons'></i></a><label for='account'>Account</label></div><div id='thing'><a href=store.php id='store' name='store'><i class='material-icons'></i></a><label for='store'>Store</label></div>";
?>
</nav>
</div>
<script src="cookie.js"></script>
<body onload="checkCookie()"><div class="cookie">We using them cookies, ayet freshly baked just for you. We use them to keep this place running, so you can login and stuff<button onclick="clicked();">I know</button><button onclick="lclose();">Close</button></div></body>