-
Notifications
You must be signed in to change notification settings - Fork 0
/
home4.php
130 lines (125 loc) · 6.33 KB
/
home4.php
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?php
session_start();
include 'config.php';
include("web_encryption.php");
include("encryption.php");
?>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style type="text/css">
#add{
right:25%;
top:33%;
}
#logo{
animation-name: example1;
animation-duration: 5s;
animation-iteration-count: infinite;
}
@keyframes example1 {
0%{transform:rotate(0deg);}
49.4%{transform:rotate(0deg);}
49.5%{transform:rotate(45deg);}
51.5%{transform:rotate(-45deg);}
51.6%{transform:rotate(0deg);}
100% {transform:rotate(0deg);}
}
</style>
</head>
<body style="background-color:black;">
<nav class="navbar navbar-inverse navbar-fixed-top" id="navigation" style="margin-top:0px;padding:0px;font-family:jokerman;">
<div class="container-fluid" style="margin-top:0px;" id="navi3">
<div class="navbar-header" style="margin-top:0;padding-top:0;">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar" onclick="myfunction()" id="navb">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#" style="margin-top:0px;" style="padding-top:0;"><img class="img-responsive" id="logo" src="logo.png" width=33px height=30px;></a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav" id ="navy">
<li id="home1"><a href="user.html">HOME</a></li>
<li class="active" id="lockit1"><a href="home2.php">WEB ACCOUNTS</a></li>
<li id="inst1"><a href="insert.php">MY ACCOUNT</a></li>
<li id="security1"><a href="random_password.php">PASSWORD GENERATOR</a></li>
</ul>
<ul class="nav navbar-nav navbar-right" id="navy">
<li><a href="register.html"><span class="glyphicon glyphicon-user"></span> Hi! <?php echo $_SESSION["Username"]; ?></a></li>
<li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">Logout <span class="caret"></span></a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container" style="margin-top:80px;">
<button class="btn btn-success btn-md" style="position:fixed;bottom:35px;right:60px;background-color:rgba(255,255,255,1.0);border-radius:50%;opacity:0.5;border:2px solid blue;">
<span class="glyphicon glyphicon-plus" style="color:blue;" id="add1"></span>
</button>
</div>
<div id="demo" style="left:40%;top:40%;position:fixed;visibility:hidden;">
<span style="position:fixed; width:1.5%;height:2.5%;" onclick="document.getElementById('demo').style.visibility='hidden'" class="glyphicon glyphicon-remove" id="add"></span>
<iframe id="myframe" name="myframe" src="#" width=100% height=100% style="background-color: white;top:40%;right:60%;"></iframe>
</div>
<?php
//$user=$_SESSION["Username"];
$user='piyush2897';
$sql="SELECT * FROM web_accounts WHERE Username='".$user."'";
$row=mysqli_query($db,$sql);
$row1=mysqli_fetch_assoc($row);
$cnt=mysqli_num_rows($row);
//$query1="SELECT Password FROM User_Details WHERE Username='".$_SESSION['Username']."'";
$query1="SELECT Password FROM User_Details WHERE Username='".$user."'";
$res1=mysqli_query($db, $query1);
$row2=mysqli_fetch_assoc($res1);
//echo $row2["Password"];
$key=mc_decrypt($row2["Password"],ENCRYPTION_KEY);
$key=strToHex($key);
// echo $key;
$password=generate_secret_key1($key);
$pass=length_check32($password);
// echo ($pass);
if($cnt<=0)
{
echo "YOU DON'T HAVE ANY ACCOUNT SAVED IN THIS WEBSITE";
}
if($cnt>0){
$i=1;
echo "<div>";
while($cnt--){
$table=array();
$table["url"]=$row1["URL"];
$table["site_user"]=$row1["Site_Username"];
$table["site_pass"]=$row1["Site_Password"];
echo "<div class='col-sm-2' style='float:left;padding-bottom:25px;background-color:#233736;color:white;margin:25px;'><table style='color:white;'><tr><td>URL:</td><td>";
echo $table["url"];
echo "</td><tr><td>Username:</td><td>";
echo $table["site_user"];
echo "</td><tr><td>Password:</td><td>";
// echo $table['site_pass'];
$site_password=mc_decrypt($table['site_pass'],$pass);
echo $site_password;
echo "</td></tr></table></div>";
$row1=mysqli_fetch_assoc($row);
$i++;
}
echo "</div>";
}
?>
<script>
function myFunction() {
//document.getElementById('myframe').src="index.html";
document.getElementById('demo').style.visibility="visible";
}
$(document).ready(function(){
$('.btn').popover({title: "<form action='fill_site_detail.php' method='post' target='myframe'> <table id='list' style='padding:0;margin:0'><tr><td><input type='image' src='amazon.jpg' name='1' value='www.amazon.in' onclick='myFunction()' style='padding:0;margin-top:2;margin-left:0;width:100%;height:35px;'></td></tr><tr><td><input type='image' src='fb.png' name='1' value='www.facebook.com' onclick='myFunction()' style='padding:0;margin-top:2;width:100%;height:35px;'></td></tr><tr><td><input type='image' name='1' value='www.github.com' onclick='myFunction()' src='github.jpg' style='padding:0;margin:0;width:100%;height:35px;'></td></tr><tr><td><input type='image' name='1' value='www.gmail.com' onclick='myFunction()' src='gmail.jpg' style='padding:0;margin-top:2;width:100%;height:35px;'></td></tr><tr><td><input type='image' name='1' value='www.yahoo.com' onclick='myFunction()' src='yahoo.jpg' style='padding:0;margin-top:2;width:100%;height:35px;'></td></tr><tr><td><input type='image' name='1' value='www.instagram.com' onclick='myFunction()' src='instagram.jpg' style='padding:0;margin-top:2;width:100%;height:35px;'><tr><td><input type='image' name='1' value='signin.ebay.in' onclick='myFunction()' src='ebay.png' style='padding:0;margin-top:2;width:100%;height:35px;'></td><tr><td><input type='image' name='1' value='www.tumblr.com' onclick='myFunction()' src='tumblr.png' style='padding:0;margin-top:2;width:100%;height:35px;'></td></tr></tr></td></tr></table></form>", html: true, placement: "top",trigger:"focus"});
});
</script>
</body>
</html>