mirror of https://github.com/MISP/MISP
new: [widgets] Whoami widget added
parent
60640f4916
commit
cd4b6936c8
|
@ -8,7 +8,7 @@ class MispAdminSyncTestWidget
|
|||
public $height = 2;
|
||||
public $params = array();
|
||||
public $description = 'Basic widget showing some server statistics in regards to MISP.';
|
||||
public $cacheLifetime = 5;
|
||||
public $cacheLifetime = 1;
|
||||
|
||||
|
||||
public function handler($user, $options = array())
|
||||
|
@ -20,6 +20,9 @@ class MispAdminSyncTestWidget
|
|||
'recursive' => -1
|
||||
));
|
||||
$data = array();
|
||||
if (empty($servers)) {
|
||||
return array();
|
||||
}
|
||||
$syncTestErrorCodes = $this->Server->syncTestErrorCodes;
|
||||
foreach ($servers as $server) {
|
||||
$result = $this->Server->runConnectionTest($server['Server']['id']);
|
||||
|
|
Loading…
Reference in New Issue