-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApplication.cfc
More file actions
executable file
·57 lines (48 loc) · 1.77 KB
/
Copy pathApplication.cfc
File metadata and controls
executable file
·57 lines (48 loc) · 1.77 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
component extends="org.corfield.framework" {
this.name = "PDFProtector";
this.javaSettings = {LoadPaths = ["/lib"], loadColdFusionClassPath = true, reloadOnChange = true, watchInterval = 100, watchExtensions = "jar"};
this.wschannels=[{name = "upload"}];
variables.framework = {
// whether or not to use subsystems:
usingSubsystems = false,
// the URL variable to reload the controller/service cache:
reload = 'reload',
// the value of the reload variable that authorizes the reload:
password = 'true',
// debugging flag to force reload of cache on each request:
reloadApplicationOnEveryRequest = true
};
function setupRequest() {
// use setupRequest to do initialization per request
request.context.startTime = getTickCount();
if(StructKeyExists(url, variables.framework.reload) AND url[variables.framework.reload] EQ variables.framework.password) {
setupApplication();
}
}
function setupApplication() {
application.name = "PDFProtector";
application.pathToPDFProtector = "http://localhost:8501/PDFProtector/";
application.detectorFactory = CreateObject("java", "com.cybozu.labs.langdetect.DetectorFactory");
try {
application.detectorFactory.loadProfile(ExpandPath("lib/profiles"));
}
catch(any ex) {
}
application.labels = {
EN = {
footer = "This material is copyright and is licensed for the sole use by *name* on *date*"
},
FR = {
footer = "Ce matériel est protégé par droit d'auteur et est autorisé à l'usage exclusif par *name* sur *date*"
},
NL = {
footer = "Dit materiaal is auteursrechtelijk beschermd en in licentie gegeven voor exclusieve gebruik aan *name* op *date*"
}
};
application.locale = {
EN = "English (UK)",
FR = "French (Standard)",
NL = "Dutch (Standard)"
};
}
}