yotvui.php 935 B

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