forked from TezosRio/taps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
application.cfc
executable file
·85 lines (69 loc) · 2.98 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
<!---
Project : TAPS - Tezos Automatic Payment System
Created by Tezos.Rio
01/11/2019
--->
<cfcomponent displayname="TAPS" output="true">
<!--- Set application configuration --->
<cfset THIS.Name = "TAPS" />
<cfset THIS.SessionTimeout = CreateTimeSpan( 0, 0, 20, 0 ) />
<cfset THIS.SessionManagement = true />
<cfset THIS.ClientManagement = false />
<cfset THIS.LoginStorage = "session" />
<cfset THIS.applicationTimeout = createTimeSpan( 365, 0, 0, 0 ) />
<cfset this.mappings = structNew() />
<cfset this.mappings["/components"] = getDirectoryFromPath(getCurrentTemplatePath()) & "components/" />
<!--- Set default charset to UTF-8 --->
<cfprocessingdirective pageencoding="UTF-8">
<cfcontent type="text/html; charset=UTF-8">
<cfset setEncoding("URL", "UTF-8")>
<cfset setEncoding("Form", "UTF-8")>
<!--- Some configuration constants --->
<cfscript>
setLocale("English (US)");
</cfscript>
<!--- Define datasource to Lucee H2 database --->
<cfscript>
this.datasources.ds_taps =
{
class= "org.h2.Driver",
connectionString= "jdbc:h2:#expandPath("database/tapsDB")#;MODE=MySQL",
username: "superadmin",
password: "spat_drowssap"
}
</cfscript>
<cffunction
name="OnApplicationStart"
access="public"
returntype="boolean"
output="false">
<!--- Create some application constants --->
<!--- Do not change --->
<cfset application.tz = "&##42793;">
<cfset application.version = "1.1.5">
<cfset application.militez = 1000000>
<cfset application.port = 8888>
<cfset application.mode_no = "0">
<cfset application.mode_try = "1">
<cfset application.mode_yes = "2">
<cfset application.mode_desc_no = "off">
<cfset application.mode_desc_try = "simulation">
<cfset application.mode_desc_yes = "on">
<cfset application.TezosJ_SDK_location = "lib/tezosj-sdk-plain-java-1.2.2.jar">
<cfset application.tz_default_operation_fee = "0.00294">
<!--- Some application variables initialization --->
<!--- Do not change --->
<cfset application.bakerId = "">
<cfset application.fee="">
<cfset application.freq="">
<cfset application.user = "">
<!--- Application variables you may edit --->
<cfset application.encSeed = "?73205!"> <!--- Used to hash sensible information along the code --->
<cfset application.proxyServer=""> <!--- Proxy Server if you are behind a proxy/firewall --->
<cfset application.proxyPort="80"> <!--- Proxy port if you are behind a proxy/firewall --->
<cfset application.provider = "https://tezos-prod.cryptonomic-infra.tech">
<!--- Create needed database tables --->
<cfinvoke component="components.environment" method="createTables">
<cfreturn true />
</cffunction>
</cfcomponent>