Changeset 504 for trunk/export/export.php
- Timestamp:
- Feb 14, 2013, 7:51:59 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 2 2 aowow 3 3 nbproject 4 .settings 5 .project 6 .buildpath
-
- Property svn:ignore
-
trunk/export/export.php
r488 r504 248 248 249 249 $DbResult = $this->Database->query('SELECT `Group`.* FROM `ExportGroup` JOIN `Group` ON `Group`.`Id` = `ExportGroup`.`Group` WHERE `ExportGroup`.`Export`='.$this->Id.' AND `Group`.`DBCFileName` != ""'); 250 echo('Počet generovaných skupin: '.$DbResult->num_rows."\n");250 $Output = 'Počet generovaných skupin: '.$DbResult->num_rows."\n"; 251 251 while($Group = $DbResult->fetch_assoc()) 252 252 { 253 echo($Group['Name'].', ');253 $Output .= $Group['Name'].', '; 254 254 if(file_exists('../source/'.$this->ClientVersion['Version'].'/dbc/'.$Group['DBCFileName'].'.dbc')) 255 255 { … … 284 284 // Replace translated strings 285 285 $OldProgress = -1; 286 echo("\n\r");286 $Output .= "\n\r"; 287 287 $RowCount = $SourceDBCFile->GetRecordCount(); 288 288 $FieldCount = $SourceDBCFile->GetFieldCount(); … … 317 317 if($Progress != $OldProgress) 318 318 { 319 echo($Progress."%\r");319 $Output .= $Progress."%\r"; 320 320 $OldProgress = $Progress; 321 321 } 322 322 } 323 323 $NewDBCFile->Commit(); 324 } else echo('Zdrojový soubor '.'../source/'.$this->ClientVersion['Version'].'/dbc/'.$Group['DBCFileName'].'.dbc'.' nenalezen.'."\n"); 325 } 326 echo('Hotovo <br />'); 324 } else $Output .= ShowMessage('Zdrojový soubor '.'../source/'.$this->ClientVersion['Version'].'/dbc/'.$Group['DBCFileName'].'.dbc'.' nenalezen.'."\n", MESSAGE_CRITICAL); 325 } 326 $Output .= 'Hotovo <br />'; 327 return($Output); 327 328 } 328 329 … … 333 334 $this->LoadFilters(); 334 335 336 $Output = ''; 335 337 if(!file_exists($this->TempDir.'lua/')) mkdir($this->TempDir.'lua/', 0777, true); 336 338 $DbResult = $this->Database->query('SELECT `Group`.* FROM `ExportGroup` JOIN `Group` ON `Group`.`Id` = `ExportGroup`.`Group` WHERE `ExportGroup`.`Export`='.$this->Id.' AND `Group`.`LuaFileName` != ""'); 337 339 while($Group = $DbResult->fetch_assoc()) 338 340 { 339 echo($Group['Name'].'... ');341 $Output .= $Group['Name'].'... '; 340 342 $File = new FileStream(); 341 343 $File->OpenFile('../source/'.$this->ClientVersion['Version'].'/lua/'.$Group['LuaFileName'].'.lua'); … … 393 395 } else $File2->WriteLine($Line); 394 396 } 395 echo('Hotovo <br/>'); 396 } 397 $Output .= 'Hotovo <br/>'; 398 } 399 return($Output); 397 400 } 398 401 }
Note:
See TracChangeset
for help on using the changeset viewer.