Changeset 78


Ignore:
Timestamp:
Dec 31, 2016, 11:58:49 AM (8 years ago)
Author:
chronos
Message:
  • Modified: Admin page converted to Admin module.
Location:
trunk
Files:
2 added
1 deleted
3 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
  • trunk/Application/DefaultConfig.php

    r69 r78  
    1010        array('Name' => 'SystemPassword', 'Type' => 'PasswordEncoded', 'Default' => '', 'Title' => 'Systémové heslo'),
    1111        array('Name' => 'Database/Host', 'Type' => 'String', 'Default' => 'localhost', 'Title' => 'Server'),
    12         array('Name' => 'Database/User', 'Type' => 'String', 'Default' => 'root', 'Title' => 'Uživatel'),
     12        array('Name' => 'Database/User', 'Type' => 'String', 'Default' => 'estetistic', 'Title' => 'Uživatel'),
    1313        array('Name' => 'Database/Password', 'Type' => 'Password', 'Default' => '', 'Title' => 'Heslo'),
    14         array('Name' => 'Database/Database', 'Type' => 'String', 'Default' => 'centrala', 'Title' => 'Databáze'),
     14        array('Name' => 'Database/Database', 'Type' => 'String', 'Default' => 'estetistic', 'Title' => 'Databáze'),
    1515        array('Name' => 'Database/Prefix', 'Type' => 'String', 'Default' => '', 'Title' => 'Prefix'),
    1616        array('Name' => 'Database/Charset', 'Type' => 'String', 'Default' => 'utf8', 'Title' => 'Znaková sada'),
     
    2121        array('Name' => 'Web/Host', 'Type' => 'String', 'Default' => 'localhost', 'Title' => 'Doménové jméno'),
    2222        array('Name' => 'Web/Title', 'Type' => 'String', 'Default' => 'Síť', 'Title' => 'Titulek'),
    23         array('Name' => 'Web/Description', 'Type' => 'String', 'Default' => 'Komunitní počítačová síť', 'Title' => 'Popis'),
     23        array('Name' => 'Web/Description', 'Type' => 'String', 'Default' => 'Web measure statistics', 'Title' => 'Popis'),
    2424        array('Name' => 'Web/Admin', 'Type' => 'String', 'Default' => 'Admin', 'Title' => 'Jméno správce'),
    2525        array('Name' => 'Web/AdminEmail', 'Type' => 'String', 'Default' => 'admin@localhost', 'Title' => 'E-mail správce'),
  • trunk/Application/Version.php

    r77 r78  
    66// and system will need database update.
    77
    8 $Revision = 76;
     8$Revision = 77;
    99$DatabaseRevision = 67;
    10 $ReleaseTime = strtotime('2016-13-31');
     10$ReleaseTime = strtotime('2016-12-31');
Note: See TracChangeset for help on using the changeset viewer.