/**
  * Generates the HTML code of the captcha question.
  *
  * @return string
  * @author	Reinhard Führicht <*****@*****.**>
  */
 public function getCaptcha()
 {
     require_once t3lib_extMgm::extPath('mathguard') . 'res/ClassMathGuard.php';
     $conf = $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_mathguard.'];
     //Set question string
     if ($conf['question']) {
         $question = $conf['question'];
     } else {
         $langFile = t3lib_extMgm::extPath('mathguard') . 'res/locallang.xml';
         $question = trim($GLOBALS['TSFE']->sL('LLL:' . $langFile . ':mathguard_question'));
     }
     //Set color of output
     if ($conf['color']) {
         $color = $conf['color'];
     } else {
         $color = 'red';
     }
     return MathGuard::returnQuestion($question, $color);
 }