"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "install/update_068_0681.php" between
glpi-9.3.3.tgz and glpi-9.4.0.tgz

About: GLPI is an IT and asset management software (Information Resource Manager).

update_068_0681.php  (glpi-9.3.3.tgz):update_068_0681.php  (glpi-9.4.0.tgz)
skipping to change at line 39 skipping to change at line 39
* along with GLPI. If not, see <http://www.gnu.org/licenses/>. * along with GLPI. If not, see <http://www.gnu.org/licenses/>.
* --------------------------------------------------------------------- * ---------------------------------------------------------------------
*/ */
/** /**
* DB class to connect to a OCS server * DB class to connect to a OCS server
* *
**/ **/
class DBocs extends DBmysql { class DBocs extends DBmysql {
function DBocs() { function __construct() {
global $db,$cfg_glpi; global $db,$cfg_glpi;
if ($cfg_glpi["ocs_mode"]) { if ($cfg_glpi["ocs_mode"]) {
$query = "SELECT * FROM `glpi_ocs_config`"; $query = "SELECT * FROM `glpi_ocs_config`";
$result = $db->query($query); $result = $db->query($query);
$this->dbhost = $db->result($result, 0, "ocs_db_host"); $this->dbhost = $db->result($result, 0, "ocs_db_host");
$this->dbuser = $db->result($result, 0, "ocs_db_user"); $this->dbuser = $db->result($result, 0, "ocs_db_user");
$this->dbpassword = $db->result($result, 0, "ocs_db_passwd"); $this->dbpassword = $db->result($result, 0, "ocs_db_passwd");
$this->dbdefault = $db->result($result, 0, "ocs_db_name"); $this->dbdefault = $db->result($result, 0, "ocs_db_name");
if (!($this->dbh = new mysqli($this->dbhost, $this->dbuser, $this->dbpa ssword))) { if (!($this->dbh = new mysqli($this->dbhost, $this->dbuser, $this->dbpa ssword))) {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)