"> <?php echo message::nbMessage(); ?> </span> </a> <?php $displayUpdate = update::nbNeedUpdate() > 0 ? '' : 'display : none;'; ?> <li><a href="index.php?v=d&p=update"> <span class="badge tooltips" title="{{Nombre de mises à jour}}" style="background-color : #c9302c;<?php echo $displayUpdate; ?> "> <?php echo update::nbNeedUpdate(); ?> </span> </a> </li> <li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#"><i class="fa fa-cogs"></i><span class="caret"></span></a> <ul class="dropdown-menu"> <?php if (hasRight('administrationview', true)) { ?> <li><a href="index.php?v=d&p=administration" tabindex="0"><i class="fa fa-wrench"></i> {{Configuration}}</a></li> <?php } ?>
<?php if (!hasRight('health', true)) { throw new Exception('{{401 - Accès non autorisé}}'); } ?> <legend>{{Santé de Jeedom}}</legend> <table class="table table-condensed table-bordered"> <thead><tr><th style="width : 250px;"></th><th style="width : 150px;">{{Résultat}}</th><th>{{Conseil}}</th></tr></thead> <tbody> <tr> <td style="font-weight : bold;">{{Système à jour}}</td> <?php $nbNeedUpdate = update::nbNeedUpdate(); if ($nbNeedUpdate > 0) { echo '<td class="alert alert-danger">' . $nbNeedUpdate . '</td>'; echo '<td></td>'; } else { echo '<td class="alert alert-success">{{OK}}</td>'; echo '<td></td>'; } ?> </tr> <tr> <td style="font-weight : bold;">{{Lancement des crons}}</td> <?php if (!cron::ok()) { echo '<td class="alert alert-danger">{{NOK}}</td>'; echo '<td></td>'; } else {
$scenario->setIsActive(0); $jsonrpc->makeSuccess($scenario->save()); } throw new Exception('La paramètre "state" ne peut être vide et doit avoir pour valeur [run,stop,enable;disable]'); } /* * ************************JeeNetwork*************************** */ if ($jsonrpc->getMethod() == 'jeeNetwork::handshake') { if (config::byKey('jeeNetwork::mode') != 'slave') { throw new Exception('Impossible d\'ajouter une box jeedom non esclave à un réseau Jeedom'); } $auiKey = config::byKey('auiKey'); if ($auiKey == '') { $auiKey = config::genKey(255); config::save('auiKey', $auiKey); } $return = array('mode' => config::byKey('jeeNetwork::mode'), 'nbUpdate' => update::nbNeedUpdate(), 'version' => jeedom::version(), 'nbMessage' => message::nbMessage(), 'auiKey' => $auiKey, 'jeedom::url' => config::byKey('jeedom::url'), 'ngrok::port' => config::byKey('ngrok::port')); if (!filter_var(network::getNetworkAccess('external', 'ip'), FILTER_VALIDATE_IP) && network::getNetworkAccess('external', 'ip') != '') { $return['jeedom::url'] = network::getNetworkAccess('internal'); } foreach (plugin::listPlugin(true) as $plugin) { if ($plugin->getAllowRemote() == 1) { $return['plugin'][] = $plugin->getId(); } } $address = isset($params['address']) && $params['address'] != '' ? $params['address'] : getClientIp(); config::save('jeeNetwork::master::ip', $address); config::save('jeeNetwork::master::apikey', $params['apikey_master']); config::save('jeeNetwork::slave::id', $params['slave_id']); if (config::byKey('internalAddr') == '') { config::save('internalAddr', $params['slave_ip']); }