-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodule.zpm
220 lines (210 loc) · 9.95 KB
/
module.zpm
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<div class="zmodule_content panel" id="zmodule_header_<@ ModuleName @>">
<div class="panel-heading">
<img src="<@ ModuleIcon @>" width="35" height="35" border="0" alt="<@ ModuleName @>">
<div class="zmodule_title">
<@ ModuleName @>
</div>
<div class="zmodule_desc" id="zmodule_desc_<@ ModuleName @>"><@ ModuleDesc @></div>
</div>
<@ Result @>
<div class="zgrid_wrapper">
<form action="./?module=Cer_manager&action=select" method="post">
<button class="btn btn-primary" type="button" data-toggle="modal" data-target=".bs-example-modal-lg"><: My certificate :></button>
<button class="button-loader btn btn-primary" type="submit" id="button" name="inSSLself" id="inSSLself" value="inSSLself"><: Self signed :></button>
<button class="button-loader btn btn-primary" type="submit" id="button" name="inSSLCSR" id="inSSLCSR" value="inSSLCSR"><: Certificate Signing Request :></button>
<button class="button-loader btn btn-primary" type="submit" id="button" name="inSSLbought" id="inSSLbought" value="inSSLbought"><: Install Signed Certificate :></button>
<@ CSFR_Tag @>
</form>
</div>
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel"><: My certificate :></h4>
</div>
<table class="table">
<% loop SSLList %>
<tr>
<td><& name &></td>
<form action="./?module=Cer_manager&action=Download" method="post">
<td><input type="hidden" name="inName" value="<& name &>">
<button class="btn btn-primary" type="submit" id="button" name="inDownload_<& name &>" id="inDownload_<& name &>" value="inDownload_<& name &>"><: Download :></button></td>
</form>
<form action="./?module=Cer_manager&action=Delete" method="post">
<td><input type="hidden" name="inName" value="<& name &>">
<button class="button-loader delete btn btn-danger" type="submit" id="button" name="inDelete_<& name &>" id="inDelete_<& name &>" value="inDelete_<& name &>"><: Delete :></button></td>
<@ CSFR_Tag @>
</form>
</tr>
<% endloop %>
</table>
</div>
</div>
</div>
<% if isShowCSR %>
<div class="zgrid_wrapper">
<h2><: Certificate Signing Request :></h2>
<form action="./?module=Cer_manager&action=MakeCSR" method="post">
<table class="table table-striped">
<tr>
<th nowrap="nowrap"><: Domain :>:</th>
<td>
<select name="inDomain" id="inDomain">
<option value="" selected="selected">-- <: Select a domain :> --</option>
<% loop DomainList %>
<option value="<& domain &>"><& domain &></option>
<% endloop %>
</select>
</td>
</tr>
<tr>
<th nowrap="nowrap"><: Your Name :>:</th>
<td>
<input type="text" name="inName" id="inName" />
</td>
</tr>
<tr>
<th nowrap="nowrap"><: Domain Email :>:</th>
<td>
<input type="text" name="inAddress" id="inAddress" />
</td>
</tr>
<tr>
<th nowrap="nowrap"><: City :>:</th>
<td>
<input type="text" name="inCity" id="inCity" />
</td>
</tr>
<tr>
<th nowrap="nowrap"><: Country :>:</th>
<td>
<select name="inCountry" id="inCountry">
<option value="" selected="selected">-- <: Select country :> --</option>
<@ ListCountry @>
</select>
</td>
</tr>
<tr>
<th nowrap="nowrap"><: Company :>:</th>
<td>
<input type="text" name="inCompany" id="inCompany" />
</td>
</tr>
<tr>
<th nowrap="nowrap"><: Key Password :>:</th>
<td>
<input type="text" name="inPassword" id="inPasword" />
</td>
</tr>
<tr>
<th nowrap="nowrap"><button class="button-loader btn btn-primary" type="submit" id="button" name="inSave" id="inSave"><: Save :></button></th>
<td></td>
</tr>
</table>
<@ CSFR_Tag @>
</form>
</div>
<% endif %>
<% if isShowSelf %>
<div class="zgrid_wrapper">
<h2><: Self signed certificate :></h2>
<form action="./?module=Cer_manager&action=Makenew" method="post">
<table class="table table-striped">
<tr>
<th nowrap="nowrap"><: Domain :>:</th>
<td>
<select name="inDomain" id="inDomain">
<option value="" selected="selected">-- <: Select a domain :> --</option>
<% loop DomainList %>
<option value="<& domain &>"><& domain &></option>
<% endloop %>
</select><br>
</td>
</tr>
<tr>
<th nowrap="nowrap"><: Your Name :>:</th>
<td>
<input type="text" name="inName" id="inName" />
</td>
</tr>
<tr>
<th nowrap="nowrap"><: Domain Email :>:</th>
<td>
<input type="text" name="inAddress" id="inAddress" />
</td>
</tr>
<tr>
<th nowrap="nowrap"><: City :>:</th>
<td>
<input type="text" name="inCity" id="inCity" />
</td>
</tr>
<tr>
<th nowrap="nowrap"><: Country :>:</th>
<td>
<select name="inCountry" id="inCountry">
<option value="" selected="selected">-- <: Select country :> --</option>
<@ ListCountry @>
</select>
</td>
</tr>
<tr>
<th nowrap="nowrap"><: Company :>:</th>
<td>
<input type="text" name="inCompany" id="inCompany" />
</td>
</tr>
<tr>
<th nowrap="nowrap"><button class="button-loader btn btn-primary" type="submit" id="button" name="inSave" id="inSave"><: Save :></button></th>
<td></td>
</tr>
</table>
<@ CSFR_Tag @>
</form>
</div>
<% endif %>
<% if isBought %>
<div class="zgrid_wrapper">
<h2><: Bought certificate :></h2>
<form action="./?module=Cer_manager&action=UploadSSL" method="post" enctype="multipart/form-data">
<table class="table table-striped">
<tr>
<th nowrap="nowrap"><: Domain :>:</th>
<td>
<select name="inDomain" id="inDomain">
<option value="" selected="selected">-- <: Select a domain :> --</option>
<% loop DomainList %>
<option value="<& domain &>"><& domain &></option>
<% endloop %>
</select>
</td>
</tr>
<tr>
<th nowrap="nowrap"><: Domain Signing Certificate Key(.key) :>:</th>
<td>
<input type="file" name="inkey" id="inkey" />
</td>
</tr>
<tr>
<th nowrap="nowrap"><: Signed Server Certificate(.cer) :>:</th>
<td>
<input type="file" name="inWCA" id="inWCA" />
</td>
</tr>
<tr>
<th nowrap="nowrap"><: CA Certificate (.cer) :>:</th>
<td>
<input type="file" name="inICA" id="inICA" />
</td>
</tr>
<tr>
<th nowrap="nowrap"><button class="button-loader btn btn-primary" type="submit" id="button" name="inCreateSSL" id="inCreateSSL"><: Save :></button></th>
<td></td>
</tr>
</table>
<@ CSFR_Tag @>
</form>
</div>
<% endif %>
</div>