Ignore:
Timestamp:
Dec 31, 2016, 11:58:49 AM (8 years ago)
Author:
chronos
Message:
  • Modified: Admin page converted to Admin module.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/Core.php

    r75 r78  
    3838    $ErrorHandler->Start();
    3939
    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    }
    4751
    4852    // SQL injection hack protection
Note: See TracChangeset for help on using the changeset viewer.