-
Notifications
You must be signed in to change notification settings - Fork 27
/
index_custom.php
159 lines (159 loc) · 7.5 KB
/
index_custom.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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<?php
/*
* UniFi Voucher Service v2.0
* Copyright 2018 Sass-Projects (https://www.sass-projects.info)
* Licensed under GNU General Public License v3.0
* (https://github.com/PaintSplasher/unifi-voucher-service/blob/master/README.md)
*/
require_once ('uvs_config.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="assets/img/favicon.ico">
<title><?php echo $uvs_title ?></title>
<link href="assets/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/css/style.min.css" rel="stylesheet">
<link href="assets/css/font-awesome.min.css" rel="stylesheet">
<link href="assets/css/keyboard.css" rel="stylesheet">
</head>
<body>
<section id="works"></section>
<div class="container">
<div class="row centered mt mb">
<span class="shutdown_btn"><a href="shutdown.php"><img src="assets/img/shutdown.png" /></a></span>
<p><a href="index.php"><img src="assets/img/logo.png" /></a></p>
<h4><?php echo $uvs_subtitle ?></h4>
<br/>
<form id="buttons">
<div class="col-lg-8 col-md-8 col-sm-8 gallery1st print1weekfree">
<div class="row">
<div class="col-xs-4">
<label>Quota</label>
<select class="form-control" name="quota" id="quota">
<option value="1">One time (1 usage)</option>
<option value="2">Multi use (2 usages)</option>
<option value="0">Multi use (unlimited)</option>
</select>
</div>
<div class="col-xs-4">
<label>Expiration</label>
<select class="form-control" name="expiration" id="expiration">
<option value="60">1 Hour</option>
<option value="360">6 Hours</option>
<option value="720">12 Hours</option>
<option value="1440">24 Hours</option>
<option value="2880">2 Days</option>
<option value="10080">7 Days</option>
<option value="44640">1 Month</option>
</select>
</div>
<div class="col-xs-4">
<label>Byte Quota</label>
<select class="form-control" name="bytequota" id="bytequota">
<option value="0">unlimited</option>
<option value="500">500 MB</option>
<option value="1000">1000 MB</option>
<option value="1500">1500 MB</option>
<option value="2000">2000 MB</option>
<option value="2500">2500 MB</option>
<option value="3000">3000 MB</option>
</select>
</div>
</div>
<br/>
<div class="row">
<div class="col-xs-6">
<label>Download Bandwidth</label>
<select class="form-control" name="downloadlimit" id="downloadlimit">
<option value="0">unlimited</option>
<option value="900">900 Kbps</option>
<option value="1800">1800 Kbps</option>
<option value="3600">3600 Kbps</option>
<option value="7200">7200 Kbps</option>
<option value="14400">14400 Kbps</option>
<option value="28800">28800 Kbps</option>
</select>
</div>
<div class="col-xs-6">
<label>Upload Bandwidth</label>
<select class="form-control" name="uploadlimit" id="uploadlimit">
<option value="0">unlimited</option>
<option value="450">450 Kbps</option>
<option value="900">900 Kbps</option>
<option value="1800">1800 Kbps</option>
<option value="3600">3600 Kbps</option>
<option value="7200">7200 Kbps</option>
<option value="14400">14400 Kbps</option>
</select>
</div>
</div>
<br/>
<div class="row">
<div class="col-xs-12">
<label>Note</label>
<input type="text" class="form-control" placeholder="Type a note" name="note" id="note">
</div>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 gallery1st print1dayfree" style="margin-top:35px;">
<button onCLick="senddata();" type="submit" name="1dayfree" id="1dayfree">
<div id="oben"><img src="assets/img/printing.png" id="1dayfreeimg" width="208px" class="img-responsive" /></div>
<div id="unten"><img src="assets/img/print_now.png" class="img-responsive" /></div>
</button>
</div>
</form>
</div>
</div>
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/jquery-ui.min.js"></script>
<script src="assets/js/jqkeyboard.js"></script>
<script src="assets/js/jqk.layout.en-bg.js"></script>
<div id="button-hint"></div>
<script>
$(function () {
"use strict";
jqKeyboard.init();
});
</script>
<script>
function senddata() {
var val1 = $('#note').val();
var val2 = $('#uploadlimit option:selected').val();
var val3 = $('#downloadlimit option:selected').val();
var val6 = $('#bytequota option:selected').val();
var val5 = $('#expiration option:selected').val();
var val4 = $('#quota option:selected').val();
$.ajax({url:'codes/custom-voucher.php?note='+val1+'&uploadlimit='+val2+'&downloadlimit='+val3+'&bytequota='+val4+'&expiration='+val5+'"a='+val6 ,type:'GET' ,success:function(data){ $('.print1dayfree').html(data);}});
}
$(document).ready(function() {
$("#buttons").submit(function(e) {
e.preventDefault();
$("#1dayfree").attr("disabled", true);
return true;
});
});
$(document).ready(function() {
$("#buttons").submit(function(e) {
e.preventDefault();
$("#note").attr("disabled", true);
$("#uploadlimit").attr("disabled", true);
$("#downloadlimit").attr("disabled", true);
$("#bytequota").attr("disabled", true);
$("#expiration").attr("disabled", true);
$("#quota").attr("disabled", true);
return true;
});
});
$(document).ready(function() {
$('#1dayfreeimg').hide();$("#1dayfree").click(function(){$("#1dayfreeimg").show(); });
});
</script>
</body>
</html>