/*
* Uguu
*
- * @copyright Copyright (c) 2022 Go Johansson (nekunekus) <neku@pomf.se> <github.com/nokonoko>
+ * @copyright Copyright (c) 2022 Go Johansson (nokonoko) <neku@pomf.se>
*
* 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
public static int $NAME_LENGTH;
public static string $ID_CHARSET;
- public static array $DOUBLE_DOTS;
public static array $BLOCKED_EXTENSIONS;
public static array $BLOCKED_MIME;
*/
public static function loadConfig()
{
- if (!file_exists('/Users/go.johansson/PERSONAL_REPOS/Uguu/dist.json')) {
+ if (!file_exists('/var/www/uguu/dist.json')) {
throw new Exception('Cant read settings file.', 500);
}
try {
$settings_array = json_decode(
- file_get_contents('/Users/go.johansson/PERSONAL_REPOS/Uguu/dist.json'),
+ file_get_contents('/var/www/uguu/dist.json'),
true
);
self::$DB_MODE = $settings_array['DB_MODE'];
self::$ID_CHARSET = $settings_array['ID_CHARSET'];
self::$BLOCKED_EXTENSIONS = $settings_array['BLOCKED_EXTENSIONS'];
self::$BLOCKED_MIME = $settings_array['BLOCKED_MIME'];
- self::$DOUBLE_DOTS = $settings_array['DOUBLE_DOTS'];
} catch (Exception) {
throw new Exception('Cant populate settings.', 500);
}