Changeset 820


Ignore:
Timestamp:
Mar 20, 2016, 10:33:00 PM (9 years ago)
Author:
chronos
Message:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/Version.php

    r819 r820  
    11<?php
    22
    3 $Revision = 819; // Subversion revision
     3$Revision = 820; // Subversion revision
    44$DatabaseRevision = 818; // SQL structure revision
    5 $ReleaseTime = strtotime('2016-03-16');
     5$ReleaseTime = strtotime('2016-03-20');
  • trunk/Modules/IS/IS.php

    r795 r820  
    233233        $Form->LoadValuesFromDatabase($Id);
    234234        $this->ShortTitle .= ' - '.$Form->Definition['Title'].' odstranění';
     235        if(array_key_exists('BeforeDelete', $Form->Definition))
     236        {
     237          call_user_func($Form->Definition['BeforeDelete'], $Form, $Id);
     238        }
    235239        $this->LogChange($Form, 'Delete', 0, $Id);
    236240        $this->Database->delete($Table, '`Id`='.$Id);
  • trunk/Modules/Network/Network.php

    r819 r820  
    206206      'AfterInsert' => array($this, 'AfterInsertNetworkInterface'),
    207207      'AfterModify' => array($this, 'AfterModifyNetworkInterface'),
     208      'BeforeDelete' => array($this, 'BeforeDeleteNetworkInterface'),
    208209      'AfterDelete' => array($this, 'AfterModifyNetworkInterface'),
    209210    ));
     
    676677  }
    677678 
     679  function BeforeDeleteNetworkInterface($Form, $Id)
     680  {
     681    $this->Database->query('DELETE FROM `NetworkInterfaceUpDown` WHERE `Interface`='.$Id);
     682    $this->Database->query('DELETE FROM `NetworkLink` WHERE `Interface1`='.$Id.' OR `Interface2`='.$Id);
     683    $this->Database->query('DELETE FROM `NetworkPort` WHERE `Interface`='.$Id);
     684    $this->Database->query('DELETE FROM `NetworkSignal` WHERE `Interface`='.$Id);
     685    $this->Database->query('DELETE FROM `NetworkInterfaceWireless` WHERE `Interface`='.$Id);
     686  }
     687
    678688  function ShowDashboardItem()
    679689  {
     
    712722      'LEFT JOIN `NetworkDevice` ON `NetworkDevice`.`Id` = `NetworkInterface`.`Device` '.
    713723      $Condition.' AND (`NetworkDevice`.`PermanentOnline`=1) AND (`NetworkDevice`.`Used`=1) AND '.
    714       '(`NetworkInterface`.`LocalIP` != "") AND (`NetworkInterface`.`Enabled` == 1)'.
     724      '(`NetworkInterface`.`LocalIP` != "") AND (`NetworkInterface`.`Enabled`=1)'.
    715725      'ORDER BY `Name` ASC');
    716726    if($DbResult3->num_rows > 0)
  • trunk/Modules/NetworkConfig/NetworkConfig.php

    r817 r820  
    3232      'Items' => array(
    3333        'Caption' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''),
    34         'Execute' => array('Type' => 'String', 'Caption' => 'Povely', 'Default' => ''),
     34        'SysName' => array('Type' => 'String', 'Caption' => 'Systémové jméno', 'Default' => ''),
    3535        'Changed' => array('Type' => 'TNetworkConfigurationState', 'Caption' => 'Stav', 'Default' => 0),
    3636        'LastTime' => array('Type' => 'DateTime', 'Caption' => 'Naposledy spuštěno', 'ReadOnly' => true),
Note: See TracChangeset for help on using the changeset viewer.