Changeset 403


Ignore:
Timestamp:
Mar 24, 2010, 8:18:48 AM (15 years ago)
Author:
george
Message:
  • Opraveno: Export DBC souborů
Location:
trunk/export
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/export/export.php

    r401 r403  
    3939  }
    4040 
    41   function BuildQuery($Group, $Columns = '`T`.*')
    42   {
    43     $Query = 'SELECT * FROM (SELECT '.$Columns.', `User`.`Name` AS `UserName` FROM `'.$Group['TablePrefix'].'` AS `T`'.
     41  function BuildQuery($Group, $Columns = '')
     42  {
     43    $Query = 'SELECT * FROM (SELECT `T`.*, '.$Columns.'`User`.`Name` AS `UserName` FROM `'.$Group['TablePrefix'].'` AS `T`'.
    4444    ' JOIN `ExportUser` ON (`ExportUser`.`User`=`T`.`User`) AND (`ExportUser`.`Export`='.$this->Id.') '.
    4545    ' JOIN `User` ON `User`.`ID`=`T`.`User`'.
     
    240240          $I = $I + 1;
    241241        }
    242         $Columns = substr($Columns, 0, -2);
    243242
    244243        $Query = $this->BuildQuery($Group, $Columns);
  • trunk/export/process_task.php

    r395 r403  
    2121      {
    2222        $Export = new Export($System);
    23         $Export->Id = $DbRow['Export'];
     23        $Export->Id = $DbRow['ExportId'];
    2424        $Export->Init();
    2525        echo('Mazání starých souborů...'."\n");
     
    4141          $Export->ExportToDBC();
    4242          echo('Komprese...'."\n");
    43           exec('zip -r -j '.$Export->TempDir.'/CzWoW_DBC.zip '.$Export->TempDir.'dbc/');
     43          exec('zip -r -j '.$Export->TempDir.'CzWoW_DBC.zip '.$Export->TempDir.'dbc/');
    4444          echo('Hotovo'."\n");
    4545        } else echo('Funkce pro tvorbu Zip souboru není podporována!'."\n");
Note: See TracChangeset for help on using the changeset viewer.