- Timestamp:
- Apr 13, 2010, 10:18:46 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/action.php
r455 r456 202 202 else echo('<input type="text" name="user" /><br />'); 203 203 echo('Text zprávy: <br> 204 <textarea 204 <textarea onkeydown="ResizeTextArea(this)" name="text" cols="40"></textarea> <br /> 205 205 <input type="submit" name="add" value="Odeslat" /><br /></fieldset> 206 206 </form>'); -
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/>'); -
trunk/export/export_output.php
r455 r456 239 239 echo('<a href="'.$Export->TempDir.'lua/'.$Group['LuaFileName'].'.lua">'.$Group['LuaFileName'].'.lua</a><br/>'); 240 240 } 241 echo('<br /><br /><strong>Použití ve hře</strong><br />Ze souborů vytvořte MPQ archív a nahrajte ho do hry do podsložky Data/enUS jako patch-enUS-5.MPQ. Hru spusťtepomocí programu WoWMe.exe (WoW Model Editor Fix).');241 echo('<br /><br /><strong>Použití ve hře</strong><br />Ze souborů vytvořte MPQ archív a nahrajte ho do hry do podsložky jako Data/enUS/patch-enUS-5.MPQ nebo Data/enUS/patch-enGB-5.MPQ. Pro starší verze hry než 3.2.0 je nutné spouštět hru pomocí programu WoWMe.exe (WoW Model Editor Fix).'); 242 242 } 243 243 -
trunk/import/import.php
r455 r456 105 105 while(!$File->EOF()) 106 106 { 107 $Line = $File->Read Line();107 $Line = $File->ReadString(); 108 108 if(strpos($Line, '=') !== false) 109 109 { … … 269 269 while((!$File->EOF())) 270 270 { 271 $Line = $File->Read Line();271 $Line = $File->ReadString(); 272 272 // Struktura 273 273 if(strpos($Line, 'CREATE TABLE `'.$this->Group['MangosTable'].'`') !== false)
Note:
See TracChangeset
for help on using the changeset viewer.