mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
16 lines
448 B
PHP
16 lines
448 B
PHP
<?php
|
|
|
|
class EnvSettings extends Settings {
|
|
public function __construct() {
|
|
parent::__construct();
|
|
$this->host = getenv("MYSQL_HOST");
|
|
$this->database = getenv("MYSQL_DATABASE");
|
|
$this->username = getenv("MYSQL_USERNAME");
|
|
$this->password = getenv("MYSQL_PASSWORD");
|
|
$this->table_prefix = getenv("LITEBANS_TABLE_PREFIX");
|
|
$this->error_throw = true;
|
|
|
|
$this->init_tables();
|
|
}
|
|
}
|