mirror of https://github.com/Aidaho12/haproxy-wi
parent
f934aff44c
commit
f0cb22f8e9
|
@ -39,8 +39,8 @@ if form.getvalue('getcert') is not None and serv is not None:
|
|||
if form.getvalue('ssh_cert'):
|
||||
name = form.getvalue('name')
|
||||
|
||||
if not os.path.exists(os.getcwd())+'/keys/'):
|
||||
os.makedirs(os.getcwd())+'/keys/')
|
||||
if not os.path.exists(os.getcwd()+'/keys/'):
|
||||
os.makedirs(os.getcwd()+'/keys/')
|
||||
|
||||
ssh_keys = os.path.dirname(os.getcwd())+'/keys/'+name+'.pem'
|
||||
|
||||
|
|
|
@ -12,4 +12,12 @@
|
|||
<button type="submit" name="Login" value="Enter">Sign Up</button>
|
||||
</form>
|
||||
</center>
|
||||
<div id="dialog-confirm" title="View certificate " style="display: none;">
|
||||
<center>
|
||||
<div id="dialog-confirm-body">Hello! Do not pass by, support the project!
|
||||
<b><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=5XVQTMKQS57NE&lc=US&Z3JncnB0=" title="Paypal" style="color: red" target="_blank">Paypal</a> or
|
||||
<a href="https://www.patreon.com/haproxy_wi/overview" title="Patreon" style="color: red" target="_blank">Patreon</a></b>
|
||||
</div>
|
||||
</center>
|
||||
</div>
|
||||
{% endblock %}
|
|
@ -1216,7 +1216,18 @@ $( function() {
|
|||
type: "GET",
|
||||
success: function( data ) {
|
||||
if (data.indexOf('ok') != '-1') {
|
||||
window.location.replace(ref);
|
||||
$( "#dialog-confirm" ).dialog({
|
||||
resizable: false,
|
||||
height: "auto",
|
||||
width: 400,
|
||||
modal: true,
|
||||
title: "Support the project!",
|
||||
buttons: {
|
||||
"Ok": function() {
|
||||
window.location.replace(ref);
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
$('.alert-danger').remove();
|
||||
$("#ajax").html(data);
|
||||
|
|
Loading…
Reference in New Issue