-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsettings.php
executable file
·184 lines (157 loc) · 7.29 KB
/
settings.php
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<?php
/**
* This file is part of InfectedAPI.
*
* Copyright (C) 2017 Infected <http://infected.no/>.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
class Settings {
/* Metadata */
const name = 'Infected';
const description = 'Infected er et av Akershus største datatreff (LAN-party), og holder til i kulturhuset i Asker kommune.';
const keywords = 'infected, lan, party, asker, kulturhus, ungdom, gaming';
const authors = 'halvors og petterroa';
/* Configuration */
const domain = 'test.infected.no';
// Email information.
const enableEmail = true;
const emailName = self::name;
const email = 'no-reply@' . self::domain;
// Full path to the API location.
const api_path = '/home/' . self::domain . '/public_html/api/';
// Permissions file.
const file_json_permissions = self::api_path . 'json/permissions.json';
const file_json_postalcodes = self::api_path . 'json/postalcodes.json';
// Tells where images should be stored.
const qr_path = '../api/content/qrcache/';
const avatar_path = '../api/content/avatars/';
const api_relative_avatar_path = 'content/avatars/';
/* PHP */
const php_version = '7.2.0';
/* Database */
const db_host = 'localhost';
const db_name_infected = 'test_infected_no';
const db_name_infected_compo = 'test_infected_no_compo';
const db_name_infected_crew = 'test_infected_no_crew';
const db_name_infected_info = 'test_infected_no_info';
const db_name_infected_main = 'test_infected_no_main';
const db_name_infected_tech = 'test_infected_no_tech';
const db_name_infected_tickets = 'test_infected_no_tickets';
// Infected
const db_table_infected_emergencycontacts = 'emergencycontacts';
const db_table_infected_events = 'events';
const db_table_infected_locations = 'locations';
const db_table_infected_passwordresetcodes = 'passwordresetcodes';
const db_table_infected_postalcodes = 'postalcodes';
const db_table_infected_registrationcodes = 'registrationcodes';
const db_table_infected_tasks = 'tasks';
const db_table_infected_userfriends = 'userfriends';
const db_table_infected_usernotes = 'usernotes';
const db_table_infected_useroptions = 'useroptions';
const db_table_infected_userpermissions = 'userpermissions';
const db_table_infected_users = 'users';
const db_table_infected_syslogs = 'syslogs';
const db_table_infected_bongTypes = 'bongTypes';
const db_table_infected_bongTransactions = 'bongTransactions';
const db_table_infected_bongEntitlements = 'bongEntitlements';
// InfectedCompo
const db_table_infected_compo_servers = 'servers';
const db_table_infected_compo_matchrelationships = 'matchrelationships';
const db_table_infected_compo_chatmessages = 'chatmessages';
const db_table_infected_compo_chats = 'chats';
const db_table_infected_compo_clans = 'clans';
const db_table_infected_compo_compos = 'compos';
const db_table_infected_compo_invites = 'invites';
const db_table_infected_compo_memberof = 'memberof';
const db_table_infected_compo_memberofchat = 'memberofchat';
const db_table_infected_compo_participantof = 'participantof';
const db_table_infected_compo_voteoptions = 'voteoptions';
const db_table_infected_compo_participantOfMatch = 'participantofmatch';
const db_table_infected_compo_matches = 'matches';
const db_table_infected_compo_readyusers = 'readyusers';
const db_table_infected_compo_votes = 'votes';
const db_table_infected_compo_qualificationQueue = 'qualificationQueue';
const db_table_infected_compo_matchmetadata = 'matchmetadata';
const db_table_infected_compo_steamids = 'steamids';
// InfectedCrew
const db_table_infected_crew_applicationqueue = 'applicationqueue';
const db_table_infected_crew_applications = 'applications';
const db_table_infected_crew_avatars = 'avatars';
const db_table_infected_crew_groups = 'groups';
const db_table_infected_crew_memberof = 'memberof';
const db_table_infected_crew_notes = 'notes';
const db_table_infected_crew_notewatches = 'notewatches';
const db_table_infected_crew_pages = 'pages';
const db_table_infected_crew_teams = 'teams';
const db_table_infected_crew_castingpages = 'castingPages';
const db_table_infected_crew_customusertitles = 'customUserTitles';
// InfectedInfo
const db_table_infected_info_slides = 'slides';
// InfectedMain
const db_table_infected_main_agenda = 'agenda';
const db_table_infected_main_gameapplications = 'gameapplications';
const db_table_infected_main_games = 'games';
const db_table_infected_main_pages = 'pages';
const db_table_infected_main_sectionpages = 'sectionpages';
// InfectedTech
const db_table_infected_tech_networkaccess = 'networkaccess';
const db_table_infected_tech_networks = 'networks';
const db_table_infected_tech_networktypes = 'networktypes';
const db_table_infected_tech_nfccards = 'nfccards';
const db_table_infected_tech_nfcunits = 'nfcunits';
const db_table_infected_tech_nfclog = 'nfclog';
const db_table_infected_tech_rooms = 'rooms';
const db_table_infected_tech_roompermissions = 'roomPermissions';
// InfectedTickets
const db_table_infected_tickets_checkedintickets = 'checkedintickets';
const db_table_infected_tickets_entrances = 'entrances';
const db_table_infected_tickets_payments = 'payments';
const db_table_infected_tickets_rows = 'rows';
const db_table_infected_tickets_seatmaps = 'seatmaps';
const db_table_infected_tickets_seats = 'seats';
const db_table_infected_tickets_storesessions = 'storesessions';
const db_table_infected_tickets_tickets = 'tickets';
const db_table_infected_tickets_tickettransfers = 'tickettransfers';
const db_table_infected_tickets_tickettypes = 'tickettypes';
/* Compo */
// Match participant of state.
const compo_match_participant_type_clan = 0;
const compo_match_participant_type_match_winner = 1;
const compo_match_participant_type_match_looser = 2;
const compo_match_participant_type_match_walkover = 3;
/* Crew */
// Avatar sizes.
const avatar_thumb_w = 150;
const avatar_thumb_h = 133;
const avatar_sd_w = 800;
const avatar_sd_h = 600;
const avatar_hd_w = 1200;
const avatar_hd_h = 900;
const thumbnail_compression_rate = 100;
const sd_compression_rate = 100;
const hd_compression_rate = 100;
const avatar_minimum_width = 600;
const avatar_minimum_height = 450;
/* Tickets */
// How long time before the tickets event should allow it to be refunded?
const refundBeforeEventTime = 1209600; // 14 days (14 * 24 * 60 * 60)
// How long a time should the ticket be stored on your account before payment is successful?
const storeSessionTime = 3600; // 1 Hour (60 * 60)
// How long time after ticket is transfered should we allow the former owner to revert the transaction?
const ticketFee = 20; // Radar membership ticket fee.
const ticketTransferTime = 86400; // 1 day (24 * 60 * 60)
const prioritySeatingReq = 5;
const curfewLimit = 14;
}