InPanel 1.2.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. inpanel/__init__.py +29 -0
  2. inpanel/acme.py +289 -0
  3. inpanel/aliyuncs.py +269 -0
  4. inpanel/app.py +514 -0
  5. inpanel/apt.py +223 -0
  6. inpanel/base.py +200 -0
  7. inpanel/config.py +139 -0
  8. inpanel/data/config.ini +29 -0
  9. inpanel/data/history +5 -0
  10. inpanel/data/runlogs.ini +12 -0
  11. inpanel/data/update_info.ini +4 -0
  12. inpanel/dnf.py +225 -0
  13. inpanel/lib/__init__.py +9 -0
  14. inpanel/lib/async_process.py +98 -0
  15. inpanel/lib/filelock.py +82 -0
  16. inpanel/lib/magic.py +233 -0
  17. inpanel/lib/pxssh.py +310 -0
  18. inpanel/lib/pyDes.py +867 -0
  19. inpanel/mod/__init__.py +0 -0
  20. inpanel/mod/apt.py +316 -0
  21. inpanel/mod/certificate.py +268 -0
  22. inpanel/mod/config.py +372 -0
  23. inpanel/mod/cron.py +315 -0
  24. inpanel/mod/disk.py +322 -0
  25. inpanel/mod/dnf.py +239 -0
  26. inpanel/mod/file.py +722 -0
  27. inpanel/mod/firewall.py +199 -0
  28. inpanel/mod/firewall_base.py +137 -0
  29. inpanel/mod/firewall_firewalld.py +170 -0
  30. inpanel/mod/firewall_iptables.py +176 -0
  31. inpanel/mod/firewall_macos.py +213 -0
  32. inpanel/mod/firewall_ufw.py +128 -0
  33. inpanel/mod/ftp.py +231 -0
  34. inpanel/mod/httpd.py +1205 -0
  35. inpanel/mod/lighttpd.py +26 -0
  36. inpanel/mod/login.py +98 -0
  37. inpanel/mod/mysql.py +577 -0
  38. inpanel/mod/named.py +26 -0
  39. inpanel/mod/nginx.py +2327 -0
  40. inpanel/mod/package.py +33 -0
  41. inpanel/mod/package_apt.py +62 -0
  42. inpanel/mod/package_base.py +77 -0
  43. inpanel/mod/package_dnf.py +62 -0
  44. inpanel/mod/package_map.py +366 -0
  45. inpanel/mod/package_yum.py +64 -0
  46. inpanel/mod/php.py +289 -0
  47. inpanel/mod/process.py +291 -0
  48. inpanel/mod/proftpd.py +26 -0
  49. inpanel/mod/pureftpd.py +26 -0
  50. inpanel/mod/query.py +108 -0
  51. inpanel/mod/server.py +1319 -0
  52. inpanel/mod/service.py +262 -0
  53. inpanel/mod/setting.py +228 -0
  54. inpanel/mod/shell.py +78 -0
  55. inpanel/mod/ssh.py +280 -0
  56. inpanel/mod/system.py +220 -0
  57. inpanel/mod/task.py +1337 -0
  58. inpanel/mod/ufw.py +14 -0
  59. inpanel/mod/user.py +306 -0
  60. inpanel/mod/vsftpd.py +67 -0
  61. inpanel/mod/yum.py +243 -0
  62. inpanel/plugins/__init__.py +10 -0
  63. inpanel/plugins/__pycache__/__init__.cpython-313.pyc +0 -0
  64. inpanel/plugins/acme/static/index.html +10 -0
  65. inpanel/plugins/acme/static/index.js +13 -0
  66. inpanel/plugins/shadowsocks-libev/__pycache__/info.cpython-313.pyc +0 -0
  67. inpanel/plugins/shadowsocks-libev/info.py +73 -0
  68. inpanel/plugins/shadowsocks-libev/static/index.html +70 -0
  69. inpanel/plugins/shadowsocks-libev/static/index.js +18 -0
  70. inpanel/public/css/global.css +138 -0
  71. inpanel/public/favicon.ico +0 -0
  72. inpanel/public/images/alipay.jpg +0 -0
  73. inpanel/public/images/loading.gif +0 -0
  74. inpanel/public/images/weixin.jpg +0 -0
  75. inpanel/public/index.html +94 -0
  76. inpanel/public/js/controllers/controllers.js +566 -0
  77. inpanel/public/js/controllers/database.js +590 -0
  78. inpanel/public/js/controllers/ecs.js +624 -0
  79. inpanel/public/js/controllers/file.js +940 -0
  80. inpanel/public/js/controllers/plugins.js +105 -0
  81. inpanel/public/js/controllers/service.js +1460 -0
  82. inpanel/public/js/controllers/site.js +1241 -0
  83. inpanel/public/js/controllers/utils.js +2319 -0
  84. inpanel/public/js/core.js +221 -0
  85. inpanel/public/js/directives.js +784 -0
  86. inpanel/public/js/filters.js +395 -0
  87. inpanel/public/js/services.js +257 -0
  88. inpanel/public/lib/angular/1.0.2/angular-resource.min.js +10 -0
  89. inpanel/public/lib/angular/1.0.2/angular.min.js +158 -0
  90. inpanel/public/lib/bootstrap/css/bootstrap-theme.css +587 -0
  91. inpanel/public/lib/bootstrap/css/bootstrap-theme.css.map +1 -0
  92. inpanel/public/lib/bootstrap/css/bootstrap-theme.min.css +6 -0
  93. inpanel/public/lib/bootstrap/css/bootstrap-theme.min.css.map +1 -0
  94. inpanel/public/lib/bootstrap/css/bootstrap.css +6757 -0
  95. inpanel/public/lib/bootstrap/css/bootstrap.css.map +1 -0
  96. inpanel/public/lib/bootstrap/css/bootstrap.min.css +6 -0
  97. inpanel/public/lib/bootstrap/css/bootstrap.min.css.map +1 -0
  98. inpanel/public/lib/bootstrap/fonts/glyphicons-halflings-regular.eot +0 -0
  99. inpanel/public/lib/bootstrap/fonts/glyphicons-halflings-regular.svg +288 -0
  100. inpanel/public/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf +0 -0
  101. inpanel/public/lib/bootstrap/fonts/glyphicons-halflings-regular.woff +0 -0
  102. inpanel/public/lib/bootstrap/fonts/glyphicons-halflings-regular.woff2 +0 -0
  103. inpanel/public/lib/bootstrap/img/glyphicons-halflings-white.png +0 -0
  104. inpanel/public/lib/bootstrap/img/glyphicons-halflings.png +0 -0
  105. inpanel/public/lib/bootstrap/js/bootstrap.js +2377 -0
  106. inpanel/public/lib/bootstrap/js/bootstrap.min.js +7 -0
  107. inpanel/public/lib/bootstrap/js/npm.js +13 -0
  108. inpanel/public/lib/codemirror/codemirror-compressed.js +1 -0
  109. inpanel/public/lib/codemirror/codemirror.css +173 -0
  110. inpanel/public/lib/jquery/jquery-1.12.4.min.js +5 -0
  111. inpanel/public/lib/md5/md5.js +379 -0
  112. inpanel/public/lib/md5/md5.min.js +1 -0
  113. inpanel/public/partials/database/index.html +172 -0
  114. inpanel/public/partials/database/mysql/dbedit.html +462 -0
  115. inpanel/public/partials/database/mysql/dbnew.html +348 -0
  116. inpanel/public/partials/database/mysql/useredit.html +310 -0
  117. inpanel/public/partials/database/mysql/usernew.html +97 -0
  118. inpanel/public/partials/directives/message.html +20 -0
  119. inpanel/public/partials/directives/navbar.html +25 -0
  120. inpanel/public/partials/directives/selector.html +57 -0
  121. inpanel/public/partials/directives/srvbase.html +72 -0
  122. inpanel/public/partials/directives/srvext.html +34 -0
  123. inpanel/public/partials/directives/srvfile.html +23 -0
  124. inpanel/public/partials/directives/srvinstall.html +34 -0
  125. inpanel/public/partials/directives/srvlog.html +23 -0
  126. inpanel/public/partials/directives/srvminiop.html +28 -0
  127. inpanel/public/partials/directives/srvuninstall.html +38 -0
  128. inpanel/public/partials/directives/srvupdate.html +30 -0
  129. inpanel/public/partials/ecs/account.html +156 -0
  130. inpanel/public/partials/ecs/ecs.html +198 -0
  131. inpanel/public/partials/ecs/index.html +40 -0
  132. inpanel/public/partials/ecs/setings.html +459 -0
  133. inpanel/public/partials/file/file.html +501 -0
  134. inpanel/public/partials/file/trash.html +95 -0
  135. inpanel/public/partials/ftp.html +36 -0
  136. inpanel/public/partials/log.html +83 -0
  137. inpanel/public/partials/login.html +79 -0
  138. inpanel/public/partials/logout.html +22 -0
  139. inpanel/public/partials/main.html +534 -0
  140. inpanel/public/partials/plugins/index.html +55 -0
  141. inpanel/public/partials/plugins/plugins.html +13 -0
  142. inpanel/public/partials/secure.html +13 -0
  143. inpanel/public/partials/service/apache.html +147 -0
  144. inpanel/public/partials/service/cron.html +71 -0
  145. inpanel/public/partials/service/index.html +293 -0
  146. inpanel/public/partials/service/iptables.html +40 -0
  147. inpanel/public/partials/service/lighttpd.html +63 -0
  148. inpanel/public/partials/service/mariadb.html +113 -0
  149. inpanel/public/partials/service/memcache.html +36 -0
  150. inpanel/public/partials/service/minio.html +44 -0
  151. inpanel/public/partials/service/mongodb.html +44 -0
  152. inpanel/public/partials/service/mysql.html +113 -0
  153. inpanel/public/partials/service/named.html +61 -0
  154. inpanel/public/partials/service/nginx.html +296 -0
  155. inpanel/public/partials/service/ntp.html +40 -0
  156. inpanel/public/partials/service/php.html +250 -0
  157. inpanel/public/partials/service/proftpd.html +59 -0
  158. inpanel/public/partials/service/pureftpd.html +59 -0
  159. inpanel/public/partials/service/redis.html +40 -0
  160. inpanel/public/partials/service/samba.html +58 -0
  161. inpanel/public/partials/service/sendmail.html +40 -0
  162. inpanel/public/partials/service/ssh.html +186 -0
  163. inpanel/public/partials/service/tomcat.html +65 -0
  164. inpanel/public/partials/service/vsftpd.html +195 -0
  165. inpanel/public/partials/setting.html +299 -0
  166. inpanel/public/partials/site/apache/site.html +277 -0
  167. inpanel/public/partials/site/index.html +344 -0
  168. inpanel/public/partials/site/nginx/site.html +558 -0
  169. inpanel/public/partials/sorry.html +19 -0
  170. inpanel/public/partials/storage/autofm.html +103 -0
  171. inpanel/public/partials/storage/backup.html +42 -0
  172. inpanel/public/partials/storage/index.html +360 -0
  173. inpanel/public/partials/storage/migrate.html +93 -0
  174. inpanel/public/partials/storage/movedata.html +98 -0
  175. inpanel/public/partials/storage/remote.html +77 -0
  176. inpanel/public/partials/utils/cron.html +486 -0
  177. inpanel/public/partials/utils/firewall.html +266 -0
  178. inpanel/public/partials/utils/index.html +193 -0
  179. inpanel/public/partials/utils/network.html +118 -0
  180. inpanel/public/partials/utils/process.html +239 -0
  181. inpanel/public/partials/utils/repository.html +373 -0
  182. inpanel/public/partials/utils/shell.html +28 -0
  183. inpanel/public/partials/utils/ssl.html +319 -0
  184. inpanel/public/partials/utils/time.html +109 -0
  185. inpanel/public/partials/utils/user.html +359 -0
  186. inpanel/public/robots.txt +2 -0
  187. inpanel/remote.py +109 -0
  188. inpanel/templates/file/preview.html +34 -0
  189. inpanel/templates/index.html +93 -0
  190. inpanel/utils.py +282 -0
  191. inpanel/web.py +1811 -0
  192. inpanel/yum.py +756 -0
  193. inpanel-1.2.1.dist-info/METADATA +399 -0
  194. inpanel-1.2.1.dist-info/RECORD +198 -0
  195. inpanel-1.2.1.dist-info/WHEEL +5 -0
  196. inpanel-1.2.1.dist-info/entry_points.txt +2 -0
  197. inpanel-1.2.1.dist-info/licenses/LICENSE +30 -0
  198. inpanel-1.2.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,379 @@
