Changeset 230
- Timestamp:
- Jul 2, 2009, 7:24:10 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/export/export.php
r200 r230 284 284 echo($Group['Name'].'... '); 285 285 $DBCFile = new DBCFile(); 286 $DBCFile->OpenFile('../source/'.$ Config['Web']['GameVersion'].'/dbc/'.$Group['DBCFileName'].'.dbc', $Group['DBCColumns']);286 $DBCFile->OpenFile('../source/'.$Setting['Version'].'/dbc/'.$Group['DBCFileName'].'.dbc', GetDBCColumns($Setting['Version'],$Group['DBCFileName'])); 287 287 $DBCFile2 = new DBCFile(); 288 $DBCFile2->CreateFile($TempDir.$Group['DBCFileName'].'.dbc', $Group['DBCColumns']);288 $DBCFile2->CreateFile($TempDir.$Group['DBCFileName'].'.dbc', GetDBCColumns($Setting['Version'],$Group['DBCFileName'])); 289 289 $Count = $DBCFile->GetRecordCount(); 290 290 //if($Group['DBCFileName'] == 'Spell') $Count = 1000; … … 294 294 { 295 295 $Line = $DBCFile->GetLine($I); 296 $Query = 'SELECT * FROM (SELECT * FROM '.$Group['TablePrefix'].' WHERE (Complete = 1) AND '.$WhereLang.' AND '.$WhereUsers.' AND (entry='.$Line[0].') ORDER BY FIELD(User, '.$SelectedUsers.')) AS T GROUP BY T.entry';296 $Query = 'SELECT * FROM (SELECT * FROM '.$Group['TablePrefix'].' WHERE (Complete = 1) AND '.$WhereLang.' AND '.$WhereUsers.' AND (entry='.$Line[0].') AND VersionStart <= '.GetBuildNumber($Setting['Version']).' AND VersionEnd >= '.GetBuildNumber($Setting['Version']).' ORDER BY FIELD(User, '.$SelectedUsers.')) AS T GROUP BY T.entry'; 297 297 $DbResult = $Database->SQLCommand($Query); 298 298 if(mysql_num_rows($DbResult) > 0) … … 356 356 echo($Group['Name'].'... '); 357 357 $File = new FileStream(); 358 $File->OpenFile('../source/'.$ Config['Web']['GameVersion'].'/lua/'.$Group['LuaFileName'].'.lua');358 $File->OpenFile('../source/'.$Setting['Version'].'/lua/'.$Group['LuaFileName'].'.lua'); 359 359 $File2 = new FileStream(); 360 $File2->CreateFile($TempDir. $Group['LuaMPQFolder'].'/'.$Group['LuaFileName'].'.lua');360 $File2->CreateFile($TempDir.''.$Group['LuaFileName'].'.lua'); 361 361 362 362 while(!$File->EOF()) … … 371 371 $Value['Comment'] = addslashes(substr(trim($LineParts[1]), 3)); 372 372 373 $Query = 'SELECT * FROM (SELECT * FROM '.$Group['TablePrefix'].' WHERE (Complete = 1) AND '.$WhereLang.' AND '.$WhereUsers.' AND (ShortCut="'.$Value['ShortCut'].'") ORDER BY FIELD(User, '.$SelectedUsers.')) AS T GROUP BY T.entry';373 $Query = 'SELECT * FROM (SELECT * FROM '.$Group['TablePrefix'].' WHERE (Complete = 1) AND '.$WhereLang.' AND '.$WhereUsers.' AND (ShortCut="'.$Value['ShortCut'].'") AND VersionStart <= '.GetBuildNumber($Setting['Version']).' AND VersionEnd >= '.GetBuildNumber($Setting['Version']).' ORDER BY FIELD(User, '.$SelectedUsers.')) AS T GROUP BY T.entry'; 374 374 //echo($Query); 375 375 $DbResult = $Database->SQLCommand($Query);
Note:
See TracChangeset
for help on using the changeset viewer.