ophanimtraff.php 663 B

1234567891011121314151617181920
  1. <?php
  2. if (ubRouting::get('action') == 'ophanimtraff') {
  3. if ($ubillingConfig->getAlterParam(OphanimFlow::OPTION_ENABLED)) {
  4. $ophTraffPid = OphanimFlow::PID_SYNC;
  5. $ophanimSyncProcess = new StarDust($ophTraffPid);
  6. if ($ophanimSyncProcess->notRunning()) {
  7. $ophanimSyncProcess->start();
  8. set_time_limit(600);
  9. $ophTraff = new OphanimFlow();
  10. $ophTraff->traffDataProcessing();
  11. $ophanimSyncProcess->stop();
  12. die('OK:OPHANIMTRAFF_DONE');
  13. } else {
  14. die('SKIP:OPHANIMTRAFF_RUNNING');
  15. }
  16. } else {
  17. die('ERROR:OPHANIMTRAFF_DIABLED');
  18. }
  19. }