/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk

« back to all changes in this revision

Viewing changes to DuggaSys/quizAjax/answerQuiz.php

  • Committer: galaxyAbstractor
  • Date: 2013-04-03 13:01:15 UTC
  • mfrom: (9.5.1 lenasys)
  • mto: (12.2.1 lenasys)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: galaxyabstractor@gmail.com-20130403130115-x7g17k3yvlmdtm83
Merged Victor

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
session_start();
10
10
//Check if the sent login name is the same as the one stored in the session
11
11
if($_POST['loginName']==$_SESSION['loginName'] && $_POST['courseName']==$_SESSION['courseName'] && $_POST['quizNr']==$_SESSION['quizNr']) { 
12
 
 
 
12
        include "../../php/dbconnect.php";
13
13
        //Store answer and loginName+answer hash
14
14
        function storeAnswer($loginName,$courseName,$courseOccasion,$quizNr,$qVarRr,$quizAnswer,$grade,$gradeComment,$ip,$userAgent,$pdo) {
15
15
                $updateQuery="UPDATE AssignedQuizzes 
49
49
        header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
50
50
        header('Content-type: application/json; charset=utf-8'); 
51
51
 
52
 
        include "dbconnect.php";
 
52
        
53
53
        
54
54
        //TODO: Store ALL answer attempts in answerlog
55
55
        // CREATE TABLE AssignedQuizzesAnswerLog(