Ignore:
Timestamp:
Jan 7, 2014, 9:54:21 PM (11 years ago)
Author:
chronos
Message:
  • Added: Each client version as separated web page.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/global.php

    r712 r727  
    373373}
    374374
     375// TODO: Client version build number should not be used in internal references
    375376function GetVersionWOW($BuildNumber)
    376377{
     
    385386  }
    386387  return($VersionsWOW[$BuildNumber]);
     388}
     389
     390// TODO: Client version build number should not be used in internal references
     391function GetVersionWOWId($BuildNumber)
     392{
     393  global $System, $VersionsWOWId;
     394 
     395  if(isset($VersionsWOWId[$BuildNumber]) == false)
     396  {
     397    $sql = 'SELECT `Id` FROM `ClientVersion` WHERE `BuildNumber` = "'.$BuildNumber.'"';
     398    $DbResult = $System->Database->query($sql);
     399    $Version = $DbResult->fetch_assoc();
     400    $VersionsWOWId[$BuildNumber] = $Version['Id'];
     401  }
     402  return($VersionsWOWId[$BuildNumber]);
    387403}
    388404
Note: See TracChangeset for help on using the changeset viewer.