svn path=/trunk/boinc/; revision=14327

This commit is contained in:
David Anderson 2007-11-30 00:38:38 +00:00
parent b191ba9e33
commit 2ebf90fabd
1 changed files with 5 additions and 0 deletions

View File

@ -136,8 +136,13 @@ case 'answer': // submit answer in exercise
$bolt_ex_mode = BOLT_MODE_SCORE; $bolt_ex_mode = BOLT_MODE_SCORE;
$bolt_ex_index = 0; $bolt_ex_index = 0;
$bolt_ex_score = 0; $bolt_ex_score = 0;
ob_start(); // turn on output buffering
require($item->filename); require($item->filename);
ob_end_clean();
echo "score: $bolt_ex_score"; echo "score: $bolt_ex_score";
$bolt_ex_mode = BOLT_MODE_ANSWER;
$bolt_ex_index = 0;
require($item->filename);
break; break;
} }