/lenasys/0.1

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

« back to all changes in this revision

Viewing changes to DuggaSys/quizAjax/answerQuiz.php

  • Committer: galaxyAbstractor
  • Date: 2013-04-03 12:44:23 UTC
  • mto: (4.7.11 GammaBear)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: galaxyabstractor@gmail.com-20130403124423-gn2xgehzxahtcn78
Moved shared js, css and php, updated all paths in DuggaSys.

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(