26 lines
435 B
PHP
26 lines
435 B
PHP
<?php
|
|
|
|
class Config
|
|
{
|
|
public $config;
|
|
|
|
// Load configuration and upload it to the main class elements
|
|
public function __construct()
|
|
{
|
|
$ROOT = $_SERVER['DOCUMENT_ROOT'];
|
|
$config = $ROOT . "/source/config.php";
|
|
|
|
$c = include($config);
|
|
$this->config = $c;
|
|
|
|
|
|
|
|
}
|
|
|
|
public function getConfig()
|
|
{
|
|
return $this->config;
|
|
}
|
|
|
|
}
|