Changeset 290 for trunk/export/cmd.php
- Timestamp:
- Dec 27, 2009, 1:08:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/export/cmd.php
r265 r290 1 1 <?php 2 2 3 ini_set( "memory_limit","100M");3 ini_set('memory_limit', '100M'); 4 4 5 5 if(!isset($_SERVER['REMOTE_ADDR'])) … … 10 10 { 11 11 $index = substr($parameter,0,strpos($parameter, '=')); 12 13 12 $parameter = substr($parameter,strpos($parameter, '=')+1); 13 //echo ($index.' ---- '.$parameter); 14 14 $_GET[$index] = $parameter; 15 15 } 16 } 16 } 17 17 } 18 18 … … 29 29 foreach($FileList as $FileName) 30 30 { 31 32 31 if(file_exists($Path.$FileName) and ($FileName != '.') and ($FileName != '..')) 32 { 33 33 //echo($Path.$FileName.'<br />'); 34 35 else $Zip->addFile(file_get_contents($Path.$FileName), $ZipPath.$FileName); 36 34 if(is_dir($Path.$FileName)) CreateZipFromDir($Zip, $Path.$FileName.'/', $ZipPath.$FileName.'/'); 35 else $Zip->addFile(file_get_contents($Path.$FileName), $ZipPath.$FileName); 36 } 37 37 } 38 38 } … … 44 44 { 45 45 $ExportSetting = unserialize($Line['ExportSetting']); 46 47 $_SESSION['UserID'] = $Line['User']; 46 $_SESSION['User'] = $Line['UserName']; 47 $_SESSION['UserID'] = $Line['User']; 48 48 49 49 if(function_exists('gzcompress')) 50 50 { 51 51 $TempDir = $Config['Web']['TempFolder'].$_SESSION['User'].'/dbc/'; 52 52 echo('Generování dbc souborů.. '); 53 53 ExportToDBC($ExportSetting); 54 54 $SaveFilename = $Config['Web']['TempFolder'].$_SESSION['User'].'/CzWoW_DBC.zip'; 55 55 $Zip = new zipfile(); 56 57 56 CreateZipFromDir($Zip, $TempDir, 'DBFilesClient/'); 57 $Buffer = $Zip->file(); 58 58 file_put_contents($SaveFilename, $Buffer); 59 59 echo('Hotovo'); 60 60 } else echo('Funkce pro tvorbu Zip souboru není podporována!'); 61 61 } … … 64 64 65 65 66 // 66 // WriteLog('Generování dbc úloh', 2); 67 67 ?>
Note:
See TracChangeset
for help on using the changeset viewer.