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