Changeset 455 for trunk/import/index.php
- Timestamp:
- Apr 13, 2010, 10:03:12 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/import/index.php
r443 r455 34 34 function ShowImportGroup() 35 35 { 36 global $ Config;36 global $System; 37 37 38 38 if(array_key_exists('id', $_GET)) … … 41 41 42 42 $GroupId = (int)$_GET['id']; 43 $Import = new Import( );44 $Import->SetVersion($ Config['Web']['GameVersion']);43 $Import = new Import($System); 44 $Import->SetVersion($System->Config['Web']['GameVersion']); 45 45 $Import->ImportGroup($GroupId); 46 46 … … 52 52 function ShowMenu() 53 53 { 54 global $TranslationTree, $ Database, $Config;54 global $TranslationTree, $System; 55 55 56 56 echo('</div><div><strong>Import zdrojů:</strong></div>'); … … 58 58 echo('<div><a href="?action=instructions">Instrukce pro přípravu zdrojových souborů</a></div>'); 59 59 echo('<div><a href="?action=update_translated">Zaktualizovat verze přeložených</a></div><br/>'); 60 echo('Verze klienta použitá pro import: <strong>'.$ Config['Web']['GameVersion'].'</strong>');61 $DbResult = $ Database->SQLCommand('SELECT COUNT(*) FROM `Group`');62 $DbRow = mysql_fetch_row($DbResult);60 echo('Verze klienta použitá pro import: <strong>'.$System->Config['Web']['GameVersion'].'</strong>'); 61 $DbResult = $System->Database->query('SELECT COUNT(*) FROM `Group`'); 62 $DbRow = $DbResult->fetch_row(); 63 63 $PageList = GetPageList($DbRow[0]); 64 64 echo('<h3>Seznam překladových skupin</h3>'); … … 78 78 echo($Order['Output']); 79 79 80 $ ID = $Database->SQLCommand('SELECT * FROM `Group`'.$Order['SQL'].$PageList['SQLLimit']);81 while($Group = mysql_fetch_assoc($ID))80 $DbResult = $System->Database->query('SELECT * FROM `Group`'.$Order['SQL'].$PageList['SQLLimit']); 81 while($Group = $DbResult->fetch_assoc()) 82 82 { 83 83 echo('<tr><td>'.$Group['Name'].'</td><td>'.$Group['SourceType'].'</td><td>'); … … 92 92 function UpdateTranslated() 93 93 { 94 global $System; 95 94 96 echo('<div style="font-size: xx-small;">'); 95 $Import = new Import( );97 $Import = new Import($System); 96 98 $Import->UpdateTranslated(); 97 99 echo('</div>');
Note:
See TracChangeset
for help on using the changeset viewer.