Exemplo n.º 1
0
 public function initContent()
 {
     parent::initContent();
     header('Content-Type: text/plain; charset=utf-8');
     if (!$this->module->active) {
         header('HTTP/1.1 404 Not Found');
     } elseif ($this->checkAccess()) {
         CashWay::checkForPayments();
     } else {
         header('HTTP/1.1 403 Forbidden');
     }
     die;
 }
Exemplo n.º 2
0
 private function onGenericCheck()
 {
     ob_start();
     CashWay::checkForPayments();
     $this->terminateReply(200, ob_get_clean());
 }