Beispiel #1
0
 public function check()
 {
     // Only allow ajax and API
     parent::redirectIfWebView();
     // Set default success
     $this->data['success'] = false;
     // If url is found, check it
     // else skip
     if (isset($this->clean->url) && !empty($this->clean->url)) {
         $mark = parent::checkMark($this->clean->url);
         if ($mark !== false) {
             $this->data['success'] = true;
             $this->data['mark'] = $mark;
         }
     }
     // Render JSON
     $this->renderJSON();
 }