litebans-php/inc/test/php/EnvSettings.php
2021-06-29 20:07:11 +02:00

18 lines
533 B
PHP

<?php
class EnvSettings extends Settings {
public function __construct($connect = true, $verify = false) {
parent::__construct(false);
$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();
if ($connect) $this->connect($verify);
}
}