This repository has been archived by the owner on Dec 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcreate_signature.php
executable file
·135 lines (125 loc) · 6.4 KB
/
create_signature.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
131
132
133
134
135
<?php
if(session_status() == PHP_SESSION_NONE) session_start();
require_once "core/Core.php";
require_once "core/proprietaries-data.php";
use Core\ProprietariesData;
use const LPGP_CONF;
$prp = new ProprietariesData(LPGP_CONF['mysql']['sysuser'], LPGP_CONF['mysql']['passwd']);
$id = $prp->getPropID($_SESSION['user']);
$inpt = "<input type=\"hidden\" name=\"prop-id\" value=\"$id\">";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>LPGP Oficial Server</title>
<link rel="stylesheet" href="css/new-layout.css">
<link rel="stylesheet" href="css/account.css">
<link rel="stylesheet" href="css/content-style.css">
<link rel="shortcut icon" href="media/new-logo.png" type="image/x-icon">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.14.0/css/all.css" integrity="sha384-HzLeBuhoNPvSl5KYnjx0BT+WB0QEEqLprO+NBkkk5gbc67FTaL7XIGa2w1L0Xbgc" crossorigin="anonymous">
<link href="bootstrap/dist/css/bootstrap.css" rel="stylesheet">
</head>
<style>
</style>
<body>
<div class="container-fluid header-container" role="banner" style="position: fixed;">
<div class="col-12 header" style="height: 71px; transition: background-color 200ms linear;">
<div class="opt-dropdown dropdown login-dropdown">
<button type="button" class="btn btn-lg default-btn-header dropdown-toggle" data-toggle="dropdown" id="account-opts" aria-haspopup="true" aria-expanded="false">
<span class="nm-tmp">Account</span>
</button>
<div class="dropdown-menu opts" aria-labelledby="account-opts"></div>
</div>
<div class="opt-dropdown dropdown after-opt signatures-dropdown">
<button class="dropdown-toggle btn btn-lg default-btn-header" data-toggle="dropdown" aria-expanded="false" aria-haspopup="true" id="signature-opts">
Signatures
</button>
<div class="dropdown-menu opts" aria-labelledby="signature-opts"></div>
</div>
<div class="opt-dropdown dropdown after-opt help-dropdown">
<button class="dropdown-toggle btn btn-lg default-btn-header" data-toggle="dropdown" aria-expanded="false" aria-haspopup="true" id="help-opt">
Help
</button>
<div class="dropdown-menu opts" aria-labelledby="help-opt">
<a href="./docs/index.php" class="dropdown-item">Documentation</a>
<a href="./about.html" class="dropdown-item">About Us</a>
<a href="./contact-us.html" class="dropdown-item">Contact Us</a>
</div>
</div>
</div>
</div>
<br>
<hr>
<div class="container-fluid container-content" style="position: relative;">
<div class="row-main row">
<div class="col-7 clear-content" style="position: relative; margin-left: 21%; margin-top: 10%;">
<form action="./creating-signature.php" method="POST">
<label for="passcode" class="form-label">Type the code</label>
<input type="password" id="passcode" name="password" class="form-control">
<label for="passcode" class="form-label">
<button class="btn btn-secondary" id="show-passcode" type="button">Show code</button>
</label>
<br>
<select name="encoding" id="encoding-opts" class="form-control">
<option value="main">Select a type of encoding</option>
<option value="0">MD5</option>
<option value="1">SHA1</option>
<option value="2">SHA256</option>
</select>
<br>
<?php echo $inpt; ?>
<button type="submit" class="btn btn-block btn-success" name="log">Create signature</button>
</form>
</div>
</div>
</div>
<br>
<div class="footer-container container">
<div class="footer-row row">
<div class="footer col-12" style="height: 150px; background-color: black; top: 190%; position: relative; max-width: 100%; left: 0;">
<div class="social-options-grp">
<div class="social-option">
<a href="https://github.com/GiullianoRossi1987" target="_blanck" id="github" class="social-option-footer">
<span><i class="fab fa-github"></i></span></a>
</div>
<div class="social-option-footer">
<a href="https://" target='_blanck' id="facebook">
</a>
</div>
<div class="social-option-footer">
<a href="https://" target='_blanck' id="twitter"></a>
</div>
</div>
</div>
</div>
</div>
<!-- Scripts -->
<script src="jquery/lib/jquery-3.4.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="bootstrap/dist/js/bootstrap.js"></script>
<script src="js/autoload.js" charset="utf-8"></script>
<script src="js/main-script.js"></script>
<script src="js/actions.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js@2.8.0"></script>
<script>
$(document).ready(function(){
setAccountOpts(true);
setSignatureOpts();
});
var pas2 = "text";
$(document).on("click", "#show-passcode", function(){
$("#passcode").attr("type", pas2);
if(pas2 == "text") pas2 = "password";
else pas2 = "text";
});
$(document).scroll(function(){
$(".header-container").toggleClass("scrolled", $(this).scrollTop() > $(".header-container").height());
$(".default-btn-header").toggleClass("default-btn-header-scrolled", $(this).scrollTop() > $(".header-container").height());
$(".opts").toggleClass("opts-scrolled", $(this).scrollTop() > $(".header-container").height());
});
</script>
</body>
</html>