forked from csgo-league/csgo-league-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenv.example.php
42 lines (37 loc) · 1.44 KB
/
env.example.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
<?php
$variables = [
'DB_HOST' => '', // Your database ip address or host name.
'DB_USERNAME' => '', // Your database username.
'DB_PASSWORD' => '', // Your database password.
'DB_NAME' => '', // Your database name.
'STEAM_API_KEY' => '', // Your steam API key.
'MATCHES_PAGE_LIMIT' => 10, // Page limit for matches page.
'PLAYERS_PAGE_LIMIT' => 12, // Page limit for players page.
'WEBSITE' => '/home', // Path to your main website
'URL' => '', // The URL to the league panel
'BASE_TITLE' => 'B3none', // This is the base title for your site.
'DESCRIPTION' => 'Top quality PUGs and 10 mans.', // Meta description
// This is a crude hack to store a keyed array in the env.
// map_name,/path/to/map/from/web
'MAPS' => [
'de_austria,/img/maps/austria.jpg',
'de_cache,/img/maps/cache.jpg',
'de_canals,/img/maps/canals.jpg',
'de_cbble,/img/maps/cbble.jpg',
'de_dust,/img/maps/dust.png',
'de_shortdust,/img/maps/dust.png',
'de_dust2,/img/maps/dust2.jpg',
'de_mirage,/img/maps/mirage.jpg',
'de_nuke,/img/maps/nuke.jpg',
'de_shortnuke,/img/maps/nuke.jpg',
'de_overpass,/img/maps/overpass.jpg',
'de_train,/img/maps/train.jpg',
'de_inferno,/img/maps/inferno.jpg',
]
];
foreach ($variables as $key => $value) {
if (is_array($value)) {
$value = implode(',', $value);
}
putenv("$key=$value");
}