-
Notifications
You must be signed in to change notification settings - Fork 294
Expand file tree
/
Copy pathindex.cfm
More file actions
312 lines (222 loc) · 8.85 KB
/
index.cfm
File metadata and controls
312 lines (222 loc) · 8.85 KB
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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
<cfscript>
extURL="https://download.lucee.org/";
configURL="/lucee/admin.cfm";
wikiURL="https://docs.lucee.org/index.html";
gitURL="https://github.com/lucee/Lucee";
adminURL="#CGI.CONTEXT_PATH#/lucee/admin.cfm";
webAdminURL="#CGI.CONTEXT_PATH#/lucee/admin/web.cfm";
serverAdminURL="#CGI.CONTEXT_PATH#/lucee/admin/server.cfm";
docURL="#CGI.CONTEXT_PATH#/lucee/doc.cfm";
mailinglistURL="https://dev.lucee.org/";
profURL="https://lucee.org/get-support/consulting.html";
issueURL="https://luceeserver.atlassian.net/projects/LDEV/issues";
newURL="http://docs.lucee.org/guides/lucee-5.html";
function getExtensionsAsArray() {
var qry=extensionlist();
querySort(qry, "name");
var data=[:];
loop query=qry {
data[qry.name]=qry.version;
}
return data;
}
function getConfig() {
var pc=getPageContext();
var cf=pc.getConfig();
var result={};
result.single=listFirst(server.lucee.version,".")>5 && cf.getMode()== 1;
result.server=cf.getConfigFile()&"";
if(!result.single) {
var dir = cf.getServerConfigDir();
var srv = dir&"/.CFConfig.json";
if(!fileExists(srv)) srv=dir&"/config.json";
result.web=result.server;
result.server=srv;
}
return result;
}
config=getConfig();
</cfscript><cfoutput><!DOCTYPE html>
<html>
<head>
<title>Lucee Docker</title>
<link rel="stylesheet" type="text/css" href="assets/css/lib/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800">
<!--[if lte IE 8]><link rel="stylesheet" type="text/css" href="#cgi.context_path#/assets/css/lib/ie8.css"><![endif]-->
<link rel="stylesheet" type="text/css" href="assets/css/core/_ed07b761.core.min.css">
<link rel="stylesheet" type="text/css" href="assets/css//json.css">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<script>
function syntaxHighlight(json) {
if (typeof json != 'string') {
json = JSON.stringify(json, undefined, 2);
}
json = json.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:\s*)?|\b(true|false|null)\b|\d+)/g, function (match) {
var cls = 'number';
if (/^"/.test(match)) {
if (/:$/.test(match)) {
cls = 'key';
} else {
cls = 'string';
}
} else if (/true|false/.test(match)) {
cls = 'boolean';
} else if (/null/.test(match)) {
cls = 'null';
}
return '<span class="' + cls + '">' + match + '</span>';
});
}
function copyJson(name, button) {
const pre = document.getElementById(name);
const textArea = document.createElement('textarea');
textArea.value = pre.innerText;
document.body.appendChild(textArea);
textArea.select();
document.execCommand('copy');
document.body.removeChild(textArea);
const originalText = button.textContent;
button.textContent = 'copied';
setTimeout(() => {
button.textContent = originalText;
}, 3000);
}
</script>
</head>
<body class="sub-page">
<div class="main-wrapper">
<section id="page-banner" class="page-banner">
<div class="container">
<div class="banner-content">
<cfoutput>
<img src="assets/img/lucee-white.png" alt="Lucee" width="300">
<h1>Welcome to your Lucee Docker Installation!</h1>
<p class="lead-text">You are now successfully running Lucee #server.lucee.version# in Docker!</p>
</cfoutput>
</div>
</div>
</section>
<section id="contents">
<div class="container full-width">
<div class="row">
<div class="col-md-8 main-content">
<div class="content-wrap">
<ul class="listing border-light">
<cfoutput>
<li class="listing-item thumb-large">
<div class="listing-thumb">
<a href="#extURL#">
<img src="assets/img/img-ext.png" alt="">
</a>
</div>
<div class="listing-content">
<h2 class="title">
<a href="#extURL#">Installed Extensions</a>
</h2>
<ul>
<cfloop struct="#getExtensionsAsArray()#" index="name" item="version">
<li>#name# (#version#)</li>
</cfloop>
</ul>
</div>
<div class="clearfix"></div>
</li>
<li class="listing-item thumb-large">
<div class="listing-thumb">
<a href="#configURL#">
<img src="assets/img/img-config.png" alt="">
</a>
</div>
<div class="listing-content">
<h2 class="title">
<a href="#configURL#">Configuration</a>
</h2>
<cfif not config.single><h3>Server Configuration</h3></cfif>
<pre class="json-display" id="jsons">#fileRead(config.server)#</pre>
<button class="copy-button" onclick="copyJson('jsons',this)">copy</button>
<cfif not config.single><br><br><h3>Web Configuration</h3>
<pre class="json-display" id="jsonw">#fileRead(config.web)#</pre>
<button class="copy-button" onclick="copyJson('jsonw',this)">copy</button></cfif>
</div>
<div class="clearfix"></div>
</li>
</cfoutput>
</ul>
</div>
</div>
<div class="col-md-4 sidebar">
<div class="sidebar-wrap">
<cfoutput>
<div class="widget widget-text">
<h3 class="widget-title">General Information</h3>
<p>#server.coldfusion.productname# #server.lucee.version#<br>
Mode: #config.single?"Single":"Multi"#<br>
OS: #server.os.name# #server.os.version?:""# (#server.os.archModel#bit)<br>
Java: #server.java.version?:""# (#server.java.vendor?:""#)<br>
Time Zone: #getTimeZone()#<br>
Locale: #ucFirst(GetLocale())#</p>
<h3 class="widget-title">Related Websites</h3>
<!--- lucee.org --->
<p class="file-link"><a href="http://www.lucee.org">Lucee Association Switzerland</a></p>
<p>Non-profit custodians and maintainers of the Lucee Project</p>
<!--- lucee.org --->
<p class="file-link"><a href="https://github.com/lucee/lucee-dockerfiles">Lucee Docker Files</a></p>
<p>A project that provides the code needed to build and run Lucee Docker instances for your CFML applications.</p>
<!--- Bitbucket
<p class="file-link">Lucee Bitbucket</a></p>
<p>Access the source code and builds</p> --->
<!--- Mailinglist --->
<p class="file-link"><a href="##">Get Involved</a></p>
<p>
Get involved in the Lucee Project!<br />
- Engage with other Lucee community members via our <a href="#mailinglistURL#">forums/mailing list</a><br />
- <a href="#issueURL#">Submitting</a> bugs and feature requests<br />
- <a href="#gitURL#">Contribute</a> to the code<br />
- <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=LKLC7KH4JRQ8J&">Support</a> the project<br />
</p>
<!--- Prof Services --->
<p class="file-link"><a href="#profURL#">Professional Services</a></p>
<p>Whether you need installation support or are looking for other professional services. Access our directory of providers</p>
</div>
</cfoutput>
</div>
</div>
</div>
</div>
</section>
<footer id="subhead">
<div class="footer-bot">
<div class="container">
<div class="row">
<div class="col-md-2 col-sm-4">
<a href="/" class="footer-logo">
<img src="assets/img/lucee-white.png" alt="Lucee">
</a>
</div>
<div class="col-md-5 col-sm-4">
<p class="copyright-text">Copyright © #year(now())# by the Lucee Association Switzerland</p>
</div>
</div>
</div>
</div>
</footer><!-- End of footer -->
</div> <!-- End of .main-wrapper -->
<script src="#cgi.context_path#/assets/js/lib/jquery-1.10.1.min.js"></script>
<script src="#cgi.context_path#/assets/js/lib/bootstrap.min.js"></script>
<script src="#cgi.context_path#/assets/js/core/_38444bee.core.min.js"></script>
<script src="#cgi.context_path#/assets/js/lib/SmoothScroll.js"></script>
<script>
const pres = document.getElementById('jsons');
pres.innerHTML = syntaxHighlight(pres.innerText);
<cfif not config.single>
const prew = document.getElementById('jsonw');
prew.innerHTML = syntaxHighlight(prew.innerText);
</cfif>
</script>
</body>
</html></cfoutput>