Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
.
*/
class Conf
{
private string $dbHost;
private string $dbPort;
private string $dbName;
private string $dbUser;
private string $dbPass;
public function __construct()
{
$this->dbHost = '[[softdbhost]]';
$this->dbPort = '3306';
if (defined('ENVIRONMENT') && ENVIRONMENT == 'test') {
$prefix = defined('TEST_DB_PREFIX') ? TEST_DB_PREFIX : '';
$this->dbName = $prefix . 'test_[[softdb]]';
} else {
$this->dbName = '[[softdb]]';
}
$this->dbUser = '[[softdbuser]]';
$this->dbPass = '[[softdbpass]]';
}
/**
* @return string
*/
public function getDbHost(): string
{
return $this->dbHost;
}
/**
* @return string
*/
public function getDbPort(): string
{
return $this->dbPort;
}
/**
* @return string
*/
public function getDbName(): string
{
return $this->dbName;
}
/**
* @return string
*/
public function getDbUser(): string
{
return $this->dbUser;
}
/**
* @return string
*/
public function getDbPass(): string
{
return $this->dbPass;
}
}