forked from ArctosDB/arctos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApplication_down.cfc
49 lines (40 loc) · 1.05 KB
/
Application_down.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
<cfcomponent>
<cfset This.name = "Arctos">
<cfset This.SessionManagement="True">
<cfset This.ClientManagement="true">
<cfset This.ClientStorage="Cookie">
<cffunction
name="OnRequestStart"
access="public"
returntype="boolean"
output="true">
<cfargument
name="TargetPage"
type="string"
required="true"/>
<!--- Define the local scope. --->
<cfset var LOCAL = StructNew() />
<!--- Set header code. --->
<cfheader
statuscode="503"
statustext="Service Temporarily Unavailable"
/>
<!--- Set retry time. --->
<cfheader
name="retry-after"
value="3600"
/>
<h1>
Down For Maintenance
</h1>
<p>
Arctos currently down for maintenance and will
be back up shortly. Sorry for the inconvenience.
</p>
<!---
By returning false, the rest of the page
rendering will hault.
--->
<cfreturn false />
</cffunction>
</cfcomponent>