Changeset 257 for trunk/export/cmd.php
- Timestamp:
- Jul 24, 2009, 6:55:38 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/export/cmd.php
r255 r257 1 1 <?php 2 3 ini_set("memory_limit","100M"); 2 4 3 5 if(!isset($_SERVER['REMOTE_ADDR'])) … … 37 39 38 40 39 $sql = 'SELECT *, (SELECT user.user FROM user WHERE user. id =User) as UserName FROM tasks WHERE Active = 1 ';41 $sql = 'SELECT *, (SELECT user.user FROM user WHERE user.ID = tasks.User) as UserName FROM tasks WHERE Active = 1 '; 40 42 $ID = $Database->SQLCommand($sql); 41 43 while($Line = mysql_fetch_assoc($ID)) … … 48 50 { 49 51 $TempDir = $Config['Web']['TempFolder'].$_SESSION['User'].'/dbc/'; 50 echo('Generování dbc souborů.. .<br />');52 echo('Generování dbc souborů.. '); 51 53 ExportToDBC($ExportSetting); 52 54 $SaveFilename = $Config['Web']['TempFolder'].$_SESSION['User'].'/CzWoW_DBC.zip'; … … 55 57 $Buffer = $Zip->file(); 56 58 file_put_contents($SaveFilename, $Buffer); 57 echo('Hotovo 58 59 '); 59 echo('Hotovo'); 60 60 } else echo('Funkce pro tvorbu Zip souboru není podporována!'); 61 61 } 62 62 63 //$Database->SQLCommand('UPDATE tasks SET Active = 0');63 $Database->SQLCommand('UPDATE tasks SET Active = 0'); 64 64 65 65
Note:
See TracChangeset
for help on using the changeset viewer.