-
Notifications
You must be signed in to change notification settings - Fork 18
/
config.php
273 lines (258 loc) · 14.3 KB
/
config.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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
<?php
/*
RPCS3.net Compatibility List (https://github.com/AniLeo/rpcs3-compatibility)
Copyright (C) 2017 AniLeo
https://github.com/AniLeo or [email protected]
This program 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; either version 2 of the License, or
(at your option) any later version.
This program 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 this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
// Connection details for the MySQL server
define('db_host', 'HOSTNAME');
define('db_port', 'PORT');
define('db_user', 'USERNAME');
define('db_pass', 'PASSWORD');
define('db_name', 'DATABASE_NAME');
// GitHub Access Token (Read-only)
define('gh_token', 'TOKEN');
// Global config variables
$c_pagelimit = 7; // Default page limit on pages counter (lim/2)
$c_maintenance = false; // Maintenance Mode
$c_profiler = true; // Profiling mode
// Default value for results per page
$c_pageresults = 25;
// Allowed values for results per page
$a_pageresults = array(25, 50, 100, 200);
// Game status data
$a_status = array(
1 => array(
'name' => "Playable",
'desc' => "Games that can be completed with playable performance and no game breaking glitches",
'color' => "1ebc61",
'fid' => array(5, 26)
),
2 => array(
'name' => "Ingame",
'desc' => "Games that either can't be finished, have serious glitches or have insufficient performance",
'color' => "f9b32f",
'fid' => array(6, 27)
),
3 => array(
'name' => "Intro",
'desc' => "Games that display image but don't make it past the menus",
'color' => "e08a1e",
'fid' => array(7, 28)
),
4 => array(
'name' => "Loadable",
'desc' => "Games that display a black screen with a framerate on the window's title",
'color' => "e74c3c",
'fid' => array(8, 29)
),
5 => array(
'name' => "Nothing",
'desc' => "Games that don't initialize properly, not loading at all and/or crashing the emulator",
'color' => "455556",
'fid' => array(9, 30)
)
);
// Productcode: Game Media (1º Character)
$a_media = array(
'B' => array(
'name' => "Blu-Ray",
'icon' => "/img/icons/compat/rom.png"
),
'M' => array(
'name' => "Blu-Ray",
'icon' => "/img/icons/compat/rom.png"
),
'N' => array(
'name' => "Digital (PSN)",
'icon' => "/img/icons/compat/psn.png"
),
'X' => array(
'name' => "Blu-Ray + Extras",
'icon' => "/img/icons/compat/rom.png"
)
);
// Regions (GameIDs)
$a_regions = array(
'E' => "EU", // Europe
'U' => "US", // America
'J' => "JP", // Japan
'A' => "AS", // Asia
'K' => "KR", // Korea
'H' => "HK", // Hong Kong
'I' => "IN", // International
'T' => "IN" // MRTC
);
// Region flags
$a_flags = array(
"A" => "/img/icons/compat/AS.png", // Asia
"E" => "/img/icons/compat/EU.png", // Europe
"H" => "/img/icons/compat/HK.png", // Hong Kong
"K" => "/img/icons/compat/KR.png", // Korea
"J" => "/img/icons/compat/JP.png", // Japan
"U" => "/img/icons/compat/US.png", // America
"I" => "/img/icons/compat/IN.png", // International
"T" => "/img/icons/compat/IN.png" // MRTC
);
// Functions available on debug panel (function_name => (title, success))
$a_panel = array(
'cache_builds' => array(
'title' => "Update Build Cache",
'success' => "Forced update on builds cache"
),
'refreshBuild' => array(
'title' => "Refresh Build",
'success' => "Refreshed build"
),
'cacheInitials' => array(
'title' => "Update Initials Cache",
'success' => "Forced update on initials cache"
),
'cacheStatusModules' => array(
'title' => "Update Status Module",
'success' => "Forced update on status modules"
),
'cacheGameCount' => array(
'title' => "Update Game Count",
'success' => "Forced update on game count"
),
'cacheWikiIDs' => array(
'title' => "Update Wiki IDs Cache",
'success' => "Forced update on Wiki IDs cache"
),
'cache_games_updates' => array(
'title' => "Update Game Updates Cache",
'success' => "Updated latest game version cache"
),
'checkInvalidThreads' => array(
'title' => "Check Invalid Threads",
'success' => ""
),
'compatibilityUpdater' => array(
'title' => "Compatibility Updater",
'success' => "Ran compatibility updater"
),
'mergeGames' => array(
'title' => "Merge Games",
'success' => "Ran game merger"
),
'cachePatches' => array(
'title' => "Cache Patches",
'success' => "Forced update on game patches cache"
),
'flag_build_as_broken' => array(
'title' => "Flag Build as Broken",
'success' => ""
),
'export_build_backup' => array(
'title' => "Export Build Backup",
'success' => ""
)
);
// Dates for history backups
$a_histdates = array(
'2017_03' => array(array('y' => 2017, 'm' => 3, 'd' => 01), array('y' => 2017, 'm' => 3, 'd' => 29)),
'2017_04' => array(array('y' => 2017, 'm' => 3, 'd' => 30), array('y' => 2017, 'm' => 4, 'd' => 30)),
'2017_05' => array(array('y' => 2017, 'm' => 5, 'd' => 01), array('y' => 2017, 'm' => 5, 'd' => 31)),
'2017_06' => array(array('y' => 2017, 'm' => 6, 'd' => 01), array('y' => 2017, 'm' => 6, 'd' => 30)),
'2017_07' => array(array('y' => 2017, 'm' => 7, 'd' => 01), array('y' => 2017, 'm' => 7, 'd' => 31)),
'2017_08' => array(array('y' => 2017, 'm' => 8, 'd' => 01), array('y' => 2017, 'm' => 9, 'd' => 01)),
'2017_09' => array(array('y' => 2017, 'm' => 9, 'd' => 02), array('y' => 2017, 'm' => 9, 'd' => 30)),
'2017_10' => array(array('y' => 2017, 'm' => 10, 'd' => 01), array('y' => 2017, 'm' => 11, 'd' => 02)),
'2017_11' => array(array('y' => 2017, 'm' => 11, 'd' => 03), array('y' => 2017, 'm' => 11, 'd' => 30)),
'2017_12' => array(array('y' => 2017, 'm' => 12, 'd' => 01), array('y' => 2017, 'm' => 12, 'd' => 31)),
'2018_01' => array(array('y' => 2018, 'm' => 1, 'd' => 01), array('y' => 2018, 'm' => 1, 'd' => 31)),
'2018_02' => array(array('y' => 2018, 'm' => 2, 'd' => 01), array('y' => 2018, 'm' => 3, 'd' => 01)),
'2018_03' => array(array('y' => 2018, 'm' => 3, 'd' => 02), array('y' => 2018, 'm' => 3, 'd' => 31)),
'2018_04' => array(array('y' => 2018, 'm' => 4, 'd' => 01), array('y' => 2018, 'm' => 5, 'd' => 01)),
'2018_05' => array(array('y' => 2018, 'm' => 5, 'd' => 02), array('y' => 2018, 'm' => 5, 'd' => 31)),
'2018_06' => array(array('y' => 2018, 'm' => 6, 'd' => 01), array('y' => 2018, 'm' => 6, 'd' => 30)),
'2018_07' => array(array('y' => 2018, 'm' => 7, 'd' => 01), array('y' => 2018, 'm' => 7, 'd' => 31)),
'2018_08' => array(array('y' => 2018, 'm' => 8, 'd' => 01), array('y' => 2018, 'm' => 8, 'd' => 31)),
'2018_09' => array(array('y' => 2018, 'm' => 9, 'd' => 01), array('y' => 2018, 'm' => 9, 'd' => 30)),
'2018_10' => array(array('y' => 2018, 'm' => 10, 'd' => 01), array('y' => 2018, 'm' => 10, 'd' => 31)),
'2018_11' => array(array('y' => 2018, 'm' => 11, 'd' => 01), array('y' => 2018, 'm' => 11, 'd' => 30)),
'2018_12' => array(array('y' => 2018, 'm' => 12, 'd' => 01), array('y' => 2018, 'm' => 12, 'd' => 31)),
'2019_01' => array(array('y' => 2019, 'm' => 1, 'd' => 01), array('y' => 2019, 'm' => 1, 'd' => 31)),
'2019_02' => array(array('y' => 2019, 'm' => 2, 'd' => 01), array('y' => 2019, 'm' => 2, 'd' => 28)),
'2019_03' => array(array('y' => 2019, 'm' => 3, 'd' => 01), array('y' => 2019, 'm' => 3, 'd' => 31)),
'2019_04' => array(array('y' => 2019, 'm' => 4, 'd' => 01), array('y' => 2019, 'm' => 4, 'd' => 30)),
'2019_05' => array(array('y' => 2019, 'm' => 5, 'd' => 01), array('y' => 2019, 'm' => 5, 'd' => 31)),
'2019_06' => array(array('y' => 2019, 'm' => 6, 'd' => 01), array('y' => 2019, 'm' => 6, 'd' => 30)),
'2019_07' => array(array('y' => 2019, 'm' => 7, 'd' => 01), array('y' => 2019, 'm' => 7, 'd' => 31)),
'2019_08' => array(array('y' => 2019, 'm' => 8, 'd' => 01), array('y' => 2019, 'm' => 8, 'd' => 31)),
'2019_09' => array(array('y' => 2019, 'm' => 9, 'd' => 01), array('y' => 2019, 'm' => 9, 'd' => 30)),
'2019_10' => array(array('y' => 2019, 'm' => 10, 'd' => 01), array('y' => 2019, 'm' => 10, 'd' => 31)),
'2019_11' => array(array('y' => 2019, 'm' => 11, 'd' => 01), array('y' => 2019, 'm' => 11, 'd' => 30)),
'2019_12' => array(array('y' => 2019, 'm' => 12, 'd' => 01), array('y' => 2019, 'm' => 12, 'd' => 31)),
'2020_01' => array(array('y' => 2020, 'm' => 1, 'd' => 01), array('y' => 2020, 'm' => 1, 'd' => 31)),
'2020_02' => array(array('y' => 2020, 'm' => 2, 'd' => 01), array('y' => 2020, 'm' => 2, 'd' => 29)),
'2020_03' => array(array('y' => 2020, 'm' => 3, 'd' => 01), array('y' => 2020, 'm' => 3, 'd' => 31)),
'2020_04' => array(array('y' => 2020, 'm' => 4, 'd' => 01), array('y' => 2020, 'm' => 4, 'd' => 30)),
'2020_05' => array(array('y' => 2020, 'm' => 5, 'd' => 01), array('y' => 2020, 'm' => 5, 'd' => 31)),
'2020_06' => array(array('y' => 2020, 'm' => 6, 'd' => 01), array('y' => 2020, 'm' => 6, 'd' => 30)),
'2020_07' => array(array('y' => 2020, 'm' => 7, 'd' => 01), array('y' => 2020, 'm' => 7, 'd' => 31)),
'2020_08' => array(array('y' => 2020, 'm' => 8, 'd' => 01), array('y' => 2020, 'm' => 8, 'd' => 31)),
'2020_09' => array(array('y' => 2020, 'm' => 9, 'd' => 01), array('y' => 2020, 'm' => 9, 'd' => 30)),
'2020_10' => array(array('y' => 2020, 'm' => 10, 'd' => 01), array('y' => 2020, 'm' => 10, 'd' => 31)),
'2020_11' => array(array('y' => 2020, 'm' => 11, 'd' => 01), array('y' => 2020, 'm' => 11, 'd' => 30)),
'2020_12' => array(array('y' => 2020, 'm' => 12, 'd' => 01), array('y' => 2020, 'm' => 12, 'd' => 31)),
'2021_01' => array(array('y' => 2021, 'm' => 1, 'd' => 01), array('y' => 2021, 'm' => 1, 'd' => 31)),
'2021_02' => array(array('y' => 2021, 'm' => 2, 'd' => 01), array('y' => 2021, 'm' => 2, 'd' => 28)),
'2021_03' => array(array('y' => 2021, 'm' => 3, 'd' => 01), array('y' => 2021, 'm' => 3, 'd' => 31)),
'2021_04' => array(array('y' => 2021, 'm' => 4, 'd' => 01), array('y' => 2021, 'm' => 4, 'd' => 30)),
'2021_05' => array(array('y' => 2021, 'm' => 5, 'd' => 01), array('y' => 2021, 'm' => 5, 'd' => 31)),
'2021_06' => array(array('y' => 2021, 'm' => 6, 'd' => 01), array('y' => 2021, 'm' => 6, 'd' => 30)),
'2021_07' => array(array('y' => 2021, 'm' => 7, 'd' => 01), array('y' => 2021, 'm' => 7, 'd' => 31)),
'2021_08' => array(array('y' => 2021, 'm' => 8, 'd' => 01), array('y' => 2021, 'm' => 8, 'd' => 31)),
'2021_09' => array(array('y' => 2021, 'm' => 9, 'd' => 01), array('y' => 2021, 'm' => 9, 'd' => 30)),
'2021_10' => array(array('y' => 2021, 'm' => 10, 'd' => 01), array('y' => 2021, 'm' => 10, 'd' => 31)),
'2021_11' => array(array('y' => 2021, 'm' => 11, 'd' => 01), array('y' => 2021, 'm' => 11, 'd' => 30)),
'2021_12' => array(array('y' => 2021, 'm' => 12, 'd' => 01), array('y' => 2021, 'm' => 12, 'd' => 31)),
'2022_01' => array(array('y' => 2022, 'm' => 1, 'd' => 01), array('y' => 2022, 'm' => 1, 'd' => 31)),
'2022_02' => array(array('y' => 2022, 'm' => 2, 'd' => 01), array('y' => 2022, 'm' => 2, 'd' => 28)),
'2022_03' => array(array('y' => 2022, 'm' => 3, 'd' => 01), array('y' => 2022, 'm' => 3, 'd' => 31)),
'2022_04' => array(array('y' => 2022, 'm' => 4, 'd' => 01), array('y' => 2022, 'm' => 4, 'd' => 30)),
'2022_05' => array(array('y' => 2022, 'm' => 5, 'd' => 01), array('y' => 2022, 'm' => 5, 'd' => 31)),
'2022_06' => array(array('y' => 2022, 'm' => 6, 'd' => 01), array('y' => 2022, 'm' => 6, 'd' => 30)),
'2022_07' => array(array('y' => 2022, 'm' => 7, 'd' => 01), array('y' => 2022, 'm' => 7, 'd' => 31)),
'2022_08' => array(array('y' => 2022, 'm' => 8, 'd' => 01), array('y' => 2022, 'm' => 8, 'd' => 31)),
'2022_09' => array(array('y' => 2022, 'm' => 9, 'd' => 01), array('y' => 2022, 'm' => 9, 'd' => 30)),
'2022_10' => array(array('y' => 2022, 'm' => 10, 'd' => 01), array('y' => 2022, 'm' => 10, 'd' => 31)),
'2022_11' => array(array('y' => 2022, 'm' => 11, 'd' => 01), array('y' => 2022, 'm' => 11, 'd' => 30)),
'2022_12' => array(array('y' => 2022, 'm' => 12, 'd' => 01), array('y' => 2022, 'm' => 12, 'd' => 31)),
'2023_01' => array(array('y' => 2023, 'm' => 1, 'd' => 01), array('y' => 2023, 'm' => 1, 'd' => 31)),
'2023_02' => array(array('y' => 2023, 'm' => 2, 'd' => 01), array('y' => 2023, 'm' => 2, 'd' => 28)),
'2023_03' => array(array('y' => 2023, 'm' => 3, 'd' => 01), array('y' => 2023, 'm' => 3, 'd' => 31)),
'2023_04' => array(array('y' => 2023, 'm' => 4, 'd' => 01), array('y' => 2023, 'm' => 4, 'd' => 30)),
'2023_05' => array(array('y' => 2023, 'm' => 5, 'd' => 01), array('y' => 2023, 'm' => 5, 'd' => 31)),
'2023_06' => array(array('y' => 2023, 'm' => 6, 'd' => 01), array('y' => 2023, 'm' => 6, 'd' => 30)),
'2023_07' => array(array('y' => 2023, 'm' => 7, 'd' => 01), array('y' => 2023, 'm' => 7, 'd' => 31)),
'2023_08' => array(array('y' => 2023, 'm' => 8, 'd' => 01), array('y' => 2023, 'm' => 8, 'd' => 31)),
'2023_09' => array(array('y' => 2023, 'm' => 9, 'd' => 01), array('y' => 2023, 'm' => 9, 'd' => 30)),
'2023_10' => array(array('y' => 2023, 'm' => 10, 'd' => 01), array('y' => 2023, 'm' => 10, 'd' => 31)),
'2023_11' => array(array('y' => 2023, 'm' => 11, 'd' => 01), array('y' => 2023, 'm' => 11, 'd' => 30)),
'2023_12' => array(array('y' => 2023, 'm' => 12, 'd' => 01), array('y' => 2023, 'm' => 12, 'd' => 31)),
'2024_01' => array(array('y' => 2024, 'm' => 1, 'd' => 01), array('y' => 2024, 'm' => 1, 'd' => 31)),
'2024_02' => array(array('y' => 2024, 'm' => 2, 'd' => 01), array('y' => 2024, 'm' => 2, 'd' => 29)),
'2024_03' => array(array('y' => 2024, 'm' => 3, 'd' => 01), array('y' => 2024, 'm' => 3, 'd' => 31)),
'2024_04' => array(array('y' => 2024, 'm' => 4, 'd' => 01), array('y' => 2024, 'm' => 4, 'd' => 30)),
'2024_05' => array(array('y' => 2024, 'm' => 5, 'd' => 01), array('y' => 2024, 'm' => 5, 'd' => 31)),
'2024_06' => array(array('y' => 2024, 'm' => 6, 'd' => 01), array('y' => 2024, 'm' => 6, 'd' => 30)),
'2024_07' => array(array('y' => 2024, 'm' => 7, 'd' => 01), array('y' => 2024, 'm' => 7, 'd' => 31)),
'2024_08' => array(array('y' => 2024, 'm' => 8, 'd' => 01), array('y' => 2024, 'm' => 8, 'd' => 31)),
'2024_09' => array(array('y' => 2024, 'm' => 9, 'd' => 01), array('y' => 2024, 'm' => 9, 'd' => 30))
);
// Current month
$a_currenthist = array('2024_10', 'October 1st, 2024', '2024-10-01');