forked from MasaCMS/MasaCMS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Application.cfc
executable file
·139 lines (113 loc) · 5.58 KB
/
Application.cfc
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
/*
This file is part of Masa CMS. Masa CMS is based on Mura CMS, and adopts the
same licensing model. It is, therefore, licensed under the Gnu General Public License
version 2 only, (GPLv2) subject to the same special exception that appears in the licensing
notice set out below. That exception is also granted by the copyright holders of Masa CMS
also applies to this file and Masa CMS in general.
This file has been modified from the original version received from Mura CMS. The
change was made on: 2021-07-27
Although this file is based on Mura™ CMS, Masa CMS is not associated with the copyright
holders or developers of Mura™CMS, and the use of the terms Mura™ and Mura™CMS are retained
only to ensure software compatibility, and compliance with the terms of the GPLv2 and
the exception set out below. That use is not intended to suggest any commercial relationship
or endorsement of Mura™CMS by Masa CMS or its developers, copyright holders or sponsors or visa versa.
If you want an original copy of Mura™ CMS please go to murasoftware.com .
For more information about the unaffiliated Masa CMS, please go to masacms.com
Masa CMS is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, Version 2 of the License.
Masa CMS is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Masa CMS. If not, see <http://www.gnu.org/licenses/>.
The original complete licensing notice from the Mura CMS version of this file is as
follows:
This file is part of Mura CMS.
Mura CMS is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, Version 2 of the License.
Mura CMS is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Mura CMS. If not, see <http://www.gnu.org/licenses/;.
Linking Mura CMS statically or dynamically with other modules constitutes the preparation of a derivative work based on
Mura CMS. Thus, the terms and conditions of the GNU General Public License version 2 ("GPL") cover the entire combined work.
However, as a special exception, the copyright holders of Mura CMS grant you permission to combine Mura CMS with programs
or libraries that are released under the GNU Lesser General Public License version 2.1.
In addition, as a special exception, the copyright holders of Mura CMS grant you permission to combine Mura CMS with
independent software modules (plugins, themes and bundles), and to distribute these plugins, themes and bundles without
Mura CMS under the license of your choice, provided that you follow these specific guidelines:
Your custom code
• Must not alter any default objects in the Mura CMS database and
• May not alter the default display of the Mura CMS logo within Mura CMS and
• Must not alter any files in the following directories.
/admin/
/core/
/Application.cfc
/index.cfm
You may copy and distribute Mura CMS with a plug-in, theme or bundle that meets the above guidelines as a combined work
under the terms of GPL for Mura CMS, provided that you include the source code of that other code when and as the GNU GPL
requires distribution of source code.
For clarity, if you create a modified version of Mura CMS, you are not obligated to grant this special exception for your
modified version; it is your choice whether to do so, or to make such modified version available under the GNU General Public License
version 2 without this exception. You may, if you choose, apply this exception to your own modified versions of Mura CMS.
*/
component output="false" {
include "core/appcfc/applicationSettings.cfm";
if(server.coldfusion.productname != 'ColdFusion Server'){
backportdir='';
include "core/mura/backport/backport.cfm";
} else {
backportdir='core/mura/backport/';
include "#backportdir#backport.cfm";
}
if(not hasPluginMappings){
//Try and include plugin mappings
canWriteMode=true;
hasMappings=true;
canWriteMappings=true;
try{
include "plugins/mappings.cfm";
}
catch(any e){
if(e.type eq 'missingInclude'){
hasMappings=false;
}
}
if(not hasMappings){
variables.tracePoint=initTracePoint("Writing plugin/mappings.cfm");
include "core/appcfc/buildPluginMappings.cfm";
commitTracePoint(variables.tracePoint);
}
}
if(not hasPluginCFApplication){
//Try and include plugin mappings
canWriteMode=true;
hasMappings=true;
canWriteMappings=true;
try{
include "plugins/cfapplication.cfm";
}
catch(any e){
if(e.type eq 'missingInclude'){
hasMappings=false;
}
}
if(not hasMappings){
variables.tracePoint=initTracePoint("Writing config/cfapplication.cfm");
include "core/appcfc/buildPluginCFApplication.cfm";
commitTracePoint(variables.tracePoint);
}
}
include "core/appcfc/onApplicationStart_method.cfm";
include "core/appcfc/onRequestStart_scriptProtect_method.cfm";
include "core/appcfc/onRequestEnd_method.cfm";
include "core/appcfc/onSessionStart_method.cfm";
include "core/appcfc/onSessionEnd_method.cfm";
include "core/appcfc/onError_method.cfm";
include "core/appcfc/onMissingTemplate_method.cfm";
}