25 lines
428 B
PHP
25 lines
428 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.ini";
|
|
|
|
$this->config = parse_ini_file($config, true);
|
|
|
|
|
|
|
|
}
|
|
|
|
public function getConfig()
|
|
{
|
|
return $this->config;
|
|
}
|
|
|
|
}
|