- Hotfix for musickit (probably not 100% valid)
- Hotfix for website
This commit is contained in:
Dawid Bepierszcz
2024-10-19 22:05:27 +02:00
parent eba4ba08d2
commit 59b63646c9
35 changed files with 39 additions and 1269 deletions

View File

@@ -1,4 +1,6 @@
<?php
define('SKIN_LANGUAGE', 'skins_en');
define('DB_HOST', 'localhost');
define('DB_PORT', '3306');
define('DB_NAME', '');

View File

@@ -4,7 +4,7 @@ class UtilsClass
public static function skinsFromJson(): array
{
$skins = [];
$json = json_decode(file_get_contents(__DIR__ . "/../data/skins.json"), true);
$json = json_decode(file_get_contents(__DIR__ . "/../data/".SKIN_LANGUAGE.".json"), true);
foreach ($json as $skin) {
$skins[(int) $skin['weapon_defindex']][(int) $skin['paint']] = [