vogelor
2008-11-24 a2e689d5dcac097c5fcc8e8ce27b70c9e0ae9abc
fixed some small typos / "copy and paste" bugs
2 files modified
12 ■■■■ changed files
interface/web/monitor/show_sys_state.php 8 ●●●● patch | view | raw | blame | history
server/mods-available/monitor_core_module.inc.php 4 ●●●● patch | view | raw | blame | history
interface/web/monitor/show_sys_state.php
@@ -98,7 +98,7 @@
    global $app;
    /*  The State of the server */
    $serverState = 'unknown';
    $serverState = 'ok';
    /** The Number of several infos, warnings, errors, ... */
    $count = array('unknown' => 0, 'info' => 0, 'warning' => 0, 'critical' => 0, 'error' => 0);
@@ -264,7 +264,7 @@
    if ($type == 'services'){
        switch ($record['state']) {
            case 'ok':
                $messages['error'][] = 'All needed Services are online ' .
                $messages['ok'][] = 'All needed Services are online ' .
                                    "<a href='#' onclick='loadContent(\"monitor/show_data.php?type=services\");'>[more...]</a>";
                break;
@@ -317,9 +317,9 @@
    switch ($oldState) {
        case 'no_state': $oldInt = 0;
            break;
        case 'unknown': $oldInt = 1;
        case 'ok': $oldInt = 1;
            break;
        case 'ok': $oldInt = 2;
        case 'unknown': $oldInt = 2;
            break;
        case 'info': $oldInt = 3;
            break;
server/mods-available/monitor_core_module.inc.php
@@ -846,9 +846,9 @@
        switch ($newState) {
            case 'no_state': $newInt = 0 ;
                break;
            case 'unknown': $newInt = 1 ;
            case 'ok': $newInt = 1 ;
                break;
            case 'ok': $newInt = 2 ;
            case 'unknown': $newInt = 2 ;
                break;
            case 'info': $newInt = 3 ;
                break;