modet.php 565 B

1234567891011121314151617
  1. <?php
  2. if (ubRouting::checkGet('action') == 'modet') {
  3. if ($ubillingConfig->getAlterParam(MoDet::OPTION_ENABLE)) {
  4. if (ubRouting::checkGet('mdfp')) {
  5. $filePathEnc = ubRouting::get('mdfp', 'mres');
  6. $motionDetector = new MoDet();
  7. $threshold = ubRouting::get('th', 'int');
  8. $timeScale = ubRouting::get('ts', 'int');
  9. $motionDetector->startMotionFilteringProcess($filePathEnc, $threshold, $timeScale);
  10. die('OK:MODET');
  11. }
  12. } else {
  13. die('ERROR:MODET_DISABLED');
  14. }
  15. }