Thanks Richard, i should have carefully read all the coderunner documentation and jobe doc, i've seen that it is explained that some firewall rules are applied .......
Could you help me for the following problem :
I'm always searching to generate random values in questions. I have found a trick. In the question form, i insert an iframe which makes a call to a php program on a server which generates the random values.
Let's take a simple example, the php program generates the question :
What is the value of a modulo m for a=15 and m =7. Fill the answer in the variable r.
Now in the answer box preload, i put
and the student have to fill a and m with the datas of the question and gives the answer in r.
Then i can check in my customize template that r = a modulo m.
The main problem with this is that the student can give any input (for example a=1 and m=2) as soon as the value r is correct, that is to say that i cannot verify that the student answers the question with the data randomly generated by my php script.....
Could you tell me where i have to modify the coderunner source code so that :
1) when authoring a question, there is a new text field which is automatically filled wit a random hexadecimal string (it will be used as an encryption key K).
2) inside my customized template i can use the value of K
My idea is the following : When i call my php program, i also send the generated K as a parameter, so that my program sends back the datas a , m and a token tok encrypted from the values of a, m and K.
In the answer the student should specify the value of a , m , tok and his answer. Now in my customize template, i check from the values a and m given by the student and the value K generated in the input field when authoring the question that the corresponding encrypting value is equal to tok, which mean that the student has used the good datas.
Hope that my poor english is sufficiently clear.