Changeset 455 for trunk/export/process_task.php
- Timestamp:
- Apr 13, 2010, 10:03:12 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/export/process_task.php
r403 r455 12 12 while(1) 13 13 { 14 $DbResult = $ Database->SQLCommand('SELECT `ExportTask`.`Export`, `Export`.`Id` AS `ExportId` FROM `ExportTask` LEFT JOIN `Export` ON `Export`.`Id` = `ExportTask`.`Export` WHERE `ExportTask`.`TimeFinish` IS NULL');15 while($DbRow = mysql_fetch_assoc($DbResult))14 $DbResult = $System->Database->query('SELECT `ExportTask`.`Export`, `Export`.`Id` AS `ExportId` FROM `ExportTask` LEFT JOIN `Export` ON `Export`.`Id` = `ExportTask`.`Export` WHERE `ExportTask`.`TimeFinish` IS NULL'); 15 while($DbRow = $DbResult->fetch_assoc()) 16 16 { 17 17 echo(StrFTime("%d/%m/%Y %H:%M:%S", time()).': Generování DBC souborů pro export '.$DbRow['ExportId'].'.. '."\n"); … … 44 44 echo('Hotovo'."\n"); 45 45 } else echo('Funkce pro tvorbu Zip souboru není podporována!'."\n"); 46 $ Database->SQLCommand('UPDATE `ExportTask` SET `TimeFinish`=NOW() WHERE `Export`='.$Export->Id);46 $System->Database->query('UPDATE `ExportTask` SET `TimeFinish`=NOW() WHERE `Export`='.$Export->Id); 47 47 } catch (Exception $e) 48 48 { … … 51 51 } else 52 52 { 53 $ Database->SQLCommand('DELETE FROM `ExportTask` WHERE `Export`='.$DbRow['Export']);53 $System->Database->query('DELETE FROM `ExportTask` WHERE `Export`='.$DbRow['Export']); 54 54 echo('Export '.$DbRow['Export'].' nenalezen. Jeho úloha smazána.'."\n"); 55 55 }
Note:
See TracChangeset
for help on using the changeset viewer.