- Timestamp:
- Jan 21, 2008, 2:19:23 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quests/export.php
r253 r255 157 157 $sql .= " ".$npc_text[$i]." = '".$Line[$npc_text[$i]]."' , "; 158 158 } 159 $sql .= " ID = '".$Line['entry']."' WHERE ID = ".$Line['entry']; 159 $sql .= " ID = '".$Line['entry']."' WHERE ID = ".$Line['entry'].";"; 160 160 161 if ($Diacritical == False) $sql=WithOutDiacritical($sql); 161 162 … … 191 192 192 193 if ($Export == 'Zip') { 193 if ( @function_exists('gzcompress')) {194 if (function_exists('gzcompress')) { 194 195 $save_filename = 'SqlTranslate.zip'; 195 196 $SQL_filename = 'SqlTranslate.sql'; … … 203 204 } 204 205 205 $Buffer = $BufferZip;206 207 206 $zipfile = new zipfile(); 208 $zipfile -> addFile($Buffer , $SQL_filename);207 $zipfile -> addFile($BufferZip, $SQL_filename); 209 208 $Buffer = $zipfile -> file(); 210 209 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); 213 212 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> 217 217 <a href="'.$save_filename.'">'.$save_filename.'</a>'; 218 218 }
Note:
See TracChangeset
for help on using the changeset viewer.