Changeset 859 for trunk/Modules/Import
- Timestamp:
- Jan 21, 2016, 10:20:04 AM (9 years ago)
- Location:
- trunk/Modules/Import
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Import/Import.php
r838 r859 15 15 $this->License = 'GNU/GPL'; 16 16 $this->Description = 'Support for import of data.'; 17 $this->Dependencies = array( );17 $this->Dependencies = array('Translation'); 18 18 } 19 19 … … 183 183 function ImportLUA() 184 184 { 185 global $TranslationTree, $PatchVersion; 185 global $PatchVersion; 186 187 $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree(); 186 188 $Output = 'Načítání textů z LUA souboru...'; 187 189 … … 237 239 function UpdateTranslated() 238 240 { 239 global $TranslationTree, $PatchVersion, $Config; 240 241 global $PatchVersion, $Config; 242 243 $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree(); 241 244 $Output = '<br /><br />Začínám se synchronizací VersionEnd u přeložených textů<br />'; 242 245 foreach($TranslationTree as $Group) … … 341 344 function ImportDBC() 342 345 { 343 global $System, $TranslationTree, $Config; 344 346 global $System, $Config; 347 348 $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree(); 345 349 $Output = 'Načítání textů z DBC souboru...'; 346 350 if(($this->Group['DBCFileName'] != '') and ($this->Group['TablePrefix'] != '')) … … 392 396 function ImportGroup($GroupId) 393 397 { 394 global $TranslationTree;398 $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree(); 395 399 396 400 $this->Group = $TranslationTree[$GroupId]; … … 406 410 function ImportSQL() 407 411 { 408 global $TranslationTree, $PatchVersion; 409 410 $Output= ''; 412 global $PatchVersion; 413 414 $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree(); 415 $Output = ''; 411 416 $File = new FileStream(); 412 417 $File->OpenFile(dirname(__FILE__).'/../../source/'.$this->Version['Version'].'/sql/'.$this->Group['MangosTable'].'.sql'); -
trunk/Modules/Import/Manage.php
r848 r859 43 43 function ShowMenu() 44 44 { 45 global $TranslationTree, $System; 46 45 $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree(); 47 46 $Output = '<strong>Import zdrojů:</strong><br/>'. 48 47 '<a href="?action=instructions">Instrukce pro přípravu zdrojových souborů</a><br/>'. 49 48 '<a href="?action=update_translated">Zaktualizovat verze přeložených</a><br/><br/>'. 50 'Verze klienta použitá pro import: <strong>'.$ System->Config['Web']['GameVersion'].'</strong><br/>';51 $DbResult = $ System->Database->query('SELECT COUNT(*) FROM `Group`');49 'Verze klienta použitá pro import: <strong>'.$this->System->Config['Web']['GameVersion'].'</strong><br/>'; 50 $DbResult = $this->System->Database->query('SELECT COUNT(*) FROM `Group`'); 52 51 $DbRow = $DbResult->fetch_row(); 53 52 $PageList = GetPageList($DbRow[0]); … … 68 67 $Output .= $Order['Output']; 69 68 70 $DbResult = $ System->Database->query('SELECT * FROM `Group`'.$Order['SQL'].$PageList['SQLLimit']);69 $DbResult = $this->System->Database->query('SELECT * FROM `Group`'.$Order['SQL'].$PageList['SQLLimit']); 71 70 while($Group = $DbResult->fetch_assoc()) 72 71 { -
trunk/Modules/Import/cmd.php
r848 r859 9 9 $System->Run(); 10 10 $Import = new Import($System); 11 $TranslationTree = $System->ModuleManager->Modules['Translation']->GetTranslationTree(); 11 12 12 13 $Output = '';
Note:
See TracChangeset
for help on using the changeset viewer.