-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.html
81 lines (66 loc) · 2.66 KB
/
install.html
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
<!DOCTYPE HTML>
<html id="ng-app" style="display: block;">
<head>
<title>Password Manager - Install</title>
<link rel="stylesheet" href="https://web.telegram.org/css/app.css">
<link rel="stylesheet" href="https://web.telegram.org/css/desktop.css">
<link rel="stylesheet" href="/lib/css/main.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
</head>
<body class="non_osx non_msie is_1x">
<br><br>
<div class="page_wrap">
<div class="tg_page_head tg_head_wrap noselect clearfix">
<div class="tg_head_split">
<div class="tg_head_main_wrap"></div>
</div>
</div>
<div class="im_page_wrap clearfix im_page_peer_not_selected">
<div class="im_page_split clearfix">
<div class="im_history_col_wrap noselect" style="width: 100%;height: 550px;overflow: auto;">
<center>
<br>
<form id="installSite" action="#install">
<div id="showAlert"></div>
<b>Install</b><br>
<p>Note: Before installing, insert your database information in config.php</p><br>
<input style="width: 500px;height: 54px;" type="password" class="form-control no_outline" id="mainPassword" placeholder="Main password" autocomplete="off"><br>
<input style="width: 500px;height: 54px;" type="password" class="form-control no_outline" id="phrasePassword" placeholder="Phrase" autocomplete="off"><br>
<p>Scan this QR code in your GoogleAuthenticator app.</p>
<div id="QRCode"></div><div id="divAuth"></div><br>
<button style="width: 500px;height: 54px;" class="btn reply_markup_button">Install</button><br>
</form>
</center>
</div>
</div>
</div>
</div>
<script>
function generateQR()
{
$.post( "lib/system" , { ACTION: "generateQR" } , function( QRInfo ){
$('#QRCode').html(QRInfo.imageQR);
$('#divAuth').html(QRInfo.secretQR);
}, "json");
return false;
}
$(document).ready(function(){
generateQR();
});
$(document).ready(function(){
$("#installSite").submit(function() {
$.post("lib/system", {
ACTION:"installSite",
mainPassword:$("#mainPassword").val(),
phrasePassword:$("#phrasePassword").val(),
secretAuth:$("#secretAuth").val()
}, function(postInfo) {
alert("Install completed! You can now login");
window.location.replace("/login");
},"json");
return false;
});
});
</script>
</body>
</html>