index.php 571 B

12345678910111213141516171819202122
  1. <?php
  2. $altCfg = $ubillingConfig->getAlter();
  3. if ($altCfg['EXHORSE_ENABLED']) {
  4. if (cfr('EXHORSE')) {
  5. $exhorse = new ExistentialHorse();
  6. if (ubRouting::checkPost($exhorse::PROUTE_YEAR)) {
  7. $exhorse->setYear(ubRouting::post($exhorse::PROUTE_YEAR));
  8. } else {
  9. $exhorse->setYear(date("Y"));
  10. }
  11. show_window(__('Existential horse'), $exhorse->renderReport());
  12. zb_BillingStats(true);
  13. } else {
  14. show_error(__('Access denied'));
  15. }
  16. } else {
  17. show_error(__('This module is disabled'));
  18. }