Initial upload of the control panel

This commit is contained in:
Pinga 2023-08-07 13:14:05 +03:00
parent f21bd93fbc
commit 7eab26586c
791 changed files with 312718 additions and 0 deletions

18
cp/app/Lib/Config.php Normal file
View file

@ -0,0 +1,18 @@
<?php namespace App\Lib;
/**
* Config
*
* @author Hezekiah O. <support@hezecom.com>
*/
class Config
{
private static $config;
public static function get($key, $default = null)
{
if (is_null(self::$config)) {
self::$config = require_once(__DIR__ . '/../../config/app.php');
}
return !empty(self::$config[$key]) ? self::$config[$key] : $default;
}
}