index.php 1018 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. $altcfg = $ubillingConfig->getAlter();
  3. if ($altcfg['CALLMEBACK_ENABLED']) {
  4. if (cfr('CALLMEBACK')) {
  5. $callMeBack = new CallMeBack();
  6. //change existing call state
  7. if (ubRouting::checkGet(array('setcall', 'state'))) {
  8. $callMeBack->setCallState(ubRouting::get('setcall'), ubRouting::get('state'));
  9. ubRouting::nav($callMeBack::URL_ME);
  10. }
  11. //rendering processed calls json data
  12. if (ubRouting::get('ajaxdonecalls')) {
  13. $callMeBack->getAjProcessedList();
  14. }
  15. //render some interface
  16. show_window('', $callMeBack->renderPanel());
  17. if (ubRouting::checkGet('showdone')) {
  18. show_window(__('Processed calls'), $callMeBack->renderProcessedCalls());
  19. } else {
  20. show_window(__('Calls'), $callMeBack->renderUndoneCalls());
  21. }
  22. zb_BillingStats(true);
  23. } else {
  24. show_error(__('Access denied'));
  25. }
  26. } else {
  27. show_error(__('This module is disabled'));
  28. }