visorcharge.php 445 B

1234567891011121314151617
  1. <?php
  2. //visor default cameras charge monthly run
  3. if (ubRouting::get('action') == 'visorcharge') {
  4. if ($alterconf['VISOR_ENABLED']) {
  5. if (date("d") == date("t")) {
  6. //last day of month?
  7. $visor = new UbillingVisor();
  8. $visor->chargeProcessing();
  9. die('OK:VISORCHARGE');
  10. } else {
  11. die('OK:VISOR_SKIP');
  12. }
  13. } else {
  14. die('ERROR: VISOR DISABLED');
  15. }
  16. }