autocredit.php 478 B

1234567891011121314151617
  1. <?php
  2. //perform autocrediting
  3. if (ubRouting::get('action') == 'autocredit') {
  4. if (@$alterconf['AUTOCREDIT_CFID']) {
  5. if (date("d") == date("t")) {
  6. //last day of month
  7. $autocredit = new AutoCredit();
  8. $autocreditResult = $autocredit->processing('cf');
  9. die('OK:AUTOCREDIT ' . $autocreditResult);
  10. } else {
  11. die('SKIP:AUTOCREDIT');
  12. }
  13. } else {
  14. die('ERROR:AUTOCREDIT DISABLED');
  15. }
  16. }