Changeset 78 for trunk/Application/Core.php
- Timestamp:
- Dec 31, 2016, 11:58:49 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/Core.php
r75 r78 38 38 $ErrorHandler->Start(); 39 39 40 $this->Database = new Database(); 41 $this->Database->Connect($Config['Database']['Host'], $Config['Database']['User'], 42 $Config['Database']['Password'], $Config['Database']['Database']); 43 $this->Database->Prefix = $Config['Database']['Prefix']; 44 $this->Database->charset($Config['Database']['Charset']); 45 $this->Database->ShowSQLError = $Config['Web']['ShowSQLError']; 46 $this->Database->ShowSQLQuery = $Config['Web']['ShowSQLQuery']; 40 try { 41 $this->Database = new Database(); 42 $this->Database->Connect($Config['Database']['Host'], $Config['Database']['User'], 43 $Config['Database']['Password'], $Config['Database']['Database']); 44 $this->Database->Prefix = $Config['Database']['Prefix']; 45 $this->Database->charset($Config['Database']['Charset']); 46 $this->Database->ShowSQLError = $Config['Web']['ShowSQLError']; 47 $this->Database->ShowSQLQuery = $Config['Web']['ShowSQLQuery']; 48 } catch (Exception $E) { 49 50 } 47 51 48 52 // SQL injection hack protection
Note:
See TracChangeset
for help on using the changeset viewer.