index.php 888 B

1234567891011121314151617181920212223242526
  1. <?php
  2. if (cfr('ROOT')) {
  3. $pmon = new ProcessMon();
  4. show_window(__('Background processes'), $pmon->renderControls());
  5. if (ubRouting::checkGet($pmon::ROUTE_STOP)) {
  6. $brutalityFlag = (ubRouting::checkGet($pmon::ROUTE_BRUTAL)) ? true : false;
  7. $processShutdownResult = $pmon->stopProcess(ubRouting::get($pmon::ROUTE_STOP), $brutalityFlag);
  8. if (empty($processShutdownResult)) {
  9. sleep(1);
  10. ubRouting::nav($pmon::URL_ME);
  11. } else {
  12. show_error($processShutdownResult);
  13. }
  14. }
  15. if (ubRouting::checkGet($pmon::ROUTE_ZENMODE)) {
  16. $zen = new ZenFlow('ajprocmon', $pmon->renderProcessList(), $pmon::ZEN_TIMEOUT);
  17. show_window(__('Zen') . ' ' . __('Process'), $zen->render());
  18. } else {
  19. show_window('', $pmon->renderProcessList());
  20. }
  21. } else {
  22. show_error(__('Access denied'));
  23. }