1
+ /*
2
+ * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
3
+ * Digest Algorithm, as defined in RFC 1321.
4
+ * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
5
+ * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
6
+ * Distributed under the BSD License
7
+ * See http://pajhome.org.uk/crypt/md5 for more info.
8
+ */
9
+
10
+ /*
11
+ * Configurable variables. You may need to tweak these to be compatible with
12
+ * the server-side, but the defaults work in most cases.
13
+ */
14
+ var hexcase = 0; /* hex output format. 0 - lowercase; 1 - uppercase */
15
+ var b64pad = ""; /* base-64 pad character. "=" for strict RFC compliance */
16
+
17
+ /*
18
+ * These are the functions you'll usually want to call
19
+ * They take string arguments and return either hex or base-64 encoded strings
20
+ */
21
+ function hex_md5(s) { return rstr2hex(rstr_md5(str2rstr_utf8(s))); }
22
+ function b64_md5(s) { return rstr2b64(rstr_md5(str2rstr_utf8(s))); }
23
+ function any_md5(s, e) { return rstr2any(rstr_md5(str2rstr_utf8(s)), e); }
24
+ function hex_hmac_md5(k, d)
25
+ { return rstr2hex(rstr_hmac_md5(str2rstr_utf8(k), str2rstr_utf8(d))); }
26
+ function b64_hmac_md5(k, d)
27
+ { return rstr2b64(rstr_hmac_md5(str2rstr_utf8(k), str2rstr_utf8(d))); }
28
+ function any_hmac_md5(k, d, e)
29
+ { return rstr2any(rstr_hmac_md5(str2rstr_utf8(k), str2rstr_utf8(d)), e); }
30
+
31
+ /*
32
+ * Perform a simple self-test to see if the VM is working
33
+ */
34
+ function md5_vm_test()
35
+ {
36
+ return hex_md5("abc").toLowerCase() == "900150983cd24fb0d6963f7d28e17f72";
37
+ }
38
+
39
+ /*
40
+ * Calculate the MD5 of a raw string
41
+ */
42
+ function rstr_md5(s)
43
+ {
44
+ return binl2rstr(binl_md5(rstr2binl(s), s.length * 8));
45
+ }
46
+
47
+ /*
48
+ * Calculate the HMAC-MD5, of a key and some data (raw strings)
49
+ */
50
+ function rstr_hmac_md5(key, data)
51
+ {
52
+ var bkey = rstr2binl(key);
53
+ if(bkey.length > 16) bkey = binl_md5(bkey, key.length * 8);
54
+
55
+ var ipad = Array(16), opad = Array(16);
56
+ for(var i = 0; i < 16; i++)
57
+ {
58
+ ipad[i] = bkey[i] ^ 0x36363636;
59
+ opad[i] = bkey[i] ^ 0x5C5C5C5C;
60
+ }
61
+
62
+ var hash = binl_md5(ipad.concat(rstr2binl(data)), 512 + data.length * 8);
63
+ return binl2rstr(binl_md5(opad.concat(hash), 512 + 128));
64
+ }
65
+
66
+ /*
67
+ * Convert a raw string to a hex string
68
+ */
69
+ function rstr2hex(input)
70
+ {
71
+ try { hexcase } catch(e) { hexcase=0; }
72
+ var hex_tab = hexcase ? "0123456789ABCDEF" : "0123456789abcdef";
73
+ var output = "";
74
+ var x;
75
+ for(var i = 0; i < input.length; i++)
76
+ {
77
+ x = input.charCodeAt(i);
78
+ output += hex_tab.charAt((x >>> 4) & 0x0F)
79
+ + hex_tab.charAt( x & 0x0F);
80
+ }
81
+ return output;
82
+ }
83
+
84
+ /*
85
+ * Convert a raw string to a base-64 string
86
+ */
87
+ function rstr2b64(input)
88
+ {
89
+ try { b64pad } catch(e) { b64pad=''; }
90
+ var tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
91
+ var output = "";
92
+ var len = input.length;
93
+ for(var i = 0; i < len; i += 3)
94
+ {
95
+ var triplet = (input.charCodeAt(i) << 16)
96
+ | (i + 1 < len ? input.charCodeAt(i+1) << 8 : 0)
97
+ | (i + 2 < len ? input.charCodeAt(i+2) : 0);
98
+ for(var j = 0; j < 4; j++)
99
+ {
100
+ if(i * 8 + j * 6 > input.length * 8) output += b64pad;
101
+ else output += tab.charAt((triplet >>> 6*(3-j)) & 0x3F);
102
+ }
103
+ }
104
+ return output;
105
+ }
106
+
107
+ /*
108
+ * Convert a raw string to an arbitrary string encoding
109
+ */
110
+ function rstr2any(input, encoding)
111
+ {
112
+ var divisor = encoding.length;
113
+ var i, j, q, x, quotient;
114
+
115
+ /* Convert to an array of 16-bit big-endian values, forming the dividend */
116
+ var dividend = Array(Math.ceil(input.length / 2));
117
+ for(i = 0; i < dividend.length; i++)
118
+ {
119
+ dividend[i] = (input.charCodeAt(i * 2) << 8) | input.charCodeAt(i * 2 + 1);
120
+ }
121
+
122
+ /*
123
+ * Repeatedly perform a long division. The binary array forms the dividend,
124
+ * the length of the encoding is the divisor. Once computed, the quotient
125
+ * forms the dividend for the next step. All remainders are stored for later
126
+ * use.
127
+ */
128
+ var full_length = Math.ceil(input.length * 8 /
129
+ (Math.log(encoding.length) / Math.log(2)));
130
+ var remainders = Array(full_length);
131
+ for(j = 0; j < full_length; j++)
132
+ {
133
+ quotient = Array();
134
+ x = 0;
135
+ for(i = 0; i < dividend.length; i++)
136
+ {
137
+ x = (x << 16) + dividend[i];
138
+ q = Math.floor(x / divisor);
139
+ x -= q * divisor;
140
+ if(quotient.length > 0 || q > 0)
141
+ quotient[quotient.length] = q;
142
+ }
143
+ remainders[j] = x;
144
+ dividend = quotient;
145
+ }
146
+
147
+ /* Convert the remainders to the output string */
148
+ var output = "";
149
+ for(i = remainders.length - 1; i >= 0; i--)
150
+ output += encoding.charAt(remainders[i]);
151
+
152
+ return output;
153
+ }
154
+
155
+ /*
156
+ * Encode a string as utf-8.
157
+ * For efficiency, this assumes the input is valid utf-16.
158
+ */
159
+ function str2rstr_utf8(input)
160
+ {
161
+ var output = "";
162
+ var i = -1;
163
+ var x, y;
164
+
165
+ while(++i < input.length)
166
+ {
167
+ /* Decode utf-16 surrogate pairs */
168
+ x = input.charCodeAt(i);
169
+ y = i + 1 < input.length ? input.charCodeAt(i + 1) : 0;
170
+ if(0xD800 <= x && x <= 0xDBFF && 0xDC00 <= y && y <= 0xDFFF)
171
+ {
172
+ x = 0x10000 + ((x & 0x03FF) << 10) + (y & 0x03FF);
173
+ i++;
174
+ }
175
+
176
+ /* Encode output as utf-8 */
177
+ if(x <= 0x7F)
178
+ output += String.fromCharCode(x);
179
+ else if(x <= 0x7FF)
180
+ output += String.fromCharCode(0xC0 | ((x >>> 6 ) & 0x1F),
181
+ 0x80 | ( x & 0x3F));
182
+ else if(x <= 0xFFFF)
183
+ output += String.fromCharCode(0xE0 | ((x >>> 12) & 0x0F),
184
+ 0x80 | ((x >>> 6 ) & 0x3F),
185
+ 0x80 | ( x & 0x3F));
186
+ else if(x <= 0x1FFFFF)
187
+ output += String.fromCharCode(0xF0 | ((x >>> 18) & 0x07),
188
+ 0x80 | ((x >>> 12) & 0x3F),
189
+ 0x80 | ((x >>> 6 ) & 0x3F),
190
+ 0x80 | ( x & 0x3F));
191
+ }
192
+ return output;
193
+ }
194
+
195
+ /*
196
+ * Encode a string as utf-16
197
+ */
198
+ function str2rstr_utf16le(input)
199
+ {
200
+ var output = "";
201
+ for(var i = 0; i < input.length; i++)
202
+ output += String.fromCharCode( input.charCodeAt(i) & 0xFF,
203
+ (input.charCodeAt(i) >>> 8) & 0xFF);
204
+ return output;
205
+ }
206
+
207
+ function str2rstr_utf16be(input)
208
+ {
209
+ var output = "";
210
+ for(var i = 0; i < input.length; i++)
211
+ output += String.fromCharCode((input.charCodeAt(i) >>> 8) & 0xFF,
212
+ input.charCodeAt(i) & 0xFF);
213
+ return output;
214
+ }
215
+
216
+ /*
217
+ * Convert a raw string to an array of little-endian words
218
+ * Characters >255 have their high-byte silently ignored.
219
+ */
220
+ function rstr2binl(input)
221
+ {
222
+ var output = Array(input.length >> 2);
223
+ for(var i = 0; i < output.length; i++)
224
+ output[i] = 0;
225
+ for(var i = 0; i < input.length * 8; i += 8)
226
+ output[i>>5] |= (input.charCodeAt(i / 8) & 0xFF) << (i%32);
227
+ return output;
228
+ }
229
+
230
+ /*
231
+ * Convert an array of little-endian words to a string
232
+ */
233
+ function binl2rstr(input)
234
+ {
235
+ var output = "";
236
+ for(var i = 0; i < input.length * 32; i += 8)
237
+ output += String.fromCharCode((input[i>>5] >>> (i % 32)) & 0xFF);
238
+ return output;
239
+ }
240
+
241
+ /*
242
+ * Calculate the MD5 of an array of little-endian words, and a bit length.
243
+ */
244
+ function binl_md5(x, len)
245
+ {
246
+ /* append padding */
247
+ x[len >> 5] |= 0x80 << ((len) % 32);
248
+ x[(((len + 64) >>> 9) << 4) + 14] = len;
249
+
250
+ var a = 1732584193;
251
+ var b = -271733879;
252
+ var c = -1732584194;
253
+ var d = 271733878;
254
+
255
+ for(var i = 0; i < x.length; i += 16)
256
+ {
257
+ var olda = a;
258
+ var oldb = b;
259
+ var oldc = c;
260
+ var oldd = d;
261
+
262
+ a = md5_ff(a, b, c, d, x[i+ 0], 7 , -680876936);
263
+ d = md5_ff(d, a, b, c, x[i+ 1], 12, -389564586);
264
+ c = md5_ff(c, d, a, b, x[i+ 2], 17, 606105819);
265
+ b = md5_ff(b, c, d, a, x[i+ 3], 22, -1044525330);
266
+ a = md5_ff(a, b, c, d, x[i+ 4], 7 , -176418897);
267
+ d = md5_ff(d, a, b, c, x[i+ 5], 12, 1200080426);
268
+ c = md5_ff(c, d, a, b, x[i+ 6], 17, -1473231341);
269
+ b = md5_ff(b, c, d, a, x[i+ 7], 22, -45705983);
270
+ a = md5_ff(a, b, c, d, x[i+ 8], 7 , 1770035416);
271
+ d = md5_ff(d, a, b, c, x[i+ 9], 12, -1958414417);
272
+ c = md5_ff(c, d, a, b, x[i+10], 17, -42063);
273
+ b = md5_ff(b, c, d, a, x[i+11], 22, -1990404162);
274
+ a = md5_ff(a, b, c, d, x[i+12], 7 , 1804603682);
275
+ d = md5_ff(d, a, b, c, x[i+13], 12, -40341101);
276
+ c = md5_ff(c, d, a, b, x[i+14], 17, -1502002290);
277
+ b = md5_ff(b, c, d, a, x[i+15], 22, 1236535329);
278
+
279
+ a = md5_gg(a, b, c, d, x[i+ 1], 5 , -165796510);
280
+ d = md5_gg(d, a, b, c, x[i+ 6], 9 , -1069501632);
281
+ c = md5_gg(c, d, a, b, x[i+11], 14, 643717713);
282
+ b = md5_gg(b, c, d, a, x[i+ 0], 20, -373897302);
283
+ a = md5_gg(a, b, c, d, x[i+ 5], 5 , -701558691);
284
+ d = md5_gg(d, a, b, c, x[i+10], 9 , 38016083);
285
+ c = md5_gg(c, d, a, b, x[i+15], 14, -660478335);
286
+ b = md5_gg(b, c, d, a, x[i+ 4], 20, -405537848);
287
+ a = md5_gg(a, b, c, d, x[i+ 9], 5 , 568446438);
288
+ d = md5_gg(d, a, b, c, x[i+14], 9 , -1019803690);
289
+ c = md5_gg(c, d, a, b, x[i+ 3], 14, -187363961);
290
+ b = md5_gg(b, c, d, a, x[i+ 8], 20, 1163531501);
291
+ a = md5_gg(a, b, c, d, x[i+13], 5 , -1444681467);
292
+ d = md5_gg(d, a, b, c, x[i+ 2], 9 , -51403784);
293
+ c = md5_gg(c, d, a, b, x[i+ 7], 14, 1735328473);
294
+ b = md5_gg(b, c, d, a, x[i+12], 20, -1926607734);
295
+
296
+ a = md5_hh(a, b, c, d, x[i+ 5], 4 , -378558);
297
+ d = md5_hh(d, a, b, c, x[i+ 8], 11, -2022574463);
298
+ c = md5_hh(c, d, a, b, x[i+11], 16, 1839030562);
299
+ b = md5_hh(b, c, d, a, x[i+14], 23, -35309556);
300
+ a = md5_hh(a, b, c, d, x[i+ 1], 4 , -1530992060);
301
+ d = md5_hh(d, a, b, c, x[i+ 4], 11, 1272893353);
302
+ c = md5_hh(c, d, a, b, x[i+ 7], 16, -155497632);
303
+ b = md5_hh(b, c, d, a, x[i+10], 23, -1094730640);
304
+ a = md5_hh(a, b, c, d, x[i+13], 4 , 681279174);
305
+ d = md5_hh(d, a, b, c, x[i+ 0], 11, -358537222);
306
+ c = md5_hh(c, d, a, b, x[i+ 3], 16, -722521979);
307
+ b = md5_hh(b, c, d, a, x[i+ 6], 23, 76029189);
308
+ a = md5_hh(a, b, c, d, x[i+ 9], 4 , -640364487);
309
+ d = md5_hh(d, a, b, c, x[i+12], 11, -421815835);
310
+ c = md5_hh(c, d, a, b, x[i+15], 16, 530742520);
311
+ b = md5_hh(b, c, d, a, x[i+ 2], 23, -995338651);
312
+
313
+ a = md5_ii(a, b, c, d, x[i+ 0], 6 , -198630844);
314
+ d = md5_ii(d, a, b, c, x[i+ 7], 10, 1126891415);
315
+ c = md5_ii(c, d, a, b, x[i+14], 15, -1416354905);
316
+ b = md5_ii(b, c, d, a, x[i+ 5], 21, -57434055);
317
+ a = md5_ii(a, b, c, d, x[i+12], 6 , 1700485571);
318
+ d = md5_ii(d, a, b, c, x[i+ 3], 10, -1894986606);
319
+ c = md5_ii(c, d, a, b, x[i+10], 15, -1051523);
320
+ b = md5_ii(b, c, d, a, x[i+ 1], 21, -2054922799);
321
+ a = md5_ii(a, b, c, d, x[i+ 8], 6 , 1873313359);
322
+ d = md5_ii(d, a, b, c, x[i+15], 10, -30611744);
323
+ c = md5_ii(c, d, a, b, x[i+ 6], 15, -1560198380);
324
+ b = md5_ii(b, c, d, a, x[i+13], 21, 1309151649);
325
+ a = md5_ii(a, b, c, d, x[i+ 4], 6 , -145523070);
326
+ d = md5_ii(d, a, b, c, x[i+11], 10, -1120210379);
327
+ c = md5_ii(c, d, a, b, x[i+ 2], 15, 718787259);
328
+ b = md5_ii(b, c, d, a, x[i+ 9], 21, -343485551);
329
+
330
+ a = safe_add(a, olda);
331
+ b = safe_add(b, oldb);
332
+ c = safe_add(c, oldc);
333
+ d = safe_add(d, oldd);
334
+ }
335
+ return Array(a, b, c, d);
336
+ }
337
+
338
+ /*
339
+ * These functions implement the four basic operations the algorithm uses.
340
+ */
341
+ function md5_cmn(q, a, b, x, s, t)
342
+ {
343
+ return safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s),b);
344
+ }
345
+ function md5_ff(a, b, c, d, x, s, t)
346
+ {
347
+ return md5_cmn((b & c) | ((~b) & d), a, b, x, s, t);
348
+ }
349
+ function md5_gg(a, b, c, d, x, s, t)
350
+ {
351
+ return md5_cmn((b & d) | (c & (~d)), a, b, x, s, t);
352
+ }
353
+ function md5_hh(a, b, c, d, x, s, t)
354
+ {
355
+ return md5_cmn(b ^ c ^ d, a, b, x, s, t);
356
+ }
357
+ function md5_ii(a, b, c, d, x, s, t)
358
+ {
359
+ return md5_cmn(c ^ (b | (~d)), a, b, x, s, t);
360
+ }
361
+
362
+ /*
363
+ * Add integers, wrapping at 2^32. This uses 16-bit operations internally
364
+ * to work around bugs in some JS interpreters.
365
+ */
366
+ function safe_add(x, y)
367
+ {
368
+ var lsw = (x & 0xFFFF) + (y & 0xFFFF);
369
+ var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
370
+ return (msw << 16) | (lsw & 0xFFFF);
371
+ }
372
+
373
+ /*
374
+ * Bitwise rotate a 32-bit number to the left.
375
+ */
376
+ function bit_rol(num, cnt)
377
+ {
378
+ return (num << cnt) | (num >>> (32 - cnt));
379
+ }
@@ -0,0 +1 @@
1
+ var hexcase=0;var b64pad="";function hex_md5(a){return rstr2hex(rstr_md5(str2rstr_utf8(a)))}function b64_md5(a){return rstr2b64(rstr_md5(str2rstr_utf8(a)))}function any_md5(a,b){return rstr2any(rstr_md5(str2rstr_utf8(a)),b)}function hex_hmac_md5(a,b){return rstr2hex(rstr_hmac_md5(str2rstr_utf8(a),str2rstr_utf8(b)))}function b64_hmac_md5(a,b){return rstr2b64(rstr_hmac_md5(str2rstr_utf8(a),str2rstr_utf8(b)))}function any_hmac_md5(a,c,b){return rstr2any(rstr_hmac_md5(str2rstr_utf8(a),str2rstr_utf8(c)),b)}function md5_vm_test(){return hex_md5("abc").toLowerCase()=="900150983cd24fb0d6963f7d28e17f72"}function rstr_md5(a){return binl2rstr(binl_md5(rstr2binl(a),a.length*8))}function rstr_hmac_md5(c,f){var e=rstr2binl(c);if(e.length>16){e=binl_md5(e,c.length*8)}var a=Array(16),d=Array(16);for(var b=0;b<16;b++){a[b]=e[b]^909522486;d[b]=e[b]^1549556828}var g=binl_md5(a.concat(rstr2binl(f)),512+f.length*8);return binl2rstr(binl_md5(d.concat(g),512+128))}function rstr2hex(c){try{hexcase}catch(g){hexcase=0}var f=hexcase?"0123456789ABCDEF":"0123456789abcdef";var b="";var a;for(var d=0;d<c.length;d++){a=c.charCodeAt(d);b+=f.charAt((a>>>4)&15)+f.charAt(a&15)}return b}function rstr2b64(c){try{b64pad}catch(h){b64pad=""}var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var b="";var a=c.length;for(var f=0;f<a;f+=3){var k=(c.charCodeAt(f)<<16)|(f+1<a?c.charCodeAt(f+1)<<8:0)|(f+2<a?c.charCodeAt(f+2):0);for(var d=0;d<4;d++){if(f*8+d*6>c.length*8){b+=b64pad}else{b+=g.charAt((k>>>6*(3-d))&63)}}}return b}function rstr2any(m,c){var b=c.length;var l,f,a,n,e;var k=Array(Math.ceil(m.length/2));for(l=0;l<k.length;l++){k[l]=(m.charCodeAt(l*2)<<8)|m.charCodeAt(l*2+1)}var h=Math.ceil(m.length*8/(Math.log(c.length)/Math.log(2)));var g=Array(h);for(f=0;f<h;f++){e=Array();n=0;for(l=0;l<k.length;l++){n=(n<<16)+k[l];a=Math.floor(n/b);n-=a*b;if(e.length>0||a>0){e[e.length]=a}}g[f]=n;k=e}var d="";for(l=g.length-1;l>=0;l--){d+=c.charAt(g[l])}return d}function str2rstr_utf8(c){var b="";var d=-1;var a,e;while(++d<c.length){a=c.charCodeAt(d);e=d+1<c.length?c.charCodeAt(d+1):0;if(55296<=a&&a<=56319&&56320<=e&&e<=57343){a=65536+((a&1023)<<10)+(e&1023);d++}if(a<=127){b+=String.fromCharCode(a)}else{if(a<=2047){b+=String.fromCharCode(192|((a>>>6)&31),128|(a&63))}else{if(a<=65535){b+=String.fromCharCode(224|((a>>>12)&15),128|((a>>>6)&63),128|(a&63))}else{if(a<=2097151){b+=String.fromCharCode(240|((a>>>18)&7),128|((a>>>12)&63),128|((a>>>6)&63),128|(a&63))}}}}}return b}function str2rstr_utf16le(b){var a="";for(var c=0;c<b.length;c++){a+=String.fromCharCode(b.charCodeAt(c)&255,(b.charCodeAt(c)>>>8)&255)}return a}function str2rstr_utf16be(b){var a="";for(var c=0;c<b.length;c++){a+=String.fromCharCode((b.charCodeAt(c)>>>8)&255,b.charCodeAt(c)&255)}return a}function rstr2binl(b){var a=Array(b.length>>2);for(var c=0;c<a.length;c++){a[c]=0}for(var c=0;c<b.length*8;c+=8){a[c>>5]|=(b.charCodeAt(c/8)&255)<<(c%32)}return a}function binl2rstr(b){var a="";for(var c=0;c<b.length*32;c+=8){a+=String.fromCharCode((b[c>>5]>>>(c%32))&255)}return a}function binl_md5(p,k){p[k>>5]|=128<<((k)%32);p[(((k+64)>>>9)<<4)+14]=k;var o=1732584193;var n=-271733879;var m=-1732584194;var l=271733878;for(var g=0;g<p.length;g+=16){var j=o;var h=n;var f=m;var e=l;o=md5_ff(o,n,m,l,p[g+0],7,-680876936);l=md5_ff(l,o,n,m,p[g+1],12,-389564586);m=md5_ff(m,l,o,n,p[g+2],17,606105819);n=md5_ff(n,m,l,o,p[g+3],22,-1044525330);o=md5_ff(o,n,m,l,p[g+4],7,-176418897);l=md5_ff(l,o,n,m,p[g+5],12,1200080426);m=md5_ff(m,l,o,n,p[g+6],17,-1473231341);n=md5_ff(n,m,l,o,p[g+7],22,-45705983);o=md5_ff(o,n,m,l,p[g+8],7,1770035416);l=md5_ff(l,o,n,m,p[g+9],12,-1958414417);m=md5_ff(m,l,o,n,p[g+10],17,-42063);n=md5_ff(n,m,l,o,p[g+11],22,-1990404162);o=md5_ff(o,n,m,l,p[g+12],7,1804603682);l=md5_ff(l,o,n,m,p[g+13],12,-40341101);m=md5_ff(m,l,o,n,p[g+14],17,-1502002290);n=md5_ff(n,m,l,o,p[g+15],22,1236535329);o=md5_gg(o,n,m,l,p[g+1],5,-165796510);l=md5_gg(l,o,n,m,p[g+6],9,-1069501632);m=md5_gg(m,l,o,n,p[g+11],14,643717713);n=md5_gg(n,m,l,o,p[g+0],20,-373897302);o=md5_gg(o,n,m,l,p[g+5],5,-701558691);l=md5_gg(l,o,n,m,p[g+10],9,38016083);m=md5_gg(m,l,o,n,p[g+15],14,-660478335);n=md5_gg(n,m,l,o,p[g+4],20,-405537848);o=md5_gg(o,n,m,l,p[g+9],5,568446438);l=md5_gg(l,o,n,m,p[g+14],9,-1019803690);m=md5_gg(m,l,o,n,p[g+3],14,-187363961);n=md5_gg(n,m,l,o,p[g+8],20,1163531501);o=md5_gg(o,n,m,l,p[g+13],5,-1444681467);l=md5_gg(l,o,n,m,p[g+2],9,-51403784);m=md5_gg(m,l,o,n,p[g+7],14,1735328473);n=md5_gg(n,m,l,o,p[g+12],20,-1926607734);o=md5_hh(o,n,m,l,p[g+5],4,-378558);l=md5_hh(l,o,n,m,p[g+8],11,-2022574463);m=md5_hh(m,l,o,n,p[g+11],16,1839030562);n=md5_hh(n,m,l,o,p[g+14],23,-35309556);o=md5_hh(o,n,m,l,p[g+1],4,-1530992060);l=md5_hh(l,o,n,m,p[g+4],11,1272893353);m=md5_hh(m,l,o,n,p[g+7],16,-155497632);n=md5_hh(n,m,l,o,p[g+10],23,-1094730640);o=md5_hh(o,n,m,l,p[g+13],4,681279174);l=md5_hh(l,o,n,m,p[g+0],11,-358537222);m=md5_hh(m,l,o,n,p[g+3],16,-722521979);n=md5_hh(n,m,l,o,p[g+6],23,76029189);o=md5_hh(o,n,m,l,p[g+9],4,-640364487);l=md5_hh(l,o,n,m,p[g+12],11,-421815835);m=md5_hh(m,l,o,n,p[g+15],16,530742520);n=md5_hh(n,m,l,o,p[g+2],23,-995338651);o=md5_ii(o,n,m,l,p[g+0],6,-198630844);l=md5_ii(l,o,n,m,p[g+7],10,1126891415);m=md5_ii(m,l,o,n,p[g+14],15,-1416354905);n=md5_ii(n,m,l,o,p[g+5],21,-57434055);o=md5_ii(o,n,m,l,p[g+12],6,1700485571);l=md5_ii(l,o,n,m,p[g+3],10,-1894986606);m=md5_ii(m,l,o,n,p[g+10],15,-1051523);n=md5_ii(n,m,l,o,p[g+1],21,-2054922799);o=md5_ii(o,n,m,l,p[g+8],6,1873313359);l=md5_ii(l,o,n,m,p[g+15],10,-30611744);m=md5_ii(m,l,o,n,p[g+6],15,-1560198380);n=md5_ii(n,m,l,o,p[g+13],21,1309151649);o=md5_ii(o,n,m,l,p[g+4],6,-145523070);l=md5_ii(l,o,n,m,p[g+11],10,-1120210379);m=md5_ii(m,l,o,n,p[g+2],15,718787259);n=md5_ii(n,m,l,o,p[g+9],21,-343485551);o=safe_add(o,j);n=safe_add(n,h);m=safe_add(m,f);l=safe_add(l,e)}return Array(o,n,m,l)}function md5_cmn(h,e,d,c,g,f){return safe_add(bit_rol(safe_add(safe_add(e,h),safe_add(c,f)),g),d)}function md5_ff(g,f,k,j,e,i,h){return md5_cmn((f&k)|((~f)&j),g,f,e,i,h)}function md5_gg(g,f,k,j,e,i,h){return md5_cmn((f&j)|(k&(~j)),g,f,e,i,h)}function md5_hh(g,f,k,j,e,i,h){return md5_cmn(f^k^j,g,f,e,i,h)}function md5_ii(g,f,k,j,e,i,h){return md5_cmn(k^(f|(~j)),g,f,e,i,h)}function safe_add(a,d){var c=(a&65535)+(d&65535);var b=(a>>16)+(d>>16)+(c>>16);return(b<<16)|(c&65535)}function bit_rol(a,b){return(a<<b)|(a>>>(32-b))};
@@ -0,0 +1,172 @@
1
+ <div navbar ng-init="currentItem='database'"></div>
2
+ <div ng-hide="loaded">
3
+ <div loading></div>
4
+ </div>
5
+
6
+ <div id="main" ng-init="load()" ng-show="loaded" style="display:none">
7
+ <div class="module-header">
8
+ <h3>数据库管理</h3>
9
+ </div>
10
+
11
+ <div class="tabbable" ng-show="has_dbserver">
12
+ <ul class="nav nav-tabs">
13
+ <li ng-class="'active' | iftrue:activeTabName=='mysql'" ng-show="mysql_supported" style="display:none"><a href="#mysql" ng-click="sec('mysql')" data-toggle="tab">MySQL</a></li>
14
+ <li ng-class="'active' | iftrue:activeTabName=='mongodb'" ng-show="mongodb_supported" style="display:none"><a href="#mongodb" ng-click="sec('mongodb')" data-toggle="tab">MongoDB</a></li>
15
+ <li ng-class="'active' | iftrue:activeTabName=='redis'" ng-show="redis_supported" style="display:none"><a href="#redis" ng-click="sec('redis')" data-toggle="tab">Redis</a></li>
16
+ <li ng-class="'active' | iftrue:activeTabName=='memcache'" ng-show="memcache_supported" style="display:none"><a href="#memcache" ng-click="sec('memcache')" data-toggle="tab">Memcache</a></li>
17
+ </ul>
18
+ <div class="tab-content">
19
+ <div class="tab-pane" ng-class="'active' | iftrue:activeTabName=='mysql'" ng-show="mysql_supported" style="display:none" id="mysql">
20
+ <!-- 请输入数据库管理员 root 的密码后继续操作,需改进为复用模板 -->
21
+ <div class="panel panel-warning" ng-show="!$mysql.password_validated">
22
+ <div class="panel-heading">
23
+ <div class="panel-title">
24
+ <i class="glyphicon glyphicon-lock"></i>
25
+ <span> 请输入数据库管理员 root 的密码</span>
26
+ </div>
27
+ </div>
28
+ <div class="panel-body">
29
+ <form class="form-horizontal" onsubmit="return false" method="get" action="/">
30
+ <div class="form-group form-inline">
31
+ <label class="col-sm-2 control-label" for="password">管理员密码</label>
32
+ <div class="col-sm-10">
33
+ <input class="form-control" ng-model="$mysql.password" type="password" id="password" ng-disabled="processing" placeholder="管理员密码" autocomplete="off" autofocus>
34
+ </div>
35
+ </div>
36
+ <div class="form-group form-inline">
37
+ <div class="col-sm-2 control-label"></div>
38
+ <div class="col-sm-10">
39
+ <button class="btn btn-primary" ng-click="validate_password()" ng-disabled="processing">
40
+ <i class="glyphicon glyphicon-user"></i> <span>登录 MySQL</span>
41
+ </button>
42
+ <span style="padding-left:20px">
43
+ <a href="#/service/mysql?s=password">忘记密码?</a>
44
+ </span>
45
+ </div>
46
+ </div>
47
+ </form>
48
+ </div>
49
+ </div>
50
+
51
+ <div ng-show="$mysql.password_validated && dbloading">
52
+ <div waiting ng-init="waitingText='正在加载数据库列表,请稍候...'"></div>
53
+ </div>
54
+ <div class="panel panel-default" ng-show="$mysql.password_validated && !dbloading">
55
+ <div class="panel-heading">
56
+ <div class="panel-title">
57
+ <i class="glyphicon glyphicon-list-alt"></i>
58
+ <span> 数据库列表</span>
59
+ <div class="pull-right">
60
+ <a class="btn btn-default btn-xs" href="#/database/mysql/db/new"><i class="glyphicon glyphicon-plus"></i> 新建数据库</a>
61
+ </div>
62
+ </div>
63
+ </div>
64
+ <table class="table table-hover table-bordered table-condensed">
65
+ <thead>
66
+ <tr>
67
+ <th style="width:20px" class="text-right">#</th>
68
+ <th>数据库名</th>
69
+ <th>字符集</th>
70
+ <th>整理</th>
71
+ <th class="text-right">表数量</th>
72
+ <th class="text-right">数据大小</th>
73
+ <th class="text-right">索引大小</th>
74
+ <th class="text-right">总大小</th>
75
+ <th style="width:100px">操作</th>
76
+ </tr>
77
+ </thead>
78
+ <tbody>
79
+ <tr ng-repeat="db in dbs">
80
+ <td class="text-right">{{$index+1}}</td>
81
+ <td>{{db.name}}</td>
82
+ <td>{{db.charset}}</td>
83
+ <td>{{db.collation}}</td>
84
+ <td class="text-right">{{db.tables}}</td>
85
+ <td class="text-right" ng-bind-html-unsafe="db.datasize | bytes2human"></td>
86
+ <td class="text-right" ng-bind-html-unsafe="db.indexsize | bytes2human"></td>
87
+ <td class="text-right" ng-bind-html-unsafe="db.totalsize | bytes2human"></td>
88
+ <td>
89
+ <div class="btn-group">
90
+ <a class="btn btn-default btn-xs" href="#/database/mysql/db/edit/{{db.name|urlencode|urlencode}}">
91
+ <i class="icon-wrench"></i> 数据库管理
92
+ </a>
93
+ </div>
94
+ </td>
95
+ </tr>
96
+ </tbody>
97
+ </table>
98
+ </div>
99
+
100
+ <div ng-show="$mysql.password_validated && userloading">
101
+ <div waiting ng-init="waitingText='正在加载用户列表,请稍候...'"></div>
102
+ </div>
103
+ <div class="panel panel-default" ng-show="$mysql.password_validated && !userloading">
104
+ <div class="panel-heading">
105
+ <div class="panel-title">
106
+ <i class="glyphicon glyphicon-list-alt"></i>
107
+ <span> 用户列表</span>
108
+ <div class="pull-right">
109
+ <a class="btn btn-default btn-xs" href="#/database/mysql/user/new"><i class="glyphicon glyphicon-plus"></i> 添加新用户</a>
110
+ </div>
111
+ </div>
112
+ </div>
113
+ <table class="table table-hover table-bordered table-condensed">
114
+ <thead>
115
+ <tr>
116
+ <th style="width:20px" class="text-right">#</th>
117
+ <th>用户名</th>
118
+ <th>主机</th>
119
+ <th>密码</th>
120
+ <th>全局权限</th>
121
+ <th>授权权限</th>
122
+ <th style="width:90px">操作</th>
123
+ </tr>
124
+ </thead>
125
+ <tbody>
126
+ <tr ng-repeat="user in users">
127
+ <td class="text-right">{{$index+1}}</td>
128
+ <td ng-bind-html-unsafe="user.User | mysql.user"></td>
129
+ <td>{{user.Host}}</td>
130
+ <td ng-bind-html-unsafe="user.Password | mysql.haspasswd"></td>
131
+ <td ng-bind-html-unsafe="user | mysql.privs:'global'"></td>
132
+ <td ng-bind-html-unsafe="user.Grant_priv | mysql.grant"></td>
133
+ <td>
134
+ <a class="btn btn-default btn-xs" href="#/database/mysql/user/edit/{{user.User|urlencode|urlencode}}%40{{user.Host|urlencode|urlencode}}" ng-show="user.User!=''">
135
+ <i class="icon-wrench"></i> 用户设置
136
+ </a>
137
+ </td>
138
+ </tr>
139
+ </tbody>
140
+ </table>
141
+ </div>
142
+ </div>
143
+ <div class="tab-pane" ng-class="'active' | iftrue:activeTabName=='mongodb'" ng-show="mongodb_supported" style="display:none" id="mongodb">
144
+ <div>
145
+ <div waiting ng-init="waitingText='暂不支持 MongoDB,请等待新版本...'"></div>
146
+ </div>
147
+ </div>
148
+ <div class="tab-pane" ng-class="'active' | iftrue:activeTabName=='redis'" ng-show="redis_supported" style="display:none" id="redis">
149
+ <div>
150
+ <div waiting ng-init="waitingText='暂不支持 Redis,请等待新版本...'"></div>
151
+ </div>
152
+ </div>
153
+ <div class="tab-pane" ng-class="'active' | iftrue:activeTabName=='memcache'" ng-show="memcache_supported" style="display:none" id="memcache">
154
+ <div>
155
+ <div waiting ng-init="waitingText='暂不支持 Memcache,请等待新版本...'"></div>
156
+ </div>
157
+ </div>
158
+ </div>
159
+ </div>
160
+
161
+ <div class="panel panel-info" ng-hide="has_dbserver" value="install" style="display:none">
162
+ <div class="panel-heading">
163
+ <div class="panel-title">未检测到数据库</div>
164
+ </div>
165
+ <div class="panel-body">
166
+ <p>检测到系统中未安装数据库。</p>
167
+ <p>请先安装数据库服务再继续操作。</p>
168
+ <p><a class="btn btn-default" href="#/service?s=database">立即安装</a></p>
169
+ </div>
170
+ </div>
171
+
172
+ </div>