| 1 | <!--- This file is part of Mura CMS. |
|---|
| 2 | |
|---|
| 3 | Mura CMS is free software: you can redistribute it and/or modify |
|---|
| 4 | it under the terms of the GNU General Public License as published by |
|---|
| 5 | the Free Software Foundation, Version 2 of the License. |
|---|
| 6 | |
|---|
| 7 | Mura CMS is distributed in the hope that it will be useful, |
|---|
| 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 10 | GNU General Public License for more details. |
|---|
| 11 | |
|---|
| 12 | You should have received a copy of the GNU General Public License |
|---|
| 13 | along with Mura CMS. If not, see <http://www.gnu.org/licenses/>. |
|---|
| 14 | |
|---|
| 15 | Linking Mura CMS statically or dynamically with other modules constitutes the preparation of a derivative work based on |
|---|
| 16 | Mura CMS. Thus, the terms and conditions of the GNU General Public License version 2 ("GPL") cover the entire combined work. |
|---|
| 17 | |
|---|
| 18 | However, as a special exception, the copyright holders of Mura CMS grant you permission to combine Mura CMS with programs |
|---|
| 19 | or libraries that are released under the GNU Lesser General Public License version 2.1. |
|---|
| 20 | |
|---|
| 21 | In addition, as a special exception, the copyright holders of Mura CMS grant you permission to combine Mura CMS with |
|---|
| 22 | independent software modules (plugins, themes and bundles), and to distribute these plugins, themes and bundles without |
|---|
| 23 | Mura CMS under the license of your choice, provided that you follow these specific guidelines: |
|---|
| 24 | |
|---|
| 25 | Your custom code |
|---|
| 26 | |
|---|
| 27 | ⢠Must not alter any default objects in the Mura CMS database and |
|---|
| 28 | ⢠May not alter the default display of the Mura CMS logo within Mura CMS and |
|---|
| 29 | ⢠Must not alter any files in the following directories. |
|---|
| 30 | |
|---|
| 31 | /admin/ |
|---|
| 32 | /tasks/ |
|---|
| 33 | /config/ |
|---|
| 34 | /requirements/mura/ |
|---|
| 35 | /Application.cfc |
|---|
| 36 | /index.cfm |
|---|
| 37 | /MuraProxy.cfc |
|---|
| 38 | |
|---|
| 39 | You may copy and distribute Mura CMS with a plug-in, theme or bundle that meets the above guidelines as a combined work |
|---|
| 40 | 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 |
|---|
| 41 | requires distribution of source code. |
|---|
| 42 | |
|---|
| 43 | For clarity, if you create a modified version of Mura CMS, you are not obligated to grant this special exception for your |
|---|
| 44 | modified version; it is your choice whether to do so, or to make such modified version available under the GNU General Public License |
|---|
| 45 | version 2 without this exception. You may, if you choose, apply this exception to your own modified versions of Mura CMS. |
|---|
| 46 | ---> |
|---|
| 47 | <cfcomponent output="false"> |
|---|
| 48 | <cfinclude template="config/applicationSettings.cfm"> |
|---|
| 49 | |
|---|
| 50 | <cfif not hasMainMappings> |
|---|
| 51 | <!--- Try and include global mappings ---> |
|---|
| 52 | <cfset canWriteMode=true> |
|---|
| 53 | <cfset canWriteMappings=true> |
|---|
| 54 | <cfset hasMappings=true> |
|---|
| 55 | |
|---|
| 56 | <cftry> |
|---|
| 57 | <cfinclude template="config/mappings.cfm"> |
|---|
| 58 | <cfcatch type="missingInclude"> |
|---|
| 59 | <cfset hasMappings=false> |
|---|
| 60 | </cfcatch> |
|---|
| 61 | </cftry> |
|---|
| 62 | |
|---|
| 63 | <cfif not hasMappings> |
|---|
| 64 | <cfinclude template="config/buildMainMappings.cfm"> |
|---|
| 65 | </cfif> |
|---|
| 66 | |
|---|
| 67 | </cfif> |
|---|
| 68 | |
|---|
| 69 | <cfif not hasPluginMappings> |
|---|
| 70 | <!--- Try and include plugin mappings ---> |
|---|
| 71 | <cfset canWriteMode=true> |
|---|
| 72 | <cfset hasMappings=true> |
|---|
| 73 | <cfset canWriteMappings=true> |
|---|
| 74 | <cftry> |
|---|
| 75 | <cfinclude template="plugins/mappings.cfm"> |
|---|
| 76 | <cfcatch type="missingInclude"> |
|---|
| 77 | <cfset hasMappings=false> |
|---|
| 78 | </cfcatch> |
|---|
| 79 | </cftry> |
|---|
| 80 | |
|---|
| 81 | <cfif not hasMappings> |
|---|
| 82 | <cfinclude template="config/buildPluginMappings.cfm"> |
|---|
| 83 | </cfif> |
|---|
| 84 | |
|---|
| 85 | </cfif> |
|---|
| 86 | |
|---|
| 87 | <cfif not hasPluginCFApplication> |
|---|
| 88 | <!--- Try and include plugin mappings ---> |
|---|
| 89 | <cfset canWriteMode=true> |
|---|
| 90 | <cfset hasMappings=true> |
|---|
| 91 | <cfset canWriteMappings=true> |
|---|
| 92 | <cftry> |
|---|
| 93 | <cfinclude template="plugins/cfapplication.cfm"> |
|---|
| 94 | <cfcatch type="missingInclude"> |
|---|
| 95 | <cfset hasMappings=false> |
|---|
| 96 | </cfcatch> |
|---|
| 97 | </cftry> |
|---|
| 98 | |
|---|
| 99 | <cfif not hasMappings> |
|---|
| 100 | <cfinclude template="config/buildPluginCFApplication.cfm"> |
|---|
| 101 | </cfif> |
|---|
| 102 | |
|---|
| 103 | </cfif> |
|---|
| 104 | |
|---|
| 105 | <cfinclude template="config/appcfc/onApplicationStart_method.cfm"> |
|---|
| 106 | <cfinclude template="config/appcfc/onRequestStart_scriptProtect_method.cfm"> |
|---|
| 107 | <cfinclude template="config/appcfc/onRequestEnd_method.cfm"> |
|---|
| 108 | <cfinclude template="config/appcfc/onSessionStart_method.cfm"> |
|---|
| 109 | <cfinclude template="config/appcfc/onSessionEnd_method.cfm"> |
|---|
| 110 | <cfinclude template="config/appcfc/onError_method.cfm"> |
|---|
| 111 | <cfinclude template="config/appcfc/onMissingTemplate_method.cfm"> |
|---|
| 112 | </cfcomponent> |
|---|