Changeset 712 for trunk/inc/realm.php
- Timestamp:
- Jul 30, 2013, 11:34:19 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 5 5 minimanager 6 6 mmfpm 7 .settings 8 .buildpath 9 .project
-
- Property svn:ignore
-
trunk/inc/realm.php
r695 r712 13 13 $DbResult = $this->Database->query('SELECT * FROM Realm WHERE Id='.$Id.' AND Enabled=1'); 14 14 $this->Data = $DbResult->fetch_assoc(); 15 $this->CharactersDatabase = new Database($this->Data['DatabaseHost'], $this->Data['DatabaseUser'], $this->Data['DatabasePassword'], $this->Data['DatabaseCharacters']); 15 $this->CharactersDatabase = new Database(); 16 $this->CharactersDatabase->Connect($this->Data['DatabaseHost'], $this->Data['DatabaseUser'], $this->Data['DatabasePassword'], $this->Data['DatabaseCharacters']); 16 17 $this->CharactersDatabase->select_db($this->Data['DatabaseCharacters']); 17 if($this->CharactersDatabase->connect_error)18 {19 die('Přihlášení k databázi realmu '.$this->Id.' selhalo: '.$this->Database->connect_error);20 }18 //if($this->CharactersDatabase->connect_error) 19 //{ 20 // die('Přihlášení k databázi realmu '.$this->Id.' selhalo: '.$this->Database->connect_error); 21 //} 21 22 $this->CharactersDatabase->charset($this->Config['Database']['Charset']); 22 23 23 $this->MangosDatabase = new Database($this->Data['DatabaseHost'], $this->Data['DatabaseUser'], $this->Data['DatabasePassword'], $this->Data['DatabaseMangos']); 24 $this->MangosDatabase = new Database(); 25 $this->MangosDatabase->Connect($this->Data['DatabaseHost'], $this->Data['DatabaseUser'], $this->Data['DatabasePassword'], $this->Data['DatabaseMangos']); 24 26 $this->MangosDatabase->select_db($this->Data['DatabaseMangos']); 25 if($this->MangosDatabase->connect_error)26 {27 die('Přihlášení k databázi realmu '.$this->Id.' selhalo: '.$this->MangosDatabase->connect_error);28 }27 //if($this->MangosDatabase->connect_error) 28 //{ 29 // die('Přihlášení k databázi realmu '.$this->Id.' selhalo: '.$this->MangosDatabase->connect_error); 30 //} 29 31 $this->MangosDatabase->charset($this->Config['Database']['Charset']); 30 32 }
Note:
See TracChangeset
for help on using the changeset viewer.