Initial commit

Couldnt keep the history unfortunately.
This commit is contained in:
Riyyi
2021-03-03 17:55:48 +01:00
commit a8056b66cc
67 changed files with 7759 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
<?php
namespace App\Classes;
class Config {
protected static $config;
//-------------------------------------//
public static function load(): void
{
if (file_exists('../config.php')) {
self::$config = require_once '../config.php';
}
}
//-------------------------------------//
public static function c(string $index = ''): string
{
if (_exists(self::$config, $index)) {
return self::$config[$index];
}
return '';
}
}