Changeset 443 for trunk/includes/global_function.php
- Timestamp:
- Apr 11, 2010, 11:48:39 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/global_function.php
r436 r443 238 238 $Result[$DbRow['Id']] = $DbRow; 239 239 } 240 $DbResult = $Database->SQLCommand('SELECT * FROM `GroupItem` ORDER BY ` DBCColumnIndex`');240 $DbResult = $Database->SQLCommand('SELECT * FROM `GroupItem` ORDER BY `Group`, `Sequence`'); 241 241 while($DbRow = mysql_fetch_assoc($DbResult)) 242 242 { … … 316 316 } 317 317 return($VersionsWOW[$BuildNumber]); 318 }319 320 function GetDBCColumns($Version, $DBCFileName)321 {322 global $Database, $DBCColumns;323 324 if(isset($DBCColumns[$Version][$DBCFileName]) == false)325 {326 $sql = 'SELECT `DBCColumns_'.$DBCFileName.'` AS `DBCColumns` FROM `ClientVersion` WHERE `Version` = "'.$Version.'"';327 $DbRow = mysql_fetch_assoc($Database->SQLCommand($sql));328 $DBCColumns[$Version][$DBCFileName] = $DbRow['DBCColumns'];329 }330 return($DBCColumns[$Version][$DBCFileName]);331 }332 333 function GetDBCColumnIndex($Version, $DBCFileName, $Column)334 {335 global $Database, $DBCColumnIndex;336 337 if(isset($DBCColumnIndex[$Version][$DBCFileName][$Column]) == false)338 {339 $sql = 'SELECT `'.$DBCFileName.'_'.$Column.'` AS `DBCColumns` FROM `ClientVersion` WHERE `Version` = "'.$Version.'"';340 $DbRow = mysql_fetch_assoc($Database->SQLCommand($sql));341 $DBCColumnIndex[$Version][$DBCFileName][$Column] = $DbRow['DBCColumns'];342 }343 return($DBCColumnIndex[$Version][$DBCFileName][$Column]);344 318 } 345 319
Note:
See TracChangeset
for help on using the changeset viewer.