Show
Ignore:
Timestamp:
04/17/11 04:37:19 (2 years ago)
Author:
mickecarlsson
Message:

Closes 5075, better logic in checking if fop is running

Files:

Legend:

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

    r11052 r12009  
    345345   
    346346  // fop 
    347   if(!$amp_conf['FOPDISABLE'])  { 
    348     if ($procinfo->check_fop_server()) { 
     347  if($amp_conf['FOPDISABLE']) { 
     348   $out .= draw_status_box(_("Op Panel"), "disabled", _('FOP Operator Panel is disabled in Advanced Settings')); 
     349   } else { 
     350    if($amp_conf['FOPRUN']) { 
     351     if ($procinfo->check_fop_server()) { 
    349352      $out .= draw_status_box(_("Op Panel"), "ok", _('FOP Operator Panel Server is running')); 
    350     } else { 
    351       if ($amp_conf['FOPRUN']) { 
    352         // it should be running 
    353         $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.')); 
    354       } else { 
    355         $out .= draw_status_box(_("Op Panel"), "disabled", _('FOP Operator Panel is disabled in Advanced Settings')); 
    356       } 
     353      }  
    357354    } 
    358   } 
     355    $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.'));       
     356   } 
    359357   
    360358  // mysql