- Timestamp:
- Mar 24, 2010, 8:18:48 AM (15 years ago)
- Location:
- trunk/export
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/export/export.php
r401 r403 39 39 } 40 40 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`'. 44 44 ' JOIN `ExportUser` ON (`ExportUser`.`User`=`T`.`User`) AND (`ExportUser`.`Export`='.$this->Id.') '. 45 45 ' JOIN `User` ON `User`.`ID`=`T`.`User`'. … … 240 240 $I = $I + 1; 241 241 } 242 $Columns = substr($Columns, 0, -2);243 242 244 243 $Query = $this->BuildQuery($Group, $Columns); -
trunk/export/process_task.php
r395 r403 21 21 { 22 22 $Export = new Export($System); 23 $Export->Id = $DbRow['Export '];23 $Export->Id = $DbRow['ExportId']; 24 24 $Export->Init(); 25 25 echo('Mazání starých souborů...'."\n"); … … 41 41 $Export->ExportToDBC(); 42 42 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/'); 44 44 echo('Hotovo'."\n"); 45 45 } else echo('Funkce pro tvorbu Zip souboru není podporována!'."\n");
Note:
See TracChangeset
for help on using the changeset viewer.