Changeset 820
- Timestamp:
- Mar 20, 2016, 10:33:00 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/Version.php
r819 r820 1 1 <?php 2 2 3 $Revision = 8 19; // Subversion revision3 $Revision = 820; // Subversion revision 4 4 $DatabaseRevision = 818; // SQL structure revision 5 $ReleaseTime = strtotime('2016-03- 16');5 $ReleaseTime = strtotime('2016-03-20'); -
trunk/Modules/IS/IS.php
r795 r820 233 233 $Form->LoadValuesFromDatabase($Id); 234 234 $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 } 235 239 $this->LogChange($Form, 'Delete', 0, $Id); 236 240 $this->Database->delete($Table, '`Id`='.$Id); -
trunk/Modules/Network/Network.php
r819 r820 206 206 'AfterInsert' => array($this, 'AfterInsertNetworkInterface'), 207 207 'AfterModify' => array($this, 'AfterModifyNetworkInterface'), 208 'BeforeDelete' => array($this, 'BeforeDeleteNetworkInterface'), 208 209 'AfterDelete' => array($this, 'AfterModifyNetworkInterface'), 209 210 )); … … 676 677 } 677 678 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 678 688 function ShowDashboardItem() 679 689 { … … 712 722 'LEFT JOIN `NetworkDevice` ON `NetworkDevice`.`Id` = `NetworkInterface`.`Device` '. 713 723 $Condition.' AND (`NetworkDevice`.`PermanentOnline`=1) AND (`NetworkDevice`.`Used`=1) AND '. 714 '(`NetworkInterface`.`LocalIP` != "") AND (`NetworkInterface`.`Enabled` ==1)'.724 '(`NetworkInterface`.`LocalIP` != "") AND (`NetworkInterface`.`Enabled`=1)'. 715 725 'ORDER BY `Name` ASC'); 716 726 if($DbResult3->num_rows > 0) -
trunk/Modules/NetworkConfig/NetworkConfig.php
r817 r820 32 32 'Items' => array( 33 33 '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' => ''), 35 35 'Changed' => array('Type' => 'TNetworkConfigurationState', 'Caption' => 'Stav', 'Default' => 0), 36 36 'LastTime' => array('Type' => 'DateTime', 'Caption' => 'Naposledy spuštěno', 'ReadOnly' => true),
Note:
See TracChangeset
for help on using the changeset viewer.