Changeset 563 for trunk/lib/DB.inc.php


Ignore:
Timestamp:
Feb 28, 2016 9:18:02 PM (8 years ago)
Author:
anonymous
Message:

Removed assumption of localhost for mysql server. Removed exception for proxy.aol.com.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/DB.inc.php

    r550 r563  
    147147        }
    148148
     149        if (!$this->getParam('db_server')) {
     150            // If db_server not specified, assume localhost.
     151            $this->setParam('db_server', 'localhost');
     152        }
     153
    149154        // Connect to database. Always create a new link to the server.
    150         // Connection errors are surpressed so we can do our own error management below.
     155        // Connection errors are suppressed so we can do our own error management below.
    151156        if ($this->dbh = @mysql_connect($this->getParam('db_server'), $this->getParam('db_user'), $this->getParam('db_pass'), true)) {
    152157            // Select database
Note: See TracChangeset for help on using the changeset viewer.