Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../var/softacul.../orange
File: Conf.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures
[2] Fix | Delete
* all the essential functionalities required for any enterprise.
[3] Fix | Delete
* Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com
[4] Fix | Delete
*
[5] Fix | Delete
* OrangeHRM is free software: you can redistribute it and/or modify it under the terms of
[6] Fix | Delete
* the GNU General Public License as published by the Free Software Foundation, either
[7] Fix | Delete
* version 3 of the License, or (at your option) any later version.
[8] Fix | Delete
*
[9] Fix | Delete
* OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
[10] Fix | Delete
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[11] Fix | Delete
* See the GNU General Public License for more details.
[12] Fix | Delete
*
[13] Fix | Delete
* You should have received a copy of the GNU General Public License along with OrangeHRM.
[14] Fix | Delete
* If not, see <https://www.gnu.org/licenses/>.
[15] Fix | Delete
*/
[16] Fix | Delete
[17] Fix | Delete
class Conf
[18] Fix | Delete
{
[19] Fix | Delete
private string $dbHost;
[20] Fix | Delete
private string $dbPort;
[21] Fix | Delete
private string $dbName;
[22] Fix | Delete
private string $dbUser;
[23] Fix | Delete
private string $dbPass;
[24] Fix | Delete
[25] Fix | Delete
public function __construct()
[26] Fix | Delete
{
[27] Fix | Delete
$this->dbHost = '[[softdbhost]]';
[28] Fix | Delete
$this->dbPort = '3306';
[29] Fix | Delete
if (defined('ENVIRONMENT') && ENVIRONMENT == 'test') {
[30] Fix | Delete
$prefix = defined('TEST_DB_PREFIX') ? TEST_DB_PREFIX : '';
[31] Fix | Delete
$this->dbName = $prefix . 'test_[[softdb]]';
[32] Fix | Delete
} else {
[33] Fix | Delete
$this->dbName = '[[softdb]]';
[34] Fix | Delete
}
[35] Fix | Delete
$this->dbUser = '[[softdbuser]]';
[36] Fix | Delete
$this->dbPass = '[[softdbpass]]';
[37] Fix | Delete
}
[38] Fix | Delete
[39] Fix | Delete
/**
[40] Fix | Delete
* @return string
[41] Fix | Delete
*/
[42] Fix | Delete
public function getDbHost(): string
[43] Fix | Delete
{
[44] Fix | Delete
return $this->dbHost;
[45] Fix | Delete
}
[46] Fix | Delete
[47] Fix | Delete
/**
[48] Fix | Delete
* @return string
[49] Fix | Delete
*/
[50] Fix | Delete
public function getDbPort(): string
[51] Fix | Delete
{
[52] Fix | Delete
return $this->dbPort;
[53] Fix | Delete
}
[54] Fix | Delete
[55] Fix | Delete
/**
[56] Fix | Delete
* @return string
[57] Fix | Delete
*/
[58] Fix | Delete
public function getDbName(): string
[59] Fix | Delete
{
[60] Fix | Delete
return $this->dbName;
[61] Fix | Delete
}
[62] Fix | Delete
[63] Fix | Delete
/**
[64] Fix | Delete
* @return string
[65] Fix | Delete
*/
[66] Fix | Delete
public function getDbUser(): string
[67] Fix | Delete
{
[68] Fix | Delete
return $this->dbUser;
[69] Fix | Delete
}
[70] Fix | Delete
[71] Fix | Delete
/**
[72] Fix | Delete
* @return string
[73] Fix | Delete
*/
[74] Fix | Delete
public function getDbPass(): string
[75] Fix | Delete
{
[76] Fix | Delete
return $this->dbPass;
[77] Fix | Delete
}
[78] Fix | Delete
}
[79] Fix | Delete
[80] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function