Changeset 390 for trunk/export
- Timestamp:
- Mar 15, 2010, 7:30:08 PM (15 years ago)
- Location:
- trunk/export
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/export/export.php
r387 r390 239 239 240 240 $this->LoadFilters(); 241 241 242 242 $DbResult = $this->Database->query('SELECT `Group`.* FROM `ExportGroup` JOIN `Group` ON `Group`.`Id` = `ExportGroup`.`Group` WHERE `ExportGroup`.`Export`='.$this->Id.' AND `Group`.`DBCFileName` != ""'); 243 243 echo('Počet generovaných skupin: '.$DbResult->num_rows.'<br/>'."\n"); -
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.