Changeset 456 for trunk/export/export.php
- Timestamp:
- Apr 13, 2010, 10:18:46 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/export/export.php
r446 r456 315 315 $this->LoadFilters(); 316 316 317 if(!file_exists($this->TempDir.'lua/')) mkdir($this->TempDir.'lua/', 0777, true); 317 318 $DbResult = $this->Database->query('SELECT `Group`.* FROM `ExportGroup` JOIN `Group` ON `Group`.`Id` = `ExportGroup`.`Group` WHERE `ExportGroup`.`Export`='.$this->Id.' AND `Group`.`LuaFileName` != ""'); 318 319 while($Group = $DbResult->fetch_assoc()) … … 322 323 $File->OpenFile('../source/'.$this->ClientVersion['Version'].'/lua/'.$Group['LuaFileName'].'.lua'); 323 324 $File2 = new FileStream(); 324 if(!file_exists($this->TempDir.'lua/')) mkdir($this->TempDir.'lua/', 0777, true);325 325 $File2->CreateFile($this->TempDir.'lua/'.$Group['LuaFileName'].'.lua'); 326 326 … … 332 332 while(!$File->EOF()) 333 333 { 334 $Line = $File->Read Line();334 $Line = $File->ReadString(); 335 335 if(strpos($Line, '=') !== false) 336 336 { … … 357 357 if($Value['Comment'] != '') $NewLine .= ' -- '.$Value['Comment']; 358 358 $NewLine .= "\n"; 359 $File2->Write Line($NewLine);360 } else $File2->Write Line($Line."");359 $File2->WriteString($NewLine); 360 } else $File2->WriteString($Line.""); 361 361 } 362 362 echo('Hotovo <br/>');
Note:
See TracChangeset
for help on using the changeset viewer.