Initial import

This commit is contained in:
2026-01-18 00:53:18 +00:00
parent fb78291fb1
commit 940191502e
115 changed files with 15524 additions and 0 deletions

21
lib/Config.php Executable file
View File

@@ -0,0 +1,21 @@
<?php
class Config {
private static $config = null;
private function __construct() {
}
public static function get(string $val, mixed $default = null) : mixed {
if (Config::$config == null) {
Config::$config = parse_ini_file(__DIR__ . "/../.env");
}
if (array_key_exists($val, Config::$config)) {
return Config::$config[$val];
} else {
return $default;
}
}
}