예제 #1
0
파일: health.php 프로젝트: GaelGRIFFON/core
			<?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 {
    echo '<td class="alert alert-success">{{OK}}</td>';
    echo '<td></td>';
}
?>
		</tr>

		<tr>
			<td style="font-weight : bold;">{{Cron actif}}</td>
			<?php 
if (config::byKey('enableCron', 'core', 1, true) == 0) {
    echo '<td class="alert alert-danger">{{NOK}}</td>';
    echo '<td>{{Erreur cron : les crons sont désactivés. Allez dans Général -> Administration -> Moteur de tâches pour les réactiver}}</td>';