vserviceschargefee.php 916 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Virtualservices charge fee
  4. */
  5. if (ubRouting::get('action') == 'vserviceschargefee') {
  6. $vservicesChargeFrozen = (ubRouting::get('param') == 'nofrozen') ? false : true;
  7. $vservicesChargePeriod = '';
  8. if (ubRouting::checkGet('period')) {
  9. $periodFilter = str_ireplace('_', ',', ubRouting::get('period'));
  10. $vservicesChargePeriod = " `charge_period_days` IN (" . $periodFilter . ")";
  11. }
  12. $regularPayments = true;
  13. if (isset($alterconf['VSERVICES_AS_PAYMENTS'])) {
  14. if ($alterconf['VSERVICES_AS_PAYMENTS']) {
  15. $regularPayments = true;
  16. } else {
  17. $regularPayments = false;
  18. }
  19. }
  20. log_register('REMOTEAPI VSERVICE_CHARGE_FEE STARTED');
  21. zb_VservicesProcessAll($regularPayments, $vservicesChargeFrozen, $vservicesChargePeriod);
  22. log_register('REMOTEAPI VSERVICE_CHARGE_FEE FINISHED');
  23. die('OK:SERVICE_CHARGE_FEE');
  24. }