Changeset 255 for quests/export.php


Ignore:
Timestamp:
Jan 21, 2008, 2:19:23 PM (17 years ago)
Author:
maron
Message:

U mě to jde a na serveru ne, to je k nasrání

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quests/export.php

    r253 r255  
    157157          $sql .= " ".$npc_text[$i]." = '".$Line[$npc_text[$i]]."' , ";
    158158      }
    159       $sql .= " ID = '".$Line['entry']."' WHERE ID = ".$Line['entry'];
     159      $sql .= " ID = '".$Line['entry']."' WHERE ID = ".$Line['entry'].";";
     160     
    160161      if ($Diacritical == False) $sql=WithOutDiacritical($sql);
    161162     
     
    191192 
    192193  if ($Export == 'Zip') {
    193       if (@function_exists('gzcompress')) {
     194      if (function_exists('gzcompress')) {
    194195        $save_filename = 'SqlTranslate.zip';
    195196        $SQL_filename = 'SqlTranslate.sql';
     
    203204        }
    204205
    205         $Buffer  = $BufferZip;
    206        
    207206        $zipfile = new zipfile();
    208         $zipfile -> addFile($Buffer, $SQL_filename);
     207        $zipfile -> addFile($BufferZip, $SQL_filename);
    209208        $Buffer = $zipfile -> file();
    210209
    211         $file_handle = @fopen($save_filename, 'w');
    212         $write_result = @fwrite($file_handle, $Buffer);
     210        $file_handle = fopen($save_filename, 'w');
     211        $write_result = fwrite($file_handle, $Buffer);
    213212        fclose($file_handle);
    214         header("Location: ".$save_filename);
    215 
    216       } echo 'Pokud nezaèalo stahování soubor by mìlo jít stáhnout z tohoto odkazu:<br>
     213       // header("Location: ".$save_filename);
     214
     215      } else echo 'Vyskitla se chyba!';
     216      echo 'Pokud nezaèalo stahování soubor by mìlo jít stáhnout z tohoto odkazu:<br>
    217217      <a href="'.$save_filename.'">'.$save_filename.'</a>';
    218218  }   
Note: See TracChangeset for help on using the changeset viewer.