Show
Ignore:
Timestamp:
07/12/07 00:18:22 (6 years ago)
Author:
gregmac
Message:

Add "disabled" process type, support for FOP being disabled via FOPRUN conf variable

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.3/dashboard/page.index.php

    r4362 r4365  
    8080  switch ($status) { 
    8181    case "ok": 
    82       $status_text = "OK"
     82      $status_text = _("OK")
    8383      $class = "graphok"; 
    8484    break; 
    8585    case "warn": 
    86       $status_text = "Warn"
     86      $status_text = _("Warn")
    8787      $class = "graphwarn"; 
    8888    break; 
    8989    case "error": 
    90       $status_text = "ERROR"
     90      $status_text = _("ERROR")
    9191      $class = "grapherror"; 
     92    break; 
     93    case "disabled": 
     94      $status_text = "Disabled"; 
     95      $class = ""; 
    9296    break; 
    9397  } 
     
    272276    $out .= draw_status_box(_("Op Panel"), "ok", _('FOP Operator Panel Server is running')); 
    273277  } else { 
    274     $out .= draw_status_box(_("Op Panel"), "warn", _('FOP Operator Panel Server is not running, you will not be able to use the operator panel, but the system will run fine without it.')); 
     278    if (isset($amp_conf['FOPRUN']) && $amp_conf['FOPRUN']) { 
     279      // it should be running 
     280      $out .= draw_status_box(_("Op Panel"), "warn", _('FOP Operator Panel Server is not running, you will not be able to use the operator panel, but the system will run fine without it.')); 
     281    } else { 
     282      $out .= draw_status_box(_("Op Panel"), "disabled", _('FOP Operator Panel is disabled in amportal.conf')); 
     283    } 
    275284  } 
    276285