pseudocrm.php 644 B

123456789101112131415161718192021
  1. <?php
  2. if (ubRouting::get('action') == 'pseudocrm') {
  3. if (@$alterconf['PSEUDOCRM_ENABLED']) {
  4. $pseudoCrmResult = 'NONE';
  5. $pseudoCrmActionCall = ubRouting::get('param');
  6. if ($pseudoCrmActionCall) {
  7. $crm = new PseudoCRM();
  8. switch ($pseudoCrmActionCall) {
  9. //open activities notification
  10. case 'openactnotify':
  11. $crm->notifyOpenActivities();
  12. break;
  13. }
  14. $pseudoCrmResult = $pseudoCrmActionCall;
  15. }
  16. die('OK:' . $pseudoCrmResult);
  17. } else {
  18. die('ERROR:PSEUDOCRM_DISABLED');
  19. }
  20. }