public static function ajaxAddInToplist($data)
 {
     // workaround ...
     $_POST = $_POST['data'];
     $ctn = new WpProQuiz_Controller_Toplist();
     $quizId = isset($data['quizId']) ? $data['quizId'] : 0;
     $prefix = !empty($data['prefix']) ? trim($data['prefix']) : '';
     $quizMapper = new WpProQuiz_Model_QuizMapper();
     $quiz = $quizMapper->fetch($quizId);
     $r = $ctn->handleAddInToplist($quiz);
     if ($quiz->isToplistActivated() && $quiz->isToplistDataCaptcha() && get_current_user_id() == 0) {
         $captcha = WpProQuiz_Helper_Captcha::getInstance();
         if ($captcha->isSupported()) {
             $captcha->remove($prefix);
             $captcha->cleanup();
             if ($r !== true) {
                 $r['captcha']['img'] = WPPROQUIZ_CAPTCHA_URL . '/' . $captcha->createImage();
                 $r['captcha']['code'] = $captcha->getPrefix();
             }
         }
     }
     if ($r === true) {
         $r = array('text' => __('You signed up successfully.', 'wp-pro-quiz'), 'clear' => true);
     }
     return json_encode($r);
 }