[go: up one dir, main page]

Menu

[r20]: / index.php  Maximize  Restore  History

Download this file

65 lines (61 with data), 2.1 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
<?php
/**
* Proprietary License
*
* Copyright (c) 2024 Richard Scorpio
*
* All rights reserved. This software is proprietary and confidential. Unauthorized copying of this file, via any medium, is strictly prohibited.
* Contact rickscorpio@proton.me for licensing information.
* Subject: Violet PWM
*/
session_start();
if (!isset($_SESSION['user_id'])) {
header('Location: login.php');
exit();
}
$username = isset($_SESSION['username']) ? $_SESSION['username'] : 'User';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>VIOLET</title>
<link rel="stylesheet" href="css/style.css">
<link rel="icon" type="image/x-icon" href="img/favicon.ico"> <!-- Add this line -->
<style>
.menu {
display: flex;
justify-content: center;
gap: 20px;
}
</style>
</head>
<body>
<div class="container">
<h1 class="title">VIOLET</h1>
<p class="subtitle">My Personal Password Manager</p>
<p>Welcome, <strong><?= htmlspecialchars($username); ?></strong>!</p>
<div class="navbar">
<a href="index.php">Home</a>
<a href="vault.php?type=websites">View Websites</a>
<a href="vault.php?type=banks">View Banks</a>
<div class="dropdown">
<button class="dropbtn">Add/Edit
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
<a href="add_website.php">Add Website</a>
<a href="add_bank.php">Add Bank</a>
<a href="account_editor.php">Edit Account</a>
<a href="2fa_codes.php">View 2FA Codes</a>
</div>
</div>
<a href="about.php">About</a>
<a href="donate.php">Donate</a>
<a href="logout.php">Logoff</a>
</div>
</div>
<?php include 'footer.php'; ?>
</body>
</html>