Changeset 826 for trunk/Modules/Export
- Timestamp:
- Mar 1, 2015, 3:38:19 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Export/ProcessTask.php
r816 r826 10 10 11 11 //LoadCommandLineParameters(); 12 $System = new System(); 13 $System->DoNotShowPage = true; 14 $System->Run(); 15 16 function SetProgress($Export,$per) { 12 $System = new System(); 13 $System->DoNotShowPage = true; 14 $System->Run(); 15 16 function SetProgress($Export, $Progress) 17 { 17 18 global $System; 18 $System->Database->query('UPDATE `ExportTask` SET `Progress`='.$per.' WHERE `Export`='.$Export->Id); 19 } 20 19 20 $System->Database->query('UPDATE `ExportTask` SET `Progress`='.$Progress.' WHERE `Export`='.$Export->Id); 21 } 21 22 22 23 function DeleteOldFiles($deldir) 23 24 { 24 25 26 27 28 29 30 31 32 33 34 } 35 36 function rcopy($src, $dst){25 if(file_exists($deldir.'/')) 26 { 27 $Dir = opendir($deldir.'/') ; 28 while(($File = readdir($Dir)) !== false) 29 { 30 if(($File != '..') and ($File != '.') and (!is_dir("$File"))) unlink($deldir.'/'.$File); 31 } 32 closedir($Dir); 33 } 34 } 35 36 function rcopy($src, $dst) 37 { 37 38 // echo $src.' '.$dst."\n"; 38 39 if (file_exists($dst)) DeleteOldFiles($dst); … … 46 47 } 47 48 48 function GetWinZPatch($patch) { 49 function GetWinZPatch($patch) 50 { 49 51 //TMP="Z:\\a\\www\\wowpreklad\\tmp\\Export\\${EXPORTID}\\" 50 52 $patch = str_replace(DIRECTORY_SEPARATOR,'\\',$patch); … … 53 55 } 54 56 55 function MPQPack($packdir) {56 57 function MPQPack($packdir) 58 { 57 59 if(file_exists($packdir.DIRECTORY_SEPARATOR)) 58 60 {
Note:
See TracChangeset
for help on using the changeset viewer.