mirror of
				https://gitlab.com/ruany/litebans-php.git
				synced 2025-10-30 14:32:25 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			533 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			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);
 | |
|     }
 | |
| }
 | 
