-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.php
99 lines (94 loc) · 4.11 KB
/
home.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
<!DOCTYPE html>
<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">
#nav{
background-color:blue;
width:8px;
position:fixed;
height:100%;
}
#nav:hover{
width:180px;
}
</style>
</head>
<body style="background-color:black;">
<div id="nav">
</div>
<div class="container">
<button class="btn btn-success btn-md" style="position:fixed;bottom:35px;right:40px;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="add"></span>
</button>
</div>
<div id="demo" style="left:40%;top:40%;position:fixed;visibility:hidden;">
<span style="top:1%;right:1%;position:fixed; width:1.5%;height:2.5%;" onclick="document.getElementById('demo').style.visibility='hidden'" class="glyphicon glyphicon-remove"></span>
<iframe id="myframe" name="myframe" src="index.html" width=100% height=100% style="background-color: white;"></iframe>
</div>
<?php
session_start();
include 'config.php';
include("web_encryption.php");
include("encryption.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 style='float:left;padding-bottom:25px;background-color:white;margin:25px;'><table><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'><tr><td><button type='submit' name='1' value='www.amazon.in' onclick='myFunction()' >AMAZON</td></tr><tr><td><button type='submit' name='1' value='www.facebook.com' onclick='myFunction()' >FACEBOOK</button></td></tr><tr><td><button type='submit' name='1' value='www.github.com' onclick='myFunction()' >GITHUB</button></td></tr><tr><td><button type='submit' name='1' value='www.gmail.com' onclick='myFunction()' >GMAIL</button></td></tr><tr><td><button type='submit' name='1' value='www.yahoo.com' onclick='myFunction()' >YAHOO</button></td></tr><tr><td><button type='submit' name='1' value='www.instagram.com' onclick='myFunction()' >INSTAGRAM</button><tr><td><button type='submit' name='1' value='signin.ebay.in' onclick='myFunction()' >EBAY</a></td><tr><td><button type='submit' name='1' value='www.tumblr.com' onclick='myFunction()' >TUMBLR</a></td></tr></tr></td></tr></table></form>", html: true, placement: "top"});
});
</script>
</body>
</html>