Rev 1111 | Rev 5766 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1111 | Rev 1978 | ||
---|---|---|---|
Line 1... | Line -... | ||
1 | - | ||
- | 1 | !read tabletheme |
|
2 | The central piece of a wims server is a cgi program, usually in the name of |
2 | The central piece of a wims server is a cgi program, usually in the name of |
3 | wims.cgi. It takes all the http calls to the server, then does the following |
3 | wims.cgi. It takes all the http calls to the server, then does the following |
4 | work: |
4 | work: |
5 | <ol> |
5 | <ol> |
6 | <li>Call the module asked by the user, and process parameters and variables |
6 | <li>Call the module asked by the user, and process parameters and variables |
Line 40... | Line 40... | ||
40 | Parameters of wims.cgi is a usual http $emph name=value$emphend pair, where the |
40 | Parameters of wims.cgi is a usual http $emph name=value$emphend pair, where the |
41 | $emph name$emphend field may be one of the following: |
41 | $emph name$emphend field may be one of the following: |
42 | <ul> |
42 | <ul> |
43 | <li><font color=green>cmd</font>: the value is the command of the call. |
43 | <li><font color=green>cmd</font>: the value is the command of the call. |
44 | Valid commands: |
44 | Valid commands: |
- | 45 | $table_header |
|
45 |
|
46 | $table_tr<th>Parameter string<th>Meaning |
46 |
|
47 | $table_tr<td>cmd=intro<td>get introduction page of the module |
47 |
|
48 | $table_tr<td>cmd=new<td>open new working session |
48 |
|
49 | $table_tr<td>cmd=renew<td>restart working session |
49 |
|
50 | $table_tr<td>cmd=reply<td>send reply to the module |
50 |
|
51 | $table_tr<td>cmd=next<td>get next exercise (in a working session) |
51 |
|
52 | $table_tr<td>cmd=config<td>set preferences |
52 |
|
53 | $table_tr<td>cmd=help<td>get contextual help |
53 |
|
54 | $table_tr<td>cmd=hint<td>get contextual hint |
54 |
|
55 | $table_tr<td>cmd=resume<td>resume work (e.g. after help) |
55 |
|
56 | $table_tr<td>cmd=getins<td>get dynamic insertions: internal use<br> |
56 | by the server. Not to be used by modules. |
57 | by the server. Not to be used by modules. |
57 | </table> |
58 | </table></center> |
58 | <li><font color=green>module</font>. the value is the name of the module |
59 | <li><font color=green>module</font>. the value is the name of the module |
59 | which the user wants to access. <br> |
60 | which the user wants to access. <br> |
60 | <li><font color=green>session</font>: the value is the number of the current |
61 | <li><font color=green>session</font>: the value is the number of the current |
61 | session of the user. <br> |
62 | session of the user. <br> |
62 | The session number is automatically generated by wims.cgi, and is usually |
63 | The session number is automatically generated by wims.cgi, and is usually |