Changeset 257 for trunk/export/cmd.php


Ignore:
Timestamp:
Jul 24, 2009, 6:55:38 PM (15 years ago)
Author:
maron
Message:

Zprovoznění exportu dbc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/export/cmd.php

    r255 r257  
    11<?php
     2
     3ini_set("memory_limit","100M");
    24
    35if(!isset($_SERVER['REMOTE_ADDR']))
     
    3739
    3840
    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 ';
    4042    $ID = $Database->SQLCommand($sql);
    4143    while($Line = mysql_fetch_assoc($ID))
     
    4850        {
    4951          $TempDir = $Config['Web']['TempFolder'].$_SESSION['User'].'/dbc/';
    50               echo('Generování dbc souborů...<br />');
     52              echo('Generování dbc souborů.. ');
    5153          ExportToDBC($ExportSetting);
    5254          $SaveFilename = $Config['Web']['TempFolder'].$_SESSION['User'].'/CzWoW_DBC.zip';         
     
    5557              $Buffer = $Zip->file();
    5658          file_put_contents($SaveFilename, $Buffer);
    57                   echo('Hotovo
    58                  
    59                   ');
     59                  echo('Hotovo');
    6060        } else echo('Funkce pro tvorbu Zip souboru není podporována!');
    6161    }
    6262
    63    // $Database->SQLCommand('UPDATE tasks SET Active = 0');
     63    $Database->SQLCommand('UPDATE tasks SET Active = 0');
    6464
    6565
Note: See TracChangeset for help on using the changeset viewer.