Changeset 390 for trunk/export/process_task.php
- Timestamp:
- Mar 15, 2010, 7:30:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/export/process_task.php
r373 r390 16 16 { 17 17 if($DbRow['ExportId'] != '') 18 { 18 { 19 19 try 20 20 { … … 22 22 $Export->Id = $DbRow['Export']; 23 23 $Export->Init(); 24 24 25 // Delete old files 26 $Dir = opendir($Export->TempDir.'dbc/') ; 27 while(($File = readdir($Dir)) !== false) 28 { 29 if(($File != '..') and ($File != '.')) unlink($Export->TempDir.'dbc/'.$File); 30 } 31 closedir($Dir); 32 if(file_exists($Export->TempDir.'CzWoW_DBC.zip')) unlink($Export->TempDir.'CzWoW_DBC.zip'); 33 25 34 if(function_exists('gzcompress')) 26 35 { 27 36 echo(' <br />'.StrFTime("%d/%m/%Y %H:%M:%S", Time()).': Generování DBC souborů pro export '.$Export->Id.'.. '."\n"); 28 37 $Export->ExportToDBC(); 29 /* $SaveFilename = $Export->TempDir.'/CzWoW_DBC.zip'; 30 $Zip = new zipfile(); 31 CreateZipFromDir($Zip, $Export->TempDir.'dbc/', 'DBFilesClient/'); 32 $Buffer = $Zip->file(); 33 file_put_contents($SaveFilename, $Buffer); */ 34 echo ('Archivuji..'); 35 exec('zip -r '.$Export->TempDir.'/CzWoW_DBC.zip '.$Export->TempDir.'dbc/'); 38 exec('zip -r -j '.$Export->TempDir.'/CzWoW_DBC.zip '.$Export->TempDir.'dbc/'); 36 39 echo('Hotovo <br /> 37 40 ');
Note:
See TracChangeset
for help on using the changeset viewer.