Changeset 830
- Timestamp:
- Apr 30, 2016, 11:55:02 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/Version.php
r828 r830 1 1 <?php 2 2 3 $Revision = 8 28; // Subversion revision3 $Revision = 830; // Subversion revision 4 4 $DatabaseRevision = 824; // SQL structure revision 5 $ReleaseTime = strtotime('2016-04- 27');5 $ReleaseTime = strtotime('2016-04-30'); -
trunk/Modules/Network/Network.php
r829 r830 711 711 $this->Database->query('DELETE FROM `NetworkPort` WHERE `Interface`='.$Id); 712 712 $this->Database->query('DELETE FROM `NetworkSignal` WHERE `Interface`='.$Id); 713 $this->Database->query('DELETE FROM `NetworkInterfaceWireless` WHERE ` Interface`='.$Id);713 $this->Database->query('DELETE FROM `NetworkInterfaceWireless` WHERE `NetworkInterface`='.$Id); 714 714 } 715 715 -
trunk/Modules/Notify/Notify.php
r824 r830 6 6 { 7 7 var $Checks; 8 8 9 9 function __construct($System) 10 10 { … … 38 38 ), 39 39 )); 40 $this->System->RegisterCommandLine('notify', array($this, 'RunCheck')); 40 41 } 41 42 42 43 function RegisterCheck($Name, $Callback) 43 44 { 44 if(array_key_exists($Name, $this->Checks)) 45 if(array_key_exists($Name, $this->Checks)) 45 46 throw new Exception('Check function "'.$Name.'" already registered.'); 46 47 $this->Checks[$Name] = array('Callback' => $Callback); 47 48 } 48 49 49 50 function UnregisterCheck($Name) 50 51 { 51 if(!array_key_exists($Name, $this->Checks)) 52 if(!array_key_exists($Name, $this->Checks)) 52 53 throw new Exception('Check function "'.$Name.'" not registered.'); 53 54 unset($this->Checks[$Name]); … … 104 105 } 105 106 107 function RunCheck($Parameters) 108 { 109 RepeatFunction(30, array($this, 'Check')); 110 } 111 106 112 function DoInstall() 107 113 { … … 142 148 } 143 149 } 144 145 class ScheduleNotifyCheck extends SchedulerTask146 {147 function Execute()148 {149 $Output = $this->System->ModuleManager->Modules['Notify']->Check();150 151 return($Output);152 }153 } -
trunk/Modules/Scheduler/Scheduler.php
r799 r830 76 76 { 77 77 $Class = new $DbRow['Class']($this->System); 78 $Output = $Class->Execute(); 78 try { 79 $Output = $Class->Execute(); 80 } catch (Exception $E) { 81 echo($E->getMessage()."\n"); 82 } 79 83 echo($Output); 80 84 } else echo('Class '.$DbRow['Class'].' not found'."\n");
Note:
See TracChangeset
for help on using the changeset viewer.