From: Chris S. <san...@us...> - 2005-09-09 11:48:20
|
Update of /cvsroot/stack/stack-1-0 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27041 Modified Files: quiz.php Log Message: Index: quiz.php =================================================================== RCS file: /cvsroot/stack/stack-1-0/quiz.php,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** quiz.php 9 Sep 2005 11:45:48 -0000 1.37 --- quiz.php 9 Sep 2005 11:48:12 -0000 1.38 *************** *** 137,145 **** // Check the $quizid is in the $subject if (!stack_db_subject_quiz_contained($subjectID,$quizid)) { ! echo "The quizID number is not linked to the subjectID numbers supplied"; die(); } // Get the particular quiz, without hidden questions. $quiz = stack_db_quiz_get($quizid,FALSE); // Get a list of questionIDs in this quiz $quiz_questions = NULL; --- 137,149 ---- // Check the $quizid is in the $subject if (!stack_db_subject_quiz_contained($subjectID,$quizid)) { ! echo "The quizID number is not linked to the subjectID numbers supplied."; die(); } // Get the particular quiz, without hidden questions. $quiz = stack_db_quiz_get($quizid,FALSE); + + // HACK: should we give this $quiz to this $user? + // Not yet done. (This page might be called directly with a form). + // Get a list of questionIDs in this quiz $quiz_questions = NULL; |