exhorse.php 568 B

1234567891011121314151617181920
  1. <?php
  2. //existential horse
  3. if (ubRouting::get('action') == 'exhorse') {
  4. if ($alterconf['EXHORSE_ENABLED']) {
  5. $existentialHorseProcess = new StarDust('EXHORSE');
  6. if ($existentialHorseProcess->notRunning()) {
  7. $existentialHorseProcess->start();
  8. $exhorse = new ExistentialHorse();
  9. $exhorse->runHorse();
  10. $existentialHorseProcess->stop();
  11. die('OK:EXHORSE');
  12. } else {
  13. die('SKIP:EXHORSE_ALREADY_RUNNING');
  14. }
  15. } else {
  16. die('ERROR:EXHORSE_DISABLED');
  17. }
  18. }