getToken()) { echo "Illegal Entry Point!"; return; // illegal entry } } $confCenter = ConfCenter::singleton(); $service = new Service(); $service->init(); $service->refreshConf($confCenter->ExportConf()); //check if require restart if ( ($act == 'restart' && $actId == '') || $act == 'switchTo') { header("location:restart.html"); $service->process($act, $actId); return; } elseif ($act == 'upgrade') { if ($service->download($actId)) { header("location:restart.html"); $service->process($act, $actId); return; } else { $error = "Failed to download release $actId! Please try upgrade manually."; } } elseif (in_array($act, array('toggledbg', 'enable', 'disable', 'restart', 'remove', 'validatelicense', 'RESET_ALL_PHP_PROCESSES'))) //other no-restart actions { if ($act == 'disable' || $act == 'enable') { $confCenter->enableDisableVh($act, $actId); } $service->process($act, $actId); } echo GUI::header($service->serv['name']); echo GUI::top_menu(); switch($vl) { case '1': include 'logViewer.php'; break; case '2': include 'realtimeReport.php'; break; case '3': if ($act == 'download') { include 'verMgrDownload.php'; } else { include 'verMgrCont.php'; } break; case '4': include 'realtimeReqReport.php'; break; default: include 'homeCont.php'; break; } echo GUI::footer();