olltvui.php 947 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. if (ubRouting::get('action') == 'olltvui') {
  3. if ($ubillingConfig->getAlterParam('OLLTV_ENABLED')) {
  4. $ollTv = new OllTVService();
  5. if (ubRouting::checkGet('subdata')) {
  6. $ollTv->usReplyUserData(ubRouting::get('subdata'));
  7. }
  8. if (ubRouting::checkGet('tardata')) {
  9. $ollTv->usReplyTariffs();
  10. }
  11. if (ubRouting::checkGet('devdata')) {
  12. $ollTv->usReplyDevices(ubRouting::get('devdata'));
  13. }
  14. if (ubRouting::checkGet(array('unsub', 'sublogin'))) {
  15. $ollTv->usUnsubscribe(ubRouting::get('sublogin'), ubRouting::get('unsub', 'int'));
  16. }
  17. if (ubRouting::checkGet(array('subserv', 'sublogin'))) {
  18. $ollTv->usSubscribe(ubRouting::get('sublogin'), ubRouting::get('subserv', 'int'));
  19. }
  20. } else {
  21. $replyError = array('error' => 'ERROR: OLLTV_DISABLED');
  22. die(json_encode($replyError));
  23. }
  24. }