Update of /cvsroot/stack/stack-1-0
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19275
Modified Files:
quiz.php
Log Message:
Index: quiz.php
===================================================================
RCS file: /cvsroot/stack/stack-1-0/quiz.php,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** quiz.php 7 Sep 2005 14:19:35 -0000 1.35
--- quiz.php 9 Sep 2005 11:14:59 -0000 1.36
***************
*** 134,137 ****
--- 134,143 ----
if (array_key_exists('quizid',$_POST)) {
$quizid = $_POST['quizid'];
+
+ // 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);
|