Changeset 679 for trunk/Common


Ignore:
Timestamp:
Jul 26, 2014, 9:25:03 PM (10 years ago)
Author:
chronos
Message:
  • Přidáno: U zařízení je možno nastavit ozančení použitého produktu.
  • Upraveno: Umožněno přidávat rozhraní bez IP adresy. Potřeba pro registraci wifi rozhraní bez ip zapoojených v mostu pro měření signálu.
Location:
trunk/Common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Global.php

    r668 r679  
    365365  global $Database;
    366366
    367   $DbResult = $Database->query('SELECT Id FROM Member WHERE (SELECT Member FROM NetworkDevice WHERE (SELECT Device FROM NetworkInterface WHERE LocalIP = "'.$IP.'") = NetworkDevice.Id) = Member.Id');
     367  $DbResult = $Database->query('SELECT Id FROM Member WHERE '.
     368  '(SELECT Member FROM NetworkDevice WHERE (SELECT Device FROM NetworkInterface '.
     369  'WHERE LocalIP = "'.$IP.'") = NetworkDevice.Id) = Member.Id');
    368370  if($DbResult->num_rows > 0)
    369371  {
  • trunk/Common/Setup/Updates.php

    r678 r679  
    879879}
    880880
     881function UpdateTo679($Manager)
     882{
     883  $Manager->Execute('ALTER TABLE `NetworkDevice` ADD `Product` INT NOT NULL AFTER `Id` ,
     884ADD INDEX ( `Product` ) ;');
     885}
     886
    881887class Updates
    882888{
     
    926932      674 => array('Revision' => 676, 'Function' => 'UpdateTo676'),
    927933      676 => array('Revision' => 678, 'Function' => 'UpdateTo678'),
     934      678 => array('Revision' => 679, 'Function' => 'UpdateTo679'),
    928935    ));
    929936  }
Note: See TracChangeset for help on using the changeset viewer.