Changeset 78 for trunk/Application
- Timestamp:
- Dec 31, 2016, 11:58:49 AM (8 years ago)
- Location:
- trunk/Application
- Files:
-
- 3 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 -
trunk/Application/DefaultConfig.php
r69 r78 10 10 array('Name' => 'SystemPassword', 'Type' => 'PasswordEncoded', 'Default' => '', 'Title' => 'Systémové heslo'), 11 11 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'), 13 13 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'), 15 15 array('Name' => 'Database/Prefix', 'Type' => 'String', 'Default' => '', 'Title' => 'Prefix'), 16 16 array('Name' => 'Database/Charset', 'Type' => 'String', 'Default' => 'utf8', 'Title' => 'Znaková sada'), … … 21 21 array('Name' => 'Web/Host', 'Type' => 'String', 'Default' => 'localhost', 'Title' => 'Doménové jméno'), 22 22 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'), 24 24 array('Name' => 'Web/Admin', 'Type' => 'String', 'Default' => 'Admin', 'Title' => 'Jméno správce'), 25 25 array('Name' => 'Web/AdminEmail', 'Type' => 'String', 'Default' => 'admin@localhost', 'Title' => 'E-mail správce'), -
trunk/Application/Version.php
r77 r78 6 6 // and system will need database update. 7 7 8 $Revision = 7 6;8 $Revision = 77; 9 9 $DatabaseRevision = 67; 10 $ReleaseTime = strtotime('2016-1 3-31');10 $ReleaseTime = strtotime('2016-12-31');
Note:
See TracChangeset
for help on using the changeset viewer.