Changeset 507 for trunk/includes/system.php
- Timestamp:
- Feb 15, 2013, 10:12:08 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/system.php
r506 r507 24 24 function __construct() 25 25 { 26 $this->Database = new Database();27 26 $this->Config = array(); 28 27 } … … 30 29 function Init() 31 30 { 32 global $Config; 31 global $Config; 32 33 33 $this->Config = $Config; 34 $this->Database->HostName = $this->Config['Database']['Host']; 35 $this->Database->UserName = $this->Config['Database']['User']; 36 $this->Database->Password = $this->Config['Database']['Password']; 37 $this->Database->Schema = $this->Config['Database']['Database']; 38 $this->Database->Charset = $this->Config['Database']['Charset']; 34 $this->Database = new Database($this->Config['Database']['Host'], 35 $this->Config['Database']['User'], $this->Config['Database']['Password'], 36 $this->Config['Database']['Database']); 37 $this->Database->charset($this->Config['Database']['Charset']); 39 38 $this->Database->ShowSQLQuery = $this->Config['Web']['ShowSQLQuery']; 40 39 $this->Database->ShowSQLError = $this->Config['Web']['ShowSQLError']; 41 $this->Database->open();42 40 } 43 41
Note:
See TracChangeset
for help on using the changeset viewer.