Skip to content

Commit

Permalink
Merge pull request #28 from Haz001/coding
Browse files Browse the repository at this point in the history
Version 1
  • Loading branch information
Haz001 authored Dec 14, 2021
2 parents 2207e49 + f72631c commit c961b88
Show file tree
Hide file tree
Showing 50 changed files with 3,739 additions and 141 deletions.
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

# Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode
# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode

### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace

# Local History for Visual Studio Code
.history/

### VisualStudioCode Patch ###
# Ignore all local history of files
.history
.ionide

# Support for Project snippet scope
!.vscode/*.code-snippets

# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode
.DS_Store
4 changes: 3 additions & 1 deletion .idea/passman.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"tabWidth": 4,
"useTabs": true
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# passman
Password Manager
The best Password Manager
25 changes: 25 additions & 0 deletions public_html/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
BSD 2-Clause License

Copyright (c) 2021, Ben Forino, Harry Syred, Khal Rahman, Oskar Papaj
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 changes: 25 additions & 0 deletions public_html/account.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php require_once "header.php";
if (!isset($_SESSION["user_id"])) {
header("location: index.php");
exit;
}
?>
<script src="scripts/accountScript.js"></script>
<h1 style="text-align: center;padding: 0.5em;">Account Details</h1>
<div class="accountDetails">
<form class="inline-form" action="scripts/accountScript.php" method="post" id="user_details">
<input required type="text" name="first_name" placeholder="First Name">
<input required type="text" name="last_name" placeholder="Last Name">
<input required type="text" name="username" placeholder="Username">
<input required type="text" name="email" placeholder="Email">
<input required type="date" name="dob" placeholder="Date of Birth">
<input required type="text" name="mobile" placeholder="Mobile Number">
<button type="button" name="submit" id="submit">Update Details</button>
</form>
<div>
<p id="output"></p>
</div>
<div class="ad">
<button type="button" id="delete">Delete Account</button>
</div>
</div>
30 changes: 30 additions & 0 deletions public_html/addPassword.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php include 'header.php';?>

<div class="mainPage">
<div class="mainBody">
<div class="mainSection1" id="addMainSection1">
<h1 class="mainSection1Title">Add new website</h1>
<form action="" method="POST">
<label for="websiteName">Website Name</label>
<input type="text" id="websiteName" name="websiteName" required>
<label for="websiteUsername">Username</label>
<input type="text" id="websiteUsername" name="websiteUsername" required>
<label for="websitePassword">Password</label>
<input type="password" id="websitePassword" name="websitePassword" required>
<label for="websiteAddress">Website Address</label>
<input type="text" id="websiteAddress" name="websiteAddress" required>
<input class="addUpload2" type="submit" value="Add">
</form>
</div>
<div class="verticalLine">
</div>
<div class="mainSection2" id="addMainSection2">
<h1 class="mainSection2Title">Upload CSV</h1>
<button class="addUpload">Upload File</button>
</div>
</div>
</div>

<?php
include 'footer.php';
?>
54 changes: 54 additions & 0 deletions public_html/contact.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?php include 'header.php';?>

<div class="mainPage" id="contactMainPage">
<div class="contactTitle">
<h1>We're here</h1>
<p>Feel free to ask a question</p>
</div>
<div class="mainBody">
<div class="mainSection1" id="addMainSection1">
<form action="" method="GET">
<label class="contactFName" for="fName">First Name</label>
<input type="text" id="fName" name="fName" required>
<label for="lName">Last Name</label>
<input type="text" id="lName" name="lName" required>
<label for="email">Email</label>
<input type="email" id="email" name="email" required>
<label for="confirmEmail">Confirm Email</label>
<input type="email" id="confirmEmail" name="confirmEmail" required>
<label for="message">Message:</label>
<input type="text" id="message" name="message" required>
<input type="submit" value="Send" class="contactSend">
</form>
</div>
<div class="verticalLine">
</div>
<div class="mainSection2" id="contactMainSection2">
<h2 class="contactTeamTitle">Customer Service Team:</h2>
<div class="contactTeamMembers">
<div class="contactTeamMemeber1">
<img src="img/profilePicture.jpeg" alt="profilePic">
<h5 class="meetName">Meet Harry</h5>
<p>About Harry: some text</p>
</div> <hr>
<div class="contactTeamMemeber2">
<img src="img/profilePicture.jpeg" alt="profilePic">
<h5 class="meetName">Meet Ben</h5>
<p>Meet Ben: some text</p>
</div> <hr>
<div class="contactTeamMemeber3">
<img src="img/profilePicture.jpeg" alt="profilePic">
<h5 class="meetName">Meet Oskar</h5>
<p>Meet Ben: some text</p>
</div>
</div>
</div>
</div>
</div>

<?php
include 'footer.php';
?>



13 changes: 13 additions & 0 deletions public_html/footer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
</body>
<footer>
<h3><a href=""> Contact Us</a></h3>
<h3><a href=""> Report a Bug</a></h3>
<h3><a href=""> Documentation</a> </h3>
<h3><a href="/LICENSE.txt"> Copyright (c) 2021, PassMan Team<br /> All rights reserved</a></h3>
</footer>

<script>
console.log("%c'\n\n\n \n .d8888b. 888 888 \nd88P Y88b 888 888 \nY88b. 888 888 This is a browser feature intended for \n \"Y888b. 888888 .d88b. 88888b. 888 developers. If someone told you to copy \n \"Y88b. 888 d88\"\"88b 888 \"88b 888 and paste something here to enable a \n \"888 888 888 888 888 888 Y8P Passman feature or \"hack\" someone\'s \nY88b d88P Y88b. Y88..88P 888 d88P account, it is a scam and will give them \n \"Y8888P\" \"Y888 \"Y88P\" 88888P\" 888 access to your Passman account.\n 888 \n 888 \n 888 \n\nSee https://en.wikipedia.org/wiki/Self-XSS for more information.'", 'color: #f00');
</script>
</html>
35 changes: 35 additions & 0 deletions public_html/header.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php
session_start(["cookie_domain" => "passman.harrysy.red"]);
?>

<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/styles/styles.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="scripts/userInfo.js"></script>
<script src="scripts/errorHandle.js"></script>
<title>PassMan</title>
</head>

<body>
<header>
<div class="navbar">
<div class="emptyDiv"></div>
<a href="index.php">
<h1 class="headerTitle"><span>Pass</span>Man</h1>
</a>
<div class="section2">
<h3 class="headerMessage" id="name"></h3>
<img class="headerImage" src="/img/profilePicture.jpeg" alt="profile pic">
<div class="accountDrop">
<a href="account.php">Account</a>
<a href="settings.php">Settings</a>
<a href="logout.php">Logout</a>
</div>
</div>
</div>
</header>
99 changes: 99 additions & 0 deletions public_html/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public_html/iconPassman.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public_html/img/profilePicture.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 0 additions & 15 deletions public_html/index.html

This file was deleted.

18 changes: 18 additions & 0 deletions public_html/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php require_once "header.php";
if (!isset($_SESSION["user_id"])) {
header("location: login.php");
exit();
} else {
header("location: main.php");
exit();
}
?>
<!--<div>
<img src="logo.png" /><span>PassMan</span>
</div>
<form>
<ul>
<li><a href="login.php">Login</a></li>
<li><a href="signup.php">Signup</a></li>
</ul>
</form>-->
Loading

0 comments on commit c961b88

Please sign in to comment.