Ignore:
Timestamp:
Dec 24, 2013, 11:19:56 PM (11 years ago)
Author:
maron
Message:
  • Added: better progress
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Export/Export.php

    r664 r672  
    255255  } 
    256256
     257  function AddProgress($add = 2) {
     258      $File = new FileStream();
     259      $File->OpenFile($this->TempDir.'progress');
     260      $Line = $File->ReadLine(); 
     261      $File = new FileStream();
     262      $File->CreateFile($this->TempDir.'progress');
     263      $Line+=$add;
     264      $File->WriteLine($Line);
     265  }
     266
    257267  function ExportToDBC()
    258268  {
     
    267277    while($Group = $DbResult->fetch_assoc())
    268278    {
     279      $this->AddProgress();
    269280      $Output .= $Group['Name'].', ';
    270281      if(file_exists($this->SourceDir.$this->ClientVersion['Version'].'/dbc/'.$Group['DBCFileName'].'.dbc'))
     
    375386    while($Group = $DbResult->fetch_assoc())
    376387    {
     388      $this->AddProgress();
    377389      $Output .= $Group['Name'].'... ';
    378390      $File = new FileStream();
Note: See TracChangeset for help on using the changeset viewer.