2021-12-09 15:17:30 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<title>Botiga php</title>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<link rel="stylesheet" href="style/w3.css">
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<!-- Navbar (sit on top) -->
|
|
|
|
<div class="w3-top">
|
|
|
|
<div class="w3-bar w3-white w3-wide w3-padding w3-card">
|
|
|
|
<a href="home.php" class="w3-bar-item w3-button"><b>Botiga</b> php</a>
|
|
|
|
<!-- Float links to the right. Hide them on small screens -->
|
|
|
|
<div class="w3-right w3-hide-small">
|
2022-01-11 18:44:49 +01:00
|
|
|
<?php
|
|
|
|
session_start();
|
|
|
|
if (isset($_SESSION['username'])) {
|
|
|
|
echo('
|
|
|
|
<a href="my-products.php" class="w3-bar-item w3-button">My Products 🗊</a>
|
|
|
|
<a href="logout.php" class="w3-bar-item w3-button">Logout</a>
|
|
|
|
');
|
|
|
|
} else {
|
|
|
|
echo('
|
|
|
|
<a href="register-page.php" class="w3-bar-item w3-button">Register</a>
|
|
|
|
<a href="login-page.php" class="w3-bar-item w3-button">Login</a>
|
|
|
|
');
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
2021-12-09 15:17:30 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